|
@@ -65,6 +65,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.time.LocalDateTime;
|
|
|
import java.time.ZoneId;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
@@ -178,7 +179,11 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
billetLiftingBill.setShift(shift);
|
|
|
billetLiftingBill.setVehicleNumber(vehicleNumber);
|
|
|
if (oConvertUtils.isNotEmpty(liftingTime)){
|
|
|
- billetLiftingBill.setLiftingTime(DateUtils.str2Date(liftingTime, DateUtils.datetimeFormat.get()));
|
|
|
+ if (liftingTime.contains("T")){
|
|
|
+ billetLiftingBill.setLiftingTime(DateUtils.str2Date(liftingTime, DateUtils.datetime_T_format.get()));
|
|
|
+ }else {
|
|
|
+ billetLiftingBill.setLiftingTime(DateUtils.str2Date(liftingTime, DateUtils.datetimeFormat.get()));
|
|
|
+ }
|
|
|
}
|
|
|
billetLiftingBill.setLocation(location);
|
|
|
billetLiftingBill.setCreateTime(new Date());
|
|
@@ -356,7 +361,11 @@ public class BilletHotsendBaseServiceImpl extends ServiceImpl<BilletHotsendBaseM
|
|
|
billetLiftingBill.setPositionNum(Integer.valueOf(positionNum));
|
|
|
billetLiftingBill.setPlateOrStack(plateOrStack);
|
|
|
if (oConvertUtils.isNotEmpty(liftingTime)){
|
|
|
- billetLiftingBill.setLiftingTime(DateUtils.str2Date(liftingTime, DateUtils.datetimeFormat.get()));
|
|
|
+ if (liftingTime.contains("T")){
|
|
|
+ billetLiftingBill.setLiftingTime(DateUtils.str2Date(liftingTime, DateUtils.datetime_T_format.get()));
|
|
|
+ }else {
|
|
|
+ billetLiftingBill.setLiftingTime(DateUtils.str2Date(liftingTime, DateUtils.datetimeFormat.get()));
|
|
|
+ }
|
|
|
}
|
|
|
billetLiftingBill.setRemark("热装吊运单");
|
|
|
billetLiftingBill.setBilletWeight(0.00);
|