From f76377ffd111434d90c5aaf5507cd33a982d4aa6 Mon Sep 17 00:00:00 2001
From: huanghongfa <18228131219@163.com>
Date: 星期四, 10 十二月 2020 18:06:16 +0800
Subject: [PATCH] 小程序,社区活动,微心愿,随手拍完成未测试

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDynDAO.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 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 64a79dd..9bdbf05 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
@@ -42,9 +42,11 @@
             "AND d.`status` = #{comActDynVO.status} \n" +
             " </if> " +
             "<if test='comActDynVO.publishAtBegin != null and comActDynVO.publishAtBegin.trim() != &quot;&quot;'>" +
-            "AND d.publish_at BETWEEN '2020-02-03' \n" +
-            "AND '2020-12-13'" +
+            "AND d.publish_at BETWEEN #{comActDynVO.publishAtBegin} \n" +
+            "AND #{comActDynVO.publishAtEnd}" +
             " </if> " +
+            " group by d.id  "+
+            " order by d.is_topping , d.create_at desc "+
             "</script>")
     IPage<ComActDynVO> pageDynamic(Page page, @Param("comActDynVO") ComActDynVO comActDynVO);
 }

--
Gitblit v1.7.1