fix(wms): 修复生产实绩与排产计划明细查询中的产品线逻辑
- 移除了 wms_production_line 表中的 del_flag 条件,以包含所有产品线 - 此修改将确保查询结果中包含所有未删除的生产任务
This commit is contained in:
@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
wpt.plan_name AS planName,
|
||||
wpt.plan_code AS planCode
|
||||
FROM wms_schedule_plan_detail wspd
|
||||
left join wms_production_line wpl on wspd.line_id = wpl.line_id and wpl.del_flag = 0
|
||||
left join wms_production_line wpl on wspd.line_id = wpl.line_id
|
||||
left join wms_production_task wpt on wspd.task_id = wpt.task_id and wpt.del_flag = 0
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
@@ -53,7 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
wpt.plan_name AS planName,
|
||||
wpt.plan_code AS planCode
|
||||
FROM wms_schedule_plan_detail wspd
|
||||
left join wms_production_line wpl on wspd.line_id = wpl.line_id and wpl.del_flag = 0
|
||||
left join wms_production_line wpl on wspd.line_id = wpl.line_id
|
||||
left join wms_production_task wpt on wspd.task_id = wpt.task_id and wpt.del_flag = 0
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user