|
|
@ -744,6 +744,7 @@ public class BusSalesOrderReturnVehApplyService extends MybatisBaseService<BusSa |
|
|
|
List<BusSalesOrderVehicle> vinList = busSalesOrderVehicleService.selectByOrderSid(orderSid); |
|
|
|
vinList.removeAll(Collections.singleton(null)); |
|
|
|
List<BaseVehicleState> stateList = new ArrayList<>(); |
|
|
|
List<String> stringList = new ArrayList<>(); |
|
|
|
if (!vinList.isEmpty()) { |
|
|
|
for (BusSalesOrderVehicle busSalesOrderVehicle : vinList) { |
|
|
|
String busSalesOrderVehicleSid = busSalesOrderVehicle.getSid(); |
|
|
@ -751,11 +752,21 @@ public class BusSalesOrderReturnVehApplyService extends MybatisBaseService<BusSa |
|
|
|
if (null != baseVehicleState) { |
|
|
|
stateList.add(baseVehicleState); |
|
|
|
} |
|
|
|
stringList.add(busSalesOrderVehicle.getBorrowerSid()); |
|
|
|
stringList.removeAll(Collections.singleton(null)); |
|
|
|
} |
|
|
|
if (stateList.size() == vinList.size()) { |
|
|
|
BusSalesOrder salesOrder = busSalesOrderService.fetchBySid(orderSid); |
|
|
|
salesOrder.setNodeState("作废"); |
|
|
|
busSalesOrderService.updateById(salesOrder); |
|
|
|
if(!stringList.isEmpty()){ |
|
|
|
for (int j = 0; j < stringList.size(); j++) { |
|
|
|
if(StringUtils.isNotBlank(stringList.get(j))){ |
|
|
|
baseMapper.updateByBorrowSid(stringList.get(j)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//-------修改应收未收款项表中的款项状态为02作废------------
|
|
|
|