|
|
|
@ -80,6 +80,7 @@ public class IfsInventoryInitServiceImpl implements IfsInventoryInitService { |
|
|
|
handlingUnit.setStatus("ACTIVE"); |
|
|
|
handlingUnit.setStatusDb("ACTIVE"); |
|
|
|
handlingUnit.setFreezeFlag("N"); |
|
|
|
handlingUnit.setReserveFlag("N"); |
|
|
|
handlingUnit.setMergedFlag("N"); |
|
|
|
handlingUnit.setInStockFlag("Y"); |
|
|
|
handlingUnit.setCreatedDate(new Date()); |
|
|
|
@ -200,7 +201,7 @@ public class IfsInventoryInitServiceImpl implements IfsInventoryInitService { |
|
|
|
@Transactional |
|
|
|
public List<String> createOtherInboundHandlingUnits(CreateHuRequestDto request) { |
|
|
|
List<String> unitIds = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
|
|
// 根据包装数创建多个HandlingUnit |
|
|
|
for (int i = 0; i < request.getPackageCount(); i++) { |
|
|
|
// 生成处理单元ID |
|
|
|
@ -256,7 +257,7 @@ public class IfsInventoryInitServiceImpl implements IfsInventoryInitService { |
|
|
|
|
|
|
|
handlingUnit.setWidth(width); |
|
|
|
handlingUnit.setLength(length); |
|
|
|
|
|
|
|
|
|
|
|
// 设置生产日期和失效日期 |
|
|
|
if (request.getManufactureDate() != null) { |
|
|
|
handlingUnit.setManufactureDate(request.getManufactureDate()); |
|
|
|
@ -264,9 +265,9 @@ public class IfsInventoryInitServiceImpl implements IfsInventoryInitService { |
|
|
|
if (request.getExpiredDate() != null) { |
|
|
|
handlingUnit.setExpiredDate(request.getExpiredDate()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
handlingUnit.setUmId(request.getUmid()); |
|
|
|
|
|
|
|
|
|
|
|
// 设置备注 |
|
|
|
if (request.getRemark() != null && !request.getRemark().trim().isEmpty()) { |
|
|
|
handlingUnit.setRemark(request.getRemark()); |
|
|
|
|