| | |
| | | <if test="vo.startTime != null and vo.startTime != '' and vo.endTime != null and vo.endTime != '' "> |
| | | AND jtrfr.create_time BETWEEN #{vo.startTime} and #{vo.endTime} |
| | | </if> |
| | | <if test="vo.regionCode != null and vo.regionCode !='' "> |
| | | and jg.community_code like concat(#{vo.regionCode},'%') |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jg.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jg.community_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | <if test="vo.roleName!=null and vo.roleName!=''"> |
| | | <if test="vo.roleName=='网格员'"> |
| | |
| | | WHERE is_deleted = 0 |
| | | <if test="userId != null"> |
| | | and create_user = #{userId} |
| | | |
| | | </if> |
| | | <if test="houseCode != null and houseCode != ''"> |
| | | and address_code = #{houseCode} |
| | | </if> |
| | | <if test="neiCode != null and neiCode != ''"> |
| | | AND jda.nei_code LIKE concat( #{neiCode}, '%' ) |
| | | <if test="isAdministrator==2"> |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jda.nei_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | | and jda.nei_code in ('') |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | </select> |
| | | |