Browse Source

fix: 优化下架报错信息

pull/7/head
pref_mail@163.com 10 months ago
parent
commit
d90b1e3f55
  1. 17
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java
  2. 2
      blade-service/logpm-factory/src/main/java/com/logpm/factory/jobhandler/SyncWarehouseDataToNew.java

17
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionDeliveryListController.java

@ -17,6 +17,7 @@
package com.logpm.distribution.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.logpm.basicdata.entity.BasicdataWarehouseEntity;
@ -487,14 +488,18 @@ public class DistributionDeliveryListController extends BladeController {
List<String> packageCodes = (List<String>) r.getData();
log.info("#############signforPC:"+time+" 处理下架的包件 packageCodes={}",packageCodes);
String orderPackageCodes = null;
for (String packageCode : packageCodes) {
if(StringUtils.isBlank(orderPackageCodes)){
orderPackageCodes = packageCode;
}else{
orderPackageCodes = orderPackageCodes + "," + packageCode;
if(ObjectUtils.isNotNull(packageCodes)){
for (String packageCode : packageCodes) {
if(StringUtils.isBlank(orderPackageCodes)){
orderPackageCodes = packageCode;
}else{
orderPackageCodes = orderPackageCodes + "," + packageCode;
}
}
warehouseUpdownTypeClient.downPackageOrDelTray(orderPackageCodes,myCurrentWarehouse.getId());
}
warehouseUpdownTypeClient.downPackageOrDelTray(orderPackageCodes,myCurrentWarehouse.getId());
}catch (Exception e){
log.error("#############signforPC:"+time+" 下架失败",e);
}

2
blade-service/logpm-factory/src/main/java/com/logpm/factory/jobhandler/SyncWarehouseDataToNew.java

@ -255,7 +255,7 @@ public class SyncWarehouseDataToNew {
newEntity.setLinkman(oldWarehouse.getContactName());//仓库联系人
newEntity.setContactNumber(oldWarehouse.getPhone());//联系人电话
newEntity.setBusinessLine("");//事业线
newEntity.setFunctionType(typeMapping.get(oldWarehouse.getIsBase()));//仓库类型
newEntity.setFunctionType(String.valueOf(typeMapping.get(oldWarehouse.getIsBase())));//仓库类型
newEntity.setRemarks(oldWarehouse.getRemark());//备注
newEntity.setWarehouseAddress(oldWarehouse.getAddress());//仓库地址
newEntity.setLongitude(StringUtil.isBlank(oldWarehouse.getLng())?null:new BigDecimal(oldWarehouse.getLng()));//经度

Loading…
Cancel
Save