记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
f18d0b9d
Commit
f18d0b9d
authored
Aug 19, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_member_voucher_refund' into dev_member_voucher_refund
parents
0d017a78
276ee79e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
47 deletions
+44
-47
member_voucher_refund.sql
docu/member_voucher_refund.sql
+24
-20
CandyUserCouponBasicDto.java
.../liquidnet/service/candy/dto/CandyUserCouponBasicDto.java
+1
-2
CandyCouponCode.java
...a/com/liquidnet/service/candy/entity/CandyCouponCode.java
+3
-8
CandyUserCouponMapper.xml
.../liquidnet/service/candy/mapper/CandyUserCouponMapper.xml
+2
-2
db_ln_candy_initialdata.sql
...idnet-service-candy-impl/docu/db_ln_candy_initialdata.sql
+14
-15
No files found.
docu/member_voucher_refund.sql
View file @
f18d0b9d
...
@@ -35,7 +35,7 @@ create table candy_mgt_coupon
...
@@ -35,7 +35,7 @@ create table candy_mgt_coupon
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
state
tinyint
comment
'发放状态[0-未发放|1-已发放|2-无效|9-发放中]'
,
state
tinyint
comment
'发放状态[0-未发放|1-已发放|2-无效|9-发放中]'
,
bind_type
smallint
comment
'领取方式[0-用户输入兑换|1-发放至用户]'
,
#
bind_type
smallint
comment
'领取方式[0-用户输入兑换|1-发放至用户]'
,
event_amt
int
comment
'发放量'
,
event_amt
int
comment
'发放量'
,
event_type
tinyint
comment
'发放类型[10-全体用户|1-会员|2-手机号]'
,
event_type
tinyint
comment
'发放类型[10-全体用户|1-会员|2-手机号]'
,
event_limit
text
comment
'`发放类型`为2-手机号时发放手机号以,分隔'
,
event_limit
text
comment
'`发放类型`为2-手机号时发放手机号以,分隔'
,
...
@@ -56,7 +56,7 @@ create table candy_coupon
...
@@ -56,7 +56,7 @@ create table candy_coupon
(
(
mid
bigint
unsigned
auto_increment
primary
key
,
mid
bigint
unsigned
auto_increment
primary
key
,
coupon_id
varchar
(
64
)
not
null
,
coupon_id
varchar
(
64
)
not
null
,
state
tinyint
default
0
comment
'券状态[0-INIT|1-NORMAL|2-INVALID]'
,
state
tinyint
comment
'券状态[0-INIT|1-NORMAL|2-INVALID]'
,
title
varchar
(
50
)
not
null
comment
'券标题'
,
title
varchar
(
50
)
not
null
comment
'券标题'
,
label
varchar
(
50
)
comment
'标注'
,
label
varchar
(
50
)
comment
'标注'
,
...
@@ -65,6 +65,7 @@ create table candy_coupon
...
@@ -65,6 +65,7 @@ create table candy_coupon
busi_type
smallint
comment
'业务类别[0-全场|1-演出|2-商品|3-优先购|4-会员]'
,
busi_type
smallint
comment
'业务类别[0-全场|1-演出|2-商品|3-优先购|4-会员]'
,
cou_type
smallint
comment
'券类型[1-代金券|2-满减券|3-兑换券|4-折扣券]'
,
cou_type
smallint
comment
'券类型[1-代金券|2-满减券|3-兑换券|4-折扣券]'
,
bind_type
smallint
comment
'领取方式[0-用户输入兑换|1-发放至用户]'
,
bind_type
smallint
comment
'领取方式[0-用户输入兑换|1-发放至用户]'
,
discount
decimal
(
8
,
2
)
comment
'折扣[8折即0.8]'
,
discount
decimal
(
8
,
2
)
comment
'折扣[8折即0.8]'
,
val_face
decimal
(
8
,
2
)
comment
'面值'
,
val_face
decimal
(
8
,
2
)
comment
'面值'
,
val_over
decimal
(
8
,
2
)
comment
'满减~满'
,
val_over
decimal
(
8
,
2
)
comment
'满减~满'
,
...
@@ -80,6 +81,10 @@ create table candy_coupon
...
@@ -80,6 +81,10 @@ create table candy_coupon
effect_at
datetime
(
3
)
comment
'生效时间'
,
effect_at
datetime
(
3
)
comment
'生效时间'
,
expire_at
datetime
(
3
)
comment
'过期时间'
,
expire_at
datetime
(
3
)
comment
'过期时间'
,
operator
varchar
(
64
)
not
null
comment
'操作人'
,
created_at
datetime
(
3
)
not
null
,
updated_at
datetime
(
3
),
comment
varchar
(
255
)
comment
varchar
(
255
)
)
engine
=
InnoDB
comment
'券基础信息'
;
)
engine
=
InnoDB
comment
'券基础信息'
;
create
unique
index
uidx_candy_coupon_id
on
candy_coupon
(
coupon_id
);
create
unique
index
uidx_candy_coupon_id
on
candy_coupon
(
coupon_id
);
...
@@ -93,7 +98,7 @@ create table candy_coupon_rule
...
@@ -93,7 +98,7 @@ create table candy_coupon_rule
crule_id
varchar
(
64
)
not
null
,
crule_id
varchar
(
64
)
not
null
,
coupon_id
varchar
(
64
)
not
null
,
coupon_id
varchar
(
64
)
not
null
,
use_scope
smallint
comment
'适用范围[100-全场|90-演出|80-商品]'
,
use_scope
smallint
comment
'适用范围[100-全场|90-演出|80-商品]'
,
busi_name
varchar
(
64
)
comment
'适用名称'
,
busi_name
varchar
(
64
)
comment
'适用名称'
,
busi_id
varchar
(
64
)
comment
'适用ID'
,
busi_id
varchar
(
64
)
comment
'适用ID'
,
state
tinyint
comment
'0-INIT,1-NORMAL,2-INVALID'
,
state
tinyint
comment
'0-INIT,1-NORMAL,2-INVALID'
,
comment
varchar
(
255
)
comment
varchar
(
255
)
...
@@ -106,12 +111,11 @@ drop table if exists candy_coupon_code;
...
@@ -106,12 +111,11 @@ drop table if exists candy_coupon_code;
create
table
candy_coupon_code
create
table
candy_coupon_code
(
(
mid
bigint
unsigned
auto_increment
primary
key
,
mid
bigint
unsigned
auto_increment
primary
key
,
ccode
_id
varchar
(
64
)
not
null
comment
'兑换
码'
,
ccode
varchar
(
64
)
not
null
comment
'券
码'
,
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
state
tinyint
comment
'状态[0-未使用|1-已使用|2-失效|3-退回]'
,
state
tinyint
comment
'状态[0-未使用|1-已使用|2-失效|3-退回]'
,
target_uid
varchar
(
64
)
comment
'目标用户UID'
,
used_uid
varchar
(
64
)
comment
'兑换用户UID'
,
redeem_uid
varchar
(
64
)
comment
'兑换用户UID'
,
created_at
datetime
(
3
)
not
null
,
created_at
datetime
(
3
)
not
null
,
updated_at
datetime
(
3
),
updated_at
datetime
(
3
),
...
@@ -119,26 +123,26 @@ create table candy_coupon_code
...
@@ -119,26 +123,26 @@ create table candy_coupon_code
comment
varchar
(
255
)
comment
varchar
(
255
)
)
engine
=
InnoDB
comment
'券码信息'
;
)
engine
=
InnoDB
comment
'券码信息'
;
create
unique
index
uidx_candy_coupon_code_id
on
candy_coupon_code
(
ccode
_id
);
create
unique
index
uidx_candy_coupon_code_id
on
candy_coupon_code
(
ccode
);
#
用户券信息
#
用户券信息
drop
table
if
exists
candy_user_coupon
;
drop
table
if
exists
candy_user_coupon
;
create
table
candy_user_coupon
create
table
candy_user_coupon
(
(
mid
bigint
unsigned
auto_increment
primary
key
,
mid
bigint
unsigned
auto_increment
primary
key
,
ucoupon_id
varchar
(
64
)
not
null
,
ucoupon_id
varchar
(
64
)
not
null
,
mcoupon_id
varchar
(
64
)
not
null
comment
'~candy_mgt_coupon.mcoupon_id'
,
mcoupon_id
varchar
(
64
)
not
null
comment
'~candy_mgt_coupon.mcoupon_id'
,
uid
varchar
(
64
)
not
null
comment
'~adam_user.uid'
,
uid
varchar
(
64
)
not
null
comment
'~adam_user.uid'
,
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
state
tinyint
default
0
comment
'券状态[0-待兑换|1-可用|2-无效|3-已使用]'
,
state
tinyint
comment
'用户券状态[1-可用|2-无效|3-已过期|5-已使用]'
,
bind_at
datetime
(
3
)
comment
'入账时间'
,
ccode
varchar
(
64
)
comment
'券码~candy_coupon_code.ccode'
,
redeem_code
varchar
(
64
)
comment
'兑换码'
,
bind_at
datetime
(
3
)
comment
'激活时间'
,
redeem_at
datetime
(
3
)
comment
'兑换时间'
,
used_at
datetime
(
3
)
comment
'使用时间'
,
used_at
datetime
(
3
)
comment
'使用时间'
,
used_for
varchar
(
255
)
comment
'用于记录购买的内容'
,
used_for
varchar
(
255
)
comment
'用于记录购买的内容'
,
comment
varchar
(
255
)
comment
varchar
(
255
)
)
engine
=
InnoDB
comment
'用户券信息'
;
)
engine
=
InnoDB
comment
'用户券信息'
;
create
unique
index
uidx_candy_user_coupon_id
on
candy_user_coupon
(
ucoupon_id
);
create
unique
index
uidx_candy_user_coupon_id
on
candy_user_coupon
(
ucoupon_id
);
create
index
idx_candy_ucoupon_uid_state
on
candy_user_coupon
(
uid
,
state
);
-- >>------------------------------------------------------------------------------------
-- >>------------------------------------------------------------------------------------
\ No newline at end of file
liquidnet-bus-do/liquidnet-service-candy-do/src/main/java/com/liquidnet/service/candy/dto/CandyUserCouponBasicDto.java
View file @
f18d0b9d
...
@@ -5,7 +5,6 @@ import lombok.Data;
...
@@ -5,7 +5,6 @@ import lombok.Data;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
@Data
@Data
...
@@ -45,7 +44,7 @@ public class CandyUserCouponBasicDto implements Serializable {
...
@@ -45,7 +44,7 @@ public class CandyUserCouponBasicDto implements Serializable {
private
String
uid
;
private
String
uid
;
//private String couponId;
//private String couponId;
private
Integer
state
;
private
Integer
state
;
private
String
redeemC
ode
;
private
String
cc
ode
;
private
LocalDateTime
bindAt
;
private
LocalDateTime
bindAt
;
private
LocalDateTime
usedAt
;
private
LocalDateTime
usedAt
;
private
String
usedFor
;
private
String
usedFor
;
...
...
liquidnet-bus-do/liquidnet-service-candy-do/src/main/java/com/liquidnet/service/candy/entity/CandyCouponCode.java
View file @
f18d0b9d
...
@@ -25,9 +25,9 @@ public class CandyCouponCode implements Serializable {
...
@@ -25,9 +25,9 @@ public class CandyCouponCode implements Serializable {
private
Long
mid
;
private
Long
mid
;
/**
/**
*
兑换
码
*
券
码
*/
*/
private
String
ccode
Id
;
private
String
ccode
;
/**
/**
* ~candy_coupon.coupon_id
* ~candy_coupon.coupon_id
...
@@ -39,15 +39,10 @@ public class CandyCouponCode implements Serializable {
...
@@ -39,15 +39,10 @@ public class CandyCouponCode implements Serializable {
*/
*/
private
Integer
state
;
private
Integer
state
;
/**
* 目标用户UID
*/
private
String
targetUid
;
/**
/**
* 兑换用户UID
* 兑换用户UID
*/
*/
private
String
redeem
Uid
;
private
String
used
Uid
;
private
LocalDateTime
createdAt
;
private
LocalDateTime
createdAt
;
...
...
liquidnet-bus-do/liquidnet-service-candy-do/src/main/resources/com/liquidnet/service/candy/mapper/CandyUserCouponMapper.xml
View file @
f18d0b9d
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
<result
column=
"uid"
jdbcType=
"VARCHAR"
property=
"uid"
/>
<result
column=
"uid"
jdbcType=
"VARCHAR"
property=
"uid"
/>
<!-- <result column="coupon_id" jdbcType="VARCHAR" property="couponId" />-->
<!-- <result column="coupon_id" jdbcType="VARCHAR" property="couponId" />-->
<result
column=
"state"
jdbcType=
"TINYINT"
property=
"state"
/>
<result
column=
"state"
jdbcType=
"TINYINT"
property=
"state"
/>
<result
column=
"
redeem_code"
jdbcType=
"VARCHAR"
property=
"redeemC
ode"
/>
<result
column=
"
ccode"
jdbcType=
"VARCHAR"
property=
"cc
ode"
/>
<result
column=
"bind_at"
jdbcType=
"TIMESTAMP"
property=
"bindAt"
/>
<result
column=
"bind_at"
jdbcType=
"TIMESTAMP"
property=
"bindAt"
/>
<result
column=
"used_at"
jdbcType=
"TIMESTAMP"
property=
"usedAt"
/>
<result
column=
"used_at"
jdbcType=
"TIMESTAMP"
property=
"usedAt"
/>
<result
column=
"used_for"
jdbcType=
"VARCHAR"
property=
"usedFor"
/>
<result
column=
"used_for"
jdbcType=
"VARCHAR"
property=
"usedFor"
/>
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
cc.discount, cc.val_face, cc.val_over, cc.val_minus, cc.`overlay`, cc.overlay_level,
cc.discount, cc.val_face, cc.val_over, cc.val_minus, cc.`overlay`, cc.overlay_level,
cc.validity,cc.redeem_validity, cc.redeem_start, cc.redeem_stop, cc.effect_at, cc.expire_at,
cc.validity,cc.redeem_validity, cc.redeem_start, cc.redeem_stop, cc.effect_at, cc.expire_at,
cuc.ucoupon_id, cuc.`uid`, cuc.`state`, cuc.bind_at, cuc.
redeem_
code, cuc.redeem_at, cuc.used_at, cuc.used_for
cuc.ucoupon_id, cuc.`uid`, cuc.`state`, cuc.bind_at, cuc.
c
code, cuc.redeem_at, cuc.used_at, cuc.used_for
</sql>
</sql>
<select
id=
"selectMultiForUserCouponBasicDto"
resultMap=
"Rst_UserCouponBasicDto"
>
<select
id=
"selectMultiForUserCouponBasicDto"
resultMap=
"Rst_UserCouponBasicDto"
>
...
...
liquidnet-bus-service/liquidnet-service-candy/liquidnet-service-candy-impl/docu/db_ln_candy_initialdata.sql
View file @
f18d0b9d
...
@@ -86,12 +86,11 @@ drop table if exists candy_coupon_code;
...
@@ -86,12 +86,11 @@ drop table if exists candy_coupon_code;
create
table
candy_coupon_code
create
table
candy_coupon_code
(
(
mid
bigint
unsigned
auto_increment
primary
key
,
mid
bigint
unsigned
auto_increment
primary
key
,
ccode
_id
varchar
(
64
)
not
null
comment
'兑换
码'
,
ccode
varchar
(
64
)
not
null
comment
'券
码'
,
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
state
tinyint
comment
'状态[0-未使用|1-已使用|2-失效|3-退回]'
,
state
tinyint
comment
'状态[0-未使用|1-已使用|2-失效|3-退回]'
,
target_uid
varchar
(
64
)
comment
'目标用户UID'
,
used_uid
varchar
(
64
)
comment
'兑换用户UID'
,
redeem_uid
varchar
(
64
)
comment
'兑换用户UID'
,
created_at
datetime
(
3
)
not
null
,
created_at
datetime
(
3
)
not
null
,
updated_at
datetime
(
3
),
updated_at
datetime
(
3
),
...
@@ -99,25 +98,25 @@ create table candy_coupon_code
...
@@ -99,25 +98,25 @@ create table candy_coupon_code
comment
varchar
(
255
)
comment
varchar
(
255
)
)
engine
=
InnoDB
comment
'券码信息'
;
)
engine
=
InnoDB
comment
'券码信息'
;
create
unique
index
uidx_candy_coupon_code_id
on
candy_coupon_code
(
ccode
_id
);
create
unique
index
uidx_candy_coupon_code_id
on
candy_coupon_code
(
ccode
);
#
用户券信息
#
用户券信息
drop
table
if
exists
candy_user_coupon
;
drop
table
if
exists
candy_user_coupon
;
create
table
candy_user_coupon
create
table
candy_user_coupon
(
(
mid
bigint
unsigned
auto_increment
primary
key
,
mid
bigint
unsigned
auto_increment
primary
key
,
ucoupon_id
varchar
(
64
)
not
null
,
ucoupon_id
varchar
(
64
)
not
null
,
mcoupon_id
varchar
(
64
)
not
null
comment
'~candy_mgt_coupon.mcoupon_id'
,
mcoupon_id
varchar
(
64
)
not
null
comment
'~candy_mgt_coupon.mcoupon_id'
,
uid
varchar
(
64
)
not
null
comment
'~adam_user.uid'
,
uid
varchar
(
64
)
not
null
comment
'~adam_user.uid'
,
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
coupon_id
varchar
(
64
)
not
null
comment
'~candy_coupon.coupon_id'
,
state
tinyint
comment
'用户券状态[1-可用|2-无效|3-已过期|5-已使用]'
,
state
tinyint
comment
'用户券状态[1-可用|2-无效|3-已过期|5-已使用]'
,
redeem_code
varchar
(
64
)
comment
'兑换码
'
,
ccode
varchar
(
64
)
comment
'券码~candy_coupon_code.ccode
'
,
bind_at
datetime
(
3
)
comment
'激活时间'
,
bind_at
datetime
(
3
)
comment
'激活时间'
,
used_at
datetime
(
3
)
comment
'使用时间'
,
used_at
datetime
(
3
)
comment
'使用时间'
,
used_for
varchar
(
255
)
comment
'用于记录购买的内容'
,
used_for
varchar
(
255
)
comment
'用于记录购买的内容'
,
comment
varchar
(
255
)
comment
varchar
(
255
)
)
engine
=
InnoDB
comment
'用户券信息'
;
)
engine
=
InnoDB
comment
'用户券信息'
;
create
unique
index
uidx_candy_user_coupon_id
on
candy_user_coupon
(
ucoupon_id
);
create
unique
index
uidx_candy_user_coupon_id
on
candy_user_coupon
(
ucoupon_id
);
create
index
idx_candy_ucoupon_uid_state
on
candy_user_coupon
(
uid
,
state
);
create
index
idx_candy_ucoupon_uid_state
on
candy_user_coupon
(
uid
,
state
);
...
...
Write
Preview
Markdown
is supported
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