|
|
@ -1,7 +1,6 @@
|
|
|
|
package com.glxp.udi.admin.thread;
|
|
|
|
package com.glxp.udi.admin.thread;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
|
|
|
import com.glxp.udi.admin.constant.ConstantStatus;
|
|
|
|
import com.glxp.udi.admin.constant.ConstantStatus;
|
|
|
|
import com.glxp.udi.admin.constant.TypeConstant;
|
|
|
|
import com.glxp.udi.admin.constant.TypeConstant;
|
|
|
|
import com.glxp.udi.admin.entity.inout.*;
|
|
|
|
import com.glxp.udi.admin.entity.inout.*;
|
|
|
@ -97,15 +96,10 @@ public class InvProductsTrService {
|
|
|
|
//查询码详情数据,用于生成库存
|
|
|
|
//查询码详情数据,用于生成库存
|
|
|
|
WarehouseQueryRequest warehouseQueryRequest = new WarehouseQueryRequest();
|
|
|
|
WarehouseQueryRequest warehouseQueryRequest = new WarehouseQueryRequest();
|
|
|
|
warehouseQueryRequest.setOrderId(orderId);
|
|
|
|
warehouseQueryRequest.setOrderId(orderId);
|
|
|
|
warehouseQueryRequest.setUdi(invProductEntity.getNameCode());
|
|
|
|
|
|
|
|
if (StrUtil.isNotBlank(invProductEntity.getBatchNo())) {
|
|
|
|
|
|
|
|
warehouseQueryRequest.setBatchNo(invProductEntity.getBatchNo());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
List<WarehouseEntity> warehouseEntities = codesService.filterWarehouse(warehouseQueryRequest);
|
|
|
|
List<WarehouseEntity> warehouseEntities = codesService.filterWarehouse(warehouseQueryRequest);
|
|
|
|
if (CollUtil.isNotEmpty(warehouseEntities)) {
|
|
|
|
if (CollUtil.isNotEmpty(warehouseEntities)) {
|
|
|
|
for (WarehouseEntity warehouseEntity : warehouseEntities) {
|
|
|
|
for (WarehouseEntity warehouseEntity : warehouseEntities) {
|
|
|
|
UdiInfoEntity tempUdi = udiInfoService.findByNameCode(warehouseEntity.getNameCode(), customerId);
|
|
|
|
UdiInfoEntity tempUdi = udiInfoService.findByNameCode(warehouseEntity.getNameCode(), customerId);
|
|
|
|
if (tempUdi.getUuid().equals(orderDetailEntity.getUuidFk())) {
|
|
|
|
|
|
|
|
InvProductDetailEntity invProductDetailEntity = new InvProductDetailEntity();
|
|
|
|
InvProductDetailEntity invProductDetailEntity = new InvProductDetailEntity();
|
|
|
|
invProductDetailEntity.setProductIdFk(invProductEntity.getRelIdFk() + "");
|
|
|
|
invProductDetailEntity.setProductIdFk(invProductEntity.getRelIdFk() + "");
|
|
|
|
invProductDetailEntity.setInvProductIdFk(String.valueOf(invProductEntity.getId()));
|
|
|
|
invProductDetailEntity.setInvProductIdFk(String.valueOf(invProductEntity.getId()));
|
|
|
@ -128,7 +122,6 @@ public class InvProductsTrService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|