|
@@ -50,7 +50,8 @@ public class TmsshipUnloadShipResultServiceImpl implements ITmsshipUnloadShipRes
|
|
|
TmsshipTotalResultMapper tmsshipTotalResultMapper;
|
|
|
@Autowired
|
|
|
OmsshipInstructionsCapacityMapper omsshipInstructionsCapacityMapper;
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ DilBatchServiceImpl dilBatchService;
|
|
|
|
|
|
/**
|
|
|
* 得到最大id
|
|
@@ -68,11 +69,14 @@ public class TmsshipUnloadShipResultServiceImpl implements ITmsshipUnloadShipRes
|
|
|
*/
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public int insertUnloadShip(Map<String, Object> map) {
|
|
|
+ public int insertUnloadShip(Map<String, Object> map) throws Exception {
|
|
|
Map<String,Object> mapVal = (Map<String, Object>) map.get("mapVal");
|
|
|
Map<String,Object> unloadMap = (Map<String, Object>) map.get("unloadMap");
|
|
|
- BigDecimal downSwimPortId= DataChange.dataToBigDecimal(unloadMap.get("downSwimPortId"));
|
|
|
- BigDecimal portId= DataChange.dataToBigDecimal(unloadMap.get("portId"));
|
|
|
+ //查询万州港港口id
|
|
|
+ BigDecimal portId=dilBatchService.getPortId("万州港");
|
|
|
+ if(portId==null){
|
|
|
+ throw new Exception("万州港不存在!");
|
|
|
+ }
|
|
|
TmsshipUnloadShipResult tmsshipUnloadShipResult = new TmsshipUnloadShipResult();
|
|
|
BigDecimal resultId = selectMaxId();
|
|
|
BigDecimal orderId = new BigDecimal((Integer) unloadMap.get("orderId"));
|