feat(WmsProduct): 添加产品类型字段
- 在 WmsProduct 类中添加 type 字段,用于存储产品类型 - 在 WmsProductBo 和 WmsProductVo 中添加相应的 type 属性 - 更新 WmsProductMapper.xml,添加 type 字段的映射 - 在 WmsProductServiceImpl 中添加对 type 字段的查询条件
This commit is contained in:
@@ -82,11 +82,15 @@ public class WmsProduct extends BaseEntity {
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
|
||||
/**
|
||||
* BOM 表头ID
|
||||
*/
|
||||
private Long bomId;
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private String type;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -91,5 +91,7 @@ public class WmsProductBo extends BaseEntity {
|
||||
* BOM 表头ID
|
||||
*/
|
||||
private Long bomId;
|
||||
//产品类型
|
||||
private String type;
|
||||
}
|
||||
|
||||
|
||||
@@ -113,5 +113,8 @@ public class WmsProductVo {
|
||||
@ExcelProperty(value = "BOM 表头ID")
|
||||
private Long bomId;
|
||||
|
||||
@ExcelProperty(value = "类型")
|
||||
private String type;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user