| | |
| | | @Select("<script> \n"+ |
| | | "SELECT\n" + |
| | | "nc.*,\n" + |
| | | "u.`name` AS releaseName \n" + |
| | | "u.`name` AS releaseName,u.`type` as userType\n" + |
| | | ",ca.name as communityName\n" + |
| | | "FROM\n" + |
| | | "com_act_neighbor_circle nc\n" + |
| | | "LEFT JOIN sys_user u ON nc.release_id = u.user_id\n" + |
| | | "left join com_act ca on u.community_id=ca.community_id \n" + |
| | | "<where>"+ |
| | | "nc.community_id = #{neighborCircleAdminDTO.communityId} \n"+ |
| | | "<if test='neighborCircleAdminDTO.releaseContent != null and neighborCircleAdminDTO.releaseContent != ""'>" + |
| | |
| | | "and nc.create_at between #{neighborCircleAdminDTO.startAt} and #{neighborCircleAdminDTO.endAt} \n" + |
| | | " </if> " + |
| | | "</where>"+ |
| | | "order by nc.`status` asc,nc.create_at desc " + |
| | | "order by " + |
| | | "case when nc.`status`=1 then 0 else 1 end, \n" + |
| | | "nc.`status` asc,nc.create_at desc " + |
| | | "</script>") |
| | | IPage<ComActNeighborCircleAdminVO> pageNeighborByAdmin(Page page,@Param("neighborCircleAdminDTO") ComActNeighborCircleAdminDTO neighborCircleAdminDTO); |
| | | |