fix(query): 修复查询时未考虑 del_flag 导致返回已删除数据问题
- 在多个 Mapper 文件中,为 LEFT JOIN 的条件添加 del_flag = 0 判断 - 确保查询结果中不包含已删除的数据
This commit is contained in:
@@ -100,8 +100,8 @@
|
||||
psg.remark as psg_remark
|
||||
from
|
||||
wms_production_task t
|
||||
left join wms_order o on t.order_id = o.order_id
|
||||
left join wms_order_detail od on t.order_item_id = od.detail_id
|
||||
left join wms_order o on t.order_id = o.order_id and o.del_flag = 0
|
||||
left join wms_order_detail od on t.order_item_id = od.detail_id and od.del_flag = 0
|
||||
left join wms_manufacturing_spec ms on t.manufacturing_spec_id = ms.spec_id and ms.del_flag = 0
|
||||
left join wms_product_spec_group psg on t.product_spec_group_id = psg.group_id and psg.del_flag = 0
|
||||
${ew.customSqlSegment}
|
||||
|
||||
Reference in New Issue
Block a user