|
@@ -456,7 +456,7 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
|
|
|
public Result<String> edit(@RequestBody StorageBill storageBill) {
|
|
|
StorageBill old = storageBillService.getById(storageBill.getId());
|
|
|
storageBillService.updateById(storageBill);
|
|
|
- if(oConvertUtils.isNotEmpty(storageBill.getDestination())){
|
|
|
+ if("1024".equals(old.getTypeConfigId()) && oConvertUtils.isNotEmpty(storageBill.getDestination())){
|
|
|
log.info("{}{}", "钢坯装运单编辑,未知目的地数据开始同步:", storageBill.getLicensePlate());
|
|
|
JSONObject jsonObject = storageBillService.billetAutoTmpDataSyn(storageBill);
|
|
|
log.info("{}{}", "钢坯装运单编辑,未知目的地数据同步结果:", jsonObject);
|
|
@@ -1346,12 +1346,13 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
|
|
|
storageBillService.updateById(bill);
|
|
|
return Result.OK("确认车牌编辑成功!");
|
|
|
}
|
|
|
- if(oConvertUtils.isNotEmpty(storageBill.getDestination())){
|
|
|
+ // 原始装运单目的地ID是1024,才走数据同步
|
|
|
+ if("1024".equals(bill.getTypeConfigId())){
|
|
|
bill.setDestination(storageBill.getDestination());
|
|
|
bill.setTypeConfigId(storageBill.getTypeConfigId());
|
|
|
JSONObject jsonObject = storageBillService.billetAutoTmpDataSyn(bill);
|
|
|
- log.info("{}{}", "轧钢外运未知目的地数据同步结果:", jsonObject);
|
|
|
- return Result.OK("轧钢外运未知目的地数据同步成功!");
|
|
|
+ log.info("{}{}", "看板确认目的地数据同步结果:", jsonObject);
|
|
|
+ return Result.OK("确认目的地成功!");
|
|
|
}
|
|
|
return Result.error("系统异常!");
|
|
|
}
|