|
|
|
@ -1270,23 +1270,22 @@ public class SyncOrderInfoToPlatform {
|
|
|
|
|
public ReturnT<String> jisuanLoadNum(String param) { |
|
|
|
|
log.info("############jisuanLoadNum: 计算车次数量 开始"); |
|
|
|
|
|
|
|
|
|
if(StringUtil.isBlank(param)){ |
|
|
|
|
log.warn("###########jisuanLoadNum: 车次号为空"); |
|
|
|
|
throw new CustomerException(405,"车次号为空"); |
|
|
|
|
} |
|
|
|
|
List<JSONObject> ls = warehouseMappingDataService.findAllDealWithWaybillNo(); |
|
|
|
|
|
|
|
|
|
String[] split = param.split(","); |
|
|
|
|
ls.forEach(json -> { |
|
|
|
|
Integer id = json.getInt("id"); |
|
|
|
|
String carsNo = json.getStr("waybillNo"); |
|
|
|
|
|
|
|
|
|
for (int i = 0; i < split.length; i++) { |
|
|
|
|
String carNo = split[i]; |
|
|
|
|
log.info("###################jisuanLoadNum: 当前处理的车次号为 carNo={}",carNo); |
|
|
|
|
log.info("###################jisuanLoadNum: 当前处理的车次号为 carsNo={}",carsNo); |
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity entityByCarsNo = carsLoadClient.findEntityByCarsNo(carNo); |
|
|
|
|
TrunklineCarsLoadEntity entityByCarsNo = carsLoadClient.findEntityByCarsNo(carsNo); |
|
|
|
|
Long loadId = entityByCarsNo.getId(); |
|
|
|
|
|
|
|
|
|
carsLoadClient.updateCardLoadNum(loadId); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
warehouseMappingDataService.updateStatusDealwithWaybillById(id); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("############jisuanLoadNum: 计算车次数量 完成"); |
|
|
|
@ -1297,3 +1296,4 @@ public class SyncOrderInfoToPlatform {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|