|
@@ -301,7 +301,7 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
|
|
//查询自提
|
|
//查询自提
|
|
String isSelfMention = tmstruckLeaveFactoryResultMapper.getIsSelfMention(orderId);
|
|
String isSelfMention = tmstruckLeaveFactoryResultMapper.getIsSelfMention(orderId);
|
|
String addressPlace = tmstruckLeaveFactoryResultMapper.getAddressPlace(orderId);
|
|
String addressPlace = tmstruckLeaveFactoryResultMapper.getAddressPlace(orderId);
|
|
- if(!isArrivalFlag || "是".equals(isSelfMention) && (addressPlace == null || !addressPlace.contains("欧冶"))){
|
|
|
|
|
|
+ if (!isArrivalFlag || "是".equals(isSelfMention) && (addressPlace == null || !addressPlace.contains("欧冶"))){
|
|
//不涉及抵达签收,或者自提,统一在此处直接关单
|
|
//不涉及抵达签收,或者自提,统一在此处直接关单
|
|
i += utilsService.closeOrderNormally(map);
|
|
i += utilsService.closeOrderNormally(map);
|
|
}
|
|
}
|
|
@@ -309,7 +309,13 @@ public class TmstruckLeaveFactoryResultServiceImpl implements ITmstruckLeaveFact
|
|
//如果涉及抵达签收,则标记为允许
|
|
//如果涉及抵达签收,则标记为允许
|
|
utilsMapper.updateArrival(map);
|
|
utilsMapper.updateArrival(map);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if (orderType == 1) {
|
|
|
|
+ //如果是钢材订单,那么判断该订单是不是有其他的订单未接收,且saleType必须为50
|
|
|
|
+ List<BigDecimal> orderIds = tmstruckLeaveFactoryResultMapper.selectUnReceive(map);
|
|
|
|
+ if (orderIds.size() > 0 && orderIds.get(0) != null) {
|
|
|
|
+ i += utilsService.closeOrderNormally(map);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
switch (orderType){
|
|
switch (orderType){
|
|
case 1:
|
|
case 1:
|
|
try {
|
|
try {
|