From a99b0c3ca1ab0ac6e250a48a1f889cd1c8dce739 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Fri, 25 Apr 2025 11:20:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E5=A4=87=E9=83=A8=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=9A=E8=AF=AD=E8=A8=80=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pojo/request/TicketSearchRequest.java | 2 +- .../main/resources/mapper/TicketMapper.xml | 33 ++++++++++++------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/request/TicketSearchRequest.java b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/request/TicketSearchRequest.java index e1c3491b..3ecfe507 100644 --- a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/request/TicketSearchRequest.java +++ b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/request/TicketSearchRequest.java @@ -23,7 +23,7 @@ public class TicketSearchRequest extends PageRequest { private String deviceNo; //问题部位 - private String component; + private Integer componentId; //工单状态 private Integer state; diff --git a/nflg-mobilebroken-repository/src/main/resources/mapper/TicketMapper.xml b/nflg-mobilebroken-repository/src/main/resources/mapper/TicketMapper.xml index 209b547e..4fb73945 100644 --- a/nflg-mobilebroken-repository/src/main/resources/mapper/TicketMapper.xml +++ b/nflg-mobilebroken-repository/src/main/resources/mapper/TicketMapper.xml @@ -15,8 +15,8 @@ AND t.device_no LIKE CONCAT('%', #{request.deviceNo}, '%') - - AND t.component=#{request.component} + + AND t.component_id=#{request.componentId} AND t.state=#{request.state} @@ -41,8 +41,8 @@ AND t.urgency=#{request.urgency} - - AND t.component=#{request.component} + + AND t.component_id=#{request.componentId} AND t.handle_name LIKE CONCAT('%', #{request.handleUserName}, '%') @@ -79,22 +79,25 @@ SELECT t.*,IF(u.is_primary,fun_getPrimaryUserArea(u.company_id),a2.`name`) AS 'areaName',IF(tf.id IS NULL, false, true) AS 'followed' - ,u.`name` AS 'createBy',t.handle + ,u.`name` AS 'createBy',t.handle,p.part_name AS 'component' FROM ticket t LEFT JOIN app_user u ON t.user_id=u.id LEFT JOIN app_area a2 ON u.area_id=a2.id LEFT JOIN ticket_follow tf ON t.id=tf.ticket_id AND tf.user_id=#{userId} AND tf.from=0 + LEFT JOIN t_base_part p ON t.component_id=p.id WHERE t.state!=4 AND u.company_id IN #{companyId} @@ -116,7 +120,7 @@ @@ -209,7 +217,7 @@