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
5ddc3146
Commit
5ddc3146
authored
Aug 09, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
b57d29a5
aee12c96
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
9 deletions
+45
-9
UserCouponVo.java
...main/java/com/xxfc/platform/activity/vo/UserCouponVo.java
+6
-0
UserCouponBiz.java
...in/java/com/xxfc/platform/activity/biz/UserCouponBiz.java
+21
-5
DedDetailDTO.java
.../main/java/com/xxfc/platform/order/pojo/DedDetailDTO.java
+10
-0
OrderRefundBiz.java
...main/java/com/xxfc/platform/order/biz/OrderRefundBiz.java
+8
-4
No files found.
xx-activity/xx-activity-api/src/main/java/com/xxfc/platform/activity/vo/UserCouponVo.java
View file @
5ddc3146
...
...
@@ -149,6 +149,12 @@ public class UserCouponVo {
*/
@ApiModelProperty
(
value
=
"跳转链接"
)
private
String
url
;
/**
* 是否选中
*/
@ApiModelProperty
(
value
=
"是否选中"
)
private
Integer
isChecked
;
}
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/UserCouponBiz.java
View file @
5ddc3146
...
...
@@ -160,15 +160,31 @@ public class UserCouponBiz extends BaseBiz<UserCouponMapper, UserCoupon> {
}
// list.sort(Comparator.comparing(UserCouponVo::getStatus));
}
if
(
list1
.
size
()>
0
){
list1
.
sort
(
Comparator
.
comparing
(
UserCouponVo:
:
getStatus
));
}
BigDecimal
mAmount
=
BigDecimal
.
ZERO
;
if
(
list2
.
size
()>
0
){
if
(
mAmount
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
UserCouponVo
userCouponVo
=
list2
.
get
(
0
);
if
(
userCouponVo
!=
null
){
mAmount
=
userCouponVo
.
getUsedAmount
();
userCouponVo
.
setIsChecked
(
1
);
list2
.
set
(
0
,
userCouponVo
);
}
}
list2
.
sort
(
Comparator
.
comparing
(
UserCouponVo:
:
getStatus
));
}
if
(
list1
.
size
()>
0
){
UserCouponVo
userCouponVo
=
list1
.
get
(
0
);
if
(
userCouponVo
!=
null
){
mAmount
=
userCouponVo
.
getUsedAmount
();
userCouponVo
.
setIsChecked
(
1
);
list1
.
set
(
0
,
userCouponVo
);
}
list1
.
sort
(
Comparator
.
comparing
(
UserCouponVo:
:
getStatus
));
}
JSONObject
object
=
new
JSONObject
();
object
.
put
(
"type1"
,
list1
);
object
.
put
(
"type2"
,
list2
);
object
.
put
(
"1"
,
list1
);
object
.
put
(
"3"
,
list2
);
object
.
put
(
"mAmount"
,
mAmount
);
return
ObjectRestResponse
.
succ
(
object
);
}
...
...
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/DedDetailDTO.java
View file @
5ddc3146
...
...
@@ -3,6 +3,7 @@ package com.xxfc.platform.order.pojo;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Data
public
class
DedDetailDTO
{
...
...
@@ -24,4 +25,13 @@ public class DedDetailDTO {
//1、延期, 2、车辆损坏 3、其他
Integer
type
;
//小雨都不知道什么东西
Integer
statusIndex
;
//定损凭证
List
<
String
>
picList
;
//type对应的中文
String
statusName
;
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderRefundBiz.java
View file @
5ddc3146
...
...
@@ -109,11 +109,15 @@ public class OrderRefundBiz extends BaseBiz<OrderRefundMapper,OrderRefund> {
BigDecimal
refundAmont
=
crosstown
.
getRestDeposit
().
subtract
(
illegalReserve
);
BigDecimal
originalRefundAmount
=
crosstown
.
getRestDeposit
().
add
(
crosstown
.
getDeductionCost
()).
subtract
(
illegalReserve
);
String
refundDesc
=
"退还押金:"
+
refundAmont
.
toString
()+
"(已扣除 违章预备金:"
+
illegalReserve
.
toString
();
if
(
null
!=
crosstown
.
getDedDetail
())
{
List
<
DedDetailDTO
>
dddList
=
JSONUtil
.
toBean
(
crosstown
.
getDedDetail
(),
List
.
class
);
for
(
DedDetailDTO
ddd
:
dddList
)
{
refundDesc
+=
", "
+
ddd
.
getDeductions
()+
":"
+
ddd
.
getCost
();
try
{
if
(
null
!=
crosstown
.
getDedDetail
())
{
List
<
DedDetailDTO
>
dddList
=
JSONUtil
.
toBean
(
crosstown
.
getDedDetail
(),
List
.
class
);
for
(
DedDetailDTO
ddd
:
dddList
)
{
refundDesc
+=
", "
+
ddd
.
getDeductions
()+
":"
+
ddd
.
getCost
();
}
}
}
catch
(
Exception
e
)
{
log
.
error
(
"crosstown.getDedDetail() crosstown id :"
+
crosstown
.
getId
()
+
" 转换失败"
);
}
refundDesc
+=
")"
;
refundTrigger
(
orderMQDTO
,
orderMQDTO
.
getOrderRentVehicleDetail
(),
illegalReserve
,
originalRefundAmount
,
refundAmont
,
refundDesc
,
RefundStatusEnum
.
RESIDUE_ILLEGAL
.
getCode
(),
RefundTypeEnum
.
PART_DEPOSIT
);
...
...
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