Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
2f52c6b8
Commit
2f52c6b8
authored
May 14, 2018
by
zhh
Browse files
支持跨域调用及登录功能完善
parent
eb667afd
Changes
68
Hide whitespace changes
Inline
Side-by-side
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml
View file @
2f52c6b8
...
@@ -428,858 +428,4 @@
...
@@ -428,858 +428,4 @@
history_integration = #{historyIntegration,jdbcType=INTEGER}
history_integration = #{historyIntegration,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMember"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_level_id"
jdbcType=
"BIGINT"
property=
"memberLevelId"
/>
<result
column=
"username"
jdbcType=
"VARCHAR"
property=
"username"
/>
<result
column=
"password"
jdbcType=
"VARCHAR"
property=
"password"
/>
<result
column=
"nickname"
jdbcType=
"VARCHAR"
property=
"nickname"
/>
<result
column=
"phone"
jdbcType=
"VARCHAR"
property=
"phone"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"icon"
jdbcType=
"VARCHAR"
property=
"icon"
/>
<result
column=
"gender"
jdbcType=
"INTEGER"
property=
"gender"
/>
<result
column=
"birthday"
jdbcType=
"DATE"
property=
"birthday"
/>
<result
column=
"city"
jdbcType=
"VARCHAR"
property=
"city"
/>
<result
column=
"job"
jdbcType=
"VARCHAR"
property=
"job"
/>
<result
column=
"personalized_signature"
jdbcType=
"VARCHAR"
property=
"personalizedSignature"
/>
<result
column=
"source_type"
jdbcType=
"INTEGER"
property=
"sourceType"
/>
<result
column=
"integration"
jdbcType=
"INTEGER"
property=
"integration"
/>
<result
column=
"growth"
jdbcType=
"INTEGER"
property=
"growth"
/>
<result
column=
"luckey_count"
jdbcType=
"INTEGER"
property=
"luckeyCount"
/>
<result
column=
"history_integration"
jdbcType=
"INTEGER"
property=
"historyIntegration"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_level_id, username, password, nickname, phone, status, create_time, icon,
gender, birthday, city, job, personalized_signature, source_type, integration, growth,
luckey_count, history_integration
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberExample"
>
delete from ums_member
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMember"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member (member_level_id, username, password,
nickname, phone, status,
create_time, icon, gender,
birthday, city, job, personalized_signature,
source_type, integration, growth,
luckey_count, history_integration)
values (#{memberLevelId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{icon,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER},
#{birthday,jdbcType=DATE}, #{city,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{personalizedSignature,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER},
#{luckeyCount,jdbcType=INTEGER}, #{historyIntegration,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMember"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberLevelId != null"
>
member_level_id,
</if>
<if
test=
"username != null"
>
username,
</if>
<if
test=
"password != null"
>
password,
</if>
<if
test=
"nickname != null"
>
nickname,
</if>
<if
test=
"phone != null"
>
phone,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"icon != null"
>
icon,
</if>
<if
test=
"gender != null"
>
gender,
</if>
<if
test=
"birthday != null"
>
birthday,
</if>
<if
test=
"city != null"
>
city,
</if>
<if
test=
"job != null"
>
job,
</if>
<if
test=
"personalizedSignature != null"
>
personalized_signature,
</if>
<if
test=
"sourceType != null"
>
source_type,
</if>
<if
test=
"integration != null"
>
integration,
</if>
<if
test=
"growth != null"
>
growth,
</if>
<if
test=
"luckeyCount != null"
>
luckey_count,
</if>
<if
test=
"historyIntegration != null"
>
history_integration,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberLevelId != null"
>
#{memberLevelId,jdbcType=BIGINT},
</if>
<if
test=
"username != null"
>
#{username,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
#{password,jdbcType=VARCHAR},
</if>
<if
test=
"nickname != null"
>
#{nickname,jdbcType=VARCHAR},
</if>
<if
test=
"phone != null"
>
#{phone,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"icon != null"
>
#{icon,jdbcType=VARCHAR},
</if>
<if
test=
"gender != null"
>
#{gender,jdbcType=INTEGER},
</if>
<if
test=
"birthday != null"
>
#{birthday,jdbcType=DATE},
</if>
<if
test=
"city != null"
>
#{city,jdbcType=VARCHAR},
</if>
<if
test=
"job != null"
>
#{job,jdbcType=VARCHAR},
</if>
<if
test=
"personalizedSignature != null"
>
#{personalizedSignature,jdbcType=VARCHAR},
</if>
<if
test=
"sourceType != null"
>
#{sourceType,jdbcType=INTEGER},
</if>
<if
test=
"integration != null"
>
#{integration,jdbcType=INTEGER},
</if>
<if
test=
"growth != null"
>
#{growth,jdbcType=INTEGER},
</if>
<if
test=
"luckeyCount != null"
>
#{luckeyCount,jdbcType=INTEGER},
</if>
<if
test=
"historyIntegration != null"
>
#{historyIntegration,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberLevelId != null"
>
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
</if>
<if
test=
"record.username != null"
>
username = #{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
password = #{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.nickname != null"
>
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.phone != null"
>
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
status = #{record.status,jdbcType=INTEGER},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.icon != null"
>
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
gender = #{record.gender,jdbcType=INTEGER},
</if>
<if
test=
"record.birthday != null"
>
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.city != null"
>
city = #{record.city,jdbcType=VARCHAR},
</if>
<if
test=
"record.job != null"
>
job = #{record.job,jdbcType=VARCHAR},
</if>
<if
test=
"record.personalizedSignature != null"
>
personalized_signature = #{record.personalizedSignature,jdbcType=VARCHAR},
</if>
<if
test=
"record.sourceType != null"
>
source_type = #{record.sourceType,jdbcType=INTEGER},
</if>
<if
test=
"record.integration != null"
>
integration = #{record.integration,jdbcType=INTEGER},
</if>
<if
test=
"record.growth != null"
>
growth = #{record.growth,jdbcType=INTEGER},
</if>
<if
test=
"record.luckeyCount != null"
>
luckey_count = #{record.luckeyCount,jdbcType=INTEGER},
</if>
<if
test=
"record.historyIntegration != null"
>
history_integration = #{record.historyIntegration,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member
set id = #{record.id,jdbcType=BIGINT},
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
username = #{record.username,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
nickname = #{record.nickname,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
icon = #{record.icon,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=INTEGER},
birthday = #{record.birthday,jdbcType=DATE},
city = #{record.city,jdbcType=VARCHAR},
job = #{record.job,jdbcType=VARCHAR},
personalized_signature = #{record.personalizedSignature,jdbcType=VARCHAR},
source_type = #{record.sourceType,jdbcType=INTEGER},
integration = #{record.integration,jdbcType=INTEGER},
growth = #{record.growth,jdbcType=INTEGER},
luckey_count = #{record.luckeyCount,jdbcType=INTEGER},
history_integration = #{record.historyIntegration,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMember"
>
update ums_member
<set>
<if
test=
"memberLevelId != null"
>
member_level_id = #{memberLevelId,jdbcType=BIGINT},
</if>
<if
test=
"username != null"
>
username = #{username,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
password = #{password,jdbcType=VARCHAR},
</if>
<if
test=
"nickname != null"
>
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if
test=
"phone != null"
>
phone = #{phone,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"icon != null"
>
icon = #{icon,jdbcType=VARCHAR},
</if>
<if
test=
"gender != null"
>
gender = #{gender,jdbcType=INTEGER},
</if>
<if
test=
"birthday != null"
>
birthday = #{birthday,jdbcType=DATE},
</if>
<if
test=
"city != null"
>
city = #{city,jdbcType=VARCHAR},
</if>
<if
test=
"job != null"
>
job = #{job,jdbcType=VARCHAR},
</if>
<if
test=
"personalizedSignature != null"
>
personalized_signature = #{personalizedSignature,jdbcType=VARCHAR},
</if>
<if
test=
"sourceType != null"
>
source_type = #{sourceType,jdbcType=INTEGER},
</if>
<if
test=
"integration != null"
>
integration = #{integration,jdbcType=INTEGER},
</if>
<if
test=
"growth != null"
>
growth = #{growth,jdbcType=INTEGER},
</if>
<if
test=
"luckeyCount != null"
>
luckey_count = #{luckeyCount,jdbcType=INTEGER},
</if>
<if
test=
"historyIntegration != null"
>
history_integration = #{historyIntegration,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMember"
>
update ums_member
set member_level_id = #{memberLevelId,jdbcType=BIGINT},
username = #{username,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
nickname = #{nickname,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
icon = #{icon,jdbcType=VARCHAR},
gender = #{gender,jdbcType=INTEGER},
birthday = #{birthday,jdbcType=DATE},
city = #{city,jdbcType=VARCHAR},
job = #{job,jdbcType=VARCHAR},
personalized_signature = #{personalizedSignature,jdbcType=VARCHAR},
source_type = #{sourceType,jdbcType=INTEGER},
integration = #{integration,jdbcType=INTEGER},
growth = #{growth,jdbcType=INTEGER},
luckey_count = #{luckeyCount,jdbcType=INTEGER},
history_integration = #{historyIntegration,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMember"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_level_id"
jdbcType=
"BIGINT"
property=
"memberLevelId"
/>
<result
column=
"username"
jdbcType=
"VARCHAR"
property=
"username"
/>
<result
column=
"password"
jdbcType=
"VARCHAR"
property=
"password"
/>
<result
column=
"nickname"
jdbcType=
"VARCHAR"
property=
"nickname"
/>
<result
column=
"phone"
jdbcType=
"VARCHAR"
property=
"phone"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"icon"
jdbcType=
"VARCHAR"
property=
"icon"
/>
<result
column=
"gender"
jdbcType=
"INTEGER"
property=
"gender"
/>
<result
column=
"birthday"
jdbcType=
"DATE"
property=
"birthday"
/>
<result
column=
"city"
jdbcType=
"VARCHAR"
property=
"city"
/>
<result
column=
"job"
jdbcType=
"VARCHAR"
property=
"job"
/>
<result
column=
"personalized_signature"
jdbcType=
"VARCHAR"
property=
"personalizedSignature"
/>
<result
column=
"source_type"
jdbcType=
"INTEGER"
property=
"sourceType"
/>
<result
column=
"integration"
jdbcType=
"INTEGER"
property=
"integration"
/>
<result
column=
"growth"
jdbcType=
"INTEGER"
property=
"growth"
/>
<result
column=
"luckey_count"
jdbcType=
"INTEGER"
property=
"luckeyCount"
/>
<result
column=
"history_integration"
jdbcType=
"INTEGER"
property=
"historyIntegration"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_level_id, username, password, nickname, phone, status, create_time, icon,
gender, birthday, city, job, personalized_signature, source_type, integration, growth,
luckey_count, history_integration
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberExample"
>
delete from ums_member
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMember"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member (member_level_id, username, password,
nickname, phone, status,
create_time, icon, gender,
birthday, city, job, personalized_signature,
source_type, integration, growth,
luckey_count, history_integration)
values (#{memberLevelId,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{nickname,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP}, #{icon,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER},
#{birthday,jdbcType=DATE}, #{city,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{personalizedSignature,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER}, #{integration,jdbcType=INTEGER}, #{growth,jdbcType=INTEGER},
#{luckeyCount,jdbcType=INTEGER}, #{historyIntegration,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMember"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberLevelId != null"
>
member_level_id,
</if>
<if
test=
"username != null"
>
username,
</if>
<if
test=
"password != null"
>
password,
</if>
<if
test=
"nickname != null"
>
nickname,
</if>
<if
test=
"phone != null"
>
phone,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"icon != null"
>
icon,
</if>
<if
test=
"gender != null"
>
gender,
</if>
<if
test=
"birthday != null"
>
birthday,
</if>
<if
test=
"city != null"
>
city,
</if>
<if
test=
"job != null"
>
job,
</if>
<if
test=
"personalizedSignature != null"
>
personalized_signature,
</if>
<if
test=
"sourceType != null"
>
source_type,
</if>
<if
test=
"integration != null"
>
integration,
</if>
<if
test=
"growth != null"
>
growth,
</if>
<if
test=
"luckeyCount != null"
>
luckey_count,
</if>
<if
test=
"historyIntegration != null"
>
history_integration,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberLevelId != null"
>
#{memberLevelId,jdbcType=BIGINT},
</if>
<if
test=
"username != null"
>
#{username,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
#{password,jdbcType=VARCHAR},
</if>
<if
test=
"nickname != null"
>
#{nickname,jdbcType=VARCHAR},
</if>
<if
test=
"phone != null"
>
#{phone,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"icon != null"
>
#{icon,jdbcType=VARCHAR},
</if>
<if
test=
"gender != null"
>
#{gender,jdbcType=INTEGER},
</if>
<if
test=
"birthday != null"
>
#{birthday,jdbcType=DATE},
</if>
<if
test=
"city != null"
>
#{city,jdbcType=VARCHAR},
</if>
<if
test=
"job != null"
>
#{job,jdbcType=VARCHAR},
</if>
<if
test=
"personalizedSignature != null"
>
#{personalizedSignature,jdbcType=VARCHAR},
</if>
<if
test=
"sourceType != null"
>
#{sourceType,jdbcType=INTEGER},
</if>
<if
test=
"integration != null"
>
#{integration,jdbcType=INTEGER},
</if>
<if
test=
"growth != null"
>
#{growth,jdbcType=INTEGER},
</if>
<if
test=
"luckeyCount != null"
>
#{luckeyCount,jdbcType=INTEGER},
</if>
<if
test=
"historyIntegration != null"
>
#{historyIntegration,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberLevelId != null"
>
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
</if>
<if
test=
"record.username != null"
>
username = #{record.username,jdbcType=VARCHAR},
</if>
<if
test=
"record.password != null"
>
password = #{record.password,jdbcType=VARCHAR},
</if>
<if
test=
"record.nickname != null"
>
nickname = #{record.nickname,jdbcType=VARCHAR},
</if>
<if
test=
"record.phone != null"
>
phone = #{record.phone,jdbcType=VARCHAR},
</if>
<if
test=
"record.status != null"
>
status = #{record.status,jdbcType=INTEGER},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.icon != null"
>
icon = #{record.icon,jdbcType=VARCHAR},
</if>
<if
test=
"record.gender != null"
>
gender = #{record.gender,jdbcType=INTEGER},
</if>
<if
test=
"record.birthday != null"
>
birthday = #{record.birthday,jdbcType=DATE},
</if>
<if
test=
"record.city != null"
>
city = #{record.city,jdbcType=VARCHAR},
</if>
<if
test=
"record.job != null"
>
job = #{record.job,jdbcType=VARCHAR},
</if>
<if
test=
"record.personalizedSignature != null"
>
personalized_signature = #{record.personalizedSignature,jdbcType=VARCHAR},
</if>
<if
test=
"record.sourceType != null"
>
source_type = #{record.sourceType,jdbcType=INTEGER},
</if>
<if
test=
"record.integration != null"
>
integration = #{record.integration,jdbcType=INTEGER},
</if>
<if
test=
"record.growth != null"
>
growth = #{record.growth,jdbcType=INTEGER},
</if>
<if
test=
"record.luckeyCount != null"
>
luckey_count = #{record.luckeyCount,jdbcType=INTEGER},
</if>
<if
test=
"record.historyIntegration != null"
>
history_integration = #{record.historyIntegration,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member
set id = #{record.id,jdbcType=BIGINT},
member_level_id = #{record.memberLevelId,jdbcType=BIGINT},
username = #{record.username,jdbcType=VARCHAR},
password = #{record.password,jdbcType=VARCHAR},
nickname = #{record.nickname,jdbcType=VARCHAR},
phone = #{record.phone,jdbcType=VARCHAR},
status = #{record.status,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
icon = #{record.icon,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=INTEGER},
birthday = #{record.birthday,jdbcType=DATE},
city = #{record.city,jdbcType=VARCHAR},
job = #{record.job,jdbcType=VARCHAR},
personalized_signature = #{record.personalizedSignature,jdbcType=VARCHAR},
source_type = #{record.sourceType,jdbcType=INTEGER},
integration = #{record.integration,jdbcType=INTEGER},
growth = #{record.growth,jdbcType=INTEGER},
luckey_count = #{record.luckeyCount,jdbcType=INTEGER},
history_integration = #{record.historyIntegration,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMember"
>
update ums_member
<set>
<if
test=
"memberLevelId != null"
>
member_level_id = #{memberLevelId,jdbcType=BIGINT},
</if>
<if
test=
"username != null"
>
username = #{username,jdbcType=VARCHAR},
</if>
<if
test=
"password != null"
>
password = #{password,jdbcType=VARCHAR},
</if>
<if
test=
"nickname != null"
>
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if
test=
"phone != null"
>
phone = #{phone,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"icon != null"
>
icon = #{icon,jdbcType=VARCHAR},
</if>
<if
test=
"gender != null"
>
gender = #{gender,jdbcType=INTEGER},
</if>
<if
test=
"birthday != null"
>
birthday = #{birthday,jdbcType=DATE},
</if>
<if
test=
"city != null"
>
city = #{city,jdbcType=VARCHAR},
</if>
<if
test=
"job != null"
>
job = #{job,jdbcType=VARCHAR},
</if>
<if
test=
"personalizedSignature != null"
>
personalized_signature = #{personalizedSignature,jdbcType=VARCHAR},
</if>
<if
test=
"sourceType != null"
>
source_type = #{sourceType,jdbcType=INTEGER},
</if>
<if
test=
"integration != null"
>
integration = #{integration,jdbcType=INTEGER},
</if>
<if
test=
"growth != null"
>
growth = #{growth,jdbcType=INTEGER},
</if>
<if
test=
"luckeyCount != null"
>
luckey_count = #{luckeyCount,jdbcType=INTEGER},
</if>
<if
test=
"historyIntegration != null"
>
history_integration = #{historyIntegration,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMember"
>
update ums_member
set member_level_id = #{memberLevelId,jdbcType=BIGINT},
username = #{username,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
nickname = #{nickname,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
icon = #{icon,jdbcType=VARCHAR},
gender = #{gender,jdbcType=INTEGER},
birthday = #{birthday,jdbcType=DATE},
city = #{city,jdbcType=VARCHAR},
job = #{job,jdbcType=VARCHAR},
personalized_signature = #{personalizedSignature,jdbcType=VARCHAR},
source_type = #{sourceType,jdbcType=INTEGER},
integration = #{integration,jdbcType=INTEGER},
growth = #{growth,jdbcType=INTEGER},
luckey_count = #{luckeyCount,jdbcType=INTEGER},
history_integration = #{historyIntegration,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
\ No newline at end of file
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.xml
View file @
2f52c6b8
...
@@ -176,354 +176,4 @@
...
@@ -176,354 +176,4 @@
tag_id = #{tagId,jdbcType=BIGINT}
tag_id = #{tagId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_id"
jdbcType=
"BIGINT"
property=
"memberId"
/>
<result
column=
"tag_id"
jdbcType=
"BIGINT"
property=
"tagId"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_id, tag_id
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelationExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_member_tag_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_member_tag_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_member_tag_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelationExample"
>
delete from ums_member_member_tag_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_member_tag_relation (member_id, tag_id)
values (#{memberId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_member_tag_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"tagId != null"
>
tag_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
<if
test=
"tagId != null"
>
#{tagId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelationExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_member_tag_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_member_tag_relation
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberId != null"
>
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if
test=
"record.tagId != null"
>
tag_id = #{record.tagId,jdbcType=BIGINT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_member_tag_relation
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
tag_id = #{record.tagId,jdbcType=BIGINT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
update ums_member_member_tag_relation
<set>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if
test=
"tagId != null"
>
tag_id = #{tagId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
update ums_member_member_tag_relation
set member_id = #{memberId,jdbcType=BIGINT},
tag_id = #{tagId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_id"
jdbcType=
"BIGINT"
property=
"memberId"
/>
<result
column=
"tag_id"
jdbcType=
"BIGINT"
property=
"tagId"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_id, tag_id
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelationExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_member_tag_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_member_tag_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_member_tag_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelationExample"
>
delete from ums_member_member_tag_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_member_tag_relation (member_id, tag_id)
values (#{memberId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_member_tag_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"tagId != null"
>
tag_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
<if
test=
"tagId != null"
>
#{tagId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelationExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_member_tag_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_member_tag_relation
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberId != null"
>
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if
test=
"record.tagId != null"
>
tag_id = #{record.tagId,jdbcType=BIGINT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_member_tag_relation
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
tag_id = #{record.tagId,jdbcType=BIGINT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
update ums_member_member_tag_relation
<set>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if
test=
"tagId != null"
>
tag_id = #{tagId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
update ums_member_member_tag_relation
set member_id = #{memberId,jdbcType=BIGINT},
tag_id = #{tagId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
\ No newline at end of file
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberProductCategoryRelationMapper.xml
View file @
2f52c6b8
...
@@ -176,354 +176,4 @@
...
@@ -176,354 +176,4 @@
product_category_id = #{productCategoryId,jdbcType=BIGINT}
product_category_id = #{productCategoryId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_id"
jdbcType=
"BIGINT"
property=
"memberId"
/>
<result
column=
"product_category_id"
jdbcType=
"BIGINT"
property=
"productCategoryId"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_id, product_category_id
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelationExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_product_category_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_product_category_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_product_category_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelationExample"
>
delete from ums_member_product_category_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_product_category_relation (member_id, product_category_id)
values (#{memberId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_product_category_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"productCategoryId != null"
>
product_category_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
<if
test=
"productCategoryId != null"
>
#{productCategoryId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelationExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_product_category_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_product_category_relation
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberId != null"
>
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if
test=
"record.productCategoryId != null"
>
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_product_category_relation
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
update ums_member_product_category_relation
<set>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if
test=
"productCategoryId != null"
>
product_category_id = #{productCategoryId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
update ums_member_product_category_relation
set member_id = #{memberId,jdbcType=BIGINT},
product_category_id = #{productCategoryId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_id"
jdbcType=
"BIGINT"
property=
"memberId"
/>
<result
column=
"product_category_id"
jdbcType=
"BIGINT"
property=
"productCategoryId"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_id, product_category_id
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelationExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_product_category_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_product_category_relation
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_product_category_relation
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelationExample"
>
delete from ums_member_product_category_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_product_category_relation (member_id, product_category_id)
values (#{memberId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_product_category_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"productCategoryId != null"
>
product_category_id,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
<if
test=
"productCategoryId != null"
>
#{productCategoryId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelationExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_product_category_relation
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_product_category_relation
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberId != null"
>
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if
test=
"record.productCategoryId != null"
>
product_category_id = #{record.productCategoryId,jdbcType=BIGINT},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_product_category_relation
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
product_category_id = #{record.productCategoryId,jdbcType=BIGINT}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
update ums_member_product_category_relation
<set>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if
test=
"productCategoryId != null"
>
product_category_id = #{productCategoryId,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberProductCategoryRelation"
>
update ums_member_product_category_relation
set member_id = #{memberId,jdbcType=BIGINT},
product_category_id = #{productCategoryId,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
\ No newline at end of file
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberReceiveAddressMapper.xml
View file @
2f52c6b8
...
@@ -240,482 +240,4 @@
...
@@ -240,482 +240,4 @@
default_status = #{defaultStatus,jdbcType=INTEGER}
default_status = #{defaultStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_id"
jdbcType=
"BIGINT"
property=
"memberId"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"phone_number"
jdbcType=
"VARCHAR"
property=
"phoneNumber"
/>
<result
column=
"address"
jdbcType=
"VARCHAR"
property=
"address"
/>
<result
column=
"post_code"
jdbcType=
"VARCHAR"
property=
"postCode"
/>
<result
column=
"default_status"
jdbcType=
"INTEGER"
property=
"defaultStatus"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_id, name, phone_number, address, post_code, default_status
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddressExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_receive_address
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_receive_address
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_receive_address
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddressExample"
>
delete from ums_member_receive_address
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_receive_address (member_id, name, phone_number,
address, post_code, default_status
)
values (#{memberId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{postCode,jdbcType=VARCHAR}, #{defaultStatus,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_receive_address
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"phoneNumber != null"
>
phone_number,
</if>
<if
test=
"address != null"
>
address,
</if>
<if
test=
"postCode != null"
>
post_code,
</if>
<if
test=
"defaultStatus != null"
>
default_status,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"phoneNumber != null"
>
#{phoneNumber,jdbcType=VARCHAR},
</if>
<if
test=
"address != null"
>
#{address,jdbcType=VARCHAR},
</if>
<if
test=
"postCode != null"
>
#{postCode,jdbcType=VARCHAR},
</if>
<if
test=
"defaultStatus != null"
>
#{defaultStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddressExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_receive_address
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_receive_address
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberId != null"
>
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if
test=
"record.name != null"
>
name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.phoneNumber != null"
>
phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
</if>
<if
test=
"record.address != null"
>
address = #{record.address,jdbcType=VARCHAR},
</if>
<if
test=
"record.postCode != null"
>
post_code = #{record.postCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.defaultStatus != null"
>
default_status = #{record.defaultStatus,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_receive_address
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
post_code = #{record.postCode,jdbcType=VARCHAR},
default_status = #{record.defaultStatus,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
update ums_member_receive_address
<set>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"phoneNumber != null"
>
phone_number = #{phoneNumber,jdbcType=VARCHAR},
</if>
<if
test=
"address != null"
>
address = #{address,jdbcType=VARCHAR},
</if>
<if
test=
"postCode != null"
>
post_code = #{postCode,jdbcType=VARCHAR},
</if>
<if
test=
"defaultStatus != null"
>
default_status = #{defaultStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
update ums_member_receive_address
set member_id = #{memberId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
post_code = #{postCode,jdbcType=VARCHAR},
default_status = #{defaultStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_id"
jdbcType=
"BIGINT"
property=
"memberId"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"phone_number"
jdbcType=
"VARCHAR"
property=
"phoneNumber"
/>
<result
column=
"address"
jdbcType=
"VARCHAR"
property=
"address"
/>
<result
column=
"post_code"
jdbcType=
"VARCHAR"
property=
"postCode"
/>
<result
column=
"default_status"
jdbcType=
"INTEGER"
property=
"defaultStatus"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_id, name, phone_number, address, post_code, default_status
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddressExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_receive_address
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_receive_address
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_receive_address
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddressExample"
>
delete from ums_member_receive_address
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_receive_address (member_id, name, phone_number,
address, post_code, default_status
)
values (#{memberId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{postCode,jdbcType=VARCHAR}, #{defaultStatus,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_receive_address
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"phoneNumber != null"
>
phone_number,
</if>
<if
test=
"address != null"
>
address,
</if>
<if
test=
"postCode != null"
>
post_code,
</if>
<if
test=
"defaultStatus != null"
>
default_status,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"phoneNumber != null"
>
#{phoneNumber,jdbcType=VARCHAR},
</if>
<if
test=
"address != null"
>
#{address,jdbcType=VARCHAR},
</if>
<if
test=
"postCode != null"
>
#{postCode,jdbcType=VARCHAR},
</if>
<if
test=
"defaultStatus != null"
>
#{defaultStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddressExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_receive_address
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_receive_address
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberId != null"
>
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if
test=
"record.name != null"
>
name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.phoneNumber != null"
>
phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
</if>
<if
test=
"record.address != null"
>
address = #{record.address,jdbcType=VARCHAR},
</if>
<if
test=
"record.postCode != null"
>
post_code = #{record.postCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.defaultStatus != null"
>
default_status = #{record.defaultStatus,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_receive_address
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
phone_number = #{record.phoneNumber,jdbcType=VARCHAR},
address = #{record.address,jdbcType=VARCHAR},
post_code = #{record.postCode,jdbcType=VARCHAR},
default_status = #{record.defaultStatus,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
update ums_member_receive_address
<set>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"phoneNumber != null"
>
phone_number = #{phoneNumber,jdbcType=VARCHAR},
</if>
<if
test=
"address != null"
>
address = #{address,jdbcType=VARCHAR},
</if>
<if
test=
"postCode != null"
>
post_code = #{postCode,jdbcType=VARCHAR},
</if>
<if
test=
"defaultStatus != null"
>
default_status = #{defaultStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberReceiveAddress"
>
update ums_member_receive_address
set member_id = #{memberId,jdbcType=BIGINT},
name = #{name,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
post_code = #{postCode,jdbcType=VARCHAR},
default_status = #{defaultStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
\ No newline at end of file
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberRuleSettingMapper.xml
View file @
2f52c6b8
...
@@ -241,484 +241,4 @@
...
@@ -241,484 +241,4 @@
type = #{type,jdbcType=INTEGER}
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberRuleSetting"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"continue_sign_day"
jdbcType=
"INTEGER"
property=
"continueSignDay"
/>
<result
column=
"continue_sign_point"
jdbcType=
"INTEGER"
property=
"continueSignPoint"
/>
<result
column=
"consume_per_point"
jdbcType=
"DECIMAL"
property=
"consumePerPoint"
/>
<result
column=
"low_order_amount"
jdbcType=
"DECIMAL"
property=
"lowOrderAmount"
/>
<result
column=
"max_point_per_order"
jdbcType=
"INTEGER"
property=
"maxPointPerOrder"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, continue_sign_day, continue_sign_point, consume_per_point, low_order_amount,
max_point_per_order, type
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberRuleSettingExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_rule_setting
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_rule_setting
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_rule_setting
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberRuleSettingExample"
>
delete from ums_member_rule_setting
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberRuleSetting"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_rule_setting (continue_sign_day, continue_sign_point,
consume_per_point, low_order_amount, max_point_per_order,
type)
values (#{continueSignDay,jdbcType=INTEGER}, #{continueSignPoint,jdbcType=INTEGER},
#{consumePerPoint,jdbcType=DECIMAL}, #{lowOrderAmount,jdbcType=DECIMAL}, #{maxPointPerOrder,jdbcType=INTEGER},
#{type,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberRuleSetting"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_rule_setting
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"continueSignDay != null"
>
continue_sign_day,
</if>
<if
test=
"continueSignPoint != null"
>
continue_sign_point,
</if>
<if
test=
"consumePerPoint != null"
>
consume_per_point,
</if>
<if
test=
"lowOrderAmount != null"
>
low_order_amount,
</if>
<if
test=
"maxPointPerOrder != null"
>
max_point_per_order,
</if>
<if
test=
"type != null"
>
type,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"continueSignDay != null"
>
#{continueSignDay,jdbcType=INTEGER},
</if>
<if
test=
"continueSignPoint != null"
>
#{continueSignPoint,jdbcType=INTEGER},
</if>
<if
test=
"consumePerPoint != null"
>
#{consumePerPoint,jdbcType=DECIMAL},
</if>
<if
test=
"lowOrderAmount != null"
>
#{lowOrderAmount,jdbcType=DECIMAL},
</if>
<if
test=
"maxPointPerOrder != null"
>
#{maxPointPerOrder,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberRuleSettingExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_rule_setting
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_rule_setting
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.continueSignDay != null"
>
continue_sign_day = #{record.continueSignDay,jdbcType=INTEGER},
</if>
<if
test=
"record.continueSignPoint != null"
>
continue_sign_point = #{record.continueSignPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.consumePerPoint != null"
>
consume_per_point = #{record.consumePerPoint,jdbcType=DECIMAL},
</if>
<if
test=
"record.lowOrderAmount != null"
>
low_order_amount = #{record.lowOrderAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.maxPointPerOrder != null"
>
max_point_per_order = #{record.maxPointPerOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.type != null"
>
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_rule_setting
set id = #{record.id,jdbcType=BIGINT},
continue_sign_day = #{record.continueSignDay,jdbcType=INTEGER},
continue_sign_point = #{record.continueSignPoint,jdbcType=INTEGER},
consume_per_point = #{record.consumePerPoint,jdbcType=DECIMAL},
low_order_amount = #{record.lowOrderAmount,jdbcType=DECIMAL},
max_point_per_order = #{record.maxPointPerOrder,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberRuleSetting"
>
update ums_member_rule_setting
<set>
<if
test=
"continueSignDay != null"
>
continue_sign_day = #{continueSignDay,jdbcType=INTEGER},
</if>
<if
test=
"continueSignPoint != null"
>
continue_sign_point = #{continueSignPoint,jdbcType=INTEGER},
</if>
<if
test=
"consumePerPoint != null"
>
consume_per_point = #{consumePerPoint,jdbcType=DECIMAL},
</if>
<if
test=
"lowOrderAmount != null"
>
low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL},
</if>
<if
test=
"maxPointPerOrder != null"
>
max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberRuleSetting"
>
update ums_member_rule_setting
set continue_sign_day = #{continueSignDay,jdbcType=INTEGER},
continue_sign_point = #{continueSignPoint,jdbcType=INTEGER},
consume_per_point = #{consumePerPoint,jdbcType=DECIMAL},
low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL},
max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberRuleSetting"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"continue_sign_day"
jdbcType=
"INTEGER"
property=
"continueSignDay"
/>
<result
column=
"continue_sign_point"
jdbcType=
"INTEGER"
property=
"continueSignPoint"
/>
<result
column=
"consume_per_point"
jdbcType=
"DECIMAL"
property=
"consumePerPoint"
/>
<result
column=
"low_order_amount"
jdbcType=
"DECIMAL"
property=
"lowOrderAmount"
/>
<result
column=
"max_point_per_order"
jdbcType=
"INTEGER"
property=
"maxPointPerOrder"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, continue_sign_day, continue_sign_point, consume_per_point, low_order_amount,
max_point_per_order, type
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberRuleSettingExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_rule_setting
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_rule_setting
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_rule_setting
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberRuleSettingExample"
>
delete from ums_member_rule_setting
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberRuleSetting"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_rule_setting (continue_sign_day, continue_sign_point,
consume_per_point, low_order_amount, max_point_per_order,
type)
values (#{continueSignDay,jdbcType=INTEGER}, #{continueSignPoint,jdbcType=INTEGER},
#{consumePerPoint,jdbcType=DECIMAL}, #{lowOrderAmount,jdbcType=DECIMAL}, #{maxPointPerOrder,jdbcType=INTEGER},
#{type,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberRuleSetting"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_rule_setting
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"continueSignDay != null"
>
continue_sign_day,
</if>
<if
test=
"continueSignPoint != null"
>
continue_sign_point,
</if>
<if
test=
"consumePerPoint != null"
>
consume_per_point,
</if>
<if
test=
"lowOrderAmount != null"
>
low_order_amount,
</if>
<if
test=
"maxPointPerOrder != null"
>
max_point_per_order,
</if>
<if
test=
"type != null"
>
type,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"continueSignDay != null"
>
#{continueSignDay,jdbcType=INTEGER},
</if>
<if
test=
"continueSignPoint != null"
>
#{continueSignPoint,jdbcType=INTEGER},
</if>
<if
test=
"consumePerPoint != null"
>
#{consumePerPoint,jdbcType=DECIMAL},
</if>
<if
test=
"lowOrderAmount != null"
>
#{lowOrderAmount,jdbcType=DECIMAL},
</if>
<if
test=
"maxPointPerOrder != null"
>
#{maxPointPerOrder,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberRuleSettingExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_rule_setting
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_rule_setting
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.continueSignDay != null"
>
continue_sign_day = #{record.continueSignDay,jdbcType=INTEGER},
</if>
<if
test=
"record.continueSignPoint != null"
>
continue_sign_point = #{record.continueSignPoint,jdbcType=INTEGER},
</if>
<if
test=
"record.consumePerPoint != null"
>
consume_per_point = #{record.consumePerPoint,jdbcType=DECIMAL},
</if>
<if
test=
"record.lowOrderAmount != null"
>
low_order_amount = #{record.lowOrderAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.maxPointPerOrder != null"
>
max_point_per_order = #{record.maxPointPerOrder,jdbcType=INTEGER},
</if>
<if
test=
"record.type != null"
>
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_rule_setting
set id = #{record.id,jdbcType=BIGINT},
continue_sign_day = #{record.continueSignDay,jdbcType=INTEGER},
continue_sign_point = #{record.continueSignPoint,jdbcType=INTEGER},
consume_per_point = #{record.consumePerPoint,jdbcType=DECIMAL},
low_order_amount = #{record.lowOrderAmount,jdbcType=DECIMAL},
max_point_per_order = #{record.maxPointPerOrder,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberRuleSetting"
>
update ums_member_rule_setting
<set>
<if
test=
"continueSignDay != null"
>
continue_sign_day = #{continueSignDay,jdbcType=INTEGER},
</if>
<if
test=
"continueSignPoint != null"
>
continue_sign_point = #{continueSignPoint,jdbcType=INTEGER},
</if>
<if
test=
"consumePerPoint != null"
>
consume_per_point = #{consumePerPoint,jdbcType=DECIMAL},
</if>
<if
test=
"lowOrderAmount != null"
>
low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL},
</if>
<if
test=
"maxPointPerOrder != null"
>
max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberRuleSetting"
>
update ums_member_rule_setting
set continue_sign_day = #{continueSignDay,jdbcType=INTEGER},
continue_sign_point = #{continueSignPoint,jdbcType=INTEGER},
consume_per_point = #{consumePerPoint,jdbcType=DECIMAL},
low_order_amount = #{lowOrderAmount,jdbcType=DECIMAL},
max_point_per_order = #{maxPointPerOrder,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
\ No newline at end of file
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberStatisticsInfoMapper.xml
View file @
2f52c6b8
...
@@ -383,768 +383,4 @@
...
@@ -383,768 +383,4 @@
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP}
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_id"
jdbcType=
"BIGINT"
property=
"memberId"
/>
<result
column=
"consume_amount"
jdbcType=
"DECIMAL"
property=
"consumeAmount"
/>
<result
column=
"order_count"
jdbcType=
"INTEGER"
property=
"orderCount"
/>
<result
column=
"coupon_count"
jdbcType=
"INTEGER"
property=
"couponCount"
/>
<result
column=
"comment_count"
jdbcType=
"INTEGER"
property=
"commentCount"
/>
<result
column=
"return_order_count"
jdbcType=
"INTEGER"
property=
"returnOrderCount"
/>
<result
column=
"login_count"
jdbcType=
"INTEGER"
property=
"loginCount"
/>
<result
column=
"attend_count"
jdbcType=
"INTEGER"
property=
"attendCount"
/>
<result
column=
"fans_count"
jdbcType=
"INTEGER"
property=
"fansCount"
/>
<result
column=
"collect_product_count"
jdbcType=
"INTEGER"
property=
"collectProductCount"
/>
<result
column=
"collect_subject_count"
jdbcType=
"INTEGER"
property=
"collectSubjectCount"
/>
<result
column=
"collect_topic_count"
jdbcType=
"INTEGER"
property=
"collectTopicCount"
/>
<result
column=
"collect_comment_count"
jdbcType=
"INTEGER"
property=
"collectCommentCount"
/>
<result
column=
"invite_friend_count"
jdbcType=
"INTEGER"
property=
"inviteFriendCount"
/>
<result
column=
"recent_order_time"
jdbcType=
"TIMESTAMP"
property=
"recentOrderTime"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_id, consume_amount, order_count, coupon_count, comment_count, return_order_count,
login_count, attend_count, fans_count, collect_product_count, collect_subject_count,
collect_topic_count, collect_comment_count, invite_friend_count, recent_order_time
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfoExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_statistics_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_statistics_info
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_statistics_info
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfoExample"
>
delete from ums_member_statistics_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_statistics_info (member_id, consume_amount, order_count,
coupon_count, comment_count, return_order_count,
login_count, attend_count, fans_count,
collect_product_count, collect_subject_count,
collect_topic_count, collect_comment_count,
invite_friend_count, recent_order_time)
values (#{memberId,jdbcType=BIGINT}, #{consumeAmount,jdbcType=DECIMAL}, #{orderCount,jdbcType=INTEGER},
#{couponCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER}, #{returnOrderCount,jdbcType=INTEGER},
#{loginCount,jdbcType=INTEGER}, #{attendCount,jdbcType=INTEGER}, #{fansCount,jdbcType=INTEGER},
#{collectProductCount,jdbcType=INTEGER}, #{collectSubjectCount,jdbcType=INTEGER},
#{collectTopicCount,jdbcType=INTEGER}, #{collectCommentCount,jdbcType=INTEGER},
#{inviteFriendCount,jdbcType=INTEGER}, #{recentOrderTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_statistics_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"consumeAmount != null"
>
consume_amount,
</if>
<if
test=
"orderCount != null"
>
order_count,
</if>
<if
test=
"couponCount != null"
>
coupon_count,
</if>
<if
test=
"commentCount != null"
>
comment_count,
</if>
<if
test=
"returnOrderCount != null"
>
return_order_count,
</if>
<if
test=
"loginCount != null"
>
login_count,
</if>
<if
test=
"attendCount != null"
>
attend_count,
</if>
<if
test=
"fansCount != null"
>
fans_count,
</if>
<if
test=
"collectProductCount != null"
>
collect_product_count,
</if>
<if
test=
"collectSubjectCount != null"
>
collect_subject_count,
</if>
<if
test=
"collectTopicCount != null"
>
collect_topic_count,
</if>
<if
test=
"collectCommentCount != null"
>
collect_comment_count,
</if>
<if
test=
"inviteFriendCount != null"
>
invite_friend_count,
</if>
<if
test=
"recentOrderTime != null"
>
recent_order_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
<if
test=
"consumeAmount != null"
>
#{consumeAmount,jdbcType=DECIMAL},
</if>
<if
test=
"orderCount != null"
>
#{orderCount,jdbcType=INTEGER},
</if>
<if
test=
"couponCount != null"
>
#{couponCount,jdbcType=INTEGER},
</if>
<if
test=
"commentCount != null"
>
#{commentCount,jdbcType=INTEGER},
</if>
<if
test=
"returnOrderCount != null"
>
#{returnOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"loginCount != null"
>
#{loginCount,jdbcType=INTEGER},
</if>
<if
test=
"attendCount != null"
>
#{attendCount,jdbcType=INTEGER},
</if>
<if
test=
"fansCount != null"
>
#{fansCount,jdbcType=INTEGER},
</if>
<if
test=
"collectProductCount != null"
>
#{collectProductCount,jdbcType=INTEGER},
</if>
<if
test=
"collectSubjectCount != null"
>
#{collectSubjectCount,jdbcType=INTEGER},
</if>
<if
test=
"collectTopicCount != null"
>
#{collectTopicCount,jdbcType=INTEGER},
</if>
<if
test=
"collectCommentCount != null"
>
#{collectCommentCount,jdbcType=INTEGER},
</if>
<if
test=
"inviteFriendCount != null"
>
#{inviteFriendCount,jdbcType=INTEGER},
</if>
<if
test=
"recentOrderTime != null"
>
#{recentOrderTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfoExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_statistics_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_statistics_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberId != null"
>
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if
test=
"record.consumeAmount != null"
>
consume_amount = #{record.consumeAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.orderCount != null"
>
order_count = #{record.orderCount,jdbcType=INTEGER},
</if>
<if
test=
"record.couponCount != null"
>
coupon_count = #{record.couponCount,jdbcType=INTEGER},
</if>
<if
test=
"record.commentCount != null"
>
comment_count = #{record.commentCount,jdbcType=INTEGER},
</if>
<if
test=
"record.returnOrderCount != null"
>
return_order_count = #{record.returnOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"record.loginCount != null"
>
login_count = #{record.loginCount,jdbcType=INTEGER},
</if>
<if
test=
"record.attendCount != null"
>
attend_count = #{record.attendCount,jdbcType=INTEGER},
</if>
<if
test=
"record.fansCount != null"
>
fans_count = #{record.fansCount,jdbcType=INTEGER},
</if>
<if
test=
"record.collectProductCount != null"
>
collect_product_count = #{record.collectProductCount,jdbcType=INTEGER},
</if>
<if
test=
"record.collectSubjectCount != null"
>
collect_subject_count = #{record.collectSubjectCount,jdbcType=INTEGER},
</if>
<if
test=
"record.collectTopicCount != null"
>
collect_topic_count = #{record.collectTopicCount,jdbcType=INTEGER},
</if>
<if
test=
"record.collectCommentCount != null"
>
collect_comment_count = #{record.collectCommentCount,jdbcType=INTEGER},
</if>
<if
test=
"record.inviteFriendCount != null"
>
invite_friend_count = #{record.inviteFriendCount,jdbcType=INTEGER},
</if>
<if
test=
"record.recentOrderTime != null"
>
recent_order_time = #{record.recentOrderTime,jdbcType=TIMESTAMP},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_statistics_info
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
consume_amount = #{record.consumeAmount,jdbcType=DECIMAL},
order_count = #{record.orderCount,jdbcType=INTEGER},
coupon_count = #{record.couponCount,jdbcType=INTEGER},
comment_count = #{record.commentCount,jdbcType=INTEGER},
return_order_count = #{record.returnOrderCount,jdbcType=INTEGER},
login_count = #{record.loginCount,jdbcType=INTEGER},
attend_count = #{record.attendCount,jdbcType=INTEGER},
fans_count = #{record.fansCount,jdbcType=INTEGER},
collect_product_count = #{record.collectProductCount,jdbcType=INTEGER},
collect_subject_count = #{record.collectSubjectCount,jdbcType=INTEGER},
collect_topic_count = #{record.collectTopicCount,jdbcType=INTEGER},
collect_comment_count = #{record.collectCommentCount,jdbcType=INTEGER},
invite_friend_count = #{record.inviteFriendCount,jdbcType=INTEGER},
recent_order_time = #{record.recentOrderTime,jdbcType=TIMESTAMP}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
update ums_member_statistics_info
<set>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if
test=
"consumeAmount != null"
>
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
</if>
<if
test=
"orderCount != null"
>
order_count = #{orderCount,jdbcType=INTEGER},
</if>
<if
test=
"couponCount != null"
>
coupon_count = #{couponCount,jdbcType=INTEGER},
</if>
<if
test=
"commentCount != null"
>
comment_count = #{commentCount,jdbcType=INTEGER},
</if>
<if
test=
"returnOrderCount != null"
>
return_order_count = #{returnOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"loginCount != null"
>
login_count = #{loginCount,jdbcType=INTEGER},
</if>
<if
test=
"attendCount != null"
>
attend_count = #{attendCount,jdbcType=INTEGER},
</if>
<if
test=
"fansCount != null"
>
fans_count = #{fansCount,jdbcType=INTEGER},
</if>
<if
test=
"collectProductCount != null"
>
collect_product_count = #{collectProductCount,jdbcType=INTEGER},
</if>
<if
test=
"collectSubjectCount != null"
>
collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER},
</if>
<if
test=
"collectTopicCount != null"
>
collect_topic_count = #{collectTopicCount,jdbcType=INTEGER},
</if>
<if
test=
"collectCommentCount != null"
>
collect_comment_count = #{collectCommentCount,jdbcType=INTEGER},
</if>
<if
test=
"inviteFriendCount != null"
>
invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER},
</if>
<if
test=
"recentOrderTime != null"
>
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
update ums_member_statistics_info
set member_id = #{memberId,jdbcType=BIGINT},
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
order_count = #{orderCount,jdbcType=INTEGER},
coupon_count = #{couponCount,jdbcType=INTEGER},
comment_count = #{commentCount,jdbcType=INTEGER},
return_order_count = #{returnOrderCount,jdbcType=INTEGER},
login_count = #{loginCount,jdbcType=INTEGER},
attend_count = #{attendCount,jdbcType=INTEGER},
fans_count = #{fansCount,jdbcType=INTEGER},
collect_product_count = #{collectProductCount,jdbcType=INTEGER},
collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER},
collect_topic_count = #{collectTopicCount,jdbcType=INTEGER},
collect_comment_count = #{collectCommentCount,jdbcType=INTEGER},
invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER},
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"member_id"
jdbcType=
"BIGINT"
property=
"memberId"
/>
<result
column=
"consume_amount"
jdbcType=
"DECIMAL"
property=
"consumeAmount"
/>
<result
column=
"order_count"
jdbcType=
"INTEGER"
property=
"orderCount"
/>
<result
column=
"coupon_count"
jdbcType=
"INTEGER"
property=
"couponCount"
/>
<result
column=
"comment_count"
jdbcType=
"INTEGER"
property=
"commentCount"
/>
<result
column=
"return_order_count"
jdbcType=
"INTEGER"
property=
"returnOrderCount"
/>
<result
column=
"login_count"
jdbcType=
"INTEGER"
property=
"loginCount"
/>
<result
column=
"attend_count"
jdbcType=
"INTEGER"
property=
"attendCount"
/>
<result
column=
"fans_count"
jdbcType=
"INTEGER"
property=
"fansCount"
/>
<result
column=
"collect_product_count"
jdbcType=
"INTEGER"
property=
"collectProductCount"
/>
<result
column=
"collect_subject_count"
jdbcType=
"INTEGER"
property=
"collectSubjectCount"
/>
<result
column=
"collect_topic_count"
jdbcType=
"INTEGER"
property=
"collectTopicCount"
/>
<result
column=
"collect_comment_count"
jdbcType=
"INTEGER"
property=
"collectCommentCount"
/>
<result
column=
"invite_friend_count"
jdbcType=
"INTEGER"
property=
"inviteFriendCount"
/>
<result
column=
"recent_order_time"
jdbcType=
"TIMESTAMP"
property=
"recentOrderTime"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, member_id, consume_amount, order_count, coupon_count, comment_count, return_order_count,
login_count, attend_count, fans_count, collect_product_count, collect_subject_count,
collect_topic_count, collect_comment_count, invite_friend_count, recent_order_time
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfoExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_statistics_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_statistics_info
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_statistics_info
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfoExample"
>
delete from ums_member_statistics_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_statistics_info (member_id, consume_amount, order_count,
coupon_count, comment_count, return_order_count,
login_count, attend_count, fans_count,
collect_product_count, collect_subject_count,
collect_topic_count, collect_comment_count,
invite_friend_count, recent_order_time)
values (#{memberId,jdbcType=BIGINT}, #{consumeAmount,jdbcType=DECIMAL}, #{orderCount,jdbcType=INTEGER},
#{couponCount,jdbcType=INTEGER}, #{commentCount,jdbcType=INTEGER}, #{returnOrderCount,jdbcType=INTEGER},
#{loginCount,jdbcType=INTEGER}, #{attendCount,jdbcType=INTEGER}, #{fansCount,jdbcType=INTEGER},
#{collectProductCount,jdbcType=INTEGER}, #{collectSubjectCount,jdbcType=INTEGER},
#{collectTopicCount,jdbcType=INTEGER}, #{collectCommentCount,jdbcType=INTEGER},
#{inviteFriendCount,jdbcType=INTEGER}, #{recentOrderTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_statistics_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
member_id,
</if>
<if
test=
"consumeAmount != null"
>
consume_amount,
</if>
<if
test=
"orderCount != null"
>
order_count,
</if>
<if
test=
"couponCount != null"
>
coupon_count,
</if>
<if
test=
"commentCount != null"
>
comment_count,
</if>
<if
test=
"returnOrderCount != null"
>
return_order_count,
</if>
<if
test=
"loginCount != null"
>
login_count,
</if>
<if
test=
"attendCount != null"
>
attend_count,
</if>
<if
test=
"fansCount != null"
>
fans_count,
</if>
<if
test=
"collectProductCount != null"
>
collect_product_count,
</if>
<if
test=
"collectSubjectCount != null"
>
collect_subject_count,
</if>
<if
test=
"collectTopicCount != null"
>
collect_topic_count,
</if>
<if
test=
"collectCommentCount != null"
>
collect_comment_count,
</if>
<if
test=
"inviteFriendCount != null"
>
invite_friend_count,
</if>
<if
test=
"recentOrderTime != null"
>
recent_order_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
<if
test=
"consumeAmount != null"
>
#{consumeAmount,jdbcType=DECIMAL},
</if>
<if
test=
"orderCount != null"
>
#{orderCount,jdbcType=INTEGER},
</if>
<if
test=
"couponCount != null"
>
#{couponCount,jdbcType=INTEGER},
</if>
<if
test=
"commentCount != null"
>
#{commentCount,jdbcType=INTEGER},
</if>
<if
test=
"returnOrderCount != null"
>
#{returnOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"loginCount != null"
>
#{loginCount,jdbcType=INTEGER},
</if>
<if
test=
"attendCount != null"
>
#{attendCount,jdbcType=INTEGER},
</if>
<if
test=
"fansCount != null"
>
#{fansCount,jdbcType=INTEGER},
</if>
<if
test=
"collectProductCount != null"
>
#{collectProductCount,jdbcType=INTEGER},
</if>
<if
test=
"collectSubjectCount != null"
>
#{collectSubjectCount,jdbcType=INTEGER},
</if>
<if
test=
"collectTopicCount != null"
>
#{collectTopicCount,jdbcType=INTEGER},
</if>
<if
test=
"collectCommentCount != null"
>
#{collectCommentCount,jdbcType=INTEGER},
</if>
<if
test=
"inviteFriendCount != null"
>
#{inviteFriendCount,jdbcType=INTEGER},
</if>
<if
test=
"recentOrderTime != null"
>
#{recentOrderTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfoExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_statistics_info
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_statistics_info
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.memberId != null"
>
member_id = #{record.memberId,jdbcType=BIGINT},
</if>
<if
test=
"record.consumeAmount != null"
>
consume_amount = #{record.consumeAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.orderCount != null"
>
order_count = #{record.orderCount,jdbcType=INTEGER},
</if>
<if
test=
"record.couponCount != null"
>
coupon_count = #{record.couponCount,jdbcType=INTEGER},
</if>
<if
test=
"record.commentCount != null"
>
comment_count = #{record.commentCount,jdbcType=INTEGER},
</if>
<if
test=
"record.returnOrderCount != null"
>
return_order_count = #{record.returnOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"record.loginCount != null"
>
login_count = #{record.loginCount,jdbcType=INTEGER},
</if>
<if
test=
"record.attendCount != null"
>
attend_count = #{record.attendCount,jdbcType=INTEGER},
</if>
<if
test=
"record.fansCount != null"
>
fans_count = #{record.fansCount,jdbcType=INTEGER},
</if>
<if
test=
"record.collectProductCount != null"
>
collect_product_count = #{record.collectProductCount,jdbcType=INTEGER},
</if>
<if
test=
"record.collectSubjectCount != null"
>
collect_subject_count = #{record.collectSubjectCount,jdbcType=INTEGER},
</if>
<if
test=
"record.collectTopicCount != null"
>
collect_topic_count = #{record.collectTopicCount,jdbcType=INTEGER},
</if>
<if
test=
"record.collectCommentCount != null"
>
collect_comment_count = #{record.collectCommentCount,jdbcType=INTEGER},
</if>
<if
test=
"record.inviteFriendCount != null"
>
invite_friend_count = #{record.inviteFriendCount,jdbcType=INTEGER},
</if>
<if
test=
"record.recentOrderTime != null"
>
recent_order_time = #{record.recentOrderTime,jdbcType=TIMESTAMP},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_statistics_info
set id = #{record.id,jdbcType=BIGINT},
member_id = #{record.memberId,jdbcType=BIGINT},
consume_amount = #{record.consumeAmount,jdbcType=DECIMAL},
order_count = #{record.orderCount,jdbcType=INTEGER},
coupon_count = #{record.couponCount,jdbcType=INTEGER},
comment_count = #{record.commentCount,jdbcType=INTEGER},
return_order_count = #{record.returnOrderCount,jdbcType=INTEGER},
login_count = #{record.loginCount,jdbcType=INTEGER},
attend_count = #{record.attendCount,jdbcType=INTEGER},
fans_count = #{record.fansCount,jdbcType=INTEGER},
collect_product_count = #{record.collectProductCount,jdbcType=INTEGER},
collect_subject_count = #{record.collectSubjectCount,jdbcType=INTEGER},
collect_topic_count = #{record.collectTopicCount,jdbcType=INTEGER},
collect_comment_count = #{record.collectCommentCount,jdbcType=INTEGER},
invite_friend_count = #{record.inviteFriendCount,jdbcType=INTEGER},
recent_order_time = #{record.recentOrderTime,jdbcType=TIMESTAMP}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
update ums_member_statistics_info
<set>
<if
test=
"memberId != null"
>
member_id = #{memberId,jdbcType=BIGINT},
</if>
<if
test=
"consumeAmount != null"
>
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
</if>
<if
test=
"orderCount != null"
>
order_count = #{orderCount,jdbcType=INTEGER},
</if>
<if
test=
"couponCount != null"
>
coupon_count = #{couponCount,jdbcType=INTEGER},
</if>
<if
test=
"commentCount != null"
>
comment_count = #{commentCount,jdbcType=INTEGER},
</if>
<if
test=
"returnOrderCount != null"
>
return_order_count = #{returnOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"loginCount != null"
>
login_count = #{loginCount,jdbcType=INTEGER},
</if>
<if
test=
"attendCount != null"
>
attend_count = #{attendCount,jdbcType=INTEGER},
</if>
<if
test=
"fansCount != null"
>
fans_count = #{fansCount,jdbcType=INTEGER},
</if>
<if
test=
"collectProductCount != null"
>
collect_product_count = #{collectProductCount,jdbcType=INTEGER},
</if>
<if
test=
"collectSubjectCount != null"
>
collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER},
</if>
<if
test=
"collectTopicCount != null"
>
collect_topic_count = #{collectTopicCount,jdbcType=INTEGER},
</if>
<if
test=
"collectCommentCount != null"
>
collect_comment_count = #{collectCommentCount,jdbcType=INTEGER},
</if>
<if
test=
"inviteFriendCount != null"
>
invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER},
</if>
<if
test=
"recentOrderTime != null"
>
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberStatisticsInfo"
>
update ums_member_statistics_info
set member_id = #{memberId,jdbcType=BIGINT},
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
order_count = #{orderCount,jdbcType=INTEGER},
coupon_count = #{couponCount,jdbcType=INTEGER},
comment_count = #{commentCount,jdbcType=INTEGER},
return_order_count = #{returnOrderCount,jdbcType=INTEGER},
login_count = #{loginCount,jdbcType=INTEGER},
attend_count = #{attendCount,jdbcType=INTEGER},
fans_count = #{fansCount,jdbcType=INTEGER},
collect_product_count = #{collectProductCount,jdbcType=INTEGER},
collect_subject_count = #{collectSubjectCount,jdbcType=INTEGER},
collect_topic_count = #{collectTopicCount,jdbcType=INTEGER},
collect_comment_count = #{collectCommentCount,jdbcType=INTEGER},
invite_friend_count = #{inviteFriendCount,jdbcType=INTEGER},
recent_order_time = #{recentOrderTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
\ No newline at end of file
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTagMapper.xml
View file @
2f52c6b8
...
@@ -193,388 +193,4 @@
...
@@ -193,388 +193,4 @@
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL}
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberTag"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"finish_order_count"
jdbcType=
"INTEGER"
property=
"finishOrderCount"
/>
<result
column=
"finish_order_amount"
jdbcType=
"DECIMAL"
property=
"finishOrderAmount"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, name, finish_order_count, finish_order_amount
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberTagExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_tag
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_tag
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_tag
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberTagExample"
>
delete from ums_member_tag
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberTag"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_tag (name, finish_order_count, finish_order_amount
)
values (#{name,jdbcType=VARCHAR}, #{finishOrderCount,jdbcType=INTEGER}, #{finishOrderAmount,jdbcType=DECIMAL}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberTag"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_tag
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"finishOrderCount != null"
>
finish_order_count,
</if>
<if
test=
"finishOrderAmount != null"
>
finish_order_amount,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"finishOrderCount != null"
>
#{finishOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"finishOrderAmount != null"
>
#{finishOrderAmount,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberTagExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_tag
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_tag
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.name != null"
>
name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.finishOrderCount != null"
>
finish_order_count = #{record.finishOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"record.finishOrderAmount != null"
>
finish_order_amount = #{record.finishOrderAmount,jdbcType=DECIMAL},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_tag
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
finish_order_count = #{record.finishOrderCount,jdbcType=INTEGER},
finish_order_amount = #{record.finishOrderAmount,jdbcType=DECIMAL}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberTag"
>
update ums_member_tag
<set>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"finishOrderCount != null"
>
finish_order_count = #{finishOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"finishOrderAmount != null"
>
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberTag"
>
update ums_member_tag
set name = #{name,jdbcType=VARCHAR},
finish_order_count = #{finishOrderCount,jdbcType=INTEGER},
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberTag"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"finish_order_count"
jdbcType=
"INTEGER"
property=
"finishOrderCount"
/>
<result
column=
"finish_order_amount"
jdbcType=
"DECIMAL"
property=
"finishOrderAmount"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, name, finish_order_count, finish_order_amount
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberTagExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_tag
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_tag
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_tag
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberTagExample"
>
delete from ums_member_tag
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberTag"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_tag (name, finish_order_count, finish_order_amount
)
values (#{name,jdbcType=VARCHAR}, #{finishOrderCount,jdbcType=INTEGER}, #{finishOrderAmount,jdbcType=DECIMAL}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberTag"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_tag
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"finishOrderCount != null"
>
finish_order_count,
</if>
<if
test=
"finishOrderAmount != null"
>
finish_order_amount,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"finishOrderCount != null"
>
#{finishOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"finishOrderAmount != null"
>
#{finishOrderAmount,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberTagExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_tag
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_tag
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.name != null"
>
name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.finishOrderCount != null"
>
finish_order_count = #{record.finishOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"record.finishOrderAmount != null"
>
finish_order_amount = #{record.finishOrderAmount,jdbcType=DECIMAL},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_tag
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
finish_order_count = #{record.finishOrderCount,jdbcType=INTEGER},
finish_order_amount = #{record.finishOrderAmount,jdbcType=DECIMAL}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberTag"
>
update ums_member_tag
<set>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"finishOrderCount != null"
>
finish_order_count = #{finishOrderCount,jdbcType=INTEGER},
</if>
<if
test=
"finishOrderAmount != null"
>
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberTag"
>
update ums_member_tag
set name = #{name,jdbcType=VARCHAR},
finish_order_count = #{finishOrderCount,jdbcType=INTEGER},
finish_order_amount = #{finishOrderAmount,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
\ No newline at end of file
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberTaskMapper.xml
View file @
2f52c6b8
...
@@ -208,418 +208,4 @@
...
@@ -208,418 +208,4 @@
type = #{type,jdbcType=INTEGER}
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberTask"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"growth"
jdbcType=
"INTEGER"
property=
"growth"
/>
<result
column=
"intergration"
jdbcType=
"INTEGER"
property=
"intergration"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, name, growth, intergration, type
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberTaskExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_task
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_task
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_task
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberTaskExample"
>
delete from ums_member_task
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberTask"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_task (name, growth, intergration,
type)
values (#{name,jdbcType=VARCHAR}, #{growth,jdbcType=INTEGER}, #{intergration,jdbcType=INTEGER},
#{type,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberTask"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_task
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"growth != null"
>
growth,
</if>
<if
test=
"intergration != null"
>
intergration,
</if>
<if
test=
"type != null"
>
type,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"growth != null"
>
#{growth,jdbcType=INTEGER},
</if>
<if
test=
"intergration != null"
>
#{intergration,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberTaskExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_task
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_task
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.name != null"
>
name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.growth != null"
>
growth = #{record.growth,jdbcType=INTEGER},
</if>
<if
test=
"record.intergration != null"
>
intergration = #{record.intergration,jdbcType=INTEGER},
</if>
<if
test=
"record.type != null"
>
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_task
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
growth = #{record.growth,jdbcType=INTEGER},
intergration = #{record.intergration,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberTask"
>
update ums_member_task
<set>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"growth != null"
>
growth = #{growth,jdbcType=INTEGER},
</if>
<if
test=
"intergration != null"
>
intergration = #{intergration,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberTask"
>
update ums_member_task
set name = #{name,jdbcType=VARCHAR},
growth = #{growth,jdbcType=INTEGER},
intergration = #{intergration,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<resultMap
id=
"BaseResultMap"
type=
"com.macro.mall.model.UmsMemberTask"
>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"growth"
jdbcType=
"INTEGER"
property=
"growth"
/>
<result
column=
"intergration"
jdbcType=
"INTEGER"
property=
"intergration"
/>
<result
column=
"type"
jdbcType=
"INTEGER"
property=
"type"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
id, name, growth, intergration, type
</sql>
<select
id=
"selectByExample"
parameterType=
"com.macro.mall.model.UmsMemberTaskExample"
resultMap=
"BaseResultMap"
>
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from ums_member_task
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from ums_member_task
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from ums_member_task
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"com.macro.mall.model.UmsMemberTaskExample"
>
delete from ums_member_task
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberTask"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_task (name, growth, intergration,
type)
values (#{name,jdbcType=VARCHAR}, #{growth,jdbcType=INTEGER}, #{intergration,jdbcType=INTEGER},
#{type,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberTask"
>
<selectKey
keyProperty=
"id"
order=
"AFTER"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_task
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
name,
</if>
<if
test=
"growth != null"
>
growth,
</if>
<if
test=
"intergration != null"
>
intergration,
</if>
<if
test=
"type != null"
>
type,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"growth != null"
>
#{growth,jdbcType=INTEGER},
</if>
<if
test=
"intergration != null"
>
#{intergration,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"com.macro.mall.model.UmsMemberTaskExample"
resultType=
"java.lang.Integer"
>
select count(*) from ums_member_task
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
update ums_member_task
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.name != null"
>
name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.growth != null"
>
growth = #{record.growth,jdbcType=INTEGER},
</if>
<if
test=
"record.intergration != null"
>
intergration = #{record.intergration,jdbcType=INTEGER},
</if>
<if
test=
"record.type != null"
>
type = #{record.type,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
update ums_member_task
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
growth = #{record.growth,jdbcType=INTEGER},
intergration = #{record.intergration,jdbcType=INTEGER},
type = #{record.type,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.macro.mall.model.UmsMemberTask"
>
update ums_member_task
<set>
<if
test=
"name != null"
>
name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"growth != null"
>
growth = #{growth,jdbcType=INTEGER},
</if>
<if
test=
"intergration != null"
>
intergration = #{intergration,jdbcType=INTEGER},
</if>
<if
test=
"type != null"
>
type = #{type,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.macro.mall.model.UmsMemberTask"
>
update ums_member_task
set name = #{name,jdbcType=VARCHAR},
growth = #{growth,jdbcType=INTEGER},
intergration = #{intergration,jdbcType=INTEGER},
type = #{type,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>
</mapper>
\ No newline at end of file
Prev
1
2
3
4
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment