| | |
| | | and (DATE_FORMAT(t1.apply_time,'%Y-%m-%d') <![CDATA[ >= ]]> #{terms.timeStart} |
| | | and DATE_FORMAT(t1.apply_time,'%Y-%m-%d') <![CDATA[ <= ]]> #{terms.timeEnd}) |
| | | </if> |
| | | <if test="terms.handleTimeStart != null and terms.handleTimeStart !='' and terms.handleTimeEnd != null and terms.handleTimeEnd !=''"> |
| | | and (DATE_FORMAT(t1.audit_time,'%Y-%m-%d') <![CDATA[ >= ]]> #{terms.handleTimeStart} |
| | | and DATE_FORMAT(t1.audit_time,'%Y-%m-%d') <![CDATA[ <= ]]> #{terms.handleTimeEnd}) |
| | | </if> |
| | | <if test="terms.partyName != null and terms.partyName !=''"> |
| | | and concat_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, ''), ifnull(t2.defendants, ''), ifnull(t2.dagents, '')) like concat('%', #{terms.partyName}, '%') |
| | | and (concat_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, ''), ifnull(t2.defendants, ''), ifnull(t2.dagents, '')) like concat('%', #{terms.partyName}, '%') or t2.case_ref like concat('%', #{terms.partyName}, '%')) |
| | | </if> |
| | | <if test="terms.caseType != null and terms.caseType !=''"> |
| | | and t2.case_type = #{terms.caseType} |
| | | </if> |
| | | <if test="terms.plaintiffs != null and terms.plaintiffs !=''"> |
| | | and t2.plaintiffs like concat('%', #{terms.plaintiffs}, '%') |
| | | </if> |
| | | <if test="terms.defendants != null and terms.defendants !=''"> |
| | | and t2.defendants like concat('%', #{terms.defendants}, '%') |
| | | </if> |
| | | <if test="terms.canal != null and terms.canal !=''"> |
| | | and t2.canal = #{terms.canal} |
| | | </if> |
| | | <if test="terms.caseStatus != null and terms.caseStatus !=''"> |
| | | and t2.status = #{terms.caseStatus} |
| | | </if> |
| | | <if test="terms.caseLevel != null and terms.caseLevel !=''"> |
| | | and t2.case_level = #{terms.caseLevel} |
| | | </if> |
| | | <if test="terms.mediResult != null and terms.mediResult !=''"> |
| | | and t3.medi_result = #{terms.mediResult} |
| | | </if> |
| | | </select> |
| | | <!-- 首页-待审核分页查询 --> |
| | |
| | | and (DATE_FORMAT(t1.apply_time,'%Y-%m-%d') <![CDATA[ >= ]]> #{terms.timeStart} |
| | | and DATE_FORMAT(t1.apply_time,'%Y-%m-%d') <![CDATA[ <= ]]> #{terms.timeEnd}) |
| | | </if> |
| | | <if test="terms.handleTimeStart != null and terms.handleTimeStart !='' and terms.handleTimeEnd != null and terms.handleTimeEnd !=''"> |
| | | and (DATE_FORMAT(t1.audit_time,'%Y-%m-%d') <![CDATA[ >= ]]> #{terms.handleTimeStart} |
| | | and DATE_FORMAT(t1.audit_time,'%Y-%m-%d') <![CDATA[ <= ]]> #{terms.handleTimeEnd}) |
| | | </if> |
| | | <if test="terms.partyName != null and terms.partyName !=''"> |
| | | and concat_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, ''), ifnull(t2.defendants, ''), ifnull(t2.dagents, '')) like concat('%', #{terms.partyName}, '%') |
| | | and (concat_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, ''), ifnull(t2.defendants, ''), ifnull(t2.dagents, '')) like concat('%', #{terms.partyName}, '%') or t2.case_ref like concat('%', #{terms.partyName}, '%')) |
| | | </if> |
| | | <if test="terms.caseType != null and terms.caseType !=''"> |
| | | and t2.case_type = #{terms.caseType} |
| | | </if> |
| | | <if test="terms.plaintiffs != null and terms.plaintiffs !=''"> |
| | | and t2.plaintiffs like concat('%', #{terms.plaintiffs}, '%') |
| | | </if> |
| | | <if test="terms.defendants != null and terms.defendants !=''"> |
| | | and t2.defendants like concat('%', #{terms.defendants}, '%') |
| | | </if> |
| | | <if test="terms.canal != null and terms.canal !=''"> |
| | | and t2.canal = #{terms.canal} |
| | | </if> |
| | | <if test="terms.caseStatus != null and terms.caseStatus !=''"> |
| | | and t2.status = #{terms.caseStatus} |
| | | </if> |
| | | <if test="terms.caseLevel != null and terms.caseLevel !=''"> |
| | | and t2.case_level = #{terms.caseLevel} |
| | | </if> |
| | | <if test="terms.mediResult != null and terms.mediResult !=''"> |
| | | and t3.medi_result = #{terms.mediResult} |
| | | </if> |
| | | <if test="page.sort != null"> |
| | | <foreach collection="page.sort" item="s" index="index" separator="," open="order by "> |