Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QG
customer-service
Commits
069840a7
Commit
069840a7
authored
Jan 10, 2022
by
吴琼
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/qianyi-diting20211219'
parents
5ca1ba3d
7f800764
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
157 additions
and
2 deletions
+157
-2
BaitRepayPlan.java
...ava/cn/quantgroup/customer/model/order/BaitRepayPlan.java
+44
-0
BaitRepaymentPlan.java
...cn/quantgroup/customer/model/order/BaitRepaymentPlan.java
+71
-0
BaitRepaymentPlanItem.java
...uantgroup/customer/model/order/BaitRepaymentPlanItem.java
+25
-0
LoanOrderDetail.java
...a/cn/quantgroup/customer/model/order/LoanOrderDetail.java
+1
-0
OrderRepayment.java
...va/cn/quantgroup/customer/model/order/OrderRepayment.java
+3
-0
OrderServiceImpl.java
...cn/quantgroup/customer/service/impl/OrderServiceImpl.java
+13
-2
No files found.
src/main/java/cn/quantgroup/customer/model/order/BaitRepayPlan.java
0 → 100644
View file @
069840a7
package
cn
.
quantgroup
.
customer
.
model
.
order
;
import
cn.quantgroup.customer.util.MoneySerializer
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
@Data
public
class
BaitRepayPlan
{
@JsonSerialize
(
using
=
MoneySerializer
.
class
)
private
BigDecimal
principle
;
//应还本金
private
Integer
termNo
;
//期数
private
Integer
orderId
;
//订单id
@JsonSerialize
(
using
=
MoneySerializer
.
class
)
private
BigDecimal
interest
;
//利息
@JsonSerialize
(
using
=
MoneySerializer
.
class
)
private
BigDecimal
penaltyInterest
;
//逾期罚息
@JsonSerialize
(
using
=
MoneySerializer
.
class
)
private
BigDecimal
redPacketAmount
;
//
@JsonSerialize
(
using
=
MoneySerializer
.
class
)
private
BigDecimal
collectionReduction
;
//减免金额
private
Integer
repaymentStatus
;
//还款状态
private
String
repaymentStatusDesc
;
//还款状态描述
@JsonSerialize
(
using
=
MoneySerializer
.
class
)
private
BigDecimal
repayAmount
;
//应还金额
@JsonSerialize
(
using
=
MoneySerializer
.
class
)
private
BigDecimal
serviceAmount
;
//
private
String
deadline
;
//还款期限
private
String
repaidAt
;
//还款时间
}
src/main/java/cn/quantgroup/customer/model/order/BaitRepaymentPlan.java
0 → 100644
View file @
069840a7
package
cn
.
quantgroup
.
customer
.
model
.
order
;
import
cn.quantgroup.customer.enums.UserRepayType
;
import
cn.quantgroup.customer.util.DateUtil
;
import
cn.quantgroup.customer.util.MoneySerializer
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
@Data
public
class
BaitRepaymentPlan
{
/**
* 订单id
*/
private
Long
orderId
;
/**
* 商户号
*/
private
Integer
merchantId
;
/**
* 订单编号
*/
private
String
orderNo
;
/**
* 订单名称
*/
private
String
orderName
;
/**
* 订单日期
*/
private
String
orderTime
;
/**
*订单金额
*/
@JsonSerialize
(
using
=
MoneySerializer
.
class
)
private
BigDecimal
orderAmount
;
/**
*订单期数
*/
private
String
repayTermDesc
;
/**
*订单状态
*/
private
String
statusDesc
;
private
List
<
BaitRepayPlan
>
baitRepayPlanList
;
public
static
BaitRepaymentPlan
valueOf
(
BaitRepaymentPlanItem
repaymentPlanItem
)
{
if
(
repaymentPlanItem
==
null
)
{
return
null
;
}
BaitRepaymentPlan
repayment
=
new
BaitRepaymentPlan
();
repayment
.
setOrderId
(
repaymentPlanItem
.
getOrderId
());
repayment
.
setOrderNo
(
repaymentPlanItem
.
getOrderNo
());
repayment
.
setOrderName
(
repaymentPlanItem
.
getOrderName
());
repayment
.
setMerchantId
(
repaymentPlanItem
.
getMerchantId
());
repayment
.
setOrderAmount
(
repaymentPlanItem
.
getOrderAmount
());
repayment
.
setRepayTermDesc
(
repaymentPlanItem
.
getRepayTermDesc
());
repayment
.
setStatusDesc
(
repaymentPlanItem
.
getStatusDesc
());
repayment
.
setOrderTime
(
repaymentPlanItem
.
getOrderTime
());
List
<
BaitRepayPlan
>
plans
=
repaymentPlanItem
.
getPlans
();
repayment
.
setBaitRepayPlanList
(
plans
);
return
repayment
;
}
}
src/main/java/cn/quantgroup/customer/model/order/BaitRepaymentPlanItem.java
0 → 100644
View file @
069840a7
package
cn
.
quantgroup
.
customer
.
model
.
order
;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.time.LocalDate
;
import
java.util.Date
;
import
java.util.List
;
@Data
public
class
BaitRepaymentPlanItem
{
private
Long
orderId
;
private
Integer
merchantId
;
private
String
orderNo
;
// 订单编号
private
String
orderName
;
private
BigDecimal
orderAmount
;
private
Integer
repayTerm
;
private
String
repayTermDesc
;
private
Integer
status
;
private
String
statusDesc
;
private
String
orderTime
;
private
Integer
orderType
;
private
String
orderTypeDesc
;
private
List
<
BaitRepayPlan
>
plans
;
}
src/main/java/cn/quantgroup/customer/model/order/LoanOrderDetail.java
View file @
069840a7
...
...
@@ -19,5 +19,6 @@ public class LoanOrderDetail {
List
<
Repayment
>
repaymentList
;
List
<
BaitRepaymentPlan
>
baitRepaymentList
;
}
src/main/java/cn/quantgroup/customer/model/order/OrderRepayment.java
View file @
069840a7
...
...
@@ -77,4 +77,7 @@ public class OrderRepayment {
/** 还款计划 */
private
List
<
RepaymentPlanItem
>
repaymentPlans
;
/** 白条还款计划 */
private
List
<
BaitRepaymentPlanItem
>
baitRepaymentPlans
;
}
src/main/java/cn/quantgroup/customer/service/impl/OrderServiceImpl.java
View file @
069840a7
...
...
@@ -94,7 +94,7 @@ public class OrderServiceImpl implements IOrderService {
//JsonResult<LoanOrder> loanOrder = xyqbService.findLoanOrder(loanId);
//todo 替换中台接口
JsonResult
<
LoanOrder
>
loanOrder
=
iceService
.
findLoanOrder
(
loanId
);
log
.
info
(
"{} 提现详情 loanOrder={}"
,
loanOrder
);
if
(!
loanOrder
.
isSuccess
())
{
log
.
error
(
"{} 提现订单查询失败 loanId={}, result={}"
,
logPre
,
loanId
,
loanOrder
);
return
JsonResult
.
buildErrorStateResult
(
loanOrder
.
getMsg
(),
loanOrder
.
getData
());
...
...
@@ -105,7 +105,10 @@ public class OrderServiceImpl implements IOrderService {
LoanOrder
loanOrderData
=
loanOrder
.
getData
();
loanOrderDetail
.
setLoanOrder
(
loanOrderData
);
loanOrderDetail
.
setRepaymentList
(
repaymentList
);
//add by wuq 2021-12-30 begin
List
<
BaitRepaymentPlan
>
baitRepaymentList
=
new
ArrayList
<>();
loanOrderDetail
.
setBaitRepaymentList
(
baitRepaymentList
);
//add by wuq 2021-12-30 end
if
(
Objects
.
isNull
(
loanOrderData
)
||
!
loanOrderData
.
getShowPlans
())
{
log
.
info
(
"{} 不需查询还款计划"
,
logPre
);
return
JsonResult
.
buildSuccessResult
(
"查询成功"
,
loanOrderDetail
);
...
...
@@ -125,6 +128,14 @@ public class OrderServiceImpl implements IOrderService {
repaymentPlans
.
forEach
(
e
->
repaymentList
.
add
(
Repayment
.
valueOf
(
e
)));
}
//add by wuq 2021-12-30 begin
if
(
orderRepaymentJsonResult
.
getData
()
!=
null
){
List
<
BaitRepaymentPlanItem
>
baitRepaymentPlans
=
orderRepaymentJsonResult
.
getData
().
getBaitRepaymentPlans
();
if
(
baitRepaymentPlans
!=
null
&&
!
baitRepaymentPlans
.
isEmpty
()){
baitRepaymentPlans
.
forEach
(
e
->
baitRepaymentList
.
add
(
BaitRepaymentPlan
.
valueOf
(
e
)));
}
}
//add by wuq 2021-12-30 end
return
JsonResult
.
buildSuccessResult
(
"查询成功"
,
loanOrderDetail
);
}
...
...
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