|
@@ -234,8 +234,18 @@ public class TmstruckEnfactoryResultServiceImpl implements ITmstruckEnfactoryRes
|
|
List<Integer> materialIdByOrderId = utilsMapper.getMaterialIdByOrderId(DataChange.dataToBigDecimal(map.get("orderId")));
|
|
List<Integer> materialIdByOrderId = utilsMapper.getMaterialIdByOrderId(DataChange.dataToBigDecimal(map.get("orderId")));
|
|
map.put("materialId", materialIdByOrderId.get(0));
|
|
map.put("materialId", materialIdByOrderId.get(0));
|
|
//默认收货单位为新厂区
|
|
//默认收货单位为新厂区
|
|
-
|
|
|
|
checkMeasureCommission += tmstruckMeasureCommissionService.addLXMeasureCommission(map);
|
|
checkMeasureCommission += tmstruckMeasureCommissionService.addLXMeasureCommission(map);
|
|
|
|
+ break;
|
|
|
|
+ case 13:
|
|
|
|
+ //更新计量实绩
|
|
|
|
+ map.put("grossPlaceId", 5);
|
|
|
|
+ i += tmstruckWeightResultService.updateWeightResult(map);
|
|
|
|
+ //发送计量委托
|
|
|
|
+ List<Integer> materialIdByOrderId1 = utilsMapper.getMaterialIdByOrderId(DataChange.dataToBigDecimal(map.get("orderId")));
|
|
|
|
+ map.put("materialId", materialIdByOrderId1.get(0));
|
|
|
|
+ //默认收货单位为新厂区
|
|
|
|
+ checkMeasureCommission += tmstruckMeasureCommissionService.addLXMeasureCommission(map);
|
|
|
|
+
|
|
}
|
|
}
|
|
if(checkMeasureCommission == 0){
|
|
if(checkMeasureCommission == 0){
|
|
throw new Exception("委托发送失败");
|
|
throw new Exception("委托发送失败");
|