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
390132d9
Commit
390132d9
authored
Apr 17, 2018
by
zhh
Browse files
修复主键重名问题
parent
d74b7c2b
Changes
67
Hide whitespace changes
Inline
Side-by-side
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponHistoryMapper.xml
View file @
390132d9
...
...
@@ -106,25 +106,24 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsCouponHistory"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_history (
id,
coupon_id, member_id,
coupon_code,
member_nickname, get_type,
create_time,
use_status, use_time,
order_id
)
values (
#{id,jdbcType=BIGINT},
#{couponId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT},
#{couponCode,jdbcType=VARCHAR},
#{memberNickname,jdbcType=VARCHAR}, #{getType,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{useStatus,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP},
#{orderId,jdbcType=CHAR}
)
insert into sms_coupon_history (coupon_id, member_id,
coupon_code,
member_nickname, get_type,
create_time,
use_status, use_time,
order_id
)
values (#{couponId,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT},
#{couponCode,jdbcType=VARCHAR},
#{memberNickname,jdbcType=VARCHAR}, #{getType,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{useStatus,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP},
#{orderId,jdbcType=CHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsCouponHistory"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_history
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"couponId != null"
>
coupon_id,
</if>
...
...
@@ -154,7 +153,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"couponId != null"
>
#{couponId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponMapper.xml
View file @
390132d9
...
...
@@ -113,29 +113,28 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsCoupon"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon (
id,
type, name,
platform,
count, amount,
per_limit,
min_point, start_time,
end_time,
use_type, note,
publish_count,
use_count, enable_time,
code,
member_level)
values (
#{id,jdbcType=BIGINT},
#{type,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{platform,jdbcType=VARCHAR},
#{count,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL},
#{perLimit,jdbcType=INTEGER},
#{minPoint,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP},
#{useType,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR},
#{publishCount,jdbcType=INTEGER},
#{useCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP},
#{code,jdbcType=VARCHAR},
#{memberLevel,jdbcType=INTEGER})
insert into sms_coupon (type, name,
platform,
count, amount,
per_limit,
min_point, start_time,
end_time,
use_type, note,
publish_count,
use_count, enable_time,
code,
member_level)
values (#{type,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{platform,jdbcType=VARCHAR},
#{count,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL},
#{perLimit,jdbcType=INTEGER},
#{minPoint,jdbcType=DECIMAL}, #{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP},
#{useType,jdbcType=INTEGER}, #{note,jdbcType=VARCHAR},
#{publishCount,jdbcType=INTEGER},
#{useCount,jdbcType=INTEGER}, #{enableTime,jdbcType=TIMESTAMP},
#{code,jdbcType=VARCHAR},
#{memberLevel,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsCoupon"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"type != null"
>
type,
</if>
...
...
@@ -186,7 +185,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"type != null"
>
#{type,jdbcType=INTEGER},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.xml
View file @
390132d9
...
...
@@ -98,21 +98,18 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsCouponProductCategoryRelation"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_category_relation (id, coupon_id, product_category_id
)
values (#{id,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT}
)
insert into sms_coupon_product_category_relation (coupon_id, product_category_id)
values (#{couponId,jdbcType=BIGINT}, #{productCategoryId,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsCouponProductCategoryRelation"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_category_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"couponId != null"
>
coupon_id,
</if>
...
...
@@ -121,7 +118,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"couponId != null"
>
#{couponId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsCouponProductRelationMapper.xml
View file @
390132d9
...
...
@@ -98,21 +98,18 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsCouponProductRelation"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_relation (id, coupon_id, product_id
)
values (#{id,jdbcType=BIGINT}, #{couponId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}
)
insert into sms_coupon_product_relation (coupon_id, product_id)
values (#{couponId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsCouponProductRelation"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_coupon_product_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"couponId != null"
>
coupon_id,
</if>
...
...
@@ -121,7 +118,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"couponId != null"
>
#{couponId,jdbcType=INTEGER},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionLogMapper.xml
View file @
390132d9
...
...
@@ -102,23 +102,22 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsFlashPromotionLog"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_log (
id,
member_id, product_id,
member_phone,
product_name, subscribe_time,
send_time
)
values (
#{id,jdbcType=INTEGER},
#{memberId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT},
#{memberPhone,jdbcType=VARCHAR},
#{productName,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=TIMESTAMP},
#{sendTime,jdbcType=TIMESTAMP}
)
insert into sms_flash_promotion_log (member_id, product_id,
member_phone,
product_name, subscribe_time,
send_time
)
values (#{memberId,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT},
#{memberPhone,jdbcType=VARCHAR},
#{productName,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=TIMESTAMP},
#{sendTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsFlashPromotionLog"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion_log
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"memberId != null"
>
member_id,
</if>
...
...
@@ -139,7 +138,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=INTEGER},
<if
test=
"memberId != null"
>
#{memberId,jdbcType=INTEGER},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsFlashPromotionMapper.xml
View file @
390132d9
...
...
@@ -101,23 +101,20 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsFlashPromotion"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion (id, title, start_time,
end_time, status, time_name
)
values (#{id,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP},
#{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, #{timeName,jdbcType=VARCHAR}
)
insert into sms_flash_promotion (title, start_time, end_time,
status, time_name)
values (#{title,jdbcType=VARCHAR}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER}, #{timeName,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsFlashPromotion"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Integer"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Integer"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_flash_promotion
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"title != null"
>
title,
</if>
...
...
@@ -135,7 +132,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=INTEGER},
<if
test=
"title != null"
>
#{title,jdbcType=VARCHAR},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeAdvertiseMapper.xml
View file @
390132d9
...
...
@@ -107,25 +107,24 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsHomeAdvertise"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_advertise (
id,
name, type,
pic,
start_time, end_time,
status,
click_count, order_count,
url,
note)
values (
#{id,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
#{pic,jdbcType=VARCHAR},
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER},
#{clickCount,jdbcType=INTEGER}, #{orderCount,jdbcType=INTEGER},
#{url,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR})
insert into sms_home_advertise (name, type,
pic,
start_time, end_time,
status,
click_count, order_count,
url,
note)
values (#{name,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
#{pic,jdbcType=VARCHAR},
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER},
#{clickCount,jdbcType=INTEGER}, #{orderCount,jdbcType=INTEGER},
#{url,jdbcType=VARCHAR},
#{note,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsHomeAdvertise"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_advertise
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"name != null"
>
name,
</if>
...
...
@@ -158,7 +157,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeBrandMapper.xml
View file @
390132d9
...
...
@@ -100,21 +100,20 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsHomeBrand"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_brand (
id,
brand_id, brand_name,
recommend_status,
sort)
values (
#{id,jdbcType=BIGINT},
#{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR},
#{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
insert into sms_home_brand (brand_id, brand_name,
recommend_status,
sort)
values (#{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR},
#{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsHomeBrand"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_brand
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"brandId != null"
>
brand_id,
</if>
...
...
@@ -129,7 +128,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"brandId != null"
>
#{brandId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeNewProductMapper.xml
View file @
390132d9
...
...
@@ -100,21 +100,20 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsHomeNewProduct"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_new_product (
id,
product_id, product_name,
recommend_status,
sort)
values (
#{id,jdbcType=BIGINT},
#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR},
#{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
insert into sms_home_new_product (product_id, product_name,
recommend_status,
sort)
values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR},
#{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsHomeNewProduct"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_new_product
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"productId != null"
>
product_id,
</if>
...
...
@@ -129,7 +128,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"productId != null"
>
#{productId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendProductMapper.xml
View file @
390132d9
...
...
@@ -100,21 +100,20 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsHomeRecommendProduct"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_product (
id,
product_id, product_name,
recommend_status,
sort)
values (
#{id,jdbcType=BIGINT},
#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR},
#{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
insert into sms_home_recommend_product (product_id, product_name,
recommend_status,
sort)
values (#{productId,jdbcType=BIGINT}, #{productName,jdbcType=VARCHAR},
#{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsHomeRecommendProduct"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_product
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"productId != null"
>
product_id,
</if>
...
...
@@ -129,7 +128,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"productId != null"
>
#{productId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/SmsHomeRecommendSubjectMapper.xml
View file @
390132d9
...
...
@@ -100,21 +100,20 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.SmsHomeRecommendSubject"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_subject (
id,
subject_id, subject_name,
recommend_status,
sort)
values (
#{id,jdbcType=BIGINT},
#{subjectId,jdbcType=BIGINT}, #{subjectName,jdbcType=VARCHAR},
#{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
insert into sms_home_recommend_subject (subject_id, subject_name,
recommend_status,
sort)
values (#{subjectId,jdbcType=BIGINT}, #{subjectName,jdbcType=VARCHAR},
#{recommendStatus,jdbcType=INTEGER},
#{sort,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.SmsHomeRecommendSubject"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into sms_home_recommend_subject
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"subjectId != null"
>
subject_id,
</if>
...
...
@@ -129,7 +128,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"subjectId != null"
>
#{subjectId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminLoginLogMapper.xml
View file @
390132d9
...
...
@@ -101,23 +101,20 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsAdminLoginLog"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin_login_log (id, admin_id, create_time,
ip, address, user_agent
)
values (#{id,jdbcType=BIGINT}, #{adminId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{ip,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR}
)
insert into ums_admin_login_log (admin_id, create_time, ip,
address, user_agent)
values (#{adminId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{ip,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsAdminLoginLog"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin_login_log
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"adminId != null"
>
admin_id,
</if>
...
...
@@ -135,7 +132,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"adminId != null"
>
#{adminId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsAdminMapper.xml
View file @
390132d9
...
...
@@ -100,21 +100,20 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsAdmin"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin (
id,
username, password,
icon,
email)
values (
#{id,jdbcType=BIGINT},
#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{icon,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR})
insert into ums_admin (username, password,
icon,
email)
values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{icon,jdbcType=VARCHAR},
#{email,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsAdmin"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_admin
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"username != null"
>
username,
</if>
...
...
@@ -129,7 +128,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"username != null"
>
#{username,jdbcType=VARCHAR},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsGrowthChangeHistoryMapper.xml
View file @
390132d9
...
...
@@ -104,23 +104,22 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsGrowthChangeHistory"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_growth_change_history (
id,
member_id, create_time,
change_type,
change_count, operate_man,
operate_note,
source_type)
values (
#{id,jdbcType=BIGINT},
#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{changeType,jdbcType=INTEGER},
#{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR},
#{operateNote,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER})
insert into ums_growth_change_history (member_id, create_time,
change_type,
change_count, operate_man,
operate_note,
source_type)
values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{changeType,jdbcType=INTEGER},
#{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR},
#{operateNote,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsGrowthChangeHistory"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_growth_change_history
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"memberId != null"
>
member_id,
</if>
...
...
@@ -144,7 +143,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntegrationChangeHistoryMapper.xml
View file @
390132d9
...
...
@@ -104,23 +104,22 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsIntegrationChangeHistory"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_integration_change_history (
id,
member_id, create_time,
change_type,
change_count, operate_man,
operate_note,
source_type)
values (
#{id,jdbcType=BIGINT},
#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{changeType,jdbcType=INTEGER},
#{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR},
#{operateNote,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER})
insert into ums_integration_change_history (member_id, create_time,
change_type,
change_count, operate_man,
operate_note,
source_type)
values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{changeType,jdbcType=INTEGER},
#{changeCount,jdbcType=INTEGER}, #{operateMan,jdbcType=VARCHAR},
#{operateNote,jdbcType=VARCHAR},
#{sourceType,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsIntegrationChangeHistory"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_integration_change_history
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"memberId != null"
>
member_id,
</if>
...
...
@@ -144,7 +143,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsIntergrationConsumeSettingMapper.xml
View file @
390132d9
...
...
@@ -100,21 +100,20 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsIntergrationConsumeSetting"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_intergration_consume_setting (
id,
deduction_per_amount, max_percent_per_order,
insert into ums_intergration_consume_setting (deduction_per_amount, max_percent_per_order,
use_unit, coupon_status)
values (
#{id,jdbcType=BIGINT},
#{deductionPerAmount,jdbcType=INTEGER}, #{maxPercentPerOrder,jdbcType=INTEGER},
values (#{deductionPerAmount,jdbcType=INTEGER}, #{maxPercentPerOrder,jdbcType=INTEGER},
#{useUnit,jdbcType=INTEGER}, #{couponStatus,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsIntergrationConsumeSetting"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_intergration_consume_setting
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"deductionPerAmount != null"
>
deduction_per_amount,
</if>
...
...
@@ -129,7 +128,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"deductionPerAmount != null"
>
#{deductionPerAmount,jdbcType=INTEGER},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLevelMapper.xml
View file @
390132d9
...
...
@@ -110,29 +110,26 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberLevel"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_level (id, name, growth_point,
default_status, free_freight_point, comment_growth_point,
priviledge_free_freight, priviledge_sign_in,
priviledge_comment, priviledge_promotion,
insert into ums_member_level (name, growth_point, default_status,
free_freight_point, comment_growth_point, priviledge_free_freight,
priviledge_sign_in, priviledge_comment, priviledge_promotion,
priviledge_member_price, priviledge_birthday,
note)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{growthPoint,jdbcType=INTEGER},
#{defaultStatus,jdbcType=INTEGER}, #{freeFreightPoint,jdbcType=DECIMAL}, #{commentGrowthPoint,jdbcType=INTEGER},
#{priviledgeFreeFreight,jdbcType=INTEGER}, #{priviledgeSignIn,jdbcType=INTEGER},
#{priviledgeComment,jdbcType=INTEGER}, #{priviledgePromotion,jdbcType=INTEGER},
values (#{name,jdbcType=VARCHAR}, #{growthPoint,jdbcType=INTEGER}, #{defaultStatus,jdbcType=INTEGER},
#{freeFreightPoint,jdbcType=DECIMAL}, #{commentGrowthPoint,jdbcType=INTEGER}, #{priviledgeFreeFreight,jdbcType=INTEGER},
#{priviledgeSignIn,jdbcType=INTEGER}, #{priviledgeComment,jdbcType=INTEGER}, #{priviledgePromotion,jdbcType=INTEGER},
#{priviledgeMemberPrice,jdbcType=INTEGER}, #{priviledgeBirthday,jdbcType=INTEGER},
#{note,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberLevel"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_level
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"name != null"
>
name,
</if>
...
...
@@ -171,7 +168,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberLoginLogMapper.xml
View file @
390132d9
...
...
@@ -102,23 +102,22 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberLoginLog"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_login_log (
id,
member_id, create_time,
ip,
city, login_type,
province
)
values (
#{id,jdbcType=BIGINT},
#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{ip,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR}, #{loginType,jdbcType=INTEGER},
#{province,jdbcType=VARCHAR}
)
insert into ums_member_login_log (member_id, create_time,
ip,
city, login_type,
province
)
values (#{memberId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{ip,jdbcType=VARCHAR},
#{city,jdbcType=VARCHAR}, #{loginType,jdbcType=INTEGER},
#{province,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.macro.mall.model.UmsMemberLoginLog"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_login_log
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"memberId != null"
>
member_id,
</if>
...
...
@@ -139,7 +138,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMapper.xml
View file @
390132d9
...
...
@@ -116,31 +116,28 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMember"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member (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)
values (#{id,jdbcType=BIGINT}, #{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 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=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
id,
<if
test=
"memberLevelId != null"
>
member_level_id,
</if>
...
...
@@ -197,7 +194,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"memberLevelId != null"
>
#{memberLevelId,jdbcType=BIGINT},
</if>
...
...
mall-mbg/src/main/resources/com/macro/mall/mapper/UmsMemberMemberTagRelationMapper.xml
View file @
390132d9
...
...
@@ -98,21 +98,18 @@
</if>
</delete>
<insert
id=
"insert"
parameterType=
"com.macro.mall.model.UmsMemberMemberTagRelation"
>
<selectKey
keyProperty=
"id"
order=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<selectKey
keyProperty=
"id"
order=
"
AFTER
"
resultType=
"java.lang.Long"
>
SELECT LAST_INSERT_ID()
</selectKey>
insert into ums_member_member_tag_relation (id, member_id, tag_id
)
values (#{id,jdbcType=BIGINT}, #{memberId,jdbcType=BIGINT}, #{tagId,jdbcType=BIGINT}
)
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=
"
BEFORE
"
resultType=
"java.lang.Long"
>
<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=
","
>
id,
<if
test=
"memberId != null"
>
member_id,
</if>
...
...
@@ -121,7 +118,6 @@
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
#{id,jdbcType=BIGINT},
<if
test=
"memberId != null"
>
#{memberId,jdbcType=BIGINT},
</if>
...
...
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