fix(query): 修复查询时未考虑 del_flag 导致返回已删除数据问题
- 在多个 Mapper 文件中,为 LEFT JOIN 的条件添加 del_flag = 0 判断 - 确保查询结果中不包含已删除的数据
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
oeq.remark,
|
||||
oe.express_code
|
||||
from wms_express_question oeq
|
||||
left join wms_express oe on oe.express_id = oeq.express_id
|
||||
left join wms_express oe on oe.express_id = oeq.express_id and oe.del_flag = 0
|
||||
${ew.getCustomSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user