huanghongfa
2021-07-24 2c8b9868fe8c45320eb18fd5d6b51ec770c30610
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/SysUserFeedbackDAO.java
@@ -40,14 +40,19 @@
            "f.photo_path,\n" +
            "c.name communityName\n" +
            "from sys_user_feedback f\n" +
            "join sys_user u on f.user_id=u.user_id\n" +
            "left join sys_user u on f.user_id=u.user_id\n" +
            "left join com_act c on u.community_id=c.community_id\n" +
            "<where>" +
            "<if test='pageFeedBackDTO.phone != null and pageFeedBackDTO.phone.trim() != &quot;&quot;'>" +
            "and u.phone like concat('%',#{pageFeedBackDTO.phone},'%') \n" +
            " </if> " +
            "<if test='pageFeedBackDTO.name != null and pageFeedBackDTO.name.trim() != &quot;&quot;'>" +
            "and u.name=#{pageFeedBackDTO.name}\n" +
            "and u.name like concat('%',#{pageFeedBackDTO.name},'%')   \n" +
            " </if> " +
            "<if test='pageFeedBackDTO.nickName != null and pageFeedBackDTO.nickName.trim() != &quot;&quot;'>" +
            "and u.nick_name=#{pageFeedBackDTO.nickName}\n" +
            "and u.nick_name like concat('%',#{pageFeedBackDTO.nickName},'%') \n" +
            " </if> " +
            "join com_act c on u.community_id=c.community_id\n" +
            "</where> " +
            "order by f.create_at desc\n" +
            "</script>")
    IPage<SysUserFeedbackVO> pageFeedback(Page page, @Param("pageFeedBackDTO") PageFeedBackDTO pageFeedBackDTO);