From 057c40f6bf5fd348e7c1ebc176b8d59d6fabb38f Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 22 十一月 2024 16:24:36 +0800 Subject: [PATCH] 优化代码 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeIssueReportMapper.xml | 8 ++++++++ 1 files changed, 8 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 7c433e3..31bcb79 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,6 +212,7 @@ rpt.images, rpt.audios, rpt.videos, + rpy.reply_time AS replyTime, rpt.state AS stateId, CASE WHEN rpt.state = 1 THEN '鏈彈鐞�' @@ -218,6 +220,7 @@ 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 @@ -249,6 +252,11 @@ </trim> </select> + <!--鏍规嵁涓婃姤ID鍙婂啘鎴稩D鑾峰彇鏈垹闄ょ殑涓婃姤锛屽垹闄や笂鎶ュ垽鏂娇鐢�--> + <select id="getReport" resultType="com.dy.pipIrrGlobal.pojoSe.SeIssueReport"> + SELECT * FROM se_issue_report WHERE state != 3 AND id = #{issueReportId} AND client_id = #{clientId} + </select> + <!--閫昏緫鍒犻櫎涓�涓啘鎴烽棶棰樹笂鎶�--> <update id="deleteIssueReport"> UPDATE se_issue_report SET state = 3 WHERE id = #{issueReportId} -- Gitblit v1.8.0