|
@@ -21,6 +21,7 @@
|
|
<result column="role" jdbcType="VARCHAR" property="role" />
|
|
<result column="role" jdbcType="VARCHAR" property="role" />
|
|
<result column="job" jdbcType="VARCHAR" property="job" />
|
|
<result column="job" jdbcType="VARCHAR" property="job" />
|
|
<result column="area" jdbcType="VARCHAR" property="area" />
|
|
<result column="area" jdbcType="VARCHAR" property="area" />
|
|
|
|
+ <result column="is_sso" jdbcType="VARCHAR" property="isSso" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<where>
|
|
@@ -81,9 +82,9 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<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
|
|
|
|
|
|
+ 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
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="cn.kdan.pdf.tech.core.model.VppMemberExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="cn.kdan.pdf.tech.core.model.VppMemberExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
@@ -100,7 +101,7 @@
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
- select
|
|
|
|
|
|
+ select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
from vpp_member
|
|
from vpp_member
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
@@ -116,20 +117,20 @@
|
|
</if>
|
|
</if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="cn.kdan.pdf.tech.core.model.VppMember">
|
|
<insert id="insert" parameterType="cn.kdan.pdf.tech.core.model.VppMember">
|
|
- insert into vpp_member (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)
|
|
|
|
- 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})
|
|
|
|
|
|
+ insert into vpp_member (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)
|
|
|
|
+ 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})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="cn.kdan.pdf.tech.core.model.VppMember">
|
|
<insert id="insertSelective" parameterType="cn.kdan.pdf.tech.core.model.VppMember">
|
|
insert into vpp_member
|
|
insert into vpp_member
|
|
@@ -183,7 +184,7 @@
|
|
reset_token,
|
|
reset_token,
|
|
</if>
|
|
</if>
|
|
<if test="role != null">
|
|
<if test="role != null">
|
|
- role,
|
|
|
|
|
|
+ `role`,
|
|
</if>
|
|
</if>
|
|
<if test="job != null">
|
|
<if test="job != null">
|
|
job,
|
|
job,
|
|
@@ -191,6 +192,9 @@
|
|
<if test="area != null">
|
|
<if test="area != null">
|
|
area,
|
|
area,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isSso != null">
|
|
|
|
+ is_sso,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
@@ -250,6 +254,9 @@
|
|
<if test="area != null">
|
|
<if test="area != null">
|
|
#{area,jdbcType=VARCHAR},
|
|
#{area,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isSso != null">
|
|
|
|
+ #{isSso,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<select id="countByExample" parameterType="cn.kdan.pdf.tech.core.model.VppMemberExample" resultType="java.lang.Long">
|
|
<select id="countByExample" parameterType="cn.kdan.pdf.tech.core.model.VppMemberExample" resultType="java.lang.Long">
|
|
@@ -310,7 +317,7 @@
|
|
reset_token = #{row.resetToken,jdbcType=INTEGER},
|
|
reset_token = #{row.resetToken,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="row.role != null">
|
|
<if test="row.role != null">
|
|
- role = #{row.role,jdbcType=VARCHAR},
|
|
|
|
|
|
+ `role` = #{row.role,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="row.job != null">
|
|
<if test="row.job != null">
|
|
job = #{row.job,jdbcType=VARCHAR},
|
|
job = #{row.job,jdbcType=VARCHAR},
|
|
@@ -318,6 +325,9 @@
|
|
<if test="row.area != null">
|
|
<if test="row.area != null">
|
|
area = #{row.area,jdbcType=VARCHAR},
|
|
area = #{row.area,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="row.isSso != null">
|
|
|
|
+ is_sso = #{row.isSso,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
<if test="example != null">
|
|
<if test="example != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -341,9 +351,10 @@
|
|
last_presented_coupon_at = #{row.lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
last_presented_coupon_at = #{row.lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
mailable = #{row.mailable,jdbcType=INTEGER},
|
|
mailable = #{row.mailable,jdbcType=INTEGER},
|
|
reset_token = #{row.resetToken,jdbcType=INTEGER},
|
|
reset_token = #{row.resetToken,jdbcType=INTEGER},
|
|
- role = #{row.role,jdbcType=VARCHAR},
|
|
|
|
|
|
+ `role` = #{row.role,jdbcType=VARCHAR},
|
|
job = #{row.job,jdbcType=VARCHAR},
|
|
job = #{row.job,jdbcType=VARCHAR},
|
|
- area = #{row.area,jdbcType=VARCHAR}
|
|
|
|
|
|
+ area = #{row.area,jdbcType=VARCHAR},
|
|
|
|
+ is_sso = #{row.isSso,jdbcType=VARCHAR}
|
|
<if test="example != null">
|
|
<if test="example != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
@@ -397,7 +408,7 @@
|
|
reset_token = #{resetToken,jdbcType=INTEGER},
|
|
reset_token = #{resetToken,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
<if test="role != null">
|
|
<if test="role != null">
|
|
- role = #{role,jdbcType=VARCHAR},
|
|
|
|
|
|
+ `role` = #{role,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="job != null">
|
|
<if test="job != null">
|
|
job = #{job,jdbcType=VARCHAR},
|
|
job = #{job,jdbcType=VARCHAR},
|
|
@@ -405,6 +416,9 @@
|
|
<if test="area != null">
|
|
<if test="area != null">
|
|
area = #{area,jdbcType=VARCHAR},
|
|
area = #{area,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="isSso != null">
|
|
|
|
+ is_sso = #{isSso,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
</update>
|
|
@@ -425,9 +439,10 @@
|
|
last_presented_coupon_at = #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
last_presented_coupon_at = #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
mailable = #{mailable,jdbcType=INTEGER},
|
|
mailable = #{mailable,jdbcType=INTEGER},
|
|
reset_token = #{resetToken,jdbcType=INTEGER},
|
|
reset_token = #{resetToken,jdbcType=INTEGER},
|
|
- role = #{role,jdbcType=VARCHAR},
|
|
|
|
|
|
+ `role` = #{role,jdbcType=VARCHAR},
|
|
job = #{job,jdbcType=VARCHAR},
|
|
job = #{job,jdbcType=VARCHAR},
|
|
- area = #{area,jdbcType=VARCHAR}
|
|
|
|
|
|
+ area = #{area,jdbcType=VARCHAR},
|
|
|
|
+ is_sso = #{isSso,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
</update>
|
|
<select id="selectByExampleWithRowbounds" parameterType="cn.kdan.pdf.tech.core.model.VppMemberExample" resultMap="BaseResultMap">
|
|
<select id="selectByExampleWithRowbounds" parameterType="cn.kdan.pdf.tech.core.model.VppMemberExample" resultMap="BaseResultMap">
|
|
@@ -444,4 +459,4 @@
|
|
order by ${orderByClause}
|
|
order by ${orderByClause}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
-</mapper>
|
|
|
|
|
|
+</mapper>
|