| | |
| | | LEFT JOIN jczz_task jt ON jgr.house_code = jt.house_code |
| | | LEFT JOIN jczz_doorplate_address jda ON jda.address_code = jt.house_code |
| | | LEFT JOIN jczz_place jp on jp.house_code=jgr.house_code |
| | | WHERE |
| | | jgm.user_id = #{task.userId} |
| | | and jt.report_type in(2,3,4,5,6) |
| | | <where> |
| | | <if test="task.userId != null and task.userId != ''"> |
| | | and jgm.user_id = #{task.userId} |
| | | </if> |
| | | <if test="task.communityCode != null and task.communityCode != ''"> |
| | | and jg.community_code = #{task.communityCode} |
| | | </if> |
| | |
| | | <if test="task.reportType != null and task.reportType == 2 "> |
| | | and jt.report_type in (2,3,4,5,6) |
| | | </if> |
| | | <if test="task.reportType == null"> |
| | | and jt.report_type in (2,3,4,5,6) |
| | | </if> |
| | | order by jt.create_time desc |
| | | </where> |
| | | </select> |
| | | |
| | | |