| | |
| | | <select id="getTotalCommunityList" resultType="com.ruoyi.errand.object.vo.app.CommunityListVO"> |
| | | select id ,name |
| | | from t_community where del_flag=0 |
| | | <if test="name != null and '' != name"> |
| | | and name like concat('%',#{name},'%') |
| | | </if> |
| | | </select> |
| | | <select id="getAllCommunityList" resultType="com.ruoyi.errand.object.vo.sys.AllCommunityListVO"> |
| | | select |
| | |
| | | where |
| | | del_flag=0 |
| | | and |
| | | id not in |
| | | <foreach collection="list" item="item" index="index" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | status = 0 |
| | | <if test="list!=null and list.size>0"> |
| | | and id not in |
| | | <foreach collection="list" item="item" index="index" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | </select> |
| | | <select id="getCommunityPageList" resultType="com.ruoyi.errand.object.vo.sys.CommunityPageListVO"> |
| | | select |
| | |
| | | from t_community tc |
| | | left join t_region tr on tc.region_id = tr.id |
| | | left join t_community_courier tcc on tc.id = tcc.community_id |
| | | left join t_courier tco on tcc.courier_id = toc.id |
| | | left join t_courier tco on tcc.courier_id = tco.id |
| | | where |
| | | del_flag=0 |
| | | tc.del_flag=0 |
| | | <if test="dto.name !=null and ''!= dto.name"> |
| | | and tc.name like concat('%',#{dto.name},'%') |
| | | </if> |
| | |
| | | <if test="dto.status!=null"> |
| | | and tc.status =#{dto.status} |
| | | </if> |
| | | order by tc.create_time desc |
| | | </select> |
| | | </mapper> |