Files
zxjp-web/coolstore-partner-dao/src/main/resources/mapper/HyPartnerCertificationInfoMapper.xml
2023-06-19 18:42:01 +08:00

241 lines
9.5 KiB
XML

<?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.cool.store.mapper.HyPartnerCertificationInfoMapper">
<resultMap id="BaseResultMap" type="com.cool.store.entity.HyPartnerCertificationInfoDO">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="partner_id" jdbcType="VARCHAR" property="partnerId" />
<result column="partner_line_id" jdbcType="BIGINT" property="partnerLineId" />
<result column="partner_interview_id" jdbcType="BIGINT" property="partnerInterviewId" />
<result column="partnership" jdbcType="VARCHAR" property="partnership" />
<result column="want_sign_time" jdbcType="TIMESTAMP" property="wantSignTime" />
<result column="partner_fee" jdbcType="VARCHAR" property="partnerFee" />
<result column="security_fund" jdbcType="VARCHAR" property="securityFund" />
<result column="technical_service_fee" jdbcType="VARCHAR" property="technicalServiceFee" />
<result column="intention_money" jdbcType="VARCHAR" property="intentionMoney" />
<result column="intention_signer_username" jdbcType="VARCHAR" property="intentionSignerUsername" />
<result column="intention_signer_mobile" jdbcType="VARCHAR" property="intentionSignerMobile" />
<result column="intention_edu" jdbcType="VARCHAR" property="intentionEdu" />
<result column="real_control_username" jdbcType="VARCHAR" property="realControlUsername" />
<result column="real_control_idcard" jdbcType="VARCHAR" property="realControlIdcard" />
<result column="signer_real_control_relation" jdbcType="VARCHAR" property="signerRealControlRelation" />
<result column="signer_other_real_control_relation" jdbcType="VARCHAR" property="signerOtherRealControlRelation" />
<result column="signer_real_control_relation_cert" jdbcType="VARCHAR" property="signerRealControlRelationCert" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
id, partner_id, partner_line_id, partner_interview_id, partnership, want_sign_time,
partner_fee, security_fund, technical_service_fee, intention_money,
intention_signer_username, intention_signer_mobile, intention_edu, real_control_username,
real_control_idcard, signer_real_control_relation, signer_other_real_control_relation,
signer_real_control_relation_cert, create_time, update_time
</sql>
<insert id="insertSelective" keyColumn="id" keyProperty="record.id" useGeneratedKeys="true">
insert into hy_partner_certification_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="record.partnerId != null">
partner_id,
</if>
<if test="record.partnerLineId != null">
partner_line_id,
</if>
<if test="record.partnerInterviewId != null">
partner_interview_id,
</if>
<if test="record.partnership != null">
partnership,
</if>
<if test="record.wantSignTime != null">
want_sign_time,
</if>
<if test="record.partnerFee != null">
partner_fee,
</if>
<if test="record.securityFund != null">
security_fund,
</if>
<if test="record.technicalServiceFee != null">
technical_service_fee,
</if>
<if test="record.intentionMoney != null">
intention_money,
</if>
<if test="record.intentionSignerUsername != null">
intention_signer_username,
</if>
<if test="record.intentionSignerMobile != null">
intention_signer_mobile,
</if>
<if test="record.intentionEdu != null">
intention_edu,
</if>
<if test="record.realControlUsername != null">
real_control_username,
</if>
<if test="record.realControlIdcard != null">
real_control_idcard,
</if>
<if test="record.signerRealControlRelation != null">
signer_real_control_relation,
</if>
<if test="record.signerOtherRealControlRelation != null">
signer_other_real_control_relation,
</if>
<if test="record.signerRealControlRelationCert != null">
signer_real_control_relation_cert,
</if>
<if test="record.createTime != null">
create_time,
</if>
<if test="record.updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="record.partnerId != null">
#{record.partnerId},
</if>
<if test="record.partnerLineId != null">
#{record.partnerLineId},
</if>
<if test="record.partnerInterviewId != null">
#{record.partnerInterviewId},
</if>
<if test="record.partnership != null">
#{record.partnership},
</if>
<if test="record.wantSignTime != null">
#{record.wantSignTime},
</if>
<if test="record.dataSource != null">
#{record.dataSource},
</if>
<if test="record.partnerFee != null">
#{record.partnerFee},
</if>
<if test="record.securityFund != null">
#{record.securityFund},
</if>
<if test="record.technicalServiceFee != null">
#{record.technicalServiceFee},
</if>
<if test="record.intentionMoney != null">
#{record.intentionMoney},
</if>
<if test="record.intentionSignerUsername != null">
#{record.intentionSignerUsername},
</if>
<if test="record.intentionSignerMobile != null">
#{record.intentionSignerMobile},
</if>
<if test="record.intentionEdu != null">
#{record.intentionEdu},
</if>
<if test="record.realControlUsername != null">
#{record.realControlUsername},
</if>
<if test="record.realControlIdcard != null">
#{record.realControlIdcard},
</if>
<if test="record.signerRealControlRelation != null">
#{record.signerRealControlRelation},
</if>
<if test="record.signerOtherRealControlRelation != null">
#{record.signerOtherRealControlRelation},
</if>
<if test="record.signerRealControlRelationCert != null">
#{record.signerRealControlRelationCert},
</if>
<if test="record.createTime != null">
#{record.createTime},
</if>
<if test="record.updateTime != null">
#{record.updateTime},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective">
update hy_partner_certification_info
<set>
<if test="record.partnerId != null">
partner_id = #{record.partnerId},
</if>
<if test="record.partnerLineId != null">
partner_line_id = #{record.partnerLineId},
</if>
<if test="record.partnerInterviewId != null">
partner_interview_id = #{record.partnerInterviewId},
</if>
<if test="record.partnership != null">
partnership = #{record.partnership},
</if>
<if test="record.qualifyVerifyId != null">
qualify_verify_id = #{record.qualifyVerifyId},
</if>
<if test="record.intentionContractNo != null">
intention_contract_no = #{record.intentionContractNo},
</if>
<if test="record.wantSignTime != null">
want_sign_time = #{record.wantSignTime},
</if>
<if test="record.partnerFee != null">
partner_fee = #{record.partnerFee},
</if>
<if test="record.securityFund != null">
security_fund = #{record.securityFund},
</if>
<if test="record.technicalServiceFee != null">
technical_service_fee = #{record.technicalServiceFee},
</if>
<if test="record.intentionMoney != null">
intention_money = #{record.intentionMoney},
</if>
<if test="record.intentionSignerUsername != null">
intention_signer_username = #{record.intentionSignerUsername},
</if>
<if test="record.intentionSignerMobile != null">
intention_signer_mobile = #{record.intentionSignerMobile},
</if>
<if test="record.intentionEdu != null">
intention_edu = #{record.intentionEdu},
</if>
<if test="record.realControlUsername != null">
real_control_username = #{record.realControlUsername},
</if>
<if test="record.realControlIdcard != null">
real_control_idcard = #{record.realControlIdcard},
</if>
<if test="record.signerRealControlRelation != null">
signer_real_control_relation = #{record.signerRealControlRelation},
</if>
<if test="record.signerOtherRealControlRelation != null">
signer_other_real_control_relation = #{record.signerOtherRealControlRelation},
</if>
<if test="record.signerRealControlRelationCert != null">
signer_real_control_relation_cert = #{record.signerRealControlRelationCert},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime},
</if>
</set>
<where>
1 = 0
<if test="record.id != null">
or id = #{record.id}
</if>
<if test="record.partnerLineId != null">
or partner_id_line_id = #{record.partnerLineId}
</if>
</where>
</update>
<!-- 根据资质审核流程 id 获取面试会议 id -->
<select id="getInterviewIdByQualifyVerifyId" resultType="java.lang.String">
select partner_interview_id
from hy_partner_certification_info
where qualify_verify_id = #{qualifyVerifyId}
</select>
</mapper>