|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.sztzjy.digital_credit.mapper.StuBaseInfoMapper">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.digital_credit.entity.StuBaseInfo">
|
|
|
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
|
<result column="corp_name" jdbcType="VARCHAR" property="corpName" />
|
|
|
|
|
<result column="un_social_credit_code" jdbcType="VARCHAR" property="unSocialCreditCode" />
|
|
|
|
|
<result column="legal_represent" jdbcType="VARCHAR" property="legalRepresent" />
|
|
|
|
@ -25,9 +25,15 @@
|
|
|
|
|
<result column="business_scope" jdbcType="VARCHAR" property="businessScope" />
|
|
|
|
|
<result column="shareholder_name" jdbcType="VARCHAR" property="shareholderName" />
|
|
|
|
|
<result column="sharehold_ratio" jdbcType="VARCHAR" property="shareholdRatio" />
|
|
|
|
|
<result column="shareholder_name_two" jdbcType="VARCHAR" property="shareholderNameTwo" />
|
|
|
|
|
<result column="sharehold_ratio_two" jdbcType="VARCHAR" property="shareholdRatioTwo" />
|
|
|
|
|
<result column="credit_code" jdbcType="VARCHAR" property="creditCode" />
|
|
|
|
|
<result column="case_name" jdbcType="VARCHAR" property="caseName" />
|
|
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
<result column="error_number" jdbcType="INTEGER" property="errorNumber" />
|
|
|
|
|
<result column="sub_state" jdbcType="INTEGER" property="subState" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.digital_credit.entity.StuBaseInfo">
|
|
|
|
|
<result column="case_detail" jdbcType="LONGVARCHAR" property="caseDetail" />
|
|
|
|
@ -95,7 +101,8 @@
|
|
|
|
|
admin_division, reg_capital, paid_up_capital, enter_type, industry, buss_reg_number,
|
|
|
|
|
org_code, tex_identifi_number, tax_qualification, business_term, date_of_approval,
|
|
|
|
|
reg_auth, number_of_insure_person, company_reg_address, business_scope, shareholder_name,
|
|
|
|
|
sharehold_ratio, user_id, create_time, update_time
|
|
|
|
|
sharehold_ratio, shareholder_name_two, sharehold_ratio_two, credit_code, case_name,
|
|
|
|
|
user_id, create_time, update_time, error_number, sub_state
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Blob_Column_List">
|
|
|
|
|
case_detail
|
|
|
|
@ -130,17 +137,17 @@
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
,
|
|
|
|
|
<include refid="Blob_Column_List" />
|
|
|
|
|
from stu_base_info
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
delete from stu_base_info
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfoExample">
|
|
|
|
|
delete from stu_base_info
|
|
|
|
@ -157,9 +164,11 @@
|
|
|
|
|
business_term, date_of_approval, reg_auth,
|
|
|
|
|
number_of_insure_person, company_reg_address,
|
|
|
|
|
business_scope, shareholder_name, sharehold_ratio,
|
|
|
|
|
user_id, create_time, update_time,
|
|
|
|
|
case_detail)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{corpName,jdbcType=VARCHAR}, #{unSocialCreditCode,jdbcType=VARCHAR},
|
|
|
|
|
shareholder_name_two, sharehold_ratio_two,
|
|
|
|
|
credit_code, case_name, user_id,
|
|
|
|
|
create_time, update_time, error_number,
|
|
|
|
|
sub_state, case_detail)
|
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{corpName,jdbcType=VARCHAR}, #{unSocialCreditCode,jdbcType=VARCHAR},
|
|
|
|
|
#{legalRepresent,jdbcType=VARCHAR}, #{bussinsssState,jdbcType=VARCHAR}, #{dateOfEstablish,jdbcType=TIMESTAMP},
|
|
|
|
|
#{adminDivision,jdbcType=VARCHAR}, #{regCapital,jdbcType=VARCHAR}, #{paidUpCapital,jdbcType=VARCHAR},
|
|
|
|
|
#{enterType,jdbcType=VARCHAR}, #{industry,jdbcType=VARCHAR}, #{bussRegNumber,jdbcType=VARCHAR},
|
|
|
|
@ -167,8 +176,10 @@
|
|
|
|
|
#{businessTerm,jdbcType=VARCHAR}, #{dateOfApproval,jdbcType=TIMESTAMP}, #{regAuth,jdbcType=VARCHAR},
|
|
|
|
|
#{numberOfInsurePerson,jdbcType=VARCHAR}, #{companyRegAddress,jdbcType=VARCHAR},
|
|
|
|
|
#{businessScope,jdbcType=VARCHAR}, #{shareholderName,jdbcType=VARCHAR}, #{shareholdRatio,jdbcType=VARCHAR},
|
|
|
|
|
#{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{caseDetail,jdbcType=LONGVARCHAR})
|
|
|
|
|
#{shareholderNameTwo,jdbcType=VARCHAR}, #{shareholdRatioTwo,jdbcType=VARCHAR},
|
|
|
|
|
#{creditCode,jdbcType=VARCHAR}, #{caseName,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{errorNumber,jdbcType=INTEGER},
|
|
|
|
|
#{subState,jdbcType=INTEGER}, #{caseDetail,jdbcType=LONGVARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfo">
|
|
|
|
|
insert into stu_base_info
|
|
|
|
@ -242,6 +253,18 @@
|
|
|
|
|
<if test="shareholdRatio != null">
|
|
|
|
|
sharehold_ratio,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shareholderNameTwo != null">
|
|
|
|
|
shareholder_name_two,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shareholdRatioTwo != null">
|
|
|
|
|
sharehold_ratio_two,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="creditCode != null">
|
|
|
|
|
credit_code,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="caseName != null">
|
|
|
|
|
case_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id,
|
|
|
|
|
</if>
|
|
|
|
@ -251,13 +274,19 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="errorNumber != null">
|
|
|
|
|
error_number,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="subState != null">
|
|
|
|
|
sub_state,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="caseDetail != null">
|
|
|
|
|
case_detail,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="corpName != null">
|
|
|
|
|
#{corpName,jdbcType=VARCHAR},
|
|
|
|
@ -325,6 +354,18 @@
|
|
|
|
|
<if test="shareholdRatio != null">
|
|
|
|
|
#{shareholdRatio,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shareholderNameTwo != null">
|
|
|
|
|
#{shareholderNameTwo,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shareholdRatioTwo != null">
|
|
|
|
|
#{shareholdRatioTwo,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="creditCode != null">
|
|
|
|
|
#{creditCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="caseName != null">
|
|
|
|
|
#{caseName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
#{userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -334,6 +375,12 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="errorNumber != null">
|
|
|
|
|
#{errorNumber,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="subState != null">
|
|
|
|
|
#{subState,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="caseDetail != null">
|
|
|
|
|
#{caseDetail,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -349,7 +396,7 @@
|
|
|
|
|
update stu_base_info
|
|
|
|
|
<set>
|
|
|
|
|
<if test="record.id != null">
|
|
|
|
|
id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.corpName != null">
|
|
|
|
|
corp_name = #{record.corpName,jdbcType=VARCHAR},
|
|
|
|
@ -417,6 +464,18 @@
|
|
|
|
|
<if test="record.shareholdRatio != null">
|
|
|
|
|
sharehold_ratio = #{record.shareholdRatio,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.shareholderNameTwo != null">
|
|
|
|
|
shareholder_name_two = #{record.shareholderNameTwo,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.shareholdRatioTwo != null">
|
|
|
|
|
sharehold_ratio_two = #{record.shareholdRatioTwo,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.creditCode != null">
|
|
|
|
|
credit_code = #{record.creditCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.caseName != null">
|
|
|
|
|
case_name = #{record.caseName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.userId != null">
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -426,6 +485,12 @@
|
|
|
|
|
<if test="record.updateTime != null">
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.errorNumber != null">
|
|
|
|
|
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.subState != null">
|
|
|
|
|
sub_state = #{record.subState,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.caseDetail != null">
|
|
|
|
|
case_detail = #{record.caseDetail,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -436,7 +501,7 @@
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExampleWithBLOBs" parameterType="map">
|
|
|
|
|
update stu_base_info
|
|
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
corp_name = #{record.corpName,jdbcType=VARCHAR},
|
|
|
|
|
un_social_credit_code = #{record.unSocialCreditCode,jdbcType=VARCHAR},
|
|
|
|
|
legal_represent = #{record.legalRepresent,jdbcType=VARCHAR},
|
|
|
|
@ -459,9 +524,15 @@
|
|
|
|
|
business_scope = #{record.businessScope,jdbcType=VARCHAR},
|
|
|
|
|
shareholder_name = #{record.shareholderName,jdbcType=VARCHAR},
|
|
|
|
|
sharehold_ratio = #{record.shareholdRatio,jdbcType=VARCHAR},
|
|
|
|
|
shareholder_name_two = #{record.shareholderNameTwo,jdbcType=VARCHAR},
|
|
|
|
|
sharehold_ratio_two = #{record.shareholdRatioTwo,jdbcType=VARCHAR},
|
|
|
|
|
credit_code = #{record.creditCode,jdbcType=VARCHAR},
|
|
|
|
|
case_name = #{record.caseName,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
|
|
|
|
sub_state = #{record.subState,jdbcType=INTEGER},
|
|
|
|
|
case_detail = #{record.caseDetail,jdbcType=LONGVARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -469,7 +540,7 @@
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update stu_base_info
|
|
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
corp_name = #{record.corpName,jdbcType=VARCHAR},
|
|
|
|
|
un_social_credit_code = #{record.unSocialCreditCode,jdbcType=VARCHAR},
|
|
|
|
|
legal_represent = #{record.legalRepresent,jdbcType=VARCHAR},
|
|
|
|
@ -492,9 +563,15 @@
|
|
|
|
|
business_scope = #{record.businessScope,jdbcType=VARCHAR},
|
|
|
|
|
shareholder_name = #{record.shareholderName,jdbcType=VARCHAR},
|
|
|
|
|
sharehold_ratio = #{record.shareholdRatio,jdbcType=VARCHAR},
|
|
|
|
|
shareholder_name_two = #{record.shareholderNameTwo,jdbcType=VARCHAR},
|
|
|
|
|
sharehold_ratio_two = #{record.shareholdRatioTwo,jdbcType=VARCHAR},
|
|
|
|
|
credit_code = #{record.creditCode,jdbcType=VARCHAR},
|
|
|
|
|
case_name = #{record.caseName,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
|
|
|
|
sub_state = #{record.subState,jdbcType=INTEGER}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -568,6 +645,18 @@
|
|
|
|
|
<if test="shareholdRatio != null">
|
|
|
|
|
sharehold_ratio = #{shareholdRatio,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shareholderNameTwo != null">
|
|
|
|
|
shareholder_name_two = #{shareholderNameTwo,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="shareholdRatioTwo != null">
|
|
|
|
|
sharehold_ratio_two = #{shareholdRatioTwo,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="creditCode != null">
|
|
|
|
|
credit_code = #{creditCode,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="caseName != null">
|
|
|
|
|
case_name = #{caseName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -577,11 +666,17 @@
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="errorNumber != null">
|
|
|
|
|
error_number = #{errorNumber,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="subState != null">
|
|
|
|
|
sub_state = #{subState,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="caseDetail != null">
|
|
|
|
|
case_detail = #{caseDetail,jdbcType=LONGVARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfo">
|
|
|
|
|
update stu_base_info
|
|
|
|
@ -607,11 +702,17 @@
|
|
|
|
|
business_scope = #{businessScope,jdbcType=VARCHAR},
|
|
|
|
|
shareholder_name = #{shareholderName,jdbcType=VARCHAR},
|
|
|
|
|
sharehold_ratio = #{shareholdRatio,jdbcType=VARCHAR},
|
|
|
|
|
shareholder_name_two = #{shareholderNameTwo,jdbcType=VARCHAR},
|
|
|
|
|
sharehold_ratio_two = #{shareholdRatioTwo,jdbcType=VARCHAR},
|
|
|
|
|
credit_code = #{creditCode,jdbcType=VARCHAR},
|
|
|
|
|
case_name = #{caseName,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
error_number = #{errorNumber,jdbcType=INTEGER},
|
|
|
|
|
sub_state = #{subState,jdbcType=INTEGER},
|
|
|
|
|
case_detail = #{caseDetail,jdbcType=LONGVARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfo">
|
|
|
|
|
update stu_base_info
|
|
|
|
@ -637,9 +738,15 @@
|
|
|
|
|
business_scope = #{businessScope,jdbcType=VARCHAR},
|
|
|
|
|
shareholder_name = #{shareholderName,jdbcType=VARCHAR},
|
|
|
|
|
sharehold_ratio = #{shareholdRatio,jdbcType=VARCHAR},
|
|
|
|
|
shareholder_name_two = #{shareholderNameTwo,jdbcType=VARCHAR},
|
|
|
|
|
sharehold_ratio_two = #{shareholdRatioTwo,jdbcType=VARCHAR},
|
|
|
|
|
credit_code = #{creditCode,jdbcType=VARCHAR},
|
|
|
|
|
case_name = #{caseName,jdbcType=VARCHAR},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
error_number = #{errorNumber,jdbcType=INTEGER},
|
|
|
|
|
sub_state = #{subState,jdbcType=INTEGER}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|