refactor(eqp): 统一使用QueryWrapper替代LambdaQueryWrapper

- 修改多个Mapper接口中的查询条件构造器类型为QueryWrapper
- 更新XML映射文件中的查询条件拼接方式为customSqlSegment
- 在Service实现类中重构查询条件构建方法,明确指定表别名以避免列名歧义
- 所有涉及设备管理、设备参数、点检设备、检修记录、备品备件及其变动记录的模块均完成适配
-保留逻辑删除条件并确保其正确应用
This commit is contained in:
2025-10-18 10:58:12 +08:00
parent 7ba5a07176
commit 8418454082
21 changed files with 143 additions and 63 deletions

View File

@@ -30,12 +30,7 @@
ie.remark
FROM eqp_inspected_equipment ie
LEFT JOIN eqp_equipment_management em ON ie.equipment_id = em.equipment_id and em.del_flag = '0'
<where>
ie.del_flag = '0'
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
AND ${ew.sqlSegment}
</if>
</where>
${ew.customSqlSegment}
</select>