|
|
@@ -2246,6 +2246,9 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
public Map<String, Object> updateCapacityNumberInFactory(Map<String, Object> mapValue) throws Exception {
|
|
|
Object lineSequence = mapValue.get("lineSequence");
|
|
|
Object carStatus = mapValue.get("carStatus");
|
|
|
+ if (mapValue.get("orderId") == null) {
|
|
|
+ throw new Exception("还未派车,不允许修改车牌号");
|
|
|
+ }
|
|
|
if(carStatus == null) {
|
|
|
carStatus = omstruckOrderMapper.getOrderStatus(DataChange.dataToBigDecimal(mapValue.get("orderId")));
|
|
|
}
|
|
|
@@ -2255,8 +2258,9 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
mapValue.put("isCheckGPS",false);
|
|
|
}
|
|
|
int result = 0;
|
|
|
- if (mapValue.get("orderId") == null) {
|
|
|
- throw new Exception("还未派车,不允许修改车牌号");
|
|
|
+
|
|
|
+ if(omstruckOrderMapper.getOutboundResult(DataChange.dataToBigDecimal(mapValue.get("orderId"))) > 0 ){
|
|
|
+ throw new Exception("该运单已出库,不允许修改车牌号");
|
|
|
}
|
|
|
//收货客户
|
|
|
String addressPlace = omstruckOrderMapper.getAddressPlace(DataChange.dataToBigDecimal(mapValue.get("orderId")));
|