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.id,t.`no`,t.title,t.state,t.urgency,t.component,t.question,t.reason
+ SELECT t.id,t.`no`,t.title,t.state,t.urgency,p.part_name AS 'component',t.question,t.reason
,IF(u.is_primary,fun_getPrimaryUserArea(u.company_id),'') AS 'areaName',IF(u.is_primary,'',a2.`name`) AS 'agentAreaName'
,d.customer_name AS 'customerName',d.agent_name AS 'agentName',u.`name` AS 'createBy',t.device_no AS 'deviceNo',t.use_time AS 'useTime'
,t.create_time AS 'createTime',t.update_time AS 'completeTime',di.name AS 'warrantyStatusDesc',d.device_type AS 'deviceType'
@@ -228,6 +236,7 @@
LEFT JOIN dictionary_item di ON d.warranty_state=di.id
LEFT JOIN admin_user auc ON t.cqm=auc.id
LEFT JOIN admin_user auh ON t.current_handle=auh.id
+ LEFT JOIN t_base_part p ON t.component_id=p.id
ORDER BY t.state,t.id DESC