src/main/java/org/springblade/modules/task/mapper/TaskReportForRepairsMapper.xml
@@ -82,9 +82,9 @@ and jtrfr.type = #{type} </if> <if test="userId != null"> AND jda.address_code in ( SELECT <if test="userId != null and roleType == '1'"> AND jda.address_code IN ( SELECT DISTINCT jgr.house_code FROM jczz_grid jg @@ -95,6 +95,16 @@ AND jg.is_deleted = 0 ) </if> <if test="userId != null and roleType == '3'"> AND jda.address_code IN (SELECT jda.address_code FROM jczz_doorplate_address jda LEFT JOIN jczz_community jc ON jc.CODE = jda.nei_code WHERE jc.res_police_user_id = #{userId}) ) </if> </select>