Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
camp
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
camp
camp
Commits
c54932a8
Commit
c54932a8
authored
May 15, 2020
by
jiaheming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update channel vip add privilege
parent
c91429db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
PayService.java
...main/java/mobi/mixiong/camp/service/order/PayService.java
+2
-0
RefundService.java
...n/java/mobi/mixiong/camp/service/order/RefundService.java
+3
-4
No files found.
service/src/main/java/mobi/mixiong/camp/service/order/PayService.java
View file @
c54932a8
...
...
@@ -95,6 +95,7 @@ public class PayService {
eventChannel
.
publish
(
OnsEventType
.
ORDER_PAY_SUCCESS_OTHER
,
param
);
break
;
case
VIP:
case
CHANNEL_VIP:
if
(
CommodityOfVipTypeEnum
.
VIP_OF_YEAR
.
getCode
().
equals
(
Integer
.
valueOf
(
commodityDto
.
getAttachKey
())))
{
userPrivilegeDs
.
addUserMxMember
(
order
.
getPassport
(),
CommodityOfVipTypeEnum
.
VIP_OF_YEAR
.
getDays
(),
param
.
getOrderSn
(),
param
.
getTransactionSn
());
...
...
@@ -140,6 +141,7 @@ public class PayService {
eventChannel
.
publish
(
OnsEventType
.
ORDER_REFUND_SUCCESS
,
param
);
break
;
case
VIP:
case
CHANNEL_VIP:
String
transactionSn
=
param
.
getTransactionSn
();
Transaction
trans
=
transactionService
.
getByOrderSnAndStatusAndType
(
orderSn
,
TransactionStatus
.
CREATE_REFUND
,
TransactionType
.
REFUND
);
...
...
service/src/main/java/mobi/mixiong/camp/service/order/RefundService.java
View file @
c54932a8
...
...
@@ -29,18 +29,17 @@ public class RefundService {
CommodityDto
commodity
=
commodityDs
.
getCommodityById
(
order
.
getCommodityId
());
CommodityTypeEnum
commodityType
=
CommodityTypeEnum
.
getByCode
(
commodity
.
getCommodityType
());
switch
(
commodityType
)
{
case
CAMP:
{
case
CAMP:
Long
attachId
=
Long
.
parseLong
(
commodity
.
getAttachId
());
programMemberDs
.
cancelUserPrivilege
(
attachId
,
order
);
break
;
}
case
VIP:
{
case
VIP:
case
CHANNEL_VIP:
CommodityOfVipTypeEnum
vipType
=
CommodityOfVipTypeEnum
.
getByCode
(
Integer
.
parseInt
(
commodity
.
getAttachKey
()));
if
(
vipType
!=
null
)
{
userPrivilegeDs
.
removeUserMxMember
(
order
.
getPassport
(),
vipType
.
getDays
(),
order
.
getOrderSn
(),
transactionSn
);
}
break
;
}
default
:
{
throw
new
ServiceException
(
"商品信息不正确,取消权益失败"
);
}
...
...
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