|
|
|
@ -83,7 +83,7 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String saveOuPaiPackageStatusByCode(String orderCode, Integer event) { |
|
|
|
|
public String saveOuPaiPackageStatusByCode(String orderPackageCode, Integer event) { |
|
|
|
|
//
|
|
|
|
|
// String url = ouPaiProperties.getUri() + "tims_odata_api/api/odata/ReceivingOrder?$filter=Code eq '" + orderCode + "'&select=Code,Type,Status,Plate,PackagesCount,ReceivePackageCount,PlateNum,CarNumber,CarrierCode,SendTime,ArrivalTime,ReceiveTime,CreateTime,ReturnNumber\n" +
|
|
|
|
|
// "&$expand=" +
|
|
|
|
@ -99,13 +99,13 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
|
|
|
|
|
// handlePackageData(url, event);
|
|
|
|
|
//orderCode现在是包件码
|
|
|
|
|
QueryWrapper<FactoryPackageEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
queryWrapper.eq("oid",orderCode); |
|
|
|
|
queryWrapper.eq("oid",orderPackageCode); |
|
|
|
|
FactoryPackageEntity packageEntity = factoryPackageService.getOne(queryWrapper); |
|
|
|
|
packageEntity.setPackageStatus(5); |
|
|
|
|
factoryPackageService.updateById(packageEntity); |
|
|
|
|
|
|
|
|
|
JSONObject jo = new JSONObject(); |
|
|
|
|
jo.put("orderPackageCode",orderCode); |
|
|
|
|
jo.put("orderPackageCode",orderPackageCode); |
|
|
|
|
jo.put("receivingTime",CommonUtil.dateToString(packageEntity.getUpdateTime())); |
|
|
|
|
|
|
|
|
|
//真正的处理需要的数据
|
|
|
|
@ -122,7 +122,7 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
|
|
|
|
|
|
|
|
|
|
log.info("############saveOuPaiPackageStatusByCode: 数据处理结束"); |
|
|
|
|
|
|
|
|
|
return orderCode; |
|
|
|
|
return orderPackageCode; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|