feat(klp-wms): 在 WmsSchedulePlanDetailVo 中添加批次号字段并更新相关 Mapper
- 在 WmsSchedulePlanDetailVo 类中添加 batchNo 字段,用于存储批次号 - 更新 WmsSchedulePlanDetailMapper.xml,加入与 wms_batch 表的关联查询,获取批次号信息
This commit is contained in:
@@ -95,8 +95,17 @@ public class WmsSchedulePlanDetailVo {
|
|||||||
* 天数
|
* 天数
|
||||||
*/
|
*/
|
||||||
private Integer days;
|
private Integer days;
|
||||||
//产线名字
|
|
||||||
|
/**
|
||||||
|
* 产线名字
|
||||||
|
*/
|
||||||
@ExcelProperty(value = "产线名字")
|
@ExcelProperty(value = "产线名字")
|
||||||
private String lineName;
|
private String lineName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批次号
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "批次号")
|
||||||
|
private String batchNo;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,9 +38,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</select>
|
</select>
|
||||||
<select id="selectVoPagePlus" resultType="com.klp.domain.vo.WmsSchedulePlanDetailVo">
|
<select id="selectVoPagePlus" resultType="com.klp.domain.vo.WmsSchedulePlanDetailVo">
|
||||||
SELECT *,
|
SELECT *,
|
||||||
wpl.line_name AS lineName
|
wpl.line_name AS lineName,
|
||||||
|
wbt.batch_no AS batchNo
|
||||||
FROM wms_schedule_plan_detail wspd
|
FROM wms_schedule_plan_detail wspd
|
||||||
left join wms_production_line wpl on wspd.line_id = wpl.line_id
|
left join wms_production_line wpl on wspd.line_id = wpl.line_id
|
||||||
|
left join wms_batch wbt on wspd.batch_id = wbt.batch_id
|
||||||
${ew.customSqlSegment}
|
${ew.customSqlSegment}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user