From 843e5b6f52c938d8a68657b710ab2285d7211ab5 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期三, 07 七月 2021 10:57:40 +0800 Subject: [PATCH] 修改bug --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActActSignDAO.java | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActActSignDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActActSignDAO.java index 739e27b..89b5126 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActActSignDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActActSignDAO.java @@ -61,6 +61,43 @@ @Select("<script> " + "SELECT " + + "u.user_id id, " + + "u.image_url, " + + "u.name, " + + "u.nick_name, " + + "case WHEN u.is_partymember = 1 THEN '党员' WHEN a.is_volunteer = 1 THEN '志愿者' ELSE '居民' END identity, " + + "u.phone, " + + "a.create_at, " + + "a.is_volunteer " + + "FROM " + + "com_act_act_sign a " + + "JOIN sys_user u ON a.user_id = u.user_id " + + "WHERE " + + "a.activity_id = #{activitySignVO.activityId} " + + "<if test='activitySignVO.phone != null and activitySignVO.phone != ""'>" + + "AND u.phone = #{activitySignVO.phone} " + + " </if> " + + "<if test='activitySignVO.name != null and activitySignVO.name != ""'>" + + "AND u.`name` = #{activitySignVO.name} " + + " </if> " + + "<if test='activitySignVO.identity != null and activitySignVO.identity != "" and activitySignVO.identity==1'>" + + "AND u.is_partymember = 0 and a.is_volunteer=0 " + + " </if> " + + "<if test='activitySignVO.identity != null and activitySignVO.identity != "" and activitySignVO.identity==2'>" + + "AND u.is_partymember = 1 " + + " </if> " + + "<if test='activitySignVO.identity != null and activitySignVO.identity != "" and activitySignVO.identity==3'>" + + "AND a.is_volunteer=1 " + + " </if> " + + "<if test='activitySignVO.type != null and activitySignVO.type != 0'>" + + "AND a.is_volunteer=#{activitySignVO.type}-1 " + + " </if> " + + " order by a.create_at desc "+ + "</script>") + List<ActivitySignVO> listActivitySigns(@Param("activitySignVO") ActivitySignVO activitySignVO); + + @Select("<script> " + + "SELECT " + " caas.user_id, " + " su.NAME, " + "CASE " + -- Gitblit v1.7.1