|
@@ -1,8 +1,10 @@
|
|
|
package com.steerinfo.dil.service.impl;
|
|
|
|
|
|
import com.steerinfo.dil.feign.WmshboundFeign;
|
|
|
+import com.steerinfo.dil.mapper.OmsshipInstructionsCapacityMapper;
|
|
|
import com.steerinfo.dil.mapper.TmsshipLoadShipResultMapper;
|
|
|
import com.steerinfo.dil.mapper.TmsshipTotalResultMapper;
|
|
|
+import com.steerinfo.dil.model.OmsshipInstructionsCapacity;
|
|
|
import com.steerinfo.dil.model.TmsshipLoadShipResult;
|
|
|
import com.steerinfo.dil.model.TmsshipTotalResult;
|
|
|
import com.steerinfo.dil.model.TmsshipUnloadShipResult;
|
|
@@ -46,6 +48,8 @@ public class TmsshipUnloadShipResultServiceImpl implements ITmsshipUnloadShipRes
|
|
|
WmshboundFeign wmshboundFeign;
|
|
|
@Autowired
|
|
|
TmsshipTotalResultMapper tmsshipTotalResultMapper;
|
|
|
+ @Autowired
|
|
|
+ OmsshipInstructionsCapacityMapper omsshipInstructionsCapacityMapper;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -101,7 +105,12 @@ public class TmsshipUnloadShipResultServiceImpl implements ITmsshipUnloadShipRes
|
|
|
tmsshipUnloadShipResult.setInsertUsername("admin");
|
|
|
tmsshipUnloadShipResult.setUpdateUsername("admin");
|
|
|
tmsshipUnloadShipResult.setInsertUpdateRemark("无");
|
|
|
- tmsshipUnloadShipResult.setDeleted(new BigDecimal(0));
|
|
|
+ //锁定船只
|
|
|
+ OmsshipInstructionsCapacity omsshipInstructionsCapacity=new OmsshipInstructionsCapacity();
|
|
|
+ omsshipInstructionsCapacity.setInstructionsCapacityId(DataChange.dataToBigDecimal(unloadMap.get("instructionsCapacityId")));
|
|
|
+ //锁定
|
|
|
+ omsshipInstructionsCapacity.setDeleted(new BigDecimal(3));
|
|
|
+ omsshipInstructionsCapacityMapper.updateByPrimaryKeySelective(omsshipInstructionsCapacity);
|
|
|
// 新增出库实绩
|
|
|
Map<String,Object> totalId = new HashMap<>();
|
|
|
totalId.put("totalResultId",totalResultId);
|