feat(WmsProduct): 添加产品类型字段

- 在 WmsProduct 类中添加 type 字段,用于存储产品类型
- 在 WmsProductBo 和 WmsProductVo 中添加相应的 type 属性
- 更新 WmsProductMapper.xml,添加 type 字段的映射
- 在 WmsProductServiceImpl 中添加对 type 字段的查询条件
This commit is contained in:
2025-08-11 14:46:28 +08:00
parent 3c2cc85e27
commit 0283686d11
5 changed files with 12 additions and 1 deletions

View File

@@ -82,11 +82,15 @@ public class WmsProduct extends BaseEntity {
* 备注
*/
private String remark;
/**
* BOM 表头ID
*/
private Long bomId;
/**
* 类型
*/
private String type;
}

View File

@@ -91,5 +91,7 @@ public class WmsProductBo extends BaseEntity {
* BOM 表头ID
*/
private Long bomId;
//产品类型
private String type;
}

View File

@@ -113,5 +113,8 @@ public class WmsProductVo {
@ExcelProperty(value = "BOM 表头ID")
private Long bomId;
@ExcelProperty(value = "类型")
private String type;
}

View File

@@ -77,6 +77,7 @@ public class WmsProductServiceImpl implements IWmsProductService {
lqw.eq(bo.getInnerDiameter() != null, WmsProduct::getInnerDiameter, bo.getInnerDiameter());
lqw.eq(bo.getIsEnabled() != null, WmsProduct::getIsEnabled, bo.getIsEnabled());
lqw.eq(bo.getBomId() != null, WmsProduct::getBomId, bo.getBomId());
lqw.eq(StringUtils.isNotBlank(bo.getType()), WmsProduct::getType, bo.getType());
return lqw;
}

View File

@@ -25,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="unit" column="unit"/>
<result property="remark" column="remark"/>
<result property="bomId" column="bom_id"/>
<result property="type" column="type"/>
</resultMap>