From 9de1d40d3a61ce166c63a2c07d02d89bf8bdabd0 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期五, 07 三月 2025 16:16:18 +0800
Subject: [PATCH] art: 选择设备查询逻辑修改, 点检工单新增时产线逻辑修改

---
 lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml
index 2b4251a..5b80b3a 100644
--- a/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml
+++ b/lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamEquipmentMapper.xml
@@ -108,7 +108,7 @@
             t1.fault_time as faultTime,
             t2.item_text as maintenanceMethodName,
             t3.name as teamName,
-            t4.realname as recipientuserName,
+            t1.recipient_user_id as recipientuserName,
             t1.actual_hour as actualHour,
             t1.actual_start_time AS actualStartTime,
             t1.actual_end_time as  actualEndTime
@@ -116,8 +116,7 @@
             mom_eam_repair_order t1
         LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'maintenance_method' ) t2 ON t2.item_value = t1.maintenance_method
         left join mom_base_team t3 on t1.team_id = t3.id
-        left join sys_user t4 on t1.recipient_user_id = t4.id
-        WHERE t1.del_flag = '0' and t4.del_flag= '0'  and t3.del_flag= '0' and t1.equipment_id = #{params.equipmentId}
+        WHERE t1.del_flag = '0' and t1.equipment_id = #{params.equipmentId}
     </select>
 
     <select id="getResumeCalibrationRecordList"  parameterType="Map" resultType="Map">
@@ -165,13 +164,14 @@
         mom_eam_equipment t1
         LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'equipment_status' ) t2 ON t1.equipment_status = t2.item_value
         WHERE t1.del_flag = '0'
-        <if test="params.num != 'null' and params.num != ''">
-            and t1.num like concat('%',#{params.num},'%')
-        </if>
-        <if test="params.name != 'null' and params.name != ''">
-            and t1.name like concat('%',#{params.name},'%')
-        </if>
+
     </select>
+    <!--        <if test="params.num != 'null' and params.num != ''">-->
+    <!--            and t1.num like concat('%',#{params.num},'%')-->
+    <!--        </if>-->
+    <!--        <if test="params.name != 'null' and params.name != ''">-->
+    <!--            and t1.name like concat('%',#{params.name},'%')-->
+    <!--        </if>-->
     <select id="getEquipmentList" resultType="org.jeecg.modules.eam.entity.Equipment">
     select
         t1.id id,
@@ -325,6 +325,12 @@
         <if test="lineId != null and lineId != ''">
             and t1.line_id = #{lineId}
         </if>
+        <if test="userWorkCenterIds != null and userWorkCenterIds.size > 0">
+            and t1.work_center_id in
+            <foreach collection="userWorkCenterIds" open="(" separator="," close=")" item="workCenterId">
+                #{workCenterId}
+            </foreach>
+        </if>
         order by t1.create_time desc
     </select>
 
@@ -405,6 +411,9 @@
         t1.next_technology_status_qualification_time nextTechnologyStatusQualificationTime,
         t1.technology_status_qualification_time technologyStatusQualificationTime,
         t1.technology_status_verification_type technologyStatusVerificationType,
+        t1.second_maintenance_time secondMaintenanceTime,
+        t1.third_maintenance_time thirdMaintenanceTime,
+        t1.next_third_maintenance_time nextThirdMaintenanceTime,
         t1.line_id lineId,
         t1.is_meta isMeta,
         t1.id showId,

--
Gitblit v1.9.3