| | |
| | | <select id="selectTaskPageBy" resultType="org.springblade.modules.task.vo.TaskVO"> |
| | | |
| | | SELECT |
| | | jt.* , |
| | | jda.address_name |
| | | jt.* , |
| | | jda.address_name |
| | | FROM |
| | | jczz_task jt |
| | | LEFT JOIN jczz_doorplate_address jda ON jt.house_code = jda.address_code |
| | | LEFT JOIN jczz_community jc ON jc.CODE = jda.nei_code |
| | | WHERE |
| | | jc.res_police_user_id = #{task.userId} |
| | | AND jt.report_type = '1' |
| | | jczz_task jt |
| | | LEFT JOIN jczz_doorplate_address jda ON jt.house_code = jda.address_code |
| | | LEFT JOIN jczz_community jc ON jc.CODE = jda.nei_code |
| | | <where> |
| | | <if test="task.reportType != null and task.reportType != '' and task.reportType == 1"> |
| | | AND jt.report_type = #{task.reportType} |
| | | </if> |
| | | |
| | | <if test="task.reportType == null or task.reportType == ''"> |
| | | AND jt.report_type in (2,3,6) |
| | | </if> |
| | | <if test="task.userId != null and task.userId != ''"> |
| | | AND jc.res_police_user_id = #{task.userId} |
| | | </if> |
| | | </where> |
| | | |
| | | |
| | | </select> |
| | | |
| | | |