From 051effad5a4885f28c4ead26e8e8c0da1b3d91d2 Mon Sep 17 00:00:00 2001 From: liyj <15602261488@163.com> Date: Mon, 21 Oct 2024 21:32:45 +0800 Subject: [PATCH] 1、工作视窗报错修改 --- dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseWindupApplyMapper.xml | 184 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 177 insertions(+), 7 deletions(-) diff --git a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseWindupApplyMapper.xml b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseWindupApplyMapper.xml index f524f5c..fa30602 100644 --- a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseWindupApplyMapper.xml +++ b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseWindupApplyMapper.xml @@ -5,7 +5,7 @@ * @description: 自定义sql,请自行实现业务逻辑 * @company: hugeinfo * @author: liyj - * @time:2024-09-06 23:57:02 + * @time:2024-10-14 14:23:35 * @version 1.0.0 --> <mapper namespace="cn.huge.module.cases.dao.mapper.CaseWindupApplyMapper"> @@ -34,7 +34,10 @@ <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="usetimeHour" column="usetime_hour"/> + <result property="overtimeStatus" column="overtime_status"/> + <result property="overtimeHour" column="overtime_hour"/> <result property="deleteStatus" column="delete_status"/> <result property="custId" column="cust_id"/> <result property="createTime" column="create_time"/> @@ -67,7 +70,10 @@ audit_time, audit_result, audit_result_name, - audit__content, + audit_content, + usetime_hour, + overtime_status, + overtime_hour, delete_status, cust_id, create_time, @@ -97,7 +103,10 @@ <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.usetimeHour != null">usetime_hour = #{entity.usetimeHour},</if> + <if test="entity.overtimeStatus != null">overtime_status = #{entity.overtimeStatus},</if> + <if test="entity.overtimeHour != null">overtime_hour = #{entity.overtimeHour},</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> @@ -176,8 +185,17 @@ <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.usetimeHour != null and terms.usetimeHour !=''"> + and usetime_hour = #{terms.usetimeHour} + </if> + <if test="terms.overtimeStatus != null and terms.overtimeStatus !=''"> + and overtime_status = #{terms.overtimeStatus} + </if> + <if test="terms.overtimeHour != null and terms.overtimeHour !=''"> + and overtime_hour = #{terms.overtimeHour} </if> <if test="terms.deleteStatus = null and terms.deleteStatus =''"> and delete_status = 0 @@ -265,4 +283,156 @@ limit #{page.offset}, #{page.size} </select> -</mapper> \ No newline at end of file + <!-- 首页统计 --> + <select id="countApplyReview" 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="windupId" column="windupId"/> + <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"/> + <result property="process" column="process"/> + <result property="auditTime" column="auditTime"/> + <result property="auditResult" column="auditResult"/> + </resultMap> + + <!-- 首页-待审核条件统计 --> + <select id="countMyTaskApplyReview" resultType="java.lang.Long"> + select + COUNT(t1.id) + from + dyh_case_windup_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_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, ''), ifnull(t2.defendants, ''), ifnull(t2.dagents, '')) like concat('%', #{terms.partyName}, '%') + </if> + </select> + <!-- 首页-待审核分页查询 --> + <select id="listMyTaskApplyReview" resultMap="MyTaskApplyReviewResult"> + SELECT t1.id as windupId, t1.case_task_id as ownerId, t1.case_id as caseId, t1.audit_time as auditTime, t1.audit_result_name as auditResult, + t1.apply_time as turnaroundTime, t1.apply_unit_name as organizingUnit, t1.medi_result_name as mediResult, + t1.fail_reason as reason, t2.case_level as caseGrade, t2.canal_name as caseSource, + concat_ws('', ifnull(t2.case_type_first_name, ''), '/' , ifnull(t2.case_type_name, '')) as caseType, concat_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, '')) as plaintiffs, + concat_ws('', ifnull(t2.defendants, ''), ifnull(t2.dagents, '')) as defendants + FROM + dyh_case_windup_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_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, ''), ifnull(t2.defendants, ''), ifnull(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> + + + <!-- 工作台-办理中条件查询-条件 --> + <sql id="mySubmitApplyReview-where-part"> + <if test="terms != null"> + <if test="terms.applyUnitId != null and terms.applyUnitId !=''"> + and t1.apply_unit_id = #{terms.applyUnitId} + </if> + <if test="terms.assistUnitId != null and terms.assistUnitId !=''"> + and t3.assist_unit_id like concat('%', #{terms.assistUnitId}, '%') + </if> + <if test="terms.auditResult != null and terms.auditResult !=''"> + and t1.audit_result = #{terms.auditResult} + </if> + <if test="terms.applyTimeStart != null and terms.applyTimeStart !='' and terms.applyTimeEnd != null and terms.applyTimeEnd !=''"> + and (DATE_FORMAT(t1.apply_time,'%Y-%m-%d') <![CDATA[ >= ]]> #{terms.applyTimeStart} + and DATE_FORMAT(t1.apply_time,'%Y-%m-%d') <![CDATA[ <= ]]> #{terms.applyTimeEnd}) + </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}, '%') + </if> + </if> + </sql> + <!-- 首页-结案申请/已结案条件统计 --> + <select id="countMyTaskJa" resultType="java.lang.Long"> + select + 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 + t1.apply_status = #{terms.applyStatus} + and t2.delete_status = 0 + <include refid="mySubmitApplyReview-where-part"/> + </select> + <!-- 首页-结案申请/已结案分页查询 --> + <select id="listMyTaskJa" resultType="cn.huge.module.cases.domain.dto.FrontPageListJADTO"> + SELECT + t1.id as windupId, t1.case_task_id as ownerId, t1.case_id as caseId, + <if test="terms.applyStatus == 0"> + t1.apply_time as turnaroundTime, + </if> + <if test="terms.applyStatus == 1"> + t1.audit_time as turnaroundTime, + </if> + t1.audit_unit_name as auditUnit, t2.case_level as caseGrade, t2.canal_name as caseSource, concat_ws('', ifnull(t2.case_type_first_name, ''), '/' , ifnull(t2.case_type_name, '')) as caseType, + t3.mediator as manager, t3.assist_unit_name as cooperatingUnit, t3.mediate_unit_name as organizingUnit, + t1.medi_result as mediResult, t1.medi_result_name as mediResultName, t2.status_name as caseStatusName, + concat_ws('', ifnull(t2.plaintiffs, ''), ifnull(t2.pagents, '')) as plaintiffs, concat_ws('', ifnull(t2.defendants, ''), ifnull(t2.dagents, '')) as defendants + 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 + 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 "> + 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> \ No newline at end of file -- Gitblit v1.8.0