|
|
|
@ -42,6 +42,7 @@
|
|
|
|
|
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
|
|
|
|
<result column="sub_state" jdbcType="INTEGER" property="subState" />
|
|
|
|
|
<result column="module" jdbcType="VARCHAR" property="module" />
|
|
|
|
|
<result column="correct_number" jdbcType="INTEGER" property="correctNumber" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
@ -107,7 +108,7 @@
|
|
|
|
|
step_four_c, step_four_d, step_five_a, step_five_b, step_five_c, step_five_d, step_six_a,
|
|
|
|
|
step_six_b, step_six_c, step_six_d, step_seven_a, step_seven_b, step_seven_c, step_seven_d,
|
|
|
|
|
step_eight_a, step_eight_b, step_eight_c, step_eight_d, step_nine_a, step_nine_b,
|
|
|
|
|
step_nine_c, step_nine_d, error_number, user_id, sub_state, module
|
|
|
|
|
step_nine_c, step_nine_d, error_number, user_id, sub_state, module, correct_number
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.digital_credit.entity.StuUserPortraitExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
@ -153,7 +154,7 @@
|
|
|
|
|
step_eight_c, step_eight_d, step_nine_a,
|
|
|
|
|
step_nine_b, step_nine_c, step_nine_d,
|
|
|
|
|
error_number, user_id, sub_state,
|
|
|
|
|
module)
|
|
|
|
|
module, correct_number)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{stepOneA,jdbcType=VARCHAR}, #{stepOneB,jdbcType=VARCHAR},
|
|
|
|
|
#{stepOneC,jdbcType=VARCHAR}, #{stepOneD,jdbcType=VARCHAR}, #{stepTwoA,jdbcType=VARCHAR},
|
|
|
|
|
#{stepTwoB,jdbcType=VARCHAR}, #{stepTwoC,jdbcType=VARCHAR}, #{stepThreeA,jdbcType=VARCHAR},
|
|
|
|
@ -167,7 +168,7 @@
|
|
|
|
|
#{stepEightC,jdbcType=VARCHAR}, #{stepEightD,jdbcType=VARCHAR}, #{stepNineA,jdbcType=VARCHAR},
|
|
|
|
|
#{stepNineB,jdbcType=VARCHAR}, #{stepNineC,jdbcType=VARCHAR}, #{stepNineD,jdbcType=VARCHAR},
|
|
|
|
|
#{errorNumber,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{subState,jdbcType=INTEGER},
|
|
|
|
|
#{module,jdbcType=VARCHAR})
|
|
|
|
|
#{module,jdbcType=VARCHAR}, #{correctNumber,jdbcType=INTEGER})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.StuUserPortrait">
|
|
|
|
|
insert into stu_user_portrait
|
|
|
|
@ -292,6 +293,9 @@
|
|
|
|
|
<if test="module != null">
|
|
|
|
|
module,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="correctNumber != null">
|
|
|
|
|
correct_number,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
@ -414,6 +418,9 @@
|
|
|
|
|
<if test="module != null">
|
|
|
|
|
#{module,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="correctNumber != null">
|
|
|
|
|
#{correctNumber,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.digital_credit.entity.StuUserPortraitExample" resultType="java.lang.Long">
|
|
|
|
@ -545,6 +552,9 @@
|
|
|
|
|
<if test="record.module != null">
|
|
|
|
|
module = #{record.module,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.correctNumber != null">
|
|
|
|
|
correct_number = #{record.correctNumber,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
@ -591,7 +601,8 @@
|
|
|
|
|
error_number = #{record.errorNumber,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{record.userId,jdbcType=VARCHAR},
|
|
|
|
|
sub_state = #{record.subState,jdbcType=INTEGER},
|
|
|
|
|
module = #{record.module,jdbcType=VARCHAR}
|
|
|
|
|
module = #{record.module,jdbcType=VARCHAR},
|
|
|
|
|
correct_number = #{record.correctNumber,jdbcType=INTEGER}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
@ -716,6 +727,9 @@
|
|
|
|
|
<if test="module != null">
|
|
|
|
|
module = #{module,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="correctNumber != null">
|
|
|
|
|
correct_number = #{correctNumber,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
@ -759,7 +773,8 @@
|
|
|
|
|
error_number = #{errorNumber,jdbcType=INTEGER},
|
|
|
|
|
user_id = #{userId,jdbcType=VARCHAR},
|
|
|
|
|
sub_state = #{subState,jdbcType=INTEGER},
|
|
|
|
|
module = #{module,jdbcType=VARCHAR}
|
|
|
|
|
module = #{module,jdbcType=VARCHAR},
|
|
|
|
|
correct_number = #{correctNumber,jdbcType=INTEGER}
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|