|
@@ -564,17 +564,18 @@ public class OmstruckOrderServiceImpl implements IOmstruckOrderService {
|
|
Map<String, Object> map = omstruckOrderMapper.getResultTotalIdByOrderNumAndId(numMap);
|
|
Map<String, Object> map = omstruckOrderMapper.getResultTotalIdByOrderNumAndId(numMap);
|
|
|
|
|
|
List<Integer> materialIdList = omstruckOrderMapper.getMaterialIdListByOrderId(orderId);
|
|
List<Integer> materialIdList = omstruckOrderMapper.getMaterialIdListByOrderId(orderId);
|
|
-
|
|
+
|
|
Integer orderType = DataChange.dataToBigDecimal(map.get("orderType")).intValue();
|
|
Integer orderType = DataChange.dataToBigDecimal(map.get("orderType")).intValue();
|
|
if(orderType != 1)
|
|
if(orderType != 1)
|
|
|
|
|
|
map.put("gatepostId", 1);
|
|
map.put("gatepostId", 1);
|
|
- tmsTruckFeign.addEnFactoryResult(map);
|
|
|
|
-
|
|
|
|
- tmsTruckFeign.addLeaveFactory(map);
|
|
|
|
switch (orderType) {
|
|
switch (orderType) {
|
|
case 1:
|
|
case 1:
|
|
case 4:
|
|
case 4:
|
|
|
|
+
|
|
|
|
+ tmsTruckFeign.addEnFactoryResult(map);
|
|
|
|
+
|
|
|
|
+ tmsTruckFeign.addLeaveFactory(map);
|
|
|
|
|
|
for (Integer materialId : materialIdList) {
|
|
for (Integer materialId : materialIdList) {
|
|
map.put("materialId", materialId);
|
|
map.put("materialId", materialId);
|
|
@@ -584,6 +585,9 @@ public class OmstruckOrderServiceImpl implements IOmstruckOrderService {
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
case 3:
|
|
case 3:
|
|
|
|
+ tmsTruckFeign.addEnFactoryResult(map);
|
|
|
|
+
|
|
|
|
+ tmsTruckFeign.addLeaveFactory(map);
|
|
map.put("materialId", materialIdList.get(0));
|
|
map.put("materialId", materialIdList.get(0));
|
|
tmsTruckFeign.addWeightResult(map);
|
|
tmsTruckFeign.addWeightResult(map);
|
|
tmsTruckFeign.addLoadResult(map);
|
|
tmsTruckFeign.addLoadResult(map);
|
|
@@ -592,6 +596,10 @@ public class OmstruckOrderServiceImpl implements IOmstruckOrderService {
|
|
case 6:
|
|
case 6:
|
|
case 7:
|
|
case 7:
|
|
case 8:
|
|
case 8:
|
|
|
|
+
|
|
|
|
+ tmsTruckFeign.addEnFactoryResult(map);
|
|
|
|
+
|
|
|
|
+ tmsTruckFeign.addLeaveFactory(map);
|
|
map.put("materialId", materialIdList.get(0));
|
|
map.put("materialId", materialIdList.get(0));
|
|
map.put("isdeduct", 1);
|
|
map.put("isdeduct", 1);
|
|
tmsTruckFeign.addWeightResult(map);
|
|
tmsTruckFeign.addWeightResult(map);
|