From d5426047a2173c69c32eb70166ce5c61b54ff228 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 26 十二月 2024 15:46:34 +0800
Subject: [PATCH] 1、实现农户IC卡充值日、月、年自动化统计; 2、实现农户充值日、月、年自动化统计; 3、部分实现农户IC卡充值日、月、年自动化统计; 4、部分实现农户充值日、月、年自动化统计。

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeIssueReportMapper.xml |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeIssueReportMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeIssueReportMapper.xml
index 339bf9d..9e2323e 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeIssueReportMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeIssueReportMapper.xml
@@ -264,4 +264,28 @@
   <update id="deleteIssueReport">
     UPDATE ope_issue_report SET state = 3 WHERE id = #{issueReportId}
   </update>
+  <!--鏍规嵁闂涓婃姤璁板綍涓婚敭鑾峰彇鑾峰彇宸℃鍛橀棶棰樹笂鎶ヨ褰曡鍥惧璞�-->
+  <select id="getIssueReportById" resultType="com.dy.pipIrrGlobal.voOp.VoIssueReport_temp">
+    SELECT
+      rpt.id AS issueReportId,
+      us.name AS inspectorName,
+      rpt.phone,
+      rpt.report_time AS reportTime,
+      rpt.content,
+      rpt.images,
+      rpt.audios,
+      rpt.videos,
+      rpy.reply_time AS replyTime,
+      rpy.reply_content AS replyContent,
+      rpy.replier_id AS replyPersonId,
+      rpt.state AS stateId,
+      CASE
+        WHEN rpt.state = 1 THEN '鏈彈鐞�'
+        WHEN rpt.state = 2 THEN '宸插彈鐞�'
+        END AS state
+    FROM ope_issue_report rpt
+           LEFT JOIN ba_user us ON us.id = rpt.inspector_id
+           LEFT JOIN ope_report_reply rpy ON rpy.report_id = rpt.id
+    where rpt.state != 3 AND rpt.id = #{issueReportId}
+  </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0