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
39c3c1ad
Commit
39c3c1ad
authored
Nov 19, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev
parents
0407e6a2
de8e1246
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
58 additions
and
14 deletions
+58
-14
MyWalletBiz.java
...va/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
+1
-1
AppUserController.java
...github/wxiaoqi/security/admin/rest/AppUserController.java
+1
-1
AppUserSellingWaterMapper.xml
...n/src/main/resources/mapper/AppUserSellingWaterMapper.xml
+20
-2
InProgressVO.java
.../com/xxfc/platform/order/pojo/calculate/InProgressVO.java
+10
-0
OrderAccountBiz.java
...ain/java/com/xxfc/platform/order/biz/OrderAccountBiz.java
+2
-0
OrderCalculateBiz.java
.../com/xxfc/platform/order/biz/inner/OrderCalculateBiz.java
+9
-0
OrderCancelBiz.java
...ava/com/xxfc/platform/order/biz/inner/OrderCancelBiz.java
+15
-10
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/MyWalletBiz.java
View file @
39c3c1ad
...
@@ -148,7 +148,7 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> implements In
...
@@ -148,7 +148,7 @@ public class MyWalletBiz extends BaseBiz<MyWalletMapper, MyWallet> implements In
walletpg
.
setWithdrawaling
(
withDrawaling
);
walletpg
.
setWithdrawaling
(
withDrawaling
);
walletpg
.
setWithdrawals
(
walletpg
.
getWithdrawals
()
==
null
?
new
BigDecimal
(
0
)
:
walletpg
.
getWithdrawals
());
walletpg
.
setWithdrawals
(
walletpg
.
getWithdrawals
()
==
null
?
new
BigDecimal
(
0
)
:
walletpg
.
getWithdrawals
());
walletpg
.
setUnbooked
(
walletpg
.
getUnbooked
()
==
null
?
new
BigDecimal
(
0
)
:
walletpg
.
getUnbooked
());
walletpg
.
setUnbooked
(
walletpg
.
getUnbooked
()
==
null
?
new
BigDecimal
(
0
)
:
walletpg
.
getUnbooked
());
walletpg
.
setTotalAmount
(
walletpg
.
getTo
day
Amount
()
==
null
?
new
BigDecimal
(
0
)
:
walletpg
.
getTotalAmount
());
walletpg
.
setTotalAmount
(
walletpg
.
getTo
tal
Amount
()
==
null
?
new
BigDecimal
(
0
)
:
walletpg
.
getTotalAmount
());
walletpg
.
setTotalConsumption
(
totalConsumpution
);
walletpg
.
setTotalConsumption
(
totalConsumpution
);
AppUserDetail
appUserDetail
=
userdetailMap
.
get
(
wallet
.
getUserId
());
AppUserDetail
appUserDetail
=
userdetailMap
.
get
(
wallet
.
getUserId
());
if
(
Objects
.
nonNull
(
appUserDetail
)){
if
(
Objects
.
nonNull
(
appUserDetail
)){
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUserController.java
View file @
39c3c1ad
...
@@ -151,7 +151,7 @@ public class AppUserController extends CommonBaseController{
...
@@ -151,7 +151,7 @@ public class AppUserController extends CommonBaseController{
Integer
id
=
userVo
.
getId
();
Integer
id
=
userVo
.
getId
();
Integer
positionId
=
userVo
.
getPositionId
();
Integer
positionId
=
userVo
.
getPositionId
();
BeanUtils
.
copyProperties
(
userDTO
,
userVo
);
BeanUtils
.
copyProperties
(
userDTO
,
userVo
);
if
(
userVo
.
getIsMember
()!=
null
&&
userVo
.
getIsMember
()>
0
){
if
(
userVo
.
getIsMember
()!=
null
&&
userVo
.
getIsMember
()>
0
){
//获取用户会员信息
//获取用户会员信息
UserMemberVo
memberVo
=
userMemberBiz
.
getMemberInfoByUserId
(
userid
);
UserMemberVo
memberVo
=
userMemberBiz
.
getMemberInfoByUserId
(
userid
);
if
(
memberVo
!=
null
){
if
(
memberVo
!=
null
){
...
...
ace-modules/ace-admin/src/main/resources/mapper/AppUserSellingWaterMapper.xml
View file @
39c3c1ad
...
@@ -96,8 +96,26 @@ FROM
...
@@ -96,8 +96,26 @@ FROM
SELECT
SELECT
ausw.*,
ausw.*,
aul.username AS `phone`,
aul.username AS `phone`,
IFNULL(aud.realname,aull.username) AS `sourceName`,
(
IFNULL(audd.realname,aul.username) AS `userName`
CASE
WHEN aud.realname = "" THEN
aull.username
WHEN aud.realname IS NULL THEN
aull.username
ELSE
aud.realname
END
)AS `sourceName`,
(
CASE
WHEN audd.realname = "" THEN
aul.username
WHEN audd.realname IS NULL THEN
aul.username
ELSE
audd.realname
END
) AS `userName`
FROM
FROM
( SELECT * FROM `app_user_selling_water` WHERE 1 = 1
( SELECT * FROM `app_user_selling_water` WHERE 1 = 1
<if
test=
"status !=null"
>
<if
test=
"status !=null"
>
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/calculate/InProgressVO.java
View file @
39c3c1ad
...
@@ -60,6 +60,16 @@ public class InProgressVO {
...
@@ -60,6 +60,16 @@ public class InProgressVO {
*/
*/
List
<
String
>
backCoupons
=
Lists
.
newArrayList
();
List
<
String
>
backCoupons
=
Lists
.
newArrayList
();
/**
* 优惠金额
*/
private
BigDecimal
couponAmount
=
BigDecimal
.
ZERO
;
/**
* 优惠描述
*/
private
String
couponDesc
=
""
;
/**
/**
* 返还的免费天数
* 返还的免费天数
*/
*/
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderAccountBiz.java
View file @
39c3c1ad
...
@@ -483,6 +483,8 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> {
...
@@ -483,6 +483,8 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> {
//生成额外的费用明细
//生成额外的费用明细
csv
.
setConsumeAmount
(
inProgressVO
.
getConsumeAmount
());
csv
.
setConsumeAmount
(
inProgressVO
.
getConsumeAmount
());
csv
.
setCouponAmount
(
inProgressVO
.
getCouponAmount
());
csv
.
setCouponDesc
(
inProgressVO
.
getCouponDesc
());
csv
.
setModelAmount
(
vehicleItemDTO
.
getUnitPrice
());
csv
.
setModelAmount
(
vehicleItemDTO
.
getUnitPrice
());
csv
.
setUsedAmount
(
inProgressVO
.
getUsedAmount
());
csv
.
setUsedAmount
(
inProgressVO
.
getUsedAmount
());
csv
.
setUsedDayNum
(
inProgressVO
.
getUsedDays
());
csv
.
setUsedDayNum
(
inProgressVO
.
getUsedDays
());
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderCalculateBiz.java
View file @
39c3c1ad
...
@@ -149,6 +149,15 @@ public class OrderCalculateBiz {
...
@@ -149,6 +149,15 @@ public class OrderCalculateBiz {
if
(
couponAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
if
(
couponAmount
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
)
{
//能够使用优惠券,则不返还
//能够使用优惠券,则不返还
couponAmounts
.
add
(
couponAmount
);
couponAmounts
.
add
(
couponAmount
);
//叠加优惠券金额
inProgressVO
.
setCouponAmount
(
inProgressVO
.
getCouponAmount
().
add
(
couponAmount
));
//叠加优惠券描述
List
<
Coupon
>
ableUsedCoupons
=
activityFeign
.
couponsByTickerNoList
(
CollUtil
.
newArrayList
(
tickerNo
));
if
(
null
!=
ableUsedCoupons
&&
ableUsedCoupons
.
size
()
>
0
)
{
inProgressVO
.
setCouponDesc
(
inProgressVO
.
getCouponDesc
()+
ableUsedCoupons
.
get
(
0
).
getTitle
());
}
}
else
{
}
else
{
backCouponNos
.
add
(
tickerNo
);
backCouponNos
.
add
(
tickerNo
);
}
}
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderCancelBiz.java
View file @
39c3c1ad
...
@@ -167,14 +167,18 @@ public class OrderCancelBiz {
...
@@ -167,14 +167,18 @@ public class OrderCancelBiz {
CancelStartedVO
csv
=
new
CancelStartedVO
();
CancelStartedVO
csv
=
new
CancelStartedVO
();
csv
.
setType
(
CostDetailExtend
.
CANCEL_STARTED
);
csv
.
setType
(
CostDetailExtend
.
CANCEL_STARTED
);
csv
.
setConsumeAmount
(
inProgressVO
.
getConsumeAmount
());
csv
.
setConsumeAmount
(
inProgressVO
.
getConsumeAmount
());
csv
.
setCouponAmount
(
inProgressVO
.
getCouponAmount
());
csv
.
setCouponDesc
(
inProgressVO
.
getCouponDesc
());
csv
.
setModelAmount
(
vehicleItemDTO
.
getUnitPrice
());
csv
.
setModelAmount
(
vehicleItemDTO
.
getUnitPrice
());
csv
.
setUsedAmount
(
inProgressVO
.
getUsedAmount
());
csv
.
setUsedAmount
(
inProgressVO
.
getUsedAmount
());
csv
.
setUsedDayNum
(
inProgressVO
.
getUsedDays
());
csv
.
setUsedDayNum
(
inProgressVO
.
getUsedDays
());
csv
.
setUsedfreeDayNum
(
inProgressVO
.
getUsedfreeDays
());
csv
.
setUsedfreeDayNum
(
inProgressVO
.
getUsedfreeDays
());
csv
.
setUsedFreeAmount
(
inProgressVO
.
getUsedFreeDaysAmount
());
csv
.
setUsedFreeAmount
(
inProgressVO
.
getUsedFreeDaysAmount
());
csv
.
setHadConpon
((
StrUtil
.
isNotBlank
(
baseOrder
.
getCouponTickerNos
())?
Boolean
.
TRUE
:
Boolean
.
FALSE
));
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
.
setAbleUsedDayNum
(
inProgressVO
.
getUseAmountList
().
size
());
csv
.
setSameUseUnitPriceFromList
(
inProgressVO
.
getUseAmountList
());
csv
.
setSameUseUnitPriceFromList
(
inProgressVO
.
getUseAmountList
());
...
@@ -183,14 +187,15 @@ public class OrderCancelBiz {
...
@@ -183,14 +187,15 @@ public class OrderCancelBiz {
csv
.
setOverAmountList
(
inProgressVO
.
getOverAmountList
());
csv
.
setOverAmountList
(
inProgressVO
.
getOverAmountList
());
//如果有扣款项,则生成额外的费用明细
//如果有扣款项,则生成额外的费用明细
if
(
oad
.
getDeductions
().
size
()
>
0
)
{
// inProgressVO已经包含 ViolateAmount ViolateDesc
for
(
OrderAccountDeduction
deduction
:
oad
.
getDeductions
())
{
// if(oad.getDeductions().size() > 0) {
if
(
DeductionTypeEnum
.
VIOLATE_ADVANCE
.
getCode
().
equals
(
deduction
.
getType
()))
{
// for(OrderAccountDeduction deduction : oad.getDeductions()) {
csv
.
setViolateAmount
(
deduction
.
getAmount
());
// if(DeductionTypeEnum.VIOLATE_ADVANCE.getCode().equals(deduction.getType())) {
csv
.
setViolateDesc
(
deduction
.
getName
());
// csv.setViolateAmount(deduction.getAmount());
}
// csv.setViolateDesc(deduction.getName());
}
// }
}
// }
// }
//设置订单数据
//设置订单数据
baseOrder
.
setViolateAmount
(
csv
.
getViolateAmount
());
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