|
@@ -41,6 +41,8 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
@Autowired
|
|
@Autowired
|
|
private UtilsServiceImpl utilsService;
|
|
private UtilsServiceImpl utilsService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private TmstruckLeaveFactoryResultServiceImpl tmstruckLeaveFactoryResultService;
|
|
/**
|
|
/**
|
|
* 查询所有计毛实绩
|
|
* 查询所有计毛实绩
|
|
* @param map
|
|
* @param map
|
|
@@ -126,8 +128,8 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
tmstruckWeightResult.setWeightTaskResultId(tmstruckWeightResultMapper.selectMaxId());
|
|
tmstruckWeightResult.setWeightTaskResultId(tmstruckWeightResultMapper.selectMaxId());
|
|
tmstruckWeightResult.setResultTotalId(DataChange.dataToBigDecimal(map.get("resultTotalId")));
|
|
tmstruckWeightResult.setResultTotalId(DataChange.dataToBigDecimal(map.get("resultTotalId")));
|
|
// 添加计皮计毛作业点ID
|
|
// 添加计皮计毛作业点ID
|
|
- tmstruckWeightResult.setResultGrossPlaceId(DataChange.dataToBigDecimal(map.get("truckCalculateIdMao")));
|
|
|
|
- tmstruckWeightResult.setResultTarePlaceId(DataChange.dataToBigDecimal(map.get("truckCalculateIdPi")));
|
|
|
|
|
|
+// tmstruckWeightResult.setResultGrossPlaceId(DataChange.dataToBigDecimal(map.get("truckCalculateIdMao")));
|
|
|
|
+// tmstruckWeightResult.setResultTarePlaceId(DataChange.dataToBigDecimal(map.get("truckCalculateIdPi")));
|
|
return tmstruckWeightResultMapper.insertSelective(tmstruckWeightResult);
|
|
return tmstruckWeightResultMapper.insertSelective(tmstruckWeightResult);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -246,7 +248,7 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
if(calculateId != null){
|
|
if(calculateId != null){
|
|
tmstruckWeightResult.setResultTarePlaceId(new BigDecimal(calculateId));
|
|
tmstruckWeightResult.setResultTarePlaceId(new BigDecimal(calculateId));
|
|
}
|
|
}
|
|
- int i1 = 0;
|
|
|
|
|
|
+ int i = 0;
|
|
Integer lineSequence = null; //路段顺序号
|
|
Integer lineSequence = null; //路段顺序号
|
|
BigDecimal orderType = DataChange.dataToBigDecimal(map.get("orderTypee"));
|
|
BigDecimal orderType = DataChange.dataToBigDecimal(map.get("orderTypee"));
|
|
switch (orderType.intValue()){
|
|
switch (orderType.intValue()){
|
|
@@ -275,8 +277,10 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
tmstruckReceiptResult.setStatus(new BigDecimal(1));
|
|
tmstruckReceiptResult.setStatus(new BigDecimal(1));
|
|
tmstruckReceiptResult.setInsertUsername("admin");
|
|
tmstruckReceiptResult.setInsertUsername("admin");
|
|
tmstruckReceiptResult.setInsertTime(new Date());
|
|
tmstruckReceiptResult.setInsertTime(new Date());
|
|
- i1 = tmstruckReceiptResultMapper.updateByTotalResultId(tmstruckReceiptResult);
|
|
|
|
|
|
+ i += tmstruckReceiptResultMapper.updateByTotalResultId(tmstruckReceiptResult);
|
|
lineSequence = 5; // 出厂
|
|
lineSequence = 5; // 出厂
|
|
|
|
+ //计皮完成后计算出厂门岗并更新实绩出厂门岗ID
|
|
|
|
+ i += tmstruckLeaveFactoryResultService.calculateGatepost(map);
|
|
break;
|
|
break;
|
|
case 9:
|
|
case 9:
|
|
break;
|
|
break;
|
|
@@ -285,10 +289,10 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
case 11:
|
|
case 11:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- int i = tmstruckWeightResultMapper.updateByPrimaryKeySelective(tmstruckWeightResult);
|
|
|
|
|
|
+ i += tmstruckWeightResultMapper.updateByPrimaryKeySelective(tmstruckWeightResult);
|
|
//更新订单路段顺序号
|
|
//更新订单路段顺序号
|
|
- int i2 = utilsService.updateOrderLineSequence(map, lineSequence);
|
|
|
|
- return i + i1 + i2;
|
|
|
|
|
|
+ i += utilsService.updateOrderLineSequence(map, lineSequence);
|
|
|
|
+ return i;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -410,7 +414,7 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
}else {
|
|
}else {
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
- return 0;
|
|
|
|
|
|
+ return 1;
|
|
}
|
|
}
|
|
|
|
|
|
public List<BigDecimal> getNextStep(BigDecimal lineId, int orderLineSequence) {
|
|
public List<BigDecimal> getNextStep(BigDecimal lineId, int orderLineSequence) {
|