From 5bbbefadb317d2d9c0c66d86c7ee7f8c3dcb19a3 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期四, 16 五月 2024 16:37:46 +0800 Subject: [PATCH] 问题反馈 --- lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/CalibrationOrderMapper.xml | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/CalibrationOrderMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/CalibrationOrderMapper.xml index 748b03b..ab99082 100644 --- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/CalibrationOrderMapper.xml +++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/CalibrationOrderMapper.xml @@ -206,7 +206,7 @@ <if test="equipmentNum != null and equipmentNum != ''"> and t1.num = #{equipmentNum} </if> - <if test="equipmentIds.size()>0"> + <if test="equipmentIds != null"> and t1.id in <foreach collection='equipmentIds' index='index' item='item' open='(' separator=',' close=')'>#{item}</foreach> </if> @@ -228,5 +228,15 @@ where t1.del_flag = '0' and t1.user_id = #{username} </select> + <select id="getEquipmentReportRepairCount" parameterType="String" resultType="Map"> + SELECT + count(0) AS repairCount + FROM + mom_eam_equipment_report_repair t1 + where t1.del_flag = '0' + and SUBSTRING(CONVERT(VARCHAR(10), t1.fault_time, 120), 1, 7) = SUBSTRING(CONVERT(VARCHAR(10), GETDATE(), 120), 1, 7) + and t1.equipment_id = #{equipmentId} + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.3