forked from gzzfw/backEnd/gz-dyh

dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseWindupApplyMapper.xml
copy from dyh-service/dyh-mediate/src/main/java/cn/huge/module/assist/dao/mapper/xml/CaseAssistApplyMapper.xml copy to dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/dao/mapper/xml/CaseWindupApplyMapper.xml
File was copied from dyh-service/dyh-mediate/src/main/java/cn/huge/module/assist/dao/mapper/xml/CaseAssistApplyMapper.xml
@@ -1,27 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 
 * @title: 联合处置申请信息表
 * @title: 纠纷结案申请信息表
 * @description: 自定义sql,请自行实现业务逻辑
 * @company: hugeinfo
 * @author: wangwh
 * @time:2024-09-05 17:25:04
 * @author: liyj
 * @time:2024-09-06 23:57:02
 * @version 1.0.0
-->
<mapper namespace="cn.huge.module.assist.dao.mapper.CaseAssistApplyMapper">
<mapper namespace="cn.huge.module.cases.dao.mapper.CaseWindupApplyMapper">
    <!-- 结果集 -->
    <resultMap id="dataResult" type="cn.huge.module.assist.domain.po.CaseAssistApply">
    <resultMap id="dataResult" type="cn.huge.module.cases.domain.po.CaseWindupApply">
            <result property="id" column="id"/>
            <result property="caseId" column="case_id"/>
            <result property="applyUnitId" column="apply_unit_id"/>
            <result property="applyUnitName" column="apply_unit_name"/>
            <result property="applyUserId" column="apply_user_id"/>
            <result property="applyUserName" column="apply_user_name"/>
            <result property="applyAssistUnitId" column="apply_assist_unit_id"/>
            <result property="applyAssistUnitName" column="apply_assist_unit_name"/>
            <result property="applyContent" column="apply_content"/>
            <result property="applyTime" column="apply_time"/>
            <result property="applyStatus" column="apply_status"/>
            <result property="mediResult" column="medi_result"/>
            <result property="mediResultName" column="medi_result_name"/>
            <result property="agreeType" column="agree_type"/>
            <result property="agreeTypeName" column="agree_type_name"/>
            <result property="agreeContent" column="agree_content"/>
            <result property="failReason" column="fail_reason"/>
            <result property="windupContent" column="windup_content"/>
            <result property="caseTaskId" column="case_task_id"/>
            <result property="auditUnitId" column="audit_unit_id"/>
            <result property="auditUnitName" column="audit_unit_name"/>
            <result property="auditUserId" column="audit_user_id"/>
@@ -36,7 +41,7 @@
            <result property="updateTime" column="update_time"/>
    </resultMap>
    <!-- 表 -->
    <sql id='table-name'>dyh_case_assist_apply</sql>
    <sql id='table-name'>dyh_case_windup_apply</sql>
    <!-- 字段 -->
    <sql id="column-part">
        id,
@@ -45,11 +50,16 @@
        apply_unit_name,
        apply_user_id,
        apply_user_name,
        apply_assist_unit_id,
        apply_assist_unit_name,
        apply_content,
        apply_time,
        apply_status,
        medi_result,
        medi_result_name,
        agree_type,
        agree_type_name,
        agree_content,
        fail_reason,
        windup_content,
        case_task_id,
        audit_unit_id,
        audit_unit_name,
        audit_user_id,
@@ -70,11 +80,16 @@
            <if test="entity.applyUnitName != null">apply_unit_name = #{entity.applyUnitName},</if>
            <if test="entity.applyUserId != null">apply_user_id = #{entity.applyUserId},</if>
            <if test="entity.applyUserName != null">apply_user_name = #{entity.applyUserName},</if>
            <if test="entity.applyAssistUnitId != null">apply_assist_unit_id = #{entity.applyAssistUnitId},</if>
            <if test="entity.applyAssistUnitName != null">apply_assist_unit_name = #{entity.applyAssistUnitName},</if>
            <if test="entity.applyContent != null">apply_content = #{entity.applyContent},</if>
            <if test="entity.applyTime != null">apply_time = #{entity.applyTime},</if>
            <if test="entity.applyStatus != null">apply_status = #{entity.applyStatus},</if>
            <if test="entity.mediResult != null">medi_result = #{entity.mediResult},</if>
            <if test="entity.mediResultName != null">medi_result_name = #{entity.mediResultName},</if>
            <if test="entity.agreeType != null">agree_type = #{entity.agreeType},</if>
            <if test="entity.agreeTypeName != null">agree_type_name = #{entity.agreeTypeName},</if>
            <if test="entity.agreeContent != null">agree_content = #{entity.agreeContent},</if>
            <if test="entity.failReason != null">fail_reason = #{entity.failReason},</if>
            <if test="entity.windupContent != null">windup_content = #{entity.windupContent},</if>
            <if test="entity.caseTaskId != null">case_task_id = #{entity.caseTaskId},</if>
            <if test="entity.auditUnitId != null">audit_unit_id = #{entity.auditUnitId},</if>
            <if test="entity.auditUnitName != null">audit_unit_name = #{entity.auditUnitName},</if>
            <if test="entity.auditUserId != null">audit_user_id = #{entity.auditUserId},</if>
@@ -110,20 +125,35 @@
                <if test="terms.applyUserName != null and terms.applyUserName !=''">
                    and apply_user_name = #{terms.applyUserName}
                </if>
                <if test="terms.applyAssistUnitId != null and terms.applyAssistUnitId !=''">
                    and apply_assist_unit_id = #{terms.applyAssistUnitId}
                </if>
                <if test="terms.applyAssistUnitName != null and terms.applyAssistUnitName !=''">
                    and apply_assist_unit_name = #{terms.applyAssistUnitName}
                </if>
                <if test="terms.applyContent != null and terms.applyContent !=''">
                    and apply_content = #{terms.applyContent}
                </if>
                <if test="terms.applyTime != null and terms.applyTime !=''">
                    and apply_time = #{terms.applyTime}
                </if>
                <if test="terms.applyStatus != null and terms.applyStatus !=''">
                    and apply_status = #{terms.applyStatus}
                </if>
                <if test="terms.mediResult != null and terms.mediResult !=''">
                    and medi_result = #{terms.mediResult}
                </if>
                <if test="terms.mediResultName != null and terms.mediResultName !=''">
                    and medi_result_name = #{terms.mediResultName}
                </if>
                <if test="terms.agreeType != null and terms.agreeType !=''">
                    and agree_type = #{terms.agreeType}
                </if>
                <if test="terms.agreeTypeName != null and terms.agreeTypeName !=''">
                    and agree_type_name = #{terms.agreeTypeName}
                </if>
                <if test="terms.agreeContent != null and terms.agreeContent !=''">
                    and agree_content = #{terms.agreeContent}
                </if>
                <if test="terms.failReason != null and terms.failReason !=''">
                    and fail_reason = #{terms.failReason}
                </if>
                <if test="terms.windupContent != null and terms.windupContent !=''">
                    and windup_content = #{terms.windupContent}
                </if>
                <if test="terms.caseTaskId != null and terms.caseTaskId !=''">
                    and case_task_id = #{terms.caseTaskId}
                </if>
                <if test="terms.auditUnitId != null and terms.auditUnitId !=''">
                    and audit_unit_id = #{terms.auditUnitId}
@@ -176,7 +206,7 @@
        </if>
    </sql>
    <!-- 更新对象 -->
    <update id="updateCaseAssistApply">
    <update id="updateCaseWindupApply">
        update
        <include refid="table-name"/>
        <set>
@@ -187,7 +217,7 @@
        </where>
    </update>
    <!-- 条件更新对象 -->
    <update id="updateCaseAssistApplyTerms">
    <update id="updateCaseWindupApplyTerms">
        update
        <include refid="table-name"/>
        <set>
@@ -196,7 +226,7 @@
        <include refid="where-part"/>
    </update>
    <!--  根据编号物理删除  -->
    <delete id="deleteCaseAssistApply">
    <delete id="deleteCaseWindupApply">
        delete from
        <include refid="table-name" />
        where id = #{id}