|
@@ -3,17 +3,15 @@
|
|
<mapper namespace="cn.kdan.cloud.pdf.office.account.mapper.UserMapper">
|
|
<mapper namespace="cn.kdan.cloud.pdf.office.account.mapper.UserMapper">
|
|
<resultMap id="BaseResultMap" type="cn.kdan.cloud.pdf.office.account.model.User">
|
|
<resultMap id="BaseResultMap" type="cn.kdan.cloud.pdf.office.account.model.User">
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
+ <result column="company_id" jdbcType="VARCHAR" property="companyId" />
|
|
|
|
+ <result column="app_id" jdbcType="VARCHAR" property="appId" />
|
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
|
<result column="email" jdbcType="VARCHAR" property="email" />
|
|
<result column="full_name" jdbcType="VARCHAR" property="fullName" />
|
|
<result column="full_name" jdbcType="VARCHAR" property="fullName" />
|
|
<result column="subscriber_type" jdbcType="INTEGER" property="subscriberType" />
|
|
<result column="subscriber_type" jdbcType="INTEGER" property="subscriberType" />
|
|
- <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
|
|
- <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
|
|
|
<result column="subscribed" jdbcType="INTEGER" property="subscribed" />
|
|
<result column="subscribed" jdbcType="INTEGER" property="subscribed" />
|
|
<result column="digest_password" jdbcType="VARCHAR" property="digestPassword" />
|
|
<result column="digest_password" jdbcType="VARCHAR" property="digestPassword" />
|
|
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
|
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
|
- <result column="valid_flag" jdbcType="VARCHAR" property="validFlag" />
|
|
|
|
<result column="industry" jdbcType="VARCHAR" property="industry" />
|
|
<result column="industry" jdbcType="VARCHAR" property="industry" />
|
|
- <result column="company_id" jdbcType="VARCHAR" property="companyId" />
|
|
|
|
<result column="last_popularize_at" jdbcType="INTEGER" property="lastPopularizeAt" />
|
|
<result column="last_popularize_at" jdbcType="INTEGER" property="lastPopularizeAt" />
|
|
<result column="last_presented_coupon_at" jdbcType="TIMESTAMP" property="lastPresentedCouponAt" />
|
|
<result column="last_presented_coupon_at" jdbcType="TIMESTAMP" property="lastPresentedCouponAt" />
|
|
<result column="mailable" jdbcType="INTEGER" property="mailable" />
|
|
<result column="mailable" jdbcType="INTEGER" property="mailable" />
|
|
@@ -21,8 +19,14 @@
|
|
<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="app_id" jdbcType="VARCHAR" property="appId" />
|
|
|
|
- <result column="platform_type" jdbcType="VARCHAR" property="platformType" />
|
|
|
|
|
|
+ <result column="platform_type" jdbcType="TINYINT" property="platformType" />
|
|
|
|
+ <result column="account_type" jdbcType="TINYINT" property="accountType" />
|
|
|
|
+ <result column="account_source" jdbcType="TINYINT" property="accountSource" />
|
|
|
|
+ <result column="pay_type" jdbcType="TINYINT" property="payType" />
|
|
|
|
+ <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
|
|
|
|
+ <result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
|
|
|
+ <result column="member_type" jdbcType="TINYINT" property="memberType" />
|
|
|
|
+ <result column="valid_flag" jdbcType="VARCHAR" property="validFlag" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="Example_Where_Clause">
|
|
<sql id="Example_Where_Clause">
|
|
<where>
|
|
<where>
|
|
@@ -83,9 +87,10 @@
|
|
</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, app_id, platform_type
|
|
|
|
|
|
+ id, company_id, app_id, email, full_name, subscriber_type, subscribed, digest_password,
|
|
|
|
+ phone, industry, last_popularize_at, last_presented_coupon_at, mailable, reset_token,
|
|
|
|
+ `role`, job, area, platform_type, account_type, account_source, pay_type, created_at,
|
|
|
|
+ updated_at, member_type, valid_flag
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="cn.kdan.cloud.pdf.office.account.model.UserExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="cn.kdan.cloud.pdf.office.account.model.UserExample" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
@@ -118,22 +123,24 @@
|
|
</if>
|
|
</if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
|
|
<insert id="insert" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
|
|
- insert into user (id, email, full_name,
|
|
|
|
- subscriber_type, created_at, updated_at,
|
|
|
|
|
|
+ insert into user (id, company_id, app_id,
|
|
|
|
+ email, full_name, subscriber_type,
|
|
subscribed, digest_password, phone,
|
|
subscribed, digest_password, phone,
|
|
- valid_flag, industry, company_id,
|
|
|
|
- last_popularize_at, last_presented_coupon_at,
|
|
|
|
|
|
+ industry, last_popularize_at, last_presented_coupon_at,
|
|
mailable, reset_token, `role`,
|
|
mailable, reset_token, `role`,
|
|
- job, area, app_id, platform_type
|
|
|
|
- )
|
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR},
|
|
|
|
- #{subscriberType,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ job, area, platform_type,
|
|
|
|
+ account_type, account_source, pay_type,
|
|
|
|
+ created_at, updated_at, member_type,
|
|
|
|
+ valid_flag)
|
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR},
|
|
|
|
+ #{email,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR}, #{subscriberType,jdbcType=INTEGER},
|
|
#{subscribed,jdbcType=INTEGER}, #{digestPassword,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
|
|
#{subscribed,jdbcType=INTEGER}, #{digestPassword,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR},
|
|
- #{validFlag,jdbcType=VARCHAR}, #{industry,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR},
|
|
|
|
- #{lastPopularizeAt,jdbcType=INTEGER}, #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
|
|
|
|
+ #{industry,jdbcType=VARCHAR}, #{lastPopularizeAt,jdbcType=INTEGER}, #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
#{mailable,jdbcType=INTEGER}, #{resetToken,jdbcType=INTEGER}, #{role,jdbcType=VARCHAR},
|
|
#{mailable,jdbcType=INTEGER}, #{resetToken,jdbcType=INTEGER}, #{role,jdbcType=VARCHAR},
|
|
- #{job,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{appId,jdbcType=VARCHAR}, #{platformType,jdbcType=VARCHAR}
|
|
|
|
- )
|
|
|
|
|
|
+ #{job,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{platformType,jdbcType=TINYINT},
|
|
|
|
+ #{accountType,jdbcType=TINYINT}, #{accountSource,jdbcType=TINYINT}, #{payType,jdbcType=TINYINT},
|
|
|
|
+ #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{memberType,jdbcType=TINYINT},
|
|
|
|
+ #{validFlag,jdbcType=VARCHAR})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
|
|
<insert id="insertSelective" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
|
|
insert into user
|
|
insert into user
|
|
@@ -141,6 +148,12 @@
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
id,
|
|
id,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="companyId != null">
|
|
|
|
+ company_id,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="appId != null">
|
|
|
|
+ app_id,
|
|
|
|
+ </if>
|
|
<if test="email != null">
|
|
<if test="email != null">
|
|
email,
|
|
email,
|
|
</if>
|
|
</if>
|
|
@@ -150,12 +163,6 @@
|
|
<if test="subscriberType != null">
|
|
<if test="subscriberType != null">
|
|
subscriber_type,
|
|
subscriber_type,
|
|
</if>
|
|
</if>
|
|
- <if test="createdAt != null">
|
|
|
|
- created_at,
|
|
|
|
- </if>
|
|
|
|
- <if test="updatedAt != null">
|
|
|
|
- updated_at,
|
|
|
|
- </if>
|
|
|
|
<if test="subscribed != null">
|
|
<if test="subscribed != null">
|
|
subscribed,
|
|
subscribed,
|
|
</if>
|
|
</if>
|
|
@@ -165,15 +172,9 @@
|
|
<if test="phone != null">
|
|
<if test="phone != null">
|
|
phone,
|
|
phone,
|
|
</if>
|
|
</if>
|
|
- <if test="validFlag != null">
|
|
|
|
- valid_flag,
|
|
|
|
- </if>
|
|
|
|
<if test="industry != null">
|
|
<if test="industry != null">
|
|
industry,
|
|
industry,
|
|
</if>
|
|
</if>
|
|
- <if test="companyId != null">
|
|
|
|
- company_id,
|
|
|
|
- </if>
|
|
|
|
<if test="lastPopularizeAt != null">
|
|
<if test="lastPopularizeAt != null">
|
|
last_popularize_at,
|
|
last_popularize_at,
|
|
</if>
|
|
</if>
|
|
@@ -195,17 +196,41 @@
|
|
<if test="area != null">
|
|
<if test="area != null">
|
|
area,
|
|
area,
|
|
</if>
|
|
</if>
|
|
- <if test="appId != null">
|
|
|
|
- app_id,
|
|
|
|
- </if>
|
|
|
|
<if test="platformType != null">
|
|
<if test="platformType != null">
|
|
platform_type,
|
|
platform_type,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="accountType != null">
|
|
|
|
+ account_type,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="accountSource != null">
|
|
|
|
+ account_source,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="payType != null">
|
|
|
|
+ pay_type,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createdAt != null">
|
|
|
|
+ created_at,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updatedAt != null">
|
|
|
|
+ updated_at,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="memberType != null">
|
|
|
|
+ member_type,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="validFlag != null">
|
|
|
|
+ valid_flag,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
<if test="id != null">
|
|
#{id,jdbcType=VARCHAR},
|
|
#{id,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="companyId != null">
|
|
|
|
+ #{companyId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="appId != null">
|
|
|
|
+ #{appId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="email != null">
|
|
<if test="email != null">
|
|
#{email,jdbcType=VARCHAR},
|
|
#{email,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -215,12 +240,6 @@
|
|
<if test="subscriberType != null">
|
|
<if test="subscriberType != null">
|
|
#{subscriberType,jdbcType=INTEGER},
|
|
#{subscriberType,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="createdAt != null">
|
|
|
|
- #{createdAt,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
- <if test="updatedAt != null">
|
|
|
|
- #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
<if test="subscribed != null">
|
|
<if test="subscribed != null">
|
|
#{subscribed,jdbcType=INTEGER},
|
|
#{subscribed,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -230,15 +249,9 @@
|
|
<if test="phone != null">
|
|
<if test="phone != null">
|
|
#{phone,jdbcType=VARCHAR},
|
|
#{phone,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="validFlag != null">
|
|
|
|
- #{validFlag,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="industry != null">
|
|
<if test="industry != null">
|
|
#{industry,jdbcType=VARCHAR},
|
|
#{industry,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="companyId != null">
|
|
|
|
- #{companyId,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="lastPopularizeAt != null">
|
|
<if test="lastPopularizeAt != null">
|
|
#{lastPopularizeAt,jdbcType=INTEGER},
|
|
#{lastPopularizeAt,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -260,11 +273,29 @@
|
|
<if test="area != null">
|
|
<if test="area != null">
|
|
#{area,jdbcType=VARCHAR},
|
|
#{area,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="appId != null">
|
|
|
|
- #{appId,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="platformType != null">
|
|
<if test="platformType != null">
|
|
- #{platformType,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{platformType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="accountType != null">
|
|
|
|
+ #{accountType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="accountSource != null">
|
|
|
|
+ #{accountSource,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="payType != null">
|
|
|
|
+ #{payType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createdAt != null">
|
|
|
|
+ #{createdAt,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updatedAt != null">
|
|
|
|
+ #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="memberType != null">
|
|
|
|
+ #{memberType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="validFlag != null">
|
|
|
|
+ #{validFlag,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
@@ -280,6 +311,12 @@
|
|
<if test="record.id != null">
|
|
<if test="record.id != null">
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.companyId != null">
|
|
|
|
+ company_id = #{record.companyId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.appId != null">
|
|
|
|
+ app_id = #{record.appId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="record.email != null">
|
|
<if test="record.email != null">
|
|
email = #{record.email,jdbcType=VARCHAR},
|
|
email = #{record.email,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -289,12 +326,6 @@
|
|
<if test="record.subscriberType != null">
|
|
<if test="record.subscriberType != null">
|
|
subscriber_type = #{record.subscriberType,jdbcType=INTEGER},
|
|
subscriber_type = #{record.subscriberType,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="record.createdAt != null">
|
|
|
|
- created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
- <if test="record.updatedAt != null">
|
|
|
|
- updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
<if test="record.subscribed != null">
|
|
<if test="record.subscribed != null">
|
|
subscribed = #{record.subscribed,jdbcType=INTEGER},
|
|
subscribed = #{record.subscribed,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -304,15 +335,9 @@
|
|
<if test="record.phone != null">
|
|
<if test="record.phone != null">
|
|
phone = #{record.phone,jdbcType=VARCHAR},
|
|
phone = #{record.phone,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="record.validFlag != null">
|
|
|
|
- valid_flag = #{record.validFlag,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="record.industry != null">
|
|
<if test="record.industry != null">
|
|
industry = #{record.industry,jdbcType=VARCHAR},
|
|
industry = #{record.industry,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="record.companyId != null">
|
|
|
|
- company_id = #{record.companyId,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="record.lastPopularizeAt != null">
|
|
<if test="record.lastPopularizeAt != null">
|
|
last_popularize_at = #{record.lastPopularizeAt,jdbcType=INTEGER},
|
|
last_popularize_at = #{record.lastPopularizeAt,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -334,11 +359,29 @@
|
|
<if test="record.area != null">
|
|
<if test="record.area != null">
|
|
area = #{record.area,jdbcType=VARCHAR},
|
|
area = #{record.area,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="record.appId != null">
|
|
|
|
- app_id = #{record.appId,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="record.platformType != null">
|
|
<if test="record.platformType != null">
|
|
- platform_type = #{record.platformType,jdbcType=VARCHAR},
|
|
|
|
|
|
+ platform_type = #{record.platformType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.accountType != null">
|
|
|
|
+ account_type = #{record.accountType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.accountSource != null">
|
|
|
|
+ account_source = #{record.accountSource,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.payType != null">
|
|
|
|
+ pay_type = #{record.payType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.createdAt != null">
|
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.updatedAt != null">
|
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.memberType != null">
|
|
|
|
+ member_type = #{record.memberType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="record.validFlag != null">
|
|
|
|
+ valid_flag = #{record.validFlag,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
@@ -348,17 +391,15 @@
|
|
<update id="updateByExample" parameterType="map">
|
|
<update id="updateByExample" parameterType="map">
|
|
update user
|
|
update user
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
+ company_id = #{record.companyId,jdbcType=VARCHAR},
|
|
|
|
+ app_id = #{record.appId,jdbcType=VARCHAR},
|
|
email = #{record.email,jdbcType=VARCHAR},
|
|
email = #{record.email,jdbcType=VARCHAR},
|
|
full_name = #{record.fullName,jdbcType=VARCHAR},
|
|
full_name = #{record.fullName,jdbcType=VARCHAR},
|
|
subscriber_type = #{record.subscriberType,jdbcType=INTEGER},
|
|
subscriber_type = #{record.subscriberType,jdbcType=INTEGER},
|
|
- created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
|
- updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
subscribed = #{record.subscribed,jdbcType=INTEGER},
|
|
subscribed = #{record.subscribed,jdbcType=INTEGER},
|
|
digest_password = #{record.digestPassword,jdbcType=VARCHAR},
|
|
digest_password = #{record.digestPassword,jdbcType=VARCHAR},
|
|
phone = #{record.phone,jdbcType=VARCHAR},
|
|
phone = #{record.phone,jdbcType=VARCHAR},
|
|
- valid_flag = #{record.validFlag,jdbcType=VARCHAR},
|
|
|
|
industry = #{record.industry,jdbcType=VARCHAR},
|
|
industry = #{record.industry,jdbcType=VARCHAR},
|
|
- company_id = #{record.companyId,jdbcType=VARCHAR},
|
|
|
|
last_popularize_at = #{record.lastPopularizeAt,jdbcType=INTEGER},
|
|
last_popularize_at = #{record.lastPopularizeAt,jdbcType=INTEGER},
|
|
last_presented_coupon_at = #{record.lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
last_presented_coupon_at = #{record.lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
mailable = #{record.mailable,jdbcType=INTEGER},
|
|
mailable = #{record.mailable,jdbcType=INTEGER},
|
|
@@ -366,8 +407,14 @@
|
|
`role` = #{record.role,jdbcType=VARCHAR},
|
|
`role` = #{record.role,jdbcType=VARCHAR},
|
|
job = #{record.job,jdbcType=VARCHAR},
|
|
job = #{record.job,jdbcType=VARCHAR},
|
|
area = #{record.area,jdbcType=VARCHAR},
|
|
area = #{record.area,jdbcType=VARCHAR},
|
|
- app_id = #{record.appId,jdbcType=VARCHAR},
|
|
|
|
- platform_type = #{record.platformType,jdbcType=VARCHAR}
|
|
|
|
|
|
+ platform_type = #{record.platformType,jdbcType=TINYINT},
|
|
|
|
+ account_type = #{record.accountType,jdbcType=TINYINT},
|
|
|
|
+ account_source = #{record.accountSource,jdbcType=TINYINT},
|
|
|
|
+ pay_type = #{record.payType,jdbcType=TINYINT},
|
|
|
|
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
|
|
|
|
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
+ member_type = #{record.memberType,jdbcType=TINYINT},
|
|
|
|
+ valid_flag = #{record.validFlag,jdbcType=VARCHAR}
|
|
<if test="_parameter != null">
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
</if>
|
|
</if>
|
|
@@ -375,6 +422,12 @@
|
|
<update id="updateByPrimaryKeySelective" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
|
|
<update id="updateByPrimaryKeySelective" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
|
|
update user
|
|
update user
|
|
<set>
|
|
<set>
|
|
|
|
+ <if test="companyId != null">
|
|
|
|
+ company_id = #{companyId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="appId != null">
|
|
|
|
+ app_id = #{appId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="email != null">
|
|
<if test="email != null">
|
|
email = #{email,jdbcType=VARCHAR},
|
|
email = #{email,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -384,12 +437,6 @@
|
|
<if test="subscriberType != null">
|
|
<if test="subscriberType != null">
|
|
subscriber_type = #{subscriberType,jdbcType=INTEGER},
|
|
subscriber_type = #{subscriberType,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="createdAt != null">
|
|
|
|
- created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
- <if test="updatedAt != null">
|
|
|
|
- updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
- </if>
|
|
|
|
<if test="subscribed != null">
|
|
<if test="subscribed != null">
|
|
subscribed = #{subscribed,jdbcType=INTEGER},
|
|
subscribed = #{subscribed,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -399,15 +446,9 @@
|
|
<if test="phone != null">
|
|
<if test="phone != null">
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="validFlag != null">
|
|
|
|
- valid_flag = #{validFlag,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="industry != null">
|
|
<if test="industry != null">
|
|
industry = #{industry,jdbcType=VARCHAR},
|
|
industry = #{industry,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="companyId != null">
|
|
|
|
- company_id = #{companyId,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="lastPopularizeAt != null">
|
|
<if test="lastPopularizeAt != null">
|
|
last_popularize_at = #{lastPopularizeAt,jdbcType=INTEGER},
|
|
last_popularize_at = #{lastPopularizeAt,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -429,28 +470,44 @@
|
|
<if test="area != null">
|
|
<if test="area != null">
|
|
area = #{area,jdbcType=VARCHAR},
|
|
area = #{area,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="appId != null">
|
|
|
|
- app_id = #{appId,jdbcType=VARCHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="platformType != null">
|
|
<if test="platformType != null">
|
|
- platform_type = #{platformType,jdbcType=VARCHAR},
|
|
|
|
|
|
+ platform_type = #{platformType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="accountType != null">
|
|
|
|
+ account_type = #{accountType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="accountSource != null">
|
|
|
|
+ account_source = #{accountSource,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="payType != null">
|
|
|
|
+ pay_type = #{payType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="createdAt != null">
|
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="updatedAt != null">
|
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="memberType != null">
|
|
|
|
+ member_type = #{memberType,jdbcType=TINYINT},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="validFlag != null">
|
|
|
|
+ valid_flag = #{validFlag,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
|
|
<update id="updateByPrimaryKey" parameterType="cn.kdan.cloud.pdf.office.account.model.User">
|
|
update user
|
|
update user
|
|
- set email = #{email,jdbcType=VARCHAR},
|
|
|
|
|
|
+ set company_id = #{companyId,jdbcType=VARCHAR},
|
|
|
|
+ app_id = #{appId,jdbcType=VARCHAR},
|
|
|
|
+ email = #{email,jdbcType=VARCHAR},
|
|
full_name = #{fullName,jdbcType=VARCHAR},
|
|
full_name = #{fullName,jdbcType=VARCHAR},
|
|
subscriber_type = #{subscriberType,jdbcType=INTEGER},
|
|
subscriber_type = #{subscriberType,jdbcType=INTEGER},
|
|
- created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
|
- updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
subscribed = #{subscribed,jdbcType=INTEGER},
|
|
subscribed = #{subscribed,jdbcType=INTEGER},
|
|
digest_password = #{digestPassword,jdbcType=VARCHAR},
|
|
digest_password = #{digestPassword,jdbcType=VARCHAR},
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
- valid_flag = #{validFlag,jdbcType=VARCHAR},
|
|
|
|
industry = #{industry,jdbcType=VARCHAR},
|
|
industry = #{industry,jdbcType=VARCHAR},
|
|
- company_id = #{companyId,jdbcType=VARCHAR},
|
|
|
|
last_popularize_at = #{lastPopularizeAt,jdbcType=INTEGER},
|
|
last_popularize_at = #{lastPopularizeAt,jdbcType=INTEGER},
|
|
last_presented_coupon_at = #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
last_presented_coupon_at = #{lastPresentedCouponAt,jdbcType=TIMESTAMP},
|
|
mailable = #{mailable,jdbcType=INTEGER},
|
|
mailable = #{mailable,jdbcType=INTEGER},
|
|
@@ -458,8 +515,14 @@
|
|
`role` = #{role,jdbcType=VARCHAR},
|
|
`role` = #{role,jdbcType=VARCHAR},
|
|
job = #{job,jdbcType=VARCHAR},
|
|
job = #{job,jdbcType=VARCHAR},
|
|
area = #{area,jdbcType=VARCHAR},
|
|
area = #{area,jdbcType=VARCHAR},
|
|
- app_id = #{appId,jdbcType=VARCHAR},
|
|
|
|
- platform_type = #{platformType,jdbcType=VARCHAR}
|
|
|
|
|
|
+ platform_type = #{platformType,jdbcType=TINYINT},
|
|
|
|
+ account_type = #{accountType,jdbcType=TINYINT},
|
|
|
|
+ account_source = #{accountSource,jdbcType=TINYINT},
|
|
|
|
+ pay_type = #{payType,jdbcType=TINYINT},
|
|
|
|
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
|
|
|
|
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
|
|
|
|
+ member_type = #{memberType,jdbcType=TINYINT},
|
|
|
|
+ valid_flag = #{validFlag,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
</update>
|
|
</update>
|
|
<select id="selectByExampleWithRowbounds" parameterType="cn.kdan.cloud.pdf.office.account.model.UserExample" resultMap="BaseResultMap">
|
|
<select id="selectByExampleWithRowbounds" parameterType="cn.kdan.cloud.pdf.office.account.model.UserExample" resultMap="BaseResultMap">
|