|
@@ -151,6 +151,7 @@ public class TmstruckMeasureCommissionServiceImpl implements ITmstruckMeasureCom
|
|
int i = 0;
|
|
int i = 0;
|
|
//发送数据给计量系统 必要数据 orderTypee:订单类型 resultTotalId: 总实绩Id orderId
|
|
//发送数据给计量系统 必要数据 orderTypee:订单类型 resultTotalId: 总实绩Id orderId
|
|
int orderType = DataChange.dataToBigDecimal(map.get("orderTypee")).intValue();
|
|
int orderType = DataChange.dataToBigDecimal(map.get("orderTypee")).intValue();
|
|
|
|
+ BigDecimal factory =DataChange.dataToBigDecimal(map.get("factory"));
|
|
if(orderType == 10){
|
|
if(orderType == 10){
|
|
//获取当前订单是属于哪个厂区订单
|
|
//获取当前订单是属于哪个厂区订单
|
|
Integer receiveId = tmstruckMeasureCommissionMapper.getReceiveIdByRequirementOrderId(DataChange.dataToBigDecimal(map.get("orderId")));
|
|
Integer receiveId = tmstruckMeasureCommissionMapper.getReceiveIdByRequirementOrderId(DataChange.dataToBigDecimal(map.get("orderId")));
|
|
@@ -160,8 +161,15 @@ public class TmstruckMeasureCommissionServiceImpl implements ITmstruckMeasureCom
|
|
i = sendDXMeasureCommissionMes(map); //发送委托给达兴能源
|
|
i = sendDXMeasureCommissionMes(map); //发送委托给达兴能源
|
|
}
|
|
}
|
|
}else if(judgeDaGangNum.contains(orderType)){
|
|
}else if(judgeDaGangNum.contains(orderType)){
|
|
- //发送委托给达州钢铁
|
|
|
|
- i = sendMeasureCommissionMes(map);
|
|
|
|
|
|
+ //判断是否为厂内内转
|
|
|
|
+ if (factory.intValue()==1&&orderType==11){
|
|
|
|
+ i = sendMeasureCommissionMes(map);
|
|
|
|
+ }else if (factory.intValue()==2&&orderType==11){
|
|
|
|
+ i = sendDXMeasureCommissionMes(map);
|
|
|
|
+ }else {
|
|
|
|
+ //发送委托给达州钢铁
|
|
|
|
+ i = sendMeasureCommissionMes(map);
|
|
|
|
+ }
|
|
}else if(judgeDaXinNum.contains(orderType)) {
|
|
}else if(judgeDaXinNum.contains(orderType)) {
|
|
//发送委托给达兴能源
|
|
//发送委托给达兴能源
|
|
i = sendDXMeasureCommissionMes(map);
|
|
i = sendDXMeasureCommissionMes(map);
|
|
@@ -514,6 +522,20 @@ public class TmstruckMeasureCommissionServiceImpl implements ITmstruckMeasureCom
|
|
}
|
|
}
|
|
measureCommission.put("ended", "0");
|
|
measureCommission.put("ended", "0");
|
|
break;
|
|
break;
|
|
|
|
+ case 11:
|
|
|
|
+ measureCommission = tmstruckMeasureCommissionMapper.inwardMeasure(map);
|
|
|
|
+ if(measureCommission == null){
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+ measureCommission.put("regionName", "无法确定汽车衡"); //无法确定汽车衡
|
|
|
|
+ measureCommission.put("deliveryType", "计重");
|
|
|
|
+ measureCommission.put("billType", "2");
|
|
|
|
+ measureCommission.put("planQuantity", "0");
|
|
|
|
+ measureCommission.put("crname", "admin");
|
|
|
|
+ measureCommission.put("orderSource", "0");
|
|
|
|
+ measureCommission.put("ended", "0");
|
|
|
|
+ System.out.println(measureCommission);
|
|
|
|
+ break;
|
|
case 12: // 零星订单
|
|
case 12: // 零星订单
|
|
case 13:
|
|
case 13:
|
|
case 14:
|
|
case 14:
|