feat(eqp): 实现设备管理分页联查功能
-PagePlus 新增 selectVo 接口支持关联查询 - 修改 EquipmentManagement、EquipmentParam 和 TypeParam 的分页查询逻辑 - 在 VO 对象中增加类型名称和设备名称字段用于展示- 更新 Mapper XML 文件中的 SQL 查询语句以支持左连接查询 - 调整 Service 层实现使用新的分页方法获取数据列表
This commit is contained in:
@@ -19,6 +19,26 @@
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
<select id="selectVoPagePlus" resultType="com.klp.mes.eqp.domain.vo.EqpEquipmentParamVo">
|
||||
SELECT
|
||||
ep.param_id,
|
||||
ep.param_name,
|
||||
ep.equipment_id,
|
||||
ee.equipment_name AS equipment_name,
|
||||
ep.param_type,
|
||||
ep.param_standard,
|
||||
ep.param_unit,
|
||||
ep.param_source,
|
||||
ep.remark
|
||||
FROM eqp_equipment_param ep
|
||||
LEFT JOIN eqp_equipment_management ee ON ep.equipment_id = ee.equipment_id
|
||||
<where>
|
||||
ep.del_flag = '0'
|
||||
<if test="ew != null and ew.sqlSegment != null and ew.sqlSegment != ''">
|
||||
AND ${ew.sqlSegment}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user