Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
4ecd2296
提交
4ecd2296
authored
2月 23, 2024
作者:
liuhaiquan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
付款列表的付款信息接口
上级
fce5ea0f
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
83 行增加
和
4 行删除
+83
-4
CarrierOwnerPaymentVO.java
...performance/vo/pc/loan/carrier/CarrierOwnerPaymentVO.java
+52
-0
CarrierOwnerPaymentController.java
...roller/pc/loan/carrier/CarrierOwnerPaymentController.java
+17
-4
OwnerPaymentServiceImpl.java
...erformance/service/impl/loan/OwnerPaymentServiceImpl.java
+8
-0
OwnerPaymentService.java
...com/clx/performance/service/loan/OwnerPaymentService.java
+3
-0
OwnerPaymentStruct.java
...a/com/clx/performance/struct/loan/OwnerPaymentStruct.java
+3
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/CarrierOwnerPaymentVO.java
0 → 100644
浏览文件 @
4ecd2296
package
com
.
clx
.
performance
.
vo
.
pc
.
loan
.
carrier
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.msl.common.config.KeyColumn
;
import
com.msl.common.model.HasKey
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.*
;
import
lombok.experimental.Accessors
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
/**
* @author kavin
* Date 2024-01-20
* Time 13:31
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public
class
CarrierOwnerPaymentVO
{
private
Integer
id
;
@ApiModelProperty
(
"付款金额"
)
private
BigDecimal
paymentBalance
;
@ApiModelProperty
(
"付款方"
)
private
String
payment
;
@ApiModelProperty
(
"付款账户"
)
private
String
paymentAccount
;
@ApiModelProperty
(
"收款方"
)
private
String
payee
;
@ApiModelProperty
(
"收款账户"
)
private
String
payeeAccount
;
}
performance-web/src/main/java/com/clx/performance/controller/pc/loan/carrier/CarrierOwnerPaymentController.java
浏览文件 @
4ecd2296
...
@@ -3,6 +3,7 @@ package com.clx.performance.controller.pc.loan.carrier;
...
@@ -3,6 +3,7 @@ package com.clx.performance.controller.pc.loan.carrier;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerPaymentParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerPaymentParam
;
import
com.clx.performance.service.loan.OwnerPaymentService
;
import
com.clx.performance.service.loan.OwnerPaymentService
;
import
com.clx.performance.vo.pc.loan.carrier.CarrierOwnerPaymentVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO
;
import
com.msl.common.base.PageData
;
import
com.msl.common.base.PageData
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.convertor.aspect.UnitCovert
;
...
@@ -12,10 +13,9 @@ import io.swagger.annotations.ApiOperation;
...
@@ -12,10 +13,9 @@ import io.swagger.annotations.ApiOperation;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
javax.validation.constraints.NotNull
;
import
org.springframework.web.bind.annotation.RestController
;
@Slf4j
@Slf4j
@RestController
@RestController
...
@@ -37,4 +37,17 @@ public class CarrierOwnerPaymentController {
...
@@ -37,4 +37,17 @@ public class CarrierOwnerPaymentController {
}
}
@ApiOperation
(
value
=
"付款详情"
,
notes
=
"<br>By:刘海泉"
)
@PostMapping
(
"/getOwnerPaymentDetail"
)
@UnitCovert
(
param
=
false
)
public
Result
<
CarrierOwnerPaymentVO
>
getOwnerPaymentDetail
(
@RequestParam
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
CarrierOwnerPaymentVO
vo
=
ownerPaymentService
.
getOwnerPaymentDetail
(
id
);
return
Result
.
ok
(
vo
);
}
}
}
performance-web/src/main/java/com/clx/performance/service/impl/loan/OwnerPaymentServiceImpl.java
浏览文件 @
4ecd2296
...
@@ -3,10 +3,12 @@ package com.clx.performance.service.impl.loan;
...
@@ -3,10 +3,12 @@ package com.clx.performance.service.impl.loan;
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.dao.loan.OwnerPaymentDao
;
import
com.clx.performance.dao.loan.OwnerPaymentDao
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.model.loan.OwnerPayment
;
import
com.clx.performance.model.loan.OwnerPayment
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerPaymentParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerPaymentParam
;
import
com.clx.performance.service.loan.OwnerPaymentService
;
import
com.clx.performance.service.loan.OwnerPaymentService
;
import
com.clx.performance.struct.loan.OwnerPaymentStruct
;
import
com.clx.performance.struct.loan.OwnerPaymentStruct
;
import
com.clx.performance.vo.pc.loan.carrier.CarrierOwnerPaymentVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -35,4 +37,10 @@ public class OwnerPaymentServiceImpl implements OwnerPaymentService {
...
@@ -35,4 +37,10 @@ public class OwnerPaymentServiceImpl implements OwnerPaymentService {
returnPage
.
setRecords
(
records
);
returnPage
.
setRecords
(
records
);
return
returnPage
;
return
returnPage
;
}
}
@Override
public
CarrierOwnerPaymentVO
getOwnerPaymentDetail
(
Integer
id
)
{
OwnerPayment
ownerPayment
=
ownerPaymentDao
.
getEntityByKey
(
id
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
return
ownerPaymentStruct
.
convert
(
ownerPayment
);
}
}
}
performance-web/src/main/java/com/clx/performance/service/loan/OwnerPaymentService.java
浏览文件 @
4ecd2296
...
@@ -2,6 +2,7 @@ package com.clx.performance.service.loan;
...
@@ -2,6 +2,7 @@ package com.clx.performance.service.loan;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerPaymentParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerPaymentParam
;
import
com.clx.performance.vo.pc.loan.carrier.CarrierOwnerPaymentVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO
;
/**
/**
...
@@ -11,4 +12,6 @@ import com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO;
...
@@ -11,4 +12,6 @@ import com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO;
*/
*/
public
interface
OwnerPaymentService
{
public
interface
OwnerPaymentService
{
IPage
<
OwnerPaymentVO
>
pageOwnerPayment
(
PageCarrierOwnerPaymentParam
param
);
IPage
<
OwnerPaymentVO
>
pageOwnerPayment
(
PageCarrierOwnerPaymentParam
param
);
CarrierOwnerPaymentVO
getOwnerPaymentDetail
(
Integer
id
);
}
}
performance-web/src/main/java/com/clx/performance/struct/loan/OwnerPaymentStruct.java
浏览文件 @
4ecd2296
package
com
.
clx
.
performance
.
struct
.
loan
;
package
com
.
clx
.
performance
.
struct
.
loan
;
import
com.clx.performance.model.loan.OwnerPayment
;
import
com.clx.performance.model.loan.OwnerPayment
;
import
com.clx.performance.vo.pc.loan.carrier.CarrierOwnerPaymentVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerPaymentVO
;
import
com.msl.common.utils.DateStructUtil
;
import
com.msl.common.utils.DateStructUtil
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.Mapper
;
...
@@ -12,4 +13,6 @@ import java.util.Objects;
...
@@ -12,4 +13,6 @@ import java.util.Objects;
public
interface
OwnerPaymentStruct
{
public
interface
OwnerPaymentStruct
{
List
<
OwnerPaymentVO
>
convertList
(
List
<
OwnerPayment
>
list
);
List
<
OwnerPaymentVO
>
convertList
(
List
<
OwnerPayment
>
list
);
CarrierOwnerPaymentVO
convert
(
OwnerPayment
ownerPayment
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论