From e9d5fb4b01c383fa5b01bf5e730d4e3da73f266e Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期四, 30 十二月 2021 11:27:15 +0800
Subject: [PATCH] 12/30  河门口大屏特殊修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java
index 1436eaf..fe1db04 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActMicroWishDAO.java
@@ -68,7 +68,7 @@
             " </if> " +
             " <where>" +
             "<if test='comActMicroWishVO.communityId != null and comActMicroWishVO.communityId != 0'>" +
-            " and w.community_id = #{comActMicroWishVO.communityId}  " +
+            " and w.community_id = ${comActMicroWishVO.communityId}  " +
             " </if> " +
             "<if test='comActMicroWishVO.sponsorPhone != null and comActMicroWishVO.sponsorPhone.trim() != &quot;&quot;'>" +
             "AND w.sponsor_phone like concat(#{comActMicroWishVO.sponsorPhone},'%')   " +
@@ -166,7 +166,7 @@
             "FROM " +
             "com_act_micro_wish w  " +
             "WHERE " +
-            "w.community_id = #{communityId}  " +
+            "w.community_id = ${communityId}  " +
             "AND w.`status` = 1 " +
             " " +
             "union all  " +
@@ -176,7 +176,7 @@
             "FROM " +
             " com_act_micro_wish w  " +
             "WHERE " +
-            " w.community_id = #{communityId}  " +
+            " w.community_id = ${communityId}  " +
             " AND w.`status` = 3  " +
             " AND w.form = 1  " +
             " AND w.responsible_id = #{userId}  " +
@@ -191,12 +191,12 @@
     List<Long> getWishAutoConfirmIds();
 
     @Select("SELECT COUNT(id) AS completedNum," +
-            "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = #{communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5)) AS willNum ," +
-            "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = #{communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " +
-            "FROM com_act_micro_wish WHERE community_id = #{communityId} AND status = 6 ")
+            "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = ${communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5)) AS willNum ," +
+            "(SELECT COUNT(id) FROM com_act_micro_wish WHERE community_id = ${communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) AND create_at LIKE CONCAT(#{nowDate},'%')) AS currentNum " +
+            "FROM com_act_micro_wish WHERE community_id = ${communityId} AND status = 6 ")
     Map<String, Long> countByCommunityId(@Param("communityId") Long communityId,@Param("nowDate") String nowDate);
 
-    @Select("SELECT photo_path_list FROM com_act_micro_wish WHERE community_id = #{communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) ORDER BY create_at DESC limit #{pageSize}")
+    @Select("SELECT photo_path_list FROM com_act_micro_wish WHERE community_id = ${communityId} AND (status =1 OR status =2 OR status = 3 OR status = 5 OR status = 6) ORDER BY create_at DESC limit #{pageSize}")
     List<String> getAllImgs(@Param("communityId") Long communityId,@Param("pageSize") Integer pageSize);
 
     @Select("<script> " +
@@ -227,7 +227,7 @@
             "AND camw.`status` =#{microListDTO.status}  " +
             " </if> " +
             "<if test='microListDTO.communityId != null'>" +
-            "AND camw.community_id = #{microListDTO.communityId}  " +
+            "AND camw.community_id = ${microListDTO.communityId}  " +
             " </if> " +
             "<if test='microListDTO.startTime!=null and microListDTO.startTime != &quot;&quot;'>" +
             " AND DATE_FORMAT(camw.create_at,'%Y-%m-%d %H:%i:%s') <![CDATA[ >= ]]> #{microListDTO.startTime} " +

--
Gitblit v1.7.1