Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
ce5175a6
提交
ce5175a6
authored
2月 01, 2024
作者:
liuhaiquan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交还款申请单pdf生成接口
上级
142b197f
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
67 行增加
和
27 行删除
+67
-27
OwnerLoanAccountApproveVO.java
...ormance/vo/pc/loan/carrier/OwnerLoanAccountApproveVO.java
+3
-3
OwnerLoanAccountRunningWaterRecordVO.java
...pc/loan/carrier/OwnerLoanAccountRunningWaterRecordVO.java
+2
-1
OwnerLoanRecordVO.java
...clx/performance/vo/pc/loan/carrier/OwnerLoanRecordVO.java
+4
-4
OwnerRepaymentVO.java
.../clx/performance/vo/pc/loan/carrier/OwnerRepaymentVO.java
+12
-0
OrderPaymentDetailVO.java
...lx/performance/vo/pc/loan/owner/OrderPaymentDetailVO.java
+2
-2
TransferPaymentDetailVO.java
...performance/vo/pc/loan/owner/TransferPaymentDetailVO.java
+2
-2
PaymentFromConfig.java
...va/com/clx/performance/config/loan/PaymentFromConfig.java
+18
-0
OwnerLoanRecordController.java
...e/controller/pc/loan/owner/OwnerLoanRecordController.java
+1
-1
OwnerRepaymentServiceImpl.java
...formance/service/impl/loan/OwnerRepaymentServiceImpl.java
+23
-14
没有找到文件。
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/OwnerLoanAccountApproveVO.java
浏览文件 @
ce5175a6
...
@@ -39,7 +39,7 @@ public class OwnerLoanAccountApproveVO {
...
@@ -39,7 +39,7 @@ public class OwnerLoanAccountApproveVO {
@ApiModelProperty
(
"审批时间"
)
@ApiModelProperty
(
"审批时间"
)
private
LocalDateTime
approveTime
;
private
String
approveTime
;
@ApiModelProperty
(
"审批人"
)
@ApiModelProperty
(
"审批人"
)
...
@@ -55,10 +55,10 @@ public class OwnerLoanAccountApproveVO {
...
@@ -55,10 +55,10 @@ public class OwnerLoanAccountApproveVO {
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
"创建时间"
)
private
LocalDateTime
createTime
;
private
String
createTime
;
@ApiModelProperty
(
"修改时间"
)
@ApiModelProperty
(
"修改时间"
)
private
LocalDateTime
modifiedTime
;
private
String
modifiedTime
;
}
}
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/OwnerLoanAccountRunningWaterRecordVO.java
浏览文件 @
ce5175a6
...
@@ -47,6 +47,6 @@ public class OwnerLoanAccountRunningWaterRecordVO {
...
@@ -47,6 +47,6 @@ public class OwnerLoanAccountRunningWaterRecordVO {
@ApiModelProperty
(
value
=
"创建人"
,
example
=
"张三"
)
@ApiModelProperty
(
value
=
"创建人"
,
example
=
"张三"
)
private
String
createBy
;
private
String
createBy
;
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
""
)
@ApiModelProperty
(
value
=
"创建时间"
,
example
=
""
)
private
LocalDateTime
createTime
;
private
String
createTime
;
}
}
\ No newline at end of file
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/OwnerLoanRecordVO.java
浏览文件 @
ce5175a6
...
@@ -90,7 +90,7 @@ public class OwnerLoanRecordVO {
...
@@ -90,7 +90,7 @@ public class OwnerLoanRecordVO {
@ApiModelProperty
(
"审批时间"
)
@ApiModelProperty
(
"审批时间"
)
private
LocalDateTime
approveTime
;
private
String
approveTime
;
@ApiModelProperty
(
"审批人"
)
@ApiModelProperty
(
"审批人"
)
...
@@ -102,7 +102,7 @@ public class OwnerLoanRecordVO {
...
@@ -102,7 +102,7 @@ public class OwnerLoanRecordVO {
@ApiModelProperty
(
"借款归还时间"
)
@ApiModelProperty
(
"借款归还时间"
)
private
LocalDateTime
loanRepaymentTime
;
private
String
loanRepaymentTime
;
@ApiModelProperty
(
"创建人"
)
@ApiModelProperty
(
"创建人"
)
...
@@ -110,10 +110,10 @@ public class OwnerLoanRecordVO {
...
@@ -110,10 +110,10 @@ public class OwnerLoanRecordVO {
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
"创建时间"
)
private
LocalDateTime
createTime
;
private
String
createTime
;
@ApiModelProperty
(
"修改时间"
)
@ApiModelProperty
(
"修改时间"
)
private
LocalDateTime
modifiedTime
;
private
String
modifiedTime
;
}
}
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/OwnerRepaymentVO.java
浏览文件 @
ce5175a6
...
@@ -7,6 +7,7 @@ import lombok.Getter;
...
@@ -7,6 +7,7 @@ import lombok.Getter;
import
lombok.Setter
;
import
lombok.Setter
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
/**
* @ClassName OwnerRepayment
* @ClassName OwnerRepayment
...
@@ -37,6 +38,9 @@ public class OwnerRepaymentVO {
...
@@ -37,6 +38,9 @@ public class OwnerRepaymentVO {
@ApiModelProperty
(
"交易流水号(第三方)"
)
@ApiModelProperty
(
"交易流水号(第三方)"
)
private
Long
runningWaterOpenNo
;
private
Long
runningWaterOpenNo
;
@ApiModelProperty
(
"商户流水号"
)
private
String
merchantRunningWaterNo
;
@ApiModelProperty
(
"还款单号"
)
@ApiModelProperty
(
"还款单号"
)
private
Long
repaymentNo
;
private
Long
repaymentNo
;
...
@@ -53,6 +57,14 @@ public class OwnerRepaymentVO {
...
@@ -53,6 +57,14 @@ public class OwnerRepaymentVO {
@ApiModelProperty
(
"付款账户"
)
@ApiModelProperty
(
"付款账户"
)
private
String
paymentAccount
;
private
String
paymentAccount
;
@ApiModelProperty
(
"生成付款申请单时间"
)
private
String
paymentApplicationFormTime
;
@ApiModelProperty
(
"汇款识别码"
)
private
String
remittanceIdentificationCode
;
@ApiModelProperty
(
"收款方"
)
@ApiModelProperty
(
"收款方"
)
private
String
payee
;
private
String
payee
;
...
...
performance-api/src/main/java/com/clx/performance/vo/pc/loan/owner/OrderPaymentDetailVO.java
浏览文件 @
ce5175a6
...
@@ -57,7 +57,7 @@ public class OrderPaymentDetailVO {
...
@@ -57,7 +57,7 @@ public class OrderPaymentDetailVO {
return
OwnerRePaymentEnum
.
Status
.
getMsgByCode
(
status
);
return
OwnerRePaymentEnum
.
Status
.
getMsgByCode
(
status
);
}
}
@ApiModelProperty
(
"付款
倒计时 (秒)
"
)
@ApiModelProperty
(
"付款
最终时间
"
)
public
Long
paymentCountdown
;
public
String
finalPaymentTime
;
}
}
performance-api/src/main/java/com/clx/performance/vo/pc/loan/owner/TransferPaymentDetailVO.java
浏览文件 @
ce5175a6
...
@@ -56,8 +56,8 @@ public class TransferPaymentDetailVO {
...
@@ -56,8 +56,8 @@ public class TransferPaymentDetailVO {
return
OwnerRePaymentEnum
.
Status
.
getMsgByCode
(
status
);
return
OwnerRePaymentEnum
.
Status
.
getMsgByCode
(
status
);
}
}
@ApiModelProperty
(
"付款
倒计时 (秒)
"
)
@ApiModelProperty
(
"付款
最后时间
"
)
public
Long
paymentCountdown
;
public
String
finalPaymentTime
;
}
}
performance-web/src/main/java/com/clx/performance/config/loan/PaymentFromConfig.java
0 → 100644
浏览文件 @
ce5175a6
package
com
.
clx
.
performance
.
config
.
loan
;
import
lombok.Getter
;
import
lombok.Setter
;
import
org.springframework.boot.context.properties.ConfigurationProperties
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
@Getter
@Setter
@ConfigurationProperties
(
prefix
=
"payment.form"
)
public
class
PaymentFromConfig
{
//模版编号
private
Long
templateNo
;
}
performance-web/src/main/java/com/clx/performance/controller/pc/loan/owner/OwnerLoanRecordController.java
浏览文件 @
ce5175a6
...
@@ -32,7 +32,7 @@ public class OwnerLoanRecordController {
...
@@ -32,7 +32,7 @@ public class OwnerLoanRecordController {
@ApiOperation
(
value
=
"
分页搜索货主
借款列表"
,
notes
=
"<br>By:刘海泉"
)
@ApiOperation
(
value
=
"借款列表"
,
notes
=
"<br>By:刘海泉"
)
@PostMapping
(
"/pageOwnerLoanRecordOfOwner"
)
@PostMapping
(
"/pageOwnerLoanRecordOfOwner"
)
@UnitCovert
(
param
=
false
)
@UnitCovert
(
param
=
false
)
public
Result
<
PageData
<
OwnerLoanRecordVO
>>
pageOwnerLoanRecordOfOwner
(
@RequestBody
@Validated
PageOwnerLoanRecordOfOwner
param
)
{
public
Result
<
PageData
<
OwnerLoanRecordVO
>>
pageOwnerLoanRecordOfOwner
(
@RequestBody
@Validated
PageOwnerLoanRecordOfOwner
param
)
{
...
...
performance-web/src/main/java/com/clx/performance/service/impl/loan/OwnerRepaymentServiceImpl.java
浏览文件 @
ce5175a6
package
com
.
clx
.
performance
.
service
.
impl
.
loan
;
package
com
.
clx
.
performance
.
service
.
impl
.
loan
;
import
cn.hutool.json.JSONUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.clx.performance.config.loan.ClxPayeeConfig
;
import
com.clx.performance.config.loan.ClxPayeeConfig
;
import
com.clx.performance.config.loan.PaymentFromConfig
;
import
com.clx.performance.dao.loan.OwnerRepaymentDao
;
import
com.clx.performance.dao.loan.OwnerRepaymentDao
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.loan.OwnerRePaymentEnum
;
import
com.clx.performance.model.loan.OwnerRepayment
;
import
com.clx.performance.model.loan.OwnerRepayment
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerRepaymentParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerRepaymentParam
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerRepaymentOfOwner
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerRepaymentOfOwner
;
...
@@ -15,15 +19,20 @@ import com.clx.performance.vo.pc.loan.carrier.OwnerRepaymentVO;
...
@@ -15,15 +19,20 @@ import com.clx.performance.vo.pc.loan.carrier.OwnerRepaymentVO;
import
com.clx.performance.vo.pc.loan.owner.CashierInfoVO
;
import
com.clx.performance.vo.pc.loan.owner.CashierInfoVO
;
import
com.clx.performance.vo.pc.loan.owner.OrderPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.owner.OrderPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.owner.TransferPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.owner.TransferPaymentDetailVO
;
import
com.msl.common.result.Result
;
import
com.msl.common.utils.DateUtils
;
import
com.msl.document.api.feign.ContractEvidenceFeign
;
import
com.msl.document.api.feign.ContractEvidenceFeign
;
import
com.msl.document.api.feign.ContractTemplateFeign
;
import
com.msl.document.api.feign.ContractTemplateFeign
;
import
com.msl.document.api.param.GenerateContractParam
;
import
com.msl.document.api.vo.ContractEvidenceRecordVo
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.time.Duration
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
/**
/**
* @author kavin
* @author kavin
...
@@ -39,6 +48,7 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
...
@@ -39,6 +48,7 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
private
final
OwnerRepaymentStruct
ownerRepaymentStruct
;
private
final
OwnerRepaymentStruct
ownerRepaymentStruct
;
private
final
ContractEvidenceFeign
contractEvidenceFeign
;
private
final
ContractEvidenceFeign
contractEvidenceFeign
;
private
final
ContractTemplateFeign
contractTemplateFeign
;
private
final
ContractTemplateFeign
contractTemplateFeign
;
private
final
PaymentFromConfig
paymentFromConfig
;
@Override
@Override
public
IPage
<
OwnerRepaymentVO
>
pageOwnerRepayment
(
PageCarrierOwnerRepaymentParam
param
)
{
public
IPage
<
OwnerRepaymentVO
>
pageOwnerRepayment
(
PageCarrierOwnerRepaymentParam
param
)
{
IPage
<
OwnerRepayment
>
page
=
ownerRepaymentDao
.
pageOwnerRepayment
(
param
);
IPage
<
OwnerRepayment
>
page
=
ownerRepaymentDao
.
pageOwnerRepayment
(
param
);
...
@@ -70,7 +80,7 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
...
@@ -70,7 +80,7 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
PerformanceResultEnum
.
DATA_NOT_FIND
);
PerformanceResultEnum
.
DATA_NOT_FIND
);
OrderPaymentDetailVO
vo
=
ownerRepaymentStruct
.
convertOrderPaymentDetail
(
ownerRepayment
);
OrderPaymentDetailVO
vo
=
ownerRepaymentStruct
.
convertOrderPaymentDetail
(
ownerRepayment
);
//TODO 设置付款倒计时
//TODO 设置付款倒计时
vo
.
set
PaymentCountdown
(
null
);
vo
.
set
FinalPaymentTime
(
null
);
return
vo
;
return
vo
;
}
}
...
@@ -81,32 +91,31 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
...
@@ -81,32 +91,31 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
ClxPayeeConfig
.
PayeeConfig
payeeMap
=
ClxPayeeConfig
.
getPayeeMap
(
ClxPayeeConfig
.
XXH_ID
);
ClxPayeeConfig
.
PayeeConfig
payeeMap
=
ClxPayeeConfig
.
getPayeeMap
(
ClxPayeeConfig
.
XXH_ID
);
//计算倒计时时间,下单时间 + 30天 为截止时间
//计算倒计时时间,下单时间 + 30天 为截止时间
LocalDateTime
startTime
=
LocalDateTime
.
now
();
LocalDateTime
endTime
=
ownerRepayment
.
getPaymentApplicationFormTime
().
plusDays
(
30
);
LocalDateTime
endTime
=
ownerRepayment
.
getPaymentApplicationFormTime
().
plusDays
(
30
);
long
seconds
=
Duration
.
between
(
startTime
,
endTime
).
getSeconds
();
return
TransferPaymentDetailVO
.
builder
().
payee
(
payeeMap
.
getName
())
return
TransferPaymentDetailVO
.
builder
().
payee
(
payeeMap
.
getName
())
.
payeeAccount
(
payeeMap
.
getAccount
()).
payeeBank
(
payeeMap
.
getBank
()).
payeeBankNo
(
payeeMap
.
getBankNo
())
.
payeeAccount
(
payeeMap
.
getAccount
()).
payeeBank
(
payeeMap
.
getBank
()).
payeeBankNo
(
payeeMap
.
getBankNo
())
.
repaymentBalance
(
ownerRepayment
.
getRepaymentBalance
())
.
repaymentBalance
(
ownerRepayment
.
getRepaymentBalance
())
.
remittanceIdentificationCode
(
ownerRepayment
.
getRemittanceIdentificationCode
())
.
remittanceIdentificationCode
(
ownerRepayment
.
getRemittanceIdentificationCode
())
.
status
(
ownerRepayment
.
getStatus
()).
paymentCountdown
(
seconds
).
build
();
.
status
(
ownerRepayment
.
getStatus
()).
finalPaymentTime
(
DateUtils
.
formatDateTime
(
endTime
).
get
()
).
build
();
}
}
@Override
@Override
public
String
savePaymentApplicationForm
(
ExportPaymentApplicationFormParam
param
)
{
public
String
savePaymentApplicationForm
(
ExportPaymentApplicationFormParam
param
)
{
/*
OwnerRepayment ownerRepayment = ownerRepaymentDao.getEntityByKey(param.getId()).orElseThrow(
OwnerRepayment
ownerRepayment
=
ownerRepaymentDao
.
getEntityByKey
(
param
.
getId
()).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
PerformanceResultEnum
.
DATA_NOT_FIND
);
OwnerRepaymentVO
ownerRepaymentVO
=
ownerRepaymentStruct
.
convert
(
ownerRepayment
);
OwnerRepaymentVO
ownerRepaymentVO
=
ownerRepaymentStruct
.
convert
(
ownerRepayment
);
Map
<
String
,
String
>
map
=
JSON
.
parseObject
(
JSONUtil
.
parse
(
ownerRepaymentVO
).
toString
(),
Map
.
class
);
Map
<
String
,
String
>
map
=
JSON
.
parseObject
(
JSONUtil
.
parse
(
ownerRepaymentVO
).
toString
(),
Map
.
class
);
// 创建合同
// 创建合同
GenerateContractParam
feignParam
=
new
GenerateContractParam
();
GenerateContractParam
feignParam
=
new
GenerateContractParam
();
feignParam.setTemplateNo(orderContractConfig.getTransportNo());
if
(
Objects
.
equals
(
OwnerRePaymentEnum
.
Channel
.
ORDER
.
getCode
(),
param
.
getPayWay
())){
feignParam.setParametersValueMap(map);
feignParam
.
setTemplateNo
(
paymentFromConfig
.
getTemplateNo
());
}
else
{
feignParam
.
setTemplateNo
(
paymentFromConfig
.
getTemplateNo
());
}
Result<Long> longResult = contractTemplateFeign.generateContract(param);
feignParam
.
setParametersValueMap
(
map
);
Result<ContractEvidenceRecordVo> contractEvidenceDetail = contractEvidenceFeign.getContractEvidenceDetail(longResult.getData());*/
Result
<
Long
>
longResult
=
contractTemplateFeign
.
generateContract
(
feignParam
);
Result
<
ContractEvidenceRecordVo
>
contractEvidenceDetail
=
contractEvidenceFeign
.
getContractEvidenceDetail
(
longResult
.
getData
());
//return contractEvidenceDetail.getData().getFileUrl();
return
contractEvidenceDetail
.
getData
().
getFileUrl
();
return
null
;
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论