From 00311f718b9ed42d48305b8ffe98ef79fdb3e716 Mon Sep 17 00:00:00 2001
From: lyh <925863403@qq.com>
Date: 星期四, 04 九月 2025 15:15:29 +0800
Subject: [PATCH] 设备管理技术状态鉴定、设备保养、设备维修下所有列表添加使用部门展示

---
 lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamRepairOrderMapper.xml |   45 +--------------------------------------------
 1 files changed, 1 insertions(+), 44 deletions(-)

diff --git a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamRepairOrderMapper.xml b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamRepairOrderMapper.xml
index b92d089..0cc2aba 100644
--- a/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamRepairOrderMapper.xml
+++ b/lxzn-module-eam-common/src/main/java/org/jeecg/modules/eam/mapper/xml/EamRepairOrderMapper.xml
@@ -2,51 +2,8 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="org.jeecg.modules.eam.mapper.EamRepairOrderMapper">
 
-    <select id="pageList" resultType="org.jeecg.modules.eam.entity.EamRepairOrder">
-        SELECT
-            t1.*,
-            t2.equipment_name
-        FROM
-            eam_repair_order t1
-                LEFT JOIN eam_equipment t2 ON t1.equipment_id = t2.id
-        <where>
-            <choose>
-                <when test="equipmentIds != null and equipmentIds.size() > 0 ">
-                    AND t2.equipment_code IN
-                    <foreach collection="equipmentIds" item="equipmentId" index="index" open="(" close=")" separator=",">
-                        #{equipmentId}
-                    </foreach>
-                </when>
-                <otherwise>
-                    EXISTS ( SELECT 1 FROM mdc_user_production t3 WHERE t3.user_id = #{userId} AND t3.pro_id= t2.org_id )
-                </otherwise>
-            </choose>
-            <if test="eamRepairOrder.equipmentCode != null and eamRepairOrder.equipmentCode != ''">
-                AND t2.equipment_code LIKE CONCAT(CONCAT('%',#{ eamRepairOrder.equipmentCode }),'%')
-            </if>
-            <if test="eamRepairOrder.equipmentId != null and eamRepairOrder.equipmentId != ''">
-                AND t2.id = #{ eamRepairOrder.equipmentId }
-            </if>
-            <if test="eamRepairOrder.equipmentName != null and eamRepairOrder.equipmentName != ''">
-                AND t2.equipment_name LIKE CONCAT(CONCAT('%',#{ eamRepairOrder.equipmentName }),'%')
-            </if>
-            <if test="eamRepairOrder.repairStatus != null and eamRepairOrder.repairStatus != ''">
-                AND t1.repair_status = #{ eamRepairOrder.repairStatus }
-            </if>
-            <if test="eamRepairOrder.repairer != null and eamRepairOrder.repairer != ''">
-                AND t1.repairer LIKE CONCAT(CONCAT('%',#{ eamRepairOrder.repairer }),'%')
-            </if>
-            <if test="eamRepairOrder.repairCode != null and eamRepairOrder.repairCode != ''">
-                AND t1.repair_code LIKE CONCAT(CONCAT('%',#{ eamRepairOrder.repairCode }),'%')
-            </if>
-            <if test="eamRepairOrder.sparePartDescription != null and eamRepairOrder.sparePartDescription != ''">
-                AND t1.spare_part_description LIKE CONCAT(CONCAT('%',#{ eamRepairOrder.sparePartDescription }),'%')
-            </if>
-        </where>
-        ORDER BY t1.create_time DESC
-    </select>
     <select id="queryPageList" resultType="org.jeecg.modules.eam.entity.EamRepairOrder">
-        select wmo.*, e.equipment_code, e.equipment_name,e.equipment_model, e.installation_position
+        select wmo.*, e.equipment_code, e.equipment_name,e.equipment_model, e.installation_position,e.factory_org_code
         from eam_repair_order wmo
         inner join eam_equipment e
         on wmo.equipment_id = e.id

--
Gitblit v1.9.3