fix(inventory): 修复库存入库订单序号设置问题
- 将默认序号值从100调整为1000000 - 添加StrUtil工具类导入用于字符串处理 - 实现getOrder方法支持从批次号解析序号 - 修复getKey方法中序号获取逻辑确保一致性
This commit is contained in:
parent
36754ef7bb
commit
b237e333c8
|
|
@ -339,7 +339,7 @@ public class InProduceOrderSurplusController extends BaseController {
|
|||
.stream()
|
||||
.map(list -> new InventoryInDTO()
|
||||
.setMaterialNo(list.get(0).getMaterialNo())
|
||||
.setOrder(100)
|
||||
.setOrder(1000000)
|
||||
.setBatchNo(list.get(0).getBatchNo())
|
||||
.setSerialNo(list.get(0).getSerialNo())
|
||||
.setFactoryNo(list.get(0).getFactoryNo())
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.nflg.wms.common.pojo.dto;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
|
|
@ -62,10 +63,17 @@ public class InventoryInDTO {
|
|||
*/
|
||||
private Integer order;
|
||||
|
||||
public Integer getOrder() {
|
||||
if (Objects.isNull(order) && StrUtil.isNotBlank(getBatchNo())) {
|
||||
return Integer.parseInt(getBatchNo().substring(4));
|
||||
}
|
||||
return order;
|
||||
}
|
||||
|
||||
private String key;
|
||||
|
||||
public String getKey() {
|
||||
return getMaterialNo() + "|" + getFactoryNo() + "|" + getWarehouseNo() + "|" + getBatchNo() + "|"
|
||||
+ getSerialNo() + "|" + order + "|" + getBinLocation();
|
||||
+ getSerialNo() + "|" + getOrder() + "|" + getBinLocation();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue