|
@@ -22,6 +22,7 @@
|
|
|
<result column="job" jdbcType="VARCHAR" property="job" />
|
|
|
<result column="area" jdbcType="VARCHAR" property="area" />
|
|
|
<result column="is_sso" jdbcType="VARCHAR" property="isSso" />
|
|
|
+ <result column="directory_id" jdbcType="VARCHAR" property="directoryId" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -84,7 +85,7 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
id, email, full_name, subscriber_type, created_at, updated_at, subscribed, digest_password,
|
|
|
phone, valid_flag, industry, company_id, last_popularize_at, last_presented_coupon_at,
|
|
|
- mailable, reset_token, "role", job, area, is_sso
|
|
|
+ mailable, reset_token, "role", job, area, is_sso, directory_id
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="cn.kdan.pdf.tech.core.model.VppMemberExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -123,14 +124,16 @@
|
|
|
valid_flag, industry, company_id,
|
|
|
last_popularize_at, last_presented_coupon_at,
|
|
|
mailable, reset_token, "role",
|
|
|
- job, area, is_sso)
|
|
|
+ job, area, is_sso, directory_id
|
|
|
+ )
|
|
|
values (#{id,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR},
|
|
|
#{subscriberType,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
#{subscribed,jdbcType=INTEGER}, #{digestPassword,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
|
|
|
#{validFlag,jdbcType=VARCHAR}, #{industry,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR},
|
|
|
#{lastPopularizeAt,jdbcType=INTEGER}, #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
|
#{mailable,jdbcType=INTEGER}, #{resetToken,jdbcType=INTEGER}, #{role,jdbcType=VARCHAR},
|
|
|
- #{job,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{isSso,jdbcType=VARCHAR})
|
|
|
+ #{job,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{isSso,jdbcType=VARCHAR}, #{directoryId,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="cn.kdan.pdf.tech.core.model.VppMember">
|
|
|
insert into vpp_member
|
|
@@ -195,6 +198,9 @@
|
|
|
<if test="isSso != null">
|
|
|
is_sso,
|
|
|
</if>
|
|
|
+ <if test="directoryId != null">
|
|
|
+ directory_id,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
@@ -257,6 +263,9 @@
|
|
|
<if test="isSso != null">
|
|
|
#{isSso,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="directoryId != null">
|
|
|
+ #{directoryId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="cn.kdan.pdf.tech.core.model.VppMemberExample" resultType="java.lang.Long">
|
|
@@ -328,6 +337,9 @@
|
|
|
<if test="row.isSso != null">
|
|
|
is_sso = #{row.isSso,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="row.directoryId != null">
|
|
|
+ directory_id = #{row.directoryId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -354,7 +366,8 @@
|
|
|
"role" = #{row.role,jdbcType=VARCHAR},
|
|
|
job = #{row.job,jdbcType=VARCHAR},
|
|
|
area = #{row.area,jdbcType=VARCHAR},
|
|
|
- is_sso = #{row.isSso,jdbcType=VARCHAR}
|
|
|
+ is_sso = #{row.isSso,jdbcType=VARCHAR},
|
|
|
+ directory_id = #{row.directoryId,jdbcType=VARCHAR}
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -419,6 +432,9 @@
|
|
|
<if test="isSso != null">
|
|
|
is_sso = #{isSso,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="directoryId != null">
|
|
|
+ directory_id = #{directoryId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
@@ -442,7 +458,8 @@
|
|
|
"role" = #{role,jdbcType=VARCHAR},
|
|
|
job = #{job,jdbcType=VARCHAR},
|
|
|
area = #{area,jdbcType=VARCHAR},
|
|
|
- is_sso = #{isSso,jdbcType=VARCHAR}
|
|
|
+ is_sso = #{isSso,jdbcType=VARCHAR},
|
|
|
+ directory_id = #{directoryId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<select id="selectByExampleWithRowbounds" parameterType="cn.kdan.pdf.tech.core.model.VppMemberExample" resultMap="BaseResultMap">
|