|
@@ -1026,7 +1026,10 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
}
|
|
|
//校验结束,上传金蝶
|
|
|
if(!map.containsKey("oYeFlag")) {
|
|
|
- pushCarNumberToEas(map);
|
|
|
+ //不是欧冶库的可直接同步车号
|
|
|
+ if(placeAddress == null || !placeAddress.contains("欧冶")){
|
|
|
+ pushCarNumberToEas(map);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 得到承运商
|
|
@@ -2254,6 +2257,8 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
if (mapValue.get("orderId") == null) {
|
|
|
throw new Exception("还未派车,不允许修改车牌号");
|
|
|
}
|
|
|
+ //收货客户
|
|
|
+ String addressPlace = omstruckOrderMapper.getAddressPlace(DataChange.dataToBigDecimal(mapValue.get("orderId")));
|
|
|
//判断该车序号对应的分录是否全部关闭
|
|
|
if(mapValue.get("saleOrderMaterialId") != null && DataChange.dataToBigDecimal(mapValue.get("capacityId")).compareTo(new BigDecimal(35128)) != 0) {
|
|
|
Integer flCount = amsSaleMaterialMapper.getAbleFlcount(DataChange.dataToBigDecimal(mapValue.get("saleOrderMaterialId")));
|
|
@@ -2268,7 +2273,10 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
mapValue.put("oldCapacityNumber",oldCapacityNumber);
|
|
|
if(oldCapacityId.compareTo(DataChange.dataToBigDecimal(mapValue.get("capacityId"))) == 0) {
|
|
|
mapValue.put("result",1);
|
|
|
- pushCarNumberToEas(mapValue);
|
|
|
+ //已接单或者不是欧冶库的可直接同步车号
|
|
|
+ if(addressPlace == null || !addressPlace.contains("欧冶") || "5".equals(carStatus.toString())) {
|
|
|
+ pushCarNumberToEas(mapValue);
|
|
|
+ }
|
|
|
return mapValue;
|
|
|
}
|
|
|
//校验该车是否存在手机号
|
|
@@ -2320,7 +2328,10 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
|
|
|
}
|
|
|
}
|
|
|
if(!mapValue.containsKey("oYeFlag")) {
|
|
|
- pushCarNumberToEas(mapValue);
|
|
|
+ //不是欧冶库的可直接同步车号
|
|
|
+ if(addressPlace == null || !addressPlace.contains("欧冶")) {
|
|
|
+ pushCarNumberToEas(mapValue);
|
|
|
+ }
|
|
|
}
|
|
|
//try{
|
|
|
// //不为空且为新手机号,则修改电话号码
|