| | |
| | | order by jpe.create_time desc,jpe.id desc |
| | | </select> |
| | | |
| | | <!--自定义详情查询--> |
| | | <!--场所审核统计--> |
| | | <select id="selectCount" resultType="java.lang.Integer"> |
| | | SELECT |
| | | count( 1 ) |
| | | FROM |
| | | jczz_place_ext jpe |
| | | LEFT JOIN jczz_place jp ON jp.id = jpe.place_id |
| | | LEFT JOIN jczz_doorplate_address jda ON jp.house_code = jda.address_code |
| | | <where> |
| | | <if test="confirmFlag != null"> |
| | | and jpe.confirm_flag = #{confirmFlag} |
| | | </if> |
| | | <if test="userId != null"> |
| | | AND jp.house_code IN ( |
| | | SELECT |
| | | jgr.house_code |
| | | FROM |
| | | jczz_grid_range jgr |
| | | LEFT JOIN jczz_grid jg ON jg.id = jgr.grid_id |
| | | LEFT JOIN jczz_gridman jgm ON jg.id = jgm.grid_id |
| | | WHERE |
| | | jg.is_deleted = 0 |
| | | <if test="neiCode != null and neiCode != ''"> |
| | | and jg.community_code = #{neiCode} |
| | | </if> |
| | | AND jgm.user_id = #{userId} ) |
| | | </if> |
| | | and jpe.is_deleted = 0 |
| | | </where> |
| | | |
| | | |
| | | </select> |
| | | |
| | | <select id="getDetail" resultType="org.springblade.modules.place.vo.PlaceExtVO"> |
| | | select jpe.*,jp.place_name as placeName from jczz_place_ext jpe |
| | | left join jczz_place jp on jpe.place_id = jp.id and jp.is_deleted = 0 |
| | | select jpe.*, jp.place_name as placeName |
| | | from jczz_place_ext jpe |
| | | left join jczz_place jp on jpe.place_id = jp.id and jp.is_deleted = 0 |
| | | where jpe.is_deleted = 0 |
| | | and jpe.place_id = #{placeExt.placeId} |
| | | and jpe.place_id = #{placeExt.placeId} |
| | | </select> |
| | | |
| | | |