feat(eqp): 增加设备名称和备件名称的关联查询功能
- 在多个Mapper接口中添加selectVoPagePlus方法支持分页查询 - 在XML映射文件中新增selectVoPagePlus查询语句,联查设备管理表或备件表获取设备名称/备件名称- 修改ServiceImpl中的分页查询方法调用selectVoPagePlus替换原有的selectVoPage- 在Vo类中增加equipmentName和partName字段用于展示关联信息- 更新EqpEquipmentManagementMapper.xml中eqp_equipment_type关联查询条件,过滤已删除数据 - 优化queryList方法使用selectVoPagePlus实现列表查询功能
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
em.retire_time,
|
||||
em.remark
|
||||
FROM eqp_equipment_management em
|
||||
LEFT JOIN eqp_equipment_type et ON em.type_id = et.type_id
|
||||
LEFT JOIN eqp_equipment_type et ON em.type_id = et.type_id and et.del_flag = '0'
|
||||
<where>
|
||||
em.del_flag = '0'
|
||||
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
||||
|
||||
Reference in New Issue
Block a user