Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
65ffa3ff
Commit
65ffa3ff
authored
Nov 18, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'holiday-price' into dev
parents
faa85388
433fd030
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
AppUserController.java
...github/wxiaoqi/security/admin/rest/AppUserController.java
+1
-1
OrderCancelBiz.java
...ava/com/xxfc/platform/order/biz/inner/OrderCancelBiz.java
+13
-10
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUserController.java
View file @
65ffa3ff
...
...
@@ -151,7 +151,7 @@ public class AppUserController extends CommonBaseController{
Integer
id
=
userVo
.
getId
();
Integer
positionId
=
userVo
.
getPositionId
();
BeanUtils
.
copyProperties
(
userDTO
,
userVo
);
if
(
userVo
.
getIsMember
()!=
null
&&
userVo
.
getIsMember
()>
0
){
if
(
userVo
.
getIsMember
()!=
null
&&
userVo
.
getIsMember
()>
0
){
//获取用户会员信息
UserMemberVo
memberVo
=
userMemberBiz
.
getMemberInfoByUserId
(
userid
);
if
(
memberVo
!=
null
){
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderCancelBiz.java
View file @
65ffa3ff
...
...
@@ -175,8 +175,10 @@ public class OrderCancelBiz {
csv
.
setUsedfreeDayNum
(
inProgressVO
.
getUsedfreeDays
());
csv
.
setUsedFreeAmount
(
inProgressVO
.
getUsedFreeDaysAmount
());
csv
.
setHadConpon
((
StrUtil
.
isNotBlank
(
baseOrder
.
getCouponTickerNos
())?
Boolean
.
TRUE
:
Boolean
.
FALSE
));
csv
.
setViolateAmount
(
BigDecimal
.
ZERO
);
csv
.
setViolateDesc
(
""
);
csv
.
setViolateAmount
(
inProgressVO
.
getViolateAmount
());
csv
.
setViolateDesc
(
inProgressVO
.
getViolateDesc
());
csv
.
setViolateAmountList
(
inProgressVO
.
getViolateAmountList
());
csv
.
setAbleUsedDayNum
(
inProgressVO
.
getUseAmountList
().
size
());
csv
.
setSameUseUnitPriceFromList
(
inProgressVO
.
getUseAmountList
());
...
...
@@ -185,14 +187,15 @@ public class OrderCancelBiz {
csv
.
setOverAmountList
(
inProgressVO
.
getOverAmountList
());
//如果有扣款项,则生成额外的费用明细
if
(
oad
.
getDeductions
().
size
()
>
0
)
{
for
(
OrderAccountDeduction
deduction
:
oad
.
getDeductions
())
{
if
(
DeductionTypeEnum
.
VIOLATE_ADVANCE
.
getCode
().
equals
(
deduction
.
getType
()))
{
csv
.
setViolateAmount
(
deduction
.
getAmount
());
csv
.
setViolateDesc
(
deduction
.
getName
());
}
}
}
// inProgressVO已经包含 ViolateAmount ViolateDesc
// if(oad.getDeductions().size() > 0) {
// for(OrderAccountDeduction deduction : oad.getDeductions()) {
// if(DeductionTypeEnum.VIOLATE_ADVANCE.getCode().equals(deduction.getType())) {
// csv.setViolateAmount(deduction.getAmount());
// csv.setViolateDesc(deduction.getName());
// }
// }
// }
//设置订单数据
baseOrder
.
setViolateAmount
(
csv
.
getViolateAmount
());
...
...
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