| | |
| | | <result property="auditTime" column="audit_time"/> |
| | | <result property="auditResult" column="audit_result"/> |
| | | <result property="auditResultName" column="audit_result_name"/> |
| | | <result property="audit_content" column="audit__content"/> |
| | | <result property="auditContent" column="audit_content"/> |
| | | <result property="deleteStatus" column="delete_status"/> |
| | | <result property="custId" column="cust_id"/> |
| | | <result property="createTime" column="create_time"/> |
| | |
| | | audit_time, |
| | | audit_result, |
| | | audit_result_name, |
| | | audit__content, |
| | | audit_content, |
| | | delete_status, |
| | | cust_id, |
| | | create_time, |
| | |
| | | <if test="entity.auditTime != null">audit_time = #{entity.auditTime},</if> |
| | | <if test="entity.auditResult != null">audit_result = #{entity.auditResult},</if> |
| | | <if test="entity.auditResultName != null">audit_result_name = #{entity.auditResultName},</if> |
| | | <if test="entity.audit_content != null">audit__content = #{entity.audit_content},</if> |
| | | <if test="entity.auditContent != null">audit_content = #{entity.auditContent},</if> |
| | | <if test="entity.deleteStatus != null">delete_status = #{entity.deleteStatus},</if> |
| | | <if test="entity.custId != null">cust_id = #{entity.custId},</if> |
| | | <if test="entity.createTime != null">create_time = #{entity.createTime},</if> |
| | |
| | | <if test="terms.auditResultName != null and terms.auditResultName !=''"> |
| | | and audit_result_name = #{terms.auditResultName} |
| | | </if> |
| | | <if test="terms.audit_content != null and terms.audit_content !=''"> |
| | | and audit__content = #{terms.audit_content} |
| | | <if test="terms.auditContent != null and terms.auditContent !=''"> |
| | | and audit_content = #{terms.auditContent} |
| | | </if> |
| | | <if test="terms.deleteStatus = null and terms.deleteStatus =''"> |
| | | and delete_status = 0 |
| | |
| | | limit #{page.offset}, #{page.size} |
| | | </select> |
| | | |
| | | <!-- 首页统计 --> |
| | | <select id="countAssistReview" resultType="java.lang.Long"> |
| | | select |
| | | COUNT(1) |
| | | from |
| | | <include refid="table-name" /> |
| | | where |
| | | delete_status = 0 |
| | | and apply_status = 0 |
| | | and audit_unit_id = #{auditUnitId} |
| | | </select> |
| | | |
| | | <!-- 首页-待审核 --> |
| | | <resultMap id="MyTaskApplyReviewResult" type="cn.huge.module.cases.domain.dto.FrontPageListDTO"> |
| | | <result property="ownerId" column="ownerId"/> |
| | | <result property="caseId" column="caseId"/> |
| | | <result property="turnaroundTime" column="turnaroundTime"/> |
| | | <result property="timeLimit" column="timeLimit"/> |
| | | <result property="caseGrade" column="caseGrade"/> |
| | | <result property="caseSource" column="caseSource"/> |
| | | <result property="caseType" column="caseType"/> |
| | | <result property="plaintiffs" column="plaintiffs"/> |
| | | <result property="defendants" column="defendants"/> |
| | | <result property="processingDays" column="processingDays"/> |
| | | <result property="mediResult" column="mediResult"/> |
| | | <result property="organizingUnit" column="organizingUnit"/> |
| | | <result property="cooperatingUnit" column="cooperatingUnit"/> |
| | | <result property="manager" column="manager"/> |
| | | <result property="mediResult" column="mediResult"/> |
| | | <result property="backUnit" column="backUnit"/> |
| | | <result property="reason" column="reason"/> |
| | | <result property="opinion" column="opinion"/> |
| | | </resultMap> |
| | | |
| | | <!-- 首页-待审核统计 --> |
| | | <select id="countMyTaskAssistReview" resultType="java.lang.Long"> |
| | | select |
| | | COUNT(t1.id) |
| | | from |
| | | dyh_case_assist_apply t1 left join dyh_case_info t2 on t1.case_id = t2.id |
| | | where |
| | | t1.delete_status = 0 |
| | | and t1.apply_status = #{terms.applyStatus} |
| | | and t1.audit_unit_id = #{terms.auditUnitId} |
| | | <if test="terms.timeStart != null and terms.timeStart !='' and terms.timeEnd != null and terms.timeEnd !=''"> |
| | | 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.partyName != null and terms.partyName !=''"> |
| | | and concat(t2.plaintiffs, t2.pagents, t2.defendants, t2.dagents) like concat('%', #{terms.partyName}, '%') |
| | | </if> |
| | | </select> |
| | | <!-- 首页-待审核分页查询 --> |
| | | <select id="pageMyTaskAssistReview" resultMap="MyTaskApplyReviewResult"> |
| | | SELECT t1.id as ownerId, t1.case_id as CaseId, |
| | | t1.apply_time as turnaroundTime, t1.apply_unit_name as organizingUnit, t1.apply_assist_unit_name as cooperatingUnit, |
| | | t1.apply_content as reason,t2.case_level as caseGrade, t2.canal_name as caseSource, concat(t2.case_type_first_name, '/' ,t2.case_type_name) as caseType, |
| | | concat(t2.plaintiffs, t2.pagents) as plaintiffs, concat(t2.defendants, t2.dagents) as defendants |
| | | FROM |
| | | dyh_case_assist_apply t1 left join dyh_case_info t2 on t1.case_id = t2.id |
| | | where |
| | | t1.delete_status = 0 |
| | | and t1.apply_status = #{terms.applyStatus} |
| | | and t1.audit_unit_id = #{terms.auditUnitId} |
| | | <if test="terms.timeStart != null and terms.timeStart !='' and terms.timeEnd != null and terms.timeEnd !=''"> |
| | | 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.partyName != null and terms.partyName !=''"> |
| | | and concat(t2.plaintiffs, t2.pagents, t2.defendants, t2.dagents) like concat('%', #{terms.partyName}, '%') |
| | | </if> |
| | | <if test="page.sort != null"> |
| | | <foreach collection="page.sort" item="s" index="index" separator="," open="order by "> |
| | | isnull(${s.property}), ${s.property} ${s.direction} |
| | | </foreach> |
| | | </if> |
| | | <if test="page.sort == null"> |
| | | order by isnull(t1.create_time), t1.create_time desc |
| | | </if> |
| | | limit #{page.offset}, #{page.size} |
| | | </select> |
| | | </mapper> |