|
@@ -165,6 +165,13 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
|
|
|
Map<String, Object> selectMap = tmstruckLeaveFactoryResultMapper.selectResultId(substring);
|
|
|
if(selectMap == null){
|
|
|
throw new Exception("该车已出厂!!");
|
|
|
+ }else{
|
|
|
+ BigDecimal segmentSqe = DataChange.dataToBigDecimal(selectMap.get("segmentSqe"));
|
|
|
+ BigDecimal orderSegmentSqe = DataChange.dataToBigDecimal(selectMap.get("orderSegmentSqe"));
|
|
|
+ //如果当前路段顺序号 +1 不等于出厂路段顺序号 则不允许出厂
|
|
|
+ if(segmentSqe.intValue() != (orderSegmentSqe.intValue() + 1)){
|
|
|
+ throw new Exception("该车作业环节未全部完成!");
|
|
|
+ }
|
|
|
}
|
|
|
map.putAll(selectMap);
|
|
|
map.put("orderNumber", substring);
|