|
@@ -175,14 +175,19 @@ public class TmstruckEnfactoryResultServiceImpl implements ITmstruckEnfactoryRes
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Map<String, Object> selectMap = tmstruckEnfactoryResultMapper.selectEnFactoryResultId(resultTotalId);
|
|
Map<String, Object> selectMap = tmstruckEnfactoryResultMapper.selectEnFactoryResultId(resultTotalId);
|
|
|
|
+ if(orderType == 1) {
|
|
|
|
+ selectMap = tmstruckEnfactoryResultMapper.selectEnFactoryResultIdSteel(resultTotalId);
|
|
|
|
+ }
|
|
if(selectMap == null){
|
|
if(selectMap == null){
|
|
throw new Exception("该车已进厂!!");
|
|
throw new Exception("该车已进厂!!");
|
|
}else{
|
|
}else{
|
|
- BigDecimal segmentSqe = DataChange.dataToBigDecimal(selectMap.get("segmentSqe"));
|
|
|
|
- BigDecimal orderSegmentSqe = DataChange.dataToBigDecimal(mesMap.get("orderSegmentSqe"));
|
|
|
|
- //如果当前路段顺序号 +1 不等于进厂路段顺序号 则不允许进厂 (针对同一路线多次进厂情况)
|
|
|
|
- if(segmentSqe.intValue() != (orderSegmentSqe.intValue() + 1)){
|
|
|
|
- throw new Exception("作业环节未到进厂!");
|
|
|
|
|
|
+ if(orderType != 1) {
|
|
|
|
+ BigDecimal segmentSqe = DataChange.dataToBigDecimal(selectMap.get("segmentSqe"));
|
|
|
|
+ BigDecimal orderSegmentSqe = DataChange.dataToBigDecimal(mesMap.get("orderSegmentSqe"));
|
|
|
|
+ //如果当前路段顺序号 +1 不等于进厂路段顺序号 则不允许进厂 (针对同一路线多次进厂情况)
|
|
|
|
+ if(segmentSqe.intValue() != (orderSegmentSqe.intValue() + 1)){
|
|
|
|
+ throw new Exception("作业环节未到进厂!");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
map.putAll(mesMap);
|
|
map.putAll(mesMap);
|