From 44c1da90d18396b4c78c588571e71eaa8e49c8d6 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期一, 18 十二月 2023 16:57:35 +0800 Subject: [PATCH] mdc修改 --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml index 945127c..893762f 100644 --- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml +++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcEquipmentMapper.xml @@ -210,5 +210,36 @@ ORDER BY me.equipment_id </select> + <!--鍒嗛〉鍒楄〃--> + <select id="pageList" resultType="org.jeecg.modules.mdc.entity.MdcEquipment"> + SELECT + t1.* + FROM + mdc_equipment t1 + LEFT JOIN mdc_production_equipment t2 ON t1.id = t2.equipment_id + LEFT JOIN mdc_production t3 ON t2.production_id = t3.id + <where> + <if test="mdcEquipment.equipmentId != null and mdcEquipment.equipmentId != '' "> + AND t1.equipment_id LIKE CONCAT(CONCAT('%',#{mdcEquipment.equipmentId}),'%') + </if> + <if test="mdcEquipment.equipmentName != null and mdcEquipment.equipmentName != '' "> + AND t1.equipment_name LIKE CONCAT(CONCAT('%',#{mdcEquipment.equipmentName}),'%') + </if> + <if test="mdcEquipment.equipmentModel != null and mdcEquipment.equipmentModel != '' "> + AND t1.equipment_name = #{mdcEquipment.equipmentModel} + </if> + <if test="mdcEquipment.equipmentType != null and mdcEquipment.equipmentType != '' "> + AND t1.equipmentType = #{mdcEquipment.equipmentType} + </if> + <if test="mdcEquipment.driveType != null and mdcEquipment.driveType != '' "> + AND t1.drive_type = #{mdcEquipment.driveType} + </if> + <if test="mdcEquipment.productionName != null and mdcEquipment.productionName != '' "> + AND t3.production_name LIKE CONCAT(CONCAT('%',#{mdcEquipment.productionName}),'%') + </if> + </where> + order by t1.sort_no + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3