From 1cbbb341d22e3c46b15af65b6f97d738bae7ca95 Mon Sep 17 00:00:00 2001 From: yangbin <yangbin> Date: 星期二, 20 五月 2025 10:46:57 +0800 Subject: [PATCH] 自动化 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportRepairMapper.xml | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportRepairMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportRepairMapper.xml index f68fb48..e95236a 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportRepairMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamReportRepairMapper.xml @@ -14,7 +14,7 @@ <when test="equipmentIds != null and equipmentIds.size() > 0 "> AND t2.equipment_code IN <foreach collection="equipmentIds" item="equipmentId" index="index" open="(" close=")" separator=","> - {equipmentId} + #{equipmentId} </foreach> </when> <otherwise> @@ -22,7 +22,10 @@ </otherwise> </choose> <if test="eamReportRepair.equipmentId != null and eamReportRepair.equipmentId != ''"> - AND t2.equipment_code LIKE CONCAT(CONCAT('%',#{ eamReportRepair.equipmentId }),'%') + AND t2.id = #{ eamReportRepair.equipmentId } + </if> + <if test="eamReportRepair.equipmentCode != null and eamReportRepair.equipmentCode != ''"> + AND t2.equipment_code LIKE CONCAT(CONCAT('%',#{ eamReportRepair.equipmentCode }),'%') </if> <if test="eamReportRepair.equipmentName != null and eamReportRepair.equipmentName != ''"> AND t2.equipment_name = LIKE CONCAT(CONCAT('%',#{ eamReportRepair.equipmentName }),'%') @@ -43,6 +46,6 @@ AND t1.fault_start_time BETWEEN #{ eamReportRepair.startTime } AND #{ eamReportRepair.endTime } </if> </where> - ORDER BY t1.fault_start_time DESC + ORDER BY t1.create_time DESC </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3