| | |
| | | <if test="terms.assistUnitId != null and terms.assistUnitId !=''"> |
| | | and t3.assist_unit_id like concat('%', #{terms.assistUnitId}, '%') |
| | | </if> |
| | | <if test="terms.applyStatus != null and terms.applyStatus !=''"> |
| | | and t1.apply_status = #{terms.applyStatus} |
| | | </if> |
| | | <if test="terms.auditResult != null and terms.auditResult !=''"> |
| | | and t1.audit_result = #{terms.auditResult} |
| | | </if> |
| | |
| | | COUNT(t1.id) |
| | | from |
| | | dyh_case_windup_apply t1 left join dyh_case_info t2 on t1.case_id = t2.id |
| | | left join dyh_case_info_unfold t3 on t3.id = t2.id |
| | | where |
| | | t2.delete_status = 0 |
| | | t1.apply_status = #{terms.applyStatus} |
| | | and t2.delete_status = 0 |
| | | <include refid="mySubmitApplyReview-where-part"/> |
| | | </select> |
| | | <!-- 首页-结案申请/已结案分页查询 --> |
| | |
| | | dyh_case_windup_apply t1 left join dyh_case_info t2 on t1.case_id = t2.id |
| | | left join dyh_case_info_unfold t3 on t3.id = t2.id |
| | | where |
| | | t2.delete_status = 0 |
| | | t1.apply_status = #{terms.applyStatus} |
| | | and t2.delete_status = 0 |
| | | <include refid="mySubmitApplyReview-where-part"/> |
| | | <if test="page.sort != null"> |
| | | <foreach collection="page.sort" item="s" index="index" separator="," open="order by "> |