فهرست منبع

个贷待办最新备注查询优化

wucl 3 روز پیش
والد
کامیت
597dc7761c

+ 2 - 7
dao/src/main/resources/mapper/WorkTaskRecordMapper.xml

@@ -291,8 +291,7 @@
         pt.acreage,
         pt.amount,
         pt.price,
-        pt.is_online,
-        c.comments
+        pt.is_online
         FROM
         work_task_record wtr
         LEFT JOIN work_node_task wnt ON wnt.id = wtr.task_id
@@ -325,11 +324,7 @@
         LEFT JOIN user u3 ON u3.id = p.inward_staff
         LEFT JOIN user u4 ON u4.id = p.pricing_staff
         LEFT JOIN personal_target pt ON pt.personal_id = p.id
-        left join (
-            select business_id,comments from work_flow_log where concat(business_id,created) in (
-            select concat(business_id,max(created)) from work_flow_log where business_type = 'PERSONAL_BUSINESS' and comments is not null  group BY business_id
-            )
-        ) c on c.business_id = p.id
+
         WHERE
         wtr.handler_id = #{personal.handlerId}
         AND u.deleted = 0

+ 4 - 4
service/src/main/java/com/dayou/websocket/WebSocketConfig.java

@@ -27,8 +27,8 @@ public class WebSocketConfig extends ServerEndpointConfig.Configurator {
      * 注入ServerEndpointExporter,@Bean会自动注册使用@ServerEndpoint注解声明的websocket端点endpoint
      * @return
      */
-//    @Bean
-//    public ServerEndpointExporter serverEndpointExporter(){
-//        return new ServerEndpointExporter();
-//    }
+    @Bean
+    public ServerEndpointExporter serverEndpointExporter(){
+        return new ServerEndpointExporter();
+    }
 }