From 428eee9df5f8885ab71d7cd273f5889b8c81e1dc Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期四, 31 十月 2024 16:49:30 +0800
Subject: [PATCH] 2024-10-31 优化代码
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeIssueReportMapper.xml | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeIssueReportMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeIssueReportMapper.xml
index 8e8c84f..3183e50 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeIssueReportMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeIssueReportMapper.xml
@@ -175,6 +175,7 @@
SELECT COUNT(*) AS recordCount
FROM se_issue_report rpt
LEFT JOIN se_client cli ON cli.id = rpt.client_id
+ LEFT JOIN se_report_reply rpy ON rpy.report_id = rpt.id
<where>
AND rpt.state != 3
@@ -211,12 +212,15 @@
rpt.images,
rpt.audios,
rpt.videos,
+ rpy.reply_time AS replyTime,
+ rpt.state AS stateId,
CASE
WHEN rpt.state = 1 THEN '鏈彈鐞�'
WHEN rpt.state = 2 THEN '宸插彈鐞�'
END AS state
FROM se_issue_report rpt
LEFT JOIN se_client cli ON cli.id = rpt.client_id
+ LEFT JOIN se_report_reply rpy ON rpy.report_id = rpt.id
<where>
AND rpt.state != 3
--
Gitblit v1.8.0