From c70b92da60c0d00625da5fc2369b475e69e0b88e Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 22 八月 2024 11:36:41 +0800
Subject: [PATCH] 1、完善代码和application.yml配置文件,去掉不用的引入文件; 2、init-config.xml配置中增加属性 enable,相应解析类也增加了解析与判断; 3、凡是有Server的应用,加载资源方式改为用springboot的工具类加载; 4、通信协议相关的扫描注解功能实现改为采用reflections-0.10.2,以实现可以在jar包情况下能够扫描类(.class)注解。

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

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeFeedbackReplyMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeFeedbackReplyMapper.xml
index 1b5bbf5..9200aaf 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeFeedbackReplyMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/OpeFeedbackReplyMapper.xml
@@ -99,4 +99,52 @@
       replier_id = #{replierId,jdbcType=BIGINT}
     where id = #{id,jdbcType=BIGINT}
   </update>
+
+  <select id="getRecordCount" resultType="java.lang.Long">
+    select count(*) from ope_feedback_reply ofbr
+    inner join ope_feedback ofb on ofbr.feedback_id = ofb.id
+    <where>
+      <if test="feedbackId != null and feedbackId != '' ">
+        and ofbr.feedback_id = #{feedbackId,jdbcType=BIGINT}
+      </if>
+      <if test="replierId != null and replierId != '' ">
+        and ofbr.replier_id = #{replierId,jdbcType=BIGINT}
+      </if>
+      <if test="replyTimeStart != null">
+        and ofbr.reply_time &gt;= #{replyTimeStart}
+      </if>
+      <if test="replyTimeStop != null">
+        and ofbr.reply_time &lt;= #{replyTimeStop}
+      </if>
+    </where>
+    </select>
+
+  <select id="getFeedbackReply" resultType="com.dy.pipIrrGlobal.voOp.VofeedbackReply">
+    select
+    CAST(ofbr.id as char) AS id,
+    CAST(ofbr.feedback_id as char) AS feedbackId,
+    ofbr.reply_content as replyContent,
+    ofbr.reply_time as replyTime,
+    CAST(ofbr.replier_id as char) AS replierId
+    from ope_feedback_reply ofbr
+    inner join ope_feedback ofb on ofbr.feedback_id = ofb.id
+    <where>
+      <if test="feedbackId != null and feedbackId != '' ">
+        and ofbr.feedback_id = #{feedbackId,jdbcType=BIGINT}
+      </if>
+      <if test="replierId != null and replierId != '' ">
+        and ofbr.replier_id = #{replierId,jdbcType=BIGINT}
+      </if>
+      <if test="replyTimeStart != null">
+        and ofbr.reply_time &gt;= #{replyTimeStart}
+      </if>
+      <if test="replyTimeStop != null">
+        and ofbr.reply_time &lt;= #{replyTimeStop}
+      </if>
+    </where>
+    order by ofbr.id desc
+    <if test="pageCurr != null and pageSize != null">
+      LIMIT ${(pageCurr-1)*pageSize}, ${pageSize}
+    </if>
+  </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0