| | |
| | | dyh_case_info t1 |
| | | left join dyh_case_info_unfold t2 on t1.id = t2.id |
| | | left join (select count(*) as number ,case_id from dyh_case_supervise group by case_id) t3 on t3.case_id=t1.id |
| | | left join (select id ,case_id from dyh_case_task limit 1) t4 on t1.id = t4.case_id |
| | | left join (select id ,case_id from dyh_case_task group by case_id) t4 on t1.id = t4.case_id |
| | | <include refid="where-register-part"/> |
| | | <if test="page.sort != null"> |
| | | <foreach collection="page.sort" item="s" index="index" separator="," open="order by "> |
| | |
| | | <include refid="column-part-all"/> |
| | | FROM |
| | | dyh_case_info a LEFT JOIN dyh_case_info_unfold b on a.id = b.id |
| | | left join (select id ,case_id from dyh_case_task limit 1) c on a.id = c.case_id |
| | | left join (select id ,case_id from dyh_case_task group by case_id) c on a.id = c.case_id |
| | | <include refid="where-part-all"/> |
| | | <if test="page.sort != null"> |
| | | <foreach collection="page.sort" item="s" index="index" separator="," open="order by "> |