|
|
@@ -36,6 +36,8 @@
|
|
|
<result column="username" jdbcType="VARCHAR" property="username" />
|
|
|
<result column="authentication" jdbcType="INTEGER" property="authentication" />
|
|
|
<result column="introduction" jdbcType="VARCHAR" property="introduction" />
|
|
|
+ <result column="be_invite_code" jdbcType="VARCHAR" property="beInviteCode" />
|
|
|
+ <result column="to_invite_code" jdbcType="VARCHAR" property="toInviteCode" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -114,7 +116,7 @@
|
|
|
id, mobile, password, nickname, email, create_time, number, lvl, type, mid, status,
|
|
|
source, update_time, company_logo_url, head_portrait_url, society_tag, introduction,
|
|
|
value_added_tag, organization_id, identify_name, background_url, audit_opinion, audit_status,
|
|
|
- share_type, aid, transfer_time, username, authentication
|
|
|
+ share_type, aid, transfer_time, username, authentication,be_invite_code,to_invite_code
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.goafanti.common.model.UserExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -180,7 +182,8 @@
|
|
|
introduction, value_added_tag, organization_id,
|
|
|
identify_name, background_url, audit_opinion,
|
|
|
audit_status, share_type, aid,
|
|
|
- transfer_time, username, authentication
|
|
|
+ transfer_time, username, authentication,be_invite_code,to_invite_code
|
|
|
+
|
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
|
|
#{nickname,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
@@ -190,7 +193,9 @@
|
|
|
#{introduction,jdbcType=VARCHAR}, #{valueAddedTag,jdbcType=VARCHAR}, #{organizationId,jdbcType=VARCHAR},
|
|
|
#{identifyName,jdbcType=VARCHAR}, #{backgroundUrl,jdbcType=VARCHAR}, #{auditOpinion,jdbcType=VARCHAR},
|
|
|
#{auditStatus,jdbcType=INTEGER}, #{shareType,jdbcType=INTEGER}, #{aid,jdbcType=VARCHAR},
|
|
|
- #{transferTime,jdbcType=TIMESTAMP}, #{username,jdbcType=VARCHAR}, #{authentication,jdbcType=INTEGER}
|
|
|
+ #{transferTime,jdbcType=TIMESTAMP}, #{username,jdbcType=VARCHAR}, #{authentication,jdbcType=INTEGER},
|
|
|
+ #{beInviteCode,jdbcType=VARCHAR},#{toInviteCode,jdbcType=VARCHAR}
|
|
|
+
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.goafanti.common.model.User">
|
|
|
@@ -285,6 +290,12 @@
|
|
|
<if test="authentication != null">
|
|
|
authentication,
|
|
|
</if>
|
|
|
+ <if test="beInviteCode != null">
|
|
|
+ be_invite_code,
|
|
|
+ </if>
|
|
|
+ <if test="toInviteCode != null">
|
|
|
+ to_invite_code,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -371,6 +382,12 @@
|
|
|
<if test="authentication != null">
|
|
|
#{authentication,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="beInviteCode != null">
|
|
|
+ #{beInviteCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="toInviteCode != null">
|
|
|
+ #{toInviteCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.goafanti.common.model.UserExample" resultType="java.lang.Long">
|
|
|
@@ -515,7 +532,9 @@
|
|
|
aid = #{record.aid,jdbcType=VARCHAR},
|
|
|
transfer_time = #{record.transferTime,jdbcType=TIMESTAMP},
|
|
|
username = #{record.username,jdbcType=VARCHAR},
|
|
|
- authentication = #{record.authentication,jdbcType=INTEGER}
|
|
|
+ authentication = #{record.authentication,jdbcType=INTEGER},
|
|
|
+ be_invite_code = #{beInviteCode,jdbcType=VARCHAR},
|
|
|
+ to_invite_code = #{toInviteCode,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -609,6 +628,12 @@
|
|
|
<if test="authentication != null">
|
|
|
authentication = #{authentication,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="beInviteCode != null">
|
|
|
+ be_invite_code = #{beInviteCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="toInviteCode != null">
|
|
|
+ to_invite_code = #{toInviteCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -645,7 +670,9 @@
|
|
|
aid = #{aid,jdbcType=VARCHAR},
|
|
|
transfer_time = #{transferTime,jdbcType=TIMESTAMP},
|
|
|
username = #{username,jdbcType=VARCHAR},
|
|
|
- authentication = #{authentication,jdbcType=INTEGER}
|
|
|
+ authentication = #{authentication,jdbcType=INTEGER},
|
|
|
+ be_invite_code = #{beInviteCode,jdbcType=VARCHAR},
|
|
|
+ to_invite_code = #{toInviteCode,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
@@ -1256,5 +1283,13 @@
|
|
|
and source=0
|
|
|
and audit_status=2
|
|
|
</select>
|
|
|
+ <select id="getInvitationCode" resultType="java.lang.String">
|
|
|
+ select to_invite_code from `user` where id= #{uid,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <select id="getToBackgroundUrl" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from `user` from to_invite_code= #{toInviteCode,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|