|
@@ -0,0 +1,127 @@
|
|
|
+<?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">
|
|
|
+<mapper namespace="com.ruoyi.opt.mapper.ProcessInfoMapper">
|
|
|
+
|
|
|
+ <resultMap type="ProcessInfo" id="ProcessInfoResult">
|
|
|
+ <result property="pId" column="p_id" />
|
|
|
+ <result property="processId" column="process_id" />
|
|
|
+ <result property="processStsCd" column="process_sts_cd" />
|
|
|
+ <result property="premiumAmt" column="premium_amt" />
|
|
|
+ <result property="loanAmt" column="loan_amt" />
|
|
|
+ <result property="policySignUrl" column="policy_sign_url" />
|
|
|
+ <result property="policyDlUrl" column="policy_dl_url" />
|
|
|
+ <result property="eInvoiceUrl" column="e_invoice_url" />
|
|
|
+ <result property="projectId" column="project_id" />
|
|
|
+ <result property="companyId" column="company_id" />
|
|
|
+ <result property="expireTime" column="expire_time" />
|
|
|
+ <result property="approvedTime" column="approved_time" />
|
|
|
+ <result property="postscript" column="postscript" />
|
|
|
+ <result property="rejectReason" column="reject_reason" />
|
|
|
+ <result property="applyTime" column="apply_time" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectProcessInfoVo">
|
|
|
+ select p_id, process_id, process_sts_cd, premium_amt, loan_amt, policy_sign_url, policy_dl_url, e_invoice_url, project_id, company_id, expire_time, approved_time, postscript, reject_reason, apply_time, create_by, update_by, update_time from t_process_info
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectProcessInfoList" parameterType="ProcessInfo" resultMap="ProcessInfoResult">
|
|
|
+ <include refid="selectProcessInfoVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="processId != null and processId != ''"> and process_id like concat('%', #{processId}, '%')</if>
|
|
|
+ <if test="processStsCd != null and processStsCd != ''"> and process_sts_cd = #{processStsCd}</if>
|
|
|
+ <if test="projectId != null "> and project_id like concat('%', #{projectId}, '%')</if>
|
|
|
+ <if test="companyId != null "> and company_id like concat('%', #{companyId}, '%')</if>
|
|
|
+ <if test="params.beginApplyTime != null and params.beginApplyTime != '' and params.endApplyTime != null and params.endApplyTime != ''"> and apply_time between #{params.beginApplyTime} and #{params.endApplyTime}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectProcessInfoByPId" parameterType="Long" resultMap="ProcessInfoResult">
|
|
|
+ <include refid="selectProcessInfoVo"/>
|
|
|
+ where p_id = #{pId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertProcessInfo" parameterType="ProcessInfo">
|
|
|
+ insert into t_process_info
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="pId != null">p_id,</if>
|
|
|
+ <if test="processId != null">process_id,</if>
|
|
|
+ <if test="processStsCd != null">process_sts_cd,</if>
|
|
|
+ <if test="premiumAmt != null">premium_amt,</if>
|
|
|
+ <if test="loanAmt != null">loan_amt,</if>
|
|
|
+ <if test="policySignUrl != null">policy_sign_url,</if>
|
|
|
+ <if test="policyDlUrl != null">policy_dl_url,</if>
|
|
|
+ <if test="eInvoiceUrl != null">e_invoice_url,</if>
|
|
|
+ <if test="projectId != null">project_id,</if>
|
|
|
+ <if test="companyId != null">company_id,</if>
|
|
|
+ <if test="expireTime != null">expire_time,</if>
|
|
|
+ <if test="approvedTime != null">approved_time,</if>
|
|
|
+ <if test="postscript != null">postscript,</if>
|
|
|
+ <if test="rejectReason != null">reject_reason,</if>
|
|
|
+ <if test="applyTime != null">apply_time,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="pId != null">#{pId},</if>
|
|
|
+ <if test="processId != null">#{processId},</if>
|
|
|
+ <if test="processStsCd != null">#{processStsCd},</if>
|
|
|
+ <if test="premiumAmt != null">#{premiumAmt},</if>
|
|
|
+ <if test="loanAmt != null">#{loanAmt},</if>
|
|
|
+ <if test="policySignUrl != null">#{policySignUrl},</if>
|
|
|
+ <if test="policyDlUrl != null">#{policyDlUrl},</if>
|
|
|
+ <if test="eInvoiceUrl != null">#{eInvoiceUrl},</if>
|
|
|
+ <if test="projectId != null">#{projectId},</if>
|
|
|
+ <if test="companyId != null">#{companyId},</if>
|
|
|
+ <if test="expireTime != null">#{expireTime},</if>
|
|
|
+ <if test="approvedTime != null">#{approvedTime},</if>
|
|
|
+ <if test="postscript != null">#{postscript},</if>
|
|
|
+ <if test="rejectReason != null">#{rejectReason},</if>
|
|
|
+ <if test="applyTime != null">#{applyTime},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateProcessInfo" parameterType="ProcessInfo">
|
|
|
+ update t_process_info
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="processId != null">process_id = #{processId},</if>
|
|
|
+ <if test="processStsCd != null">process_sts_cd = #{processStsCd},</if>
|
|
|
+ <if test="premiumAmt != null">premium_amt = #{premiumAmt},</if>
|
|
|
+ <if test="loanAmt != null">loan_amt = #{loanAmt},</if>
|
|
|
+ <if test="policySignUrl != null">policy_sign_url = #{policySignUrl},</if>
|
|
|
+ <if test="policyDlUrl != null">policy_dl_url = #{policyDlUrl},</if>
|
|
|
+ <if test="eInvoiceUrl != null">e_invoice_url = #{eInvoiceUrl},</if>
|
|
|
+ <if test="projectId != null">project_id = #{projectId},</if>
|
|
|
+ <if test="companyId != null">company_id = #{companyId},</if>
|
|
|
+ <if test="expireTime != null">expire_time = #{expireTime},</if>
|
|
|
+ <if test="approvedTime != null">approved_time = #{approvedTime},</if>
|
|
|
+ <if test="postscript != null">postscript = #{postscript},</if>
|
|
|
+ <if test="rejectReason != null">reject_reason = #{rejectReason},</if>
|
|
|
+ <if test="applyTime != null">apply_time = #{applyTime},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ where p_id = #{pId}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteProcessInfoByPId" parameterType="Long">
|
|
|
+ delete from t_process_info where p_id = #{pId}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteProcessInfoByPIds" parameterType="String">
|
|
|
+ delete from t_process_info where p_id in
|
|
|
+ <foreach item="pId" collection="array" open="(" separator="," close=")">
|
|
|
+ #{pId}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+
|
|
|
+</mapper>
|