|
@@ -268,6 +268,13 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
|
|
|
throw new Exception("该车未扫卸货,请提醒司机去补扫卸货");
|
|
|
}
|
|
|
}
|
|
|
+ if(orderType == 1 && "true".equals(tmstruckLeaveFactoryResultMapper.getPrintFlag())) {
|
|
|
+ //如果是钢材订单,且打印送货单是必须打印,那么进这个方法
|
|
|
+ Integer printNumber = tmstruckLeaveFactoryResultMapper.getPrintNumber(DataChange.dataToBigDecimal(mesMap.get("orderId")));
|
|
|
+ if(printNumber == 0){
|
|
|
+ throw new Exception("未打印送货单,请提醒司机去打印");
|
|
|
+ }
|
|
|
+ }
|
|
|
map.putAll(mesMap);
|
|
|
map.putAll(selectMap);
|
|
|
map.remove("Sqe");
|