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/ComActDynDAO.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDynDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDynDAO.java
index a0ad377..777dddb 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDynDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDynDAO.java
@@ -32,7 +32,7 @@
         + "FROM " + "com_act_dyn d " + "LEFT JOIN ( select dyn_id,count(id) as readNum from com_act_dyn_user GROUP BY dyn_id  )  u ON d.id = u.dyn_id  "
         + "LEFT JOIN com_act_dyn_type as cadt ON cadt.id = d.type  "
         + "LEFT JOIN com_act ca ON d.community_id = ca.community_id  " + "WHERE 1=1  "
-        + "<if test='comActDynVO.choice == 0 '>" + "and d.community_id = #{comActDynVO.communityId} " + " </if> "
+        + "<if test='comActDynVO.choice == 0 '>" + "and d.community_id = ${comActDynVO.communityId} " + " </if> "
         + "<if test='comActDynVO.title != null and comActDynVO.title.trim() != &quot;&quot;'>"
         + "AND d.title like concat(#{comActDynVO.title},'%')   " + " </if> "
         + "<if test='comActDynVO.isTopping != null '>" + "AND d.is_topping = #{comActDynVO.isTopping}  " + " </if> "
@@ -51,7 +51,7 @@
         + "LEFT JOIN com_act_dyn_user u ON d.id = u.dyn_id  "
         + "LEFT JOIN com_act_dyn_type as cadt ON cadt.id = d.type  "
         + "LEFT JOIN com_act ca ON d.community_id = ca.community_id  " + "WHERE  "
-        + "d.community_id = #{comActDynVO.communityId} "
+        + "d.community_id = ${comActDynVO.communityId} "
         + "<if test='comActDynVO.title != null and comActDynVO.title.trim() != &quot;&quot;'>"
         + "AND d.title like concat(#{comActDynVO.title},'%')   " + " </if> "
         + "<if test='comActDynVO.isTopping != null '>" + "AND d.is_topping = #{comActDynVO.isTopping}  " + " </if> "
@@ -63,16 +63,16 @@
     IPage<ComActDynVO> pageDynamicByAdmin(Page page, @Param("comActDynVO") ComActDynVO comActDynVO);
 
     @Select("SELECT " + " count( cad.id ) AS dynTotal, "
-        + " (select count(id) from com_act_dyn where community_id = #{communityId} and create_at LIKE CONCAT(#{nowDate},'%')) as currentNum "
-        + "FROM " + " com_act_dyn AS cad  " + "WHERE " + " community_id = #{communityId}")
+        + " (select count(id) from com_act_dyn where community_id = ${communityId} and create_at LIKE CONCAT(#{nowDate},'%')) as currentNum "
+        + "FROM " + " com_act_dyn AS cad  " + "WHERE " + " community_id = ${communityId}")
     Map<String, Long> countByCommunityId(@Param("communityId") Long communityId, @Param("nowDate") String nowDate);
 
-    @Select("select create_at as startTime,(select create_at from com_act_dyn where community_id = #{communityId} order by create_at desc LIMIT 1 ) as endTime from com_act_dyn where community_id = #{communityId} order by create_at asc LIMIT 1")
+    @Select("select create_at as startTime,(select create_at from com_act_dyn where community_id = ${communityId} order by create_at desc LIMIT 1 ) as endTime from com_act_dyn where community_id = ${communityId} order by create_at asc LIMIT 1")
     DateScreenVO countByAvgCommunityId(@Param("communityId") Long communityId);
 
     @Select("SELECT "
-        + "(SELECT COUNT(id) FROM com_act_dyn WHERE community_id = #{communityId} AND create_at < #{end}) AS dynTotal, "
-        + "(SELECT COUNT(id) FROM com_act_dyn WHERE community_id = #{communityId} AND #{start} < create_at AND create_at < #{end}) AS dynAdd "
+        + "(SELECT COUNT(id) FROM com_act_dyn WHERE community_id = ${communityId} AND create_at < #{end}) AS dynTotal, "
+        + "(SELECT COUNT(id) FROM com_act_dyn WHERE community_id = ${communityId} AND #{start} < create_at AND create_at < #{end}) AS dynAdd "
         + " FROM DUAL")
     DynamicWorkVO countByTime(@Param("start") String start, @Param("end") String end,
         @Param("communityId") Long communityId);

--
Gitblit v1.7.1