Browse Source

1.补丁程序加上同步托盘仓库id

single_db
zhenghaoyu 1 year ago
parent
commit
4736ea875a
  1. 10
      blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncWarehouseData.java

10
blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncWarehouseData.java

@ -257,8 +257,14 @@ public class SyncWarehouseData {
public ReturnT<String> syncWarehouseTrayToNew(String param) {
log.info("############syncWarehouseTrayToNew: 同步仓库及货位托盘信息开始 param={}", param);
//查询所有仓库
List<Integer> allWarehouseIds = warehouseClient.getAllWarehouseIds();
List<Integer> allWarehouseIds = new ArrayList<>();
if(StringUtil.isBlank(param)){
allWarehouseIds = warehouseClient.getAllWarehouseIds();
}else{
WarehouseEntity warehouseEntity = warehouseClient.selectEntityById(Integer.parseInt(param));
allWarehouseIds.add(warehouseEntity.getId());
}
for (Integer oldWarehouseId:allWarehouseIds){
WarehouseEntity oldWarehouse = warehouseClient.selectEntityById(oldWarehouseId);
if(Objects.isNull(oldWarehouse)){

Loading…
Cancel
Save