huanghongfa
2020-12-11 beacd47b5a174b52602a7c4e4ee431aef4ab48b2
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActActSignDAO.java
@@ -19,14 +19,9 @@
    @Select("<script> " +
            "SELECT\n" +
            "a.id,\n" +
            "u.NAME,\n" +
            "CASE\n" +
            "\n" +
            "WHEN u.is_partymember = 1 THEN\n" +
            "'党员' \n" +
            "WHEN u.is_volunteer = 1 THEN\n" +
            "'支援者' ELSE '居民' \n" +
            "END identity,\n" +
            "u.image_url,\n" +
            "u.name,\n" +
            "case WHEN u.is_partymember = 1 THEN '党员' WHEN a.is_volunteer = 1 THEN '志愿者' ELSE '居民' END identity,\n" +
            "u.phone,\n" +
            "a.create_at \n" +
            "FROM\n" +
@@ -40,13 +35,13 @@
            "<if test='name != null and name.trim() != &quot;&quot;'>" +
            "AND u.`name` = #{name} \n" +
            " </if> " +
            "<if test='identity != null and identity.trim() != &quot;&quot; and identity=党员'>" +
            "<if test='identity != null and identity.trim() != &quot;&quot; and identity==党员.toString()'>" +
            "AND is_partymember = 1 \n" +
            " </if> " +
            "<if test='identity != null and identity.trim() != &quot;&quot; and identity=志愿者'>" +
            "<if test='identity != null and identity.trim() != &quot;&quot; and identity==志愿者.toString()'>" +
            "AND is_partymember = 2 and is_volunteer=1  \n" +
            " </if> " +
            "<if test='identity != null and identity.trim() != &quot;&quot; and identity=居民'>" +
            "<if test='identity != null and identity.trim() != &quot;&quot; and identity==居民.toString()'>" +
            "AND is_partymember = 2 and is_volunteer=2  \n" +
            " </if> " +
            " order by a.create_at desc "+