|
@@ -240,13 +240,14 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
|
|
|
if (!storageBill.getLicensePlate().equals(isStorageBill.getLicensePlate())) {
|
|
|
return Result.OK("车牌不一致,发车失败!");
|
|
|
}
|
|
|
+ storageBill.setOutTime(new Date());
|
|
|
+ storageBill.setUpdateTime(new Date());
|
|
|
// 判断装运单,是否有装运信息,装运总支数为0时,手动发车失败
|
|
|
if (storageBill.getAmountTotal() == 0 || isStorageBill.getAmountTotal() == null) {
|
|
|
- log.info("{}{}","装运信息为空,手动发车失败!", JSON.toJSON(isStorageBill));
|
|
|
- return Result.OK("装运信息为空,发车失败!");
|
|
|
+ log.info("{}{}","钢坯装运信息为空!", JSON.toJSON(isStorageBill));
|
|
|
+ storageBillService.updateById(storageBill);
|
|
|
+ return Result.OK("钢坯装运单-发车成功!");
|
|
|
}
|
|
|
- storageBill.setOutTime(new Date());
|
|
|
- storageBill.setUpdateTime(new Date());
|
|
|
storageBillService.updateById(storageBill);
|
|
|
// 添加编辑日志
|
|
|
operateLogService.add(isStorageBill,storageBill,StorageBill.class);
|