|
|
@@ -26,12 +26,13 @@
|
|
|
<result column="payment_date" property="paymentDate" jdbcType="TIMESTAMP" />
|
|
|
<result column="expert" property="expert" jdbcType="INTEGER" />
|
|
|
<result column="celebrity" property="celebrity" jdbcType="INTEGER" />
|
|
|
+ <result column="international_flag" jdbcType="INTEGER" property="internationalFlag" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, uid, username, sex, date_of_birth_year, date_of_birth_month, id_number, positive_id_url,
|
|
|
opposite_id_url, aft_username, province, city, area, contact_mobile, bank_name, bank_account,
|
|
|
bank_card_number, amount_money, audit_status, process , wrong_count, payment_date,
|
|
|
- expert, celebrity
|
|
|
+ expert, celebrity, international_flag
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
@@ -51,7 +52,7 @@
|
|
|
area, contact_mobile, bank_name,
|
|
|
bank_account, bank_card_number, amount_money,
|
|
|
audit_status, process, wrong_count, payment_date,
|
|
|
- expert, celebrity)
|
|
|
+ expert, celebrity,international_flag)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
|
|
|
#{sex,jdbcType=VARCHAR}, #{dateOfBirthYear,jdbcType=VARCHAR}, #{dateOfBirthMonth,jdbcType=VARCHAR},
|
|
|
#{idNumber,jdbcType=VARCHAR}, #{positiveIdUrl,jdbcType=VARCHAR}, #{oppositeIdUrl,jdbcType=VARCHAR},
|
|
|
@@ -59,7 +60,7 @@
|
|
|
#{area,jdbcType=INTEGER}, #{contactMobile,jdbcType=VARCHAR}, #{bankName,jdbcType=VARCHAR},
|
|
|
#{bankAccount,jdbcType=VARCHAR}, #{bankCardNumber,jdbcType=VARCHAR}, #{amountMoney,jdbcType=DECIMAL},
|
|
|
#{auditStatus,jdbcType=INTEGER}, #{process,jdbcType=INTEGER}, #{wrongCount,jdbcType=INTEGER}, #{paymentDate,jdbcType=TIMESTAMP},
|
|
|
- #{expert,jdbcType=INTEGER}, #{celebrity,jdbcType=INTEGER})
|
|
|
+ #{expert,jdbcType=INTEGER}, #{celebrity,jdbcType=INTEGER},#{internationalFlag,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.UserIdentity" >
|
|
|
insert into user_identity
|
|
|
@@ -136,6 +137,9 @@
|
|
|
<if test="celebrity != null" >
|
|
|
celebrity,
|
|
|
</if>
|
|
|
+ <if test="internationalFlag != null">
|
|
|
+ international_flag,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
@@ -210,6 +214,9 @@
|
|
|
<if test="celebrity != null" >
|
|
|
#{celebrity,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="internationalFlag != null">
|
|
|
+ #{internationalFlag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.UserIdentity" >
|
|
|
@@ -284,6 +291,9 @@
|
|
|
<if test="celebrity != null" >
|
|
|
celebrity = #{celebrity,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="internationalFlag != null">
|
|
|
+ international_flag = #{internationalFlag,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -311,7 +321,8 @@
|
|
|
wrong_count = #{wrongCount,jdbcType=INTEGER},
|
|
|
payment_date = #{paymentDate,jdbcType=TIMESTAMP},
|
|
|
expert = #{expert,jdbcType=INTEGER},
|
|
|
- celebrity = #{celebrity,jdbcType=INTEGER}
|
|
|
+ celebrity = #{celebrity,jdbcType=INTEGER},
|
|
|
+ international_flag = #{internationalFlag,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|