|
|
@ -766,4 +766,33 @@ public class SyncOrderInfoToPlatform { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@XxlJob("dealWithPackageUpdown") |
|
|
|
|
|
|
|
public ReturnT<String> dealWithPackageUpdown(String param) { |
|
|
|
|
|
|
|
log.info("############dealWithPackageUpdown: 处理包件上架 开始"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(StringUtil.isBlank(param)){ |
|
|
|
|
|
|
|
log.warn("############dealWithPackageUpdown: 仓库id为空"); |
|
|
|
|
|
|
|
return ReturnT.FAIL; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Long warehouseId = Long.parseLong(param); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<JSONObject> ls = warehouseMappingDataService.findPackageUpdownData(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (JSONObject l : ls) { |
|
|
|
|
|
|
|
Integer id = l.getInt("id"); |
|
|
|
|
|
|
|
String orderPackageCode = l.getStr("orderPackageCode"); |
|
|
|
|
|
|
|
Long allocationId = l.getLong("allocationId"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
syncOrderInfoService.dealWithPackageUpdown(orderPackageCode,allocationId,warehouseId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
warehouseMappingDataService.updatePackageUpdownStatus(id,1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("############dealWithPackageUpdown: 处理包件上架 完成"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ReturnT.SUCCESS; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|