|
@@ -21,6 +21,7 @@
|
|
|
<result column="assigned_date" jdbcType="TIMESTAMP" property="assignedDate" />
|
|
|
<result column="activated_date" jdbcType="TIMESTAMP" property="activatedDate" />
|
|
|
<result column="is_vpp" jdbcType="SMALLINT" property="isVpp" />
|
|
|
+ <result column="sign" jdbcType="VARCHAR" property="sign" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -81,9 +82,9 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, member_id, subscription_id, cdkey, times, used_times, created_at, updated_at,
|
|
|
- last_remind_at, product_id, vpp_member_id, team_id, company_id, type, end_up_at,
|
|
|
- valid_flag, assigned_date, activated_date, is_vpp
|
|
|
+ id, member_id, subscription_id, cdkey, times, used_times, created_at, updated_at,
|
|
|
+ last_remind_at, product_id, vpp_member_id, team_id, company_id, `type`, end_up_at,
|
|
|
+ valid_flag, assigned_date, activated_date, is_vpp, sign
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="cn.kdan.pdf.tech.core.model.LicenseCodesExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -100,14 +101,14 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from license_codes
|
|
|
- where id = #{id}::uuid
|
|
|
+ where id = #{id,jdbcType=OTHER}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from license_codes
|
|
|
- where id = #{id}::uuid
|
|
|
+ where id = #{id,jdbcType=OTHER}
|
|
|
</delete>
|
|
|
<delete id="deleteByExample" parameterType="cn.kdan.pdf.tech.core.model.LicenseCodesExample">
|
|
|
delete from license_codes
|
|
@@ -116,20 +117,20 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="cn.kdan.pdf.tech.core.model.LicenseCodes">
|
|
|
- insert into license_codes (id, member_id, subscription_id,
|
|
|
- cdkey, times, used_times,
|
|
|
- created_at, updated_at, last_remind_at,
|
|
|
- product_id, vpp_member_id, team_id,
|
|
|
- company_id, type, end_up_at,
|
|
|
- valid_flag, assigned_date, activated_date,
|
|
|
- is_vpp)
|
|
|
- values (#{id}::uuid, #{memberId}::uuid, #{subscriptionId}::uuid,
|
|
|
- #{cdkey,jdbcType=VARCHAR}, #{times,jdbcType=SMALLINT}, #{usedTimes,jdbcType=SMALLINT},
|
|
|
- #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{lastRemindAt,jdbcType=TIMESTAMP},
|
|
|
- #{productId,jdbcType=INTEGER}, #{vppMemberId,jdbcType=VARCHAR}, #{teamId,jdbcType=VARCHAR},
|
|
|
- #{companyId,jdbcType=VARCHAR}, #{type,jdbcType=SMALLINT}, #{endUpAt,jdbcType=TIMESTAMP},
|
|
|
- #{validFlag,jdbcType=SMALLINT}, #{assignedDate,jdbcType=TIMESTAMP}, #{activatedDate,jdbcType=TIMESTAMP},
|
|
|
- #{isVpp,jdbcType=SMALLINT})
|
|
|
+ insert into license_codes (id, member_id, subscription_id,
|
|
|
+ cdkey, times, used_times,
|
|
|
+ created_at, updated_at, last_remind_at,
|
|
|
+ product_id, vpp_member_id, team_id,
|
|
|
+ company_id, `type`, end_up_at,
|
|
|
+ valid_flag, assigned_date, activated_date,
|
|
|
+ is_vpp, sign)
|
|
|
+ values (#{id,jdbcType=OTHER}, #{memberId,jdbcType=OTHER}, #{subscriptionId,jdbcType=OTHER},
|
|
|
+ #{cdkey,jdbcType=VARCHAR}, #{times,jdbcType=SMALLINT}, #{usedTimes,jdbcType=SMALLINT},
|
|
|
+ #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{lastRemindAt,jdbcType=TIMESTAMP},
|
|
|
+ #{productId,jdbcType=INTEGER}, #{vppMemberId,jdbcType=VARCHAR}, #{teamId,jdbcType=VARCHAR},
|
|
|
+ #{companyId,jdbcType=VARCHAR}, #{type,jdbcType=SMALLINT}, #{endUpAt,jdbcType=TIMESTAMP},
|
|
|
+ #{validFlag,jdbcType=SMALLINT}, #{assignedDate,jdbcType=TIMESTAMP}, #{activatedDate,jdbcType=TIMESTAMP},
|
|
|
+ #{isVpp,jdbcType=SMALLINT}, #{sign,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="cn.kdan.pdf.tech.core.model.LicenseCodes">
|
|
|
insert into license_codes
|
|
@@ -174,7 +175,7 @@
|
|
|
company_id,
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
- type,
|
|
|
+ `type`,
|
|
|
</if>
|
|
|
<if test="endUpAt != null">
|
|
|
end_up_at,
|
|
@@ -191,16 +192,19 @@
|
|
|
<if test="isVpp != null">
|
|
|
is_vpp,
|
|
|
</if>
|
|
|
+ <if test="sign != null">
|
|
|
+ sign,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
- #{id}::uuid,
|
|
|
+ #{id,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="memberId != null">
|
|
|
- #{memberId}::uuid,
|
|
|
+ #{memberId,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="subscriptionId != null">
|
|
|
- #{subscriptionId}::uuid,
|
|
|
+ #{subscriptionId,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="cdkey != null">
|
|
|
#{cdkey,jdbcType=VARCHAR},
|
|
@@ -250,6 +254,9 @@
|
|
|
<if test="isVpp != null">
|
|
|
#{isVpp,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
+ <if test="sign != null">
|
|
|
+ #{sign,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="cn.kdan.pdf.tech.core.model.LicenseCodesExample" resultType="java.lang.Long">
|
|
@@ -262,13 +269,13 @@
|
|
|
update license_codes
|
|
|
<set>
|
|
|
<if test="row.id != null">
|
|
|
- id = #{row.id}::uuid,
|
|
|
+ id = #{row.id,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="row.memberId != null">
|
|
|
- member_id = #{row.memberId}::uuid,
|
|
|
+ member_id = #{row.memberId,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="row.subscriptionId != null">
|
|
|
- subscription_id = #{row.subscriptionId}::uuid,
|
|
|
+ subscription_id = #{row.subscriptionId,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="row.cdkey != null">
|
|
|
cdkey = #{row.cdkey,jdbcType=VARCHAR},
|
|
@@ -301,7 +308,7 @@
|
|
|
company_id = #{row.companyId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="row.type != null">
|
|
|
- type = #{row.type,jdbcType=SMALLINT},
|
|
|
+ `type` = #{row.type,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
<if test="row.endUpAt != null">
|
|
|
end_up_at = #{row.endUpAt,jdbcType=TIMESTAMP},
|
|
@@ -318,6 +325,9 @@
|
|
|
<if test="row.isVpp != null">
|
|
|
is_vpp = #{row.isVpp,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
+ <if test="row.sign != null">
|
|
|
+ sign = #{row.sign,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -325,9 +335,9 @@
|
|
|
</update>
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update license_codes
|
|
|
- set id = #{row.id}::uuid,
|
|
|
- member_id = #{row.memberId}::uuid,
|
|
|
- subscription_id = #{row.subscriptionId}::uuid,
|
|
|
+ set id = #{row.id,jdbcType=OTHER},
|
|
|
+ member_id = #{row.memberId,jdbcType=OTHER},
|
|
|
+ subscription_id = #{row.subscriptionId,jdbcType=OTHER},
|
|
|
cdkey = #{row.cdkey,jdbcType=VARCHAR},
|
|
|
times = #{row.times,jdbcType=SMALLINT},
|
|
|
used_times = #{row.usedTimes,jdbcType=SMALLINT},
|
|
@@ -338,12 +348,13 @@
|
|
|
vpp_member_id = #{row.vppMemberId,jdbcType=VARCHAR},
|
|
|
team_id = #{row.teamId,jdbcType=VARCHAR},
|
|
|
company_id = #{row.companyId,jdbcType=VARCHAR},
|
|
|
- type = #{row.type,jdbcType=SMALLINT},
|
|
|
+ `type` = #{row.type,jdbcType=SMALLINT},
|
|
|
end_up_at = #{row.endUpAt,jdbcType=TIMESTAMP},
|
|
|
valid_flag = #{row.validFlag,jdbcType=SMALLINT},
|
|
|
assigned_date = #{row.assignedDate,jdbcType=TIMESTAMP},
|
|
|
activated_date = #{row.activatedDate,jdbcType=TIMESTAMP},
|
|
|
- is_vpp = #{row.isVpp,jdbcType=SMALLINT}
|
|
|
+ is_vpp = #{row.isVpp,jdbcType=SMALLINT},
|
|
|
+ sign = #{row.sign,jdbcType=VARCHAR}
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -352,10 +363,10 @@
|
|
|
update license_codes
|
|
|
<set>
|
|
|
<if test="memberId != null">
|
|
|
- member_id = #{memberId}::uuid,
|
|
|
+ member_id = #{memberId,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="subscriptionId != null">
|
|
|
- subscription_id = #{subscriptionId}::uuid,
|
|
|
+ subscription_id = #{subscriptionId,jdbcType=OTHER},
|
|
|
</if>
|
|
|
<if test="cdkey != null">
|
|
|
cdkey = #{cdkey,jdbcType=VARCHAR},
|
|
@@ -388,7 +399,7 @@
|
|
|
company_id = #{companyId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="type != null">
|
|
|
- type = #{type,jdbcType=SMALLINT},
|
|
|
+ `type` = #{type,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
<if test="endUpAt != null">
|
|
|
end_up_at = #{endUpAt,jdbcType=TIMESTAMP},
|
|
@@ -405,13 +416,16 @@
|
|
|
<if test="isVpp != null">
|
|
|
is_vpp = #{isVpp,jdbcType=SMALLINT},
|
|
|
</if>
|
|
|
+ <if test="sign != null">
|
|
|
+ sign = #{sign,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
- where id = #{id}::uuid
|
|
|
+ where id = #{id,jdbcType=OTHER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="cn.kdan.pdf.tech.core.model.LicenseCodes">
|
|
|
update license_codes
|
|
|
- set member_id = #{memberId}::uuid,
|
|
|
- subscription_id = #{subscriptionId}::uuid,
|
|
|
+ set member_id = #{memberId,jdbcType=OTHER},
|
|
|
+ subscription_id = #{subscriptionId,jdbcType=OTHER},
|
|
|
cdkey = #{cdkey,jdbcType=VARCHAR},
|
|
|
times = #{times,jdbcType=SMALLINT},
|
|
|
used_times = #{usedTimes,jdbcType=SMALLINT},
|
|
@@ -422,13 +436,14 @@
|
|
|
vpp_member_id = #{vppMemberId,jdbcType=VARCHAR},
|
|
|
team_id = #{teamId,jdbcType=VARCHAR},
|
|
|
company_id = #{companyId,jdbcType=VARCHAR},
|
|
|
- type = #{type,jdbcType=SMALLINT},
|
|
|
+ `type` = #{type,jdbcType=SMALLINT},
|
|
|
end_up_at = #{endUpAt,jdbcType=TIMESTAMP},
|
|
|
valid_flag = #{validFlag,jdbcType=SMALLINT},
|
|
|
assigned_date = #{assignedDate,jdbcType=TIMESTAMP},
|
|
|
activated_date = #{activatedDate,jdbcType=TIMESTAMP},
|
|
|
- is_vpp = #{isVpp,jdbcType=SMALLINT}
|
|
|
- where id = #{id}::uuid
|
|
|
+ is_vpp = #{isVpp,jdbcType=SMALLINT},
|
|
|
+ sign = #{sign,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=OTHER}
|
|
|
</update>
|
|
|
<select id="selectByExampleWithRowbounds" parameterType="cn.kdan.pdf.tech.core.model.LicenseCodesExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -444,4 +459,4 @@
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
-</mapper>
|
|
|
+</mapper>
|