Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
8f49fe24
提交
8f49fe24
authored
10月 12, 2023
作者:
liruixin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
货主结算单详情
上级
4dc4f83b
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
201 行增加
和
1 行删除
+201
-1
CarrierSettlementOwnerDetailVO.java
.../clx/settlement/vo/pc/CarrierSettlementOwnerDetailVO.java
+124
-0
CarrierSettlementOwnerController.java
...ntroller/pc/carrier/CarrierSettlementOwnerController.java
+38
-0
SettlementOwner.java
.../main/java/com/clx/performance/model/SettlementOwner.java
+1
-1
SettlementOwnerService.java
...a/com/clx/performance/service/SettlementOwnerService.java
+3
-0
SettlementOwnerServiceImpl.java
.../performance/service/impl/SettlementOwnerServiceImpl.java
+20
-0
SettlementOwnerStruct.java
...ava/com/clx/performance/struct/SettlementOwnerStruct.java
+15
-0
没有找到文件。
performance-api/src/main/java/com/clx/settlement/vo/pc/CarrierSettlementOwnerDetailVO.java
0 → 100644
浏览文件 @
8f49fe24
package
com
.
clx
.
settlement
.
vo
.
pc
;
import
com.msl.common.convertor.type.MoneyOutConvert
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Getter
;
import
lombok.NoArgsConstructor
;
import
lombok.Setter
;
import
lombok.ToString
;
import
java.math.BigDecimal
;
@ApiModel
(
description
=
"货主结算单"
)
@Getter
@Setter
@ToString
@NoArgsConstructor
public
class
CarrierSettlementOwnerDetailVO
{
@ApiModelProperty
(
value
=
"id"
,
example
=
"1.23"
)
private
Integer
id
;
@ApiModelProperty
(
value
=
"货主用户编号"
,
example
=
"123"
)
private
Long
ownerUserNo
;
@ApiModelProperty
(
value
=
"货主名称"
,
example
=
"货主"
)
private
String
ownerName
;
@ApiModelProperty
(
value
=
"结算单编号"
,
example
=
"JS415"
)
private
String
settlementNo
;
@ApiModelProperty
(
value
=
"结算子单号"
,
example
=
"JS012"
)
private
String
settlementSubNo
;
@ApiModelProperty
(
value
=
"运单编号"
,
example
=
"123"
)
private
String
childNo
;
@ApiModelProperty
(
value
=
"实际净重(吨)"
,
example
=
"1.23"
)
private
BigDecimal
weight
;
@ApiModelProperty
(
value
=
"实际运费(元)"
,
example
=
"1.23"
)
@MoneyOutConvert
private
BigDecimal
freight
;
@ApiModelProperty
(
value
=
"货损吨数(吨)"
,
example
=
"1.23"
)
private
BigDecimal
lossWeight
;
@ApiModelProperty
(
value
=
"货损金额(元)"
,
example
=
"1.23"
)
@MoneyOutConvert
private
BigDecimal
lossFreight
;
@ApiModelProperty
(
value
=
"预付运费金额(元)"
,
example
=
"1.23"
)
@MoneyOutConvert
private
BigDecimal
prepayFreight
;
@ApiModelProperty
(
value
=
"结算金额(元)"
,
example
=
"1.23"
)
@MoneyOutConvert
private
BigDecimal
settlementFreight
;
@ApiModelProperty
(
value
=
"开票标识:1网运单 2普通单"
,
example
=
"1"
)
private
Integer
invoiceType
;
@ApiModelProperty
(
value
=
"开票金额(元)"
,
example
=
"1.23"
)
@MoneyOutConvert
private
BigDecimal
invoiceFreight
;
@ApiModelProperty
(
value
=
"结算凭证"
,
example
=
"/a.png"
)
private
String
invoiceImg
;
@ApiModelProperty
(
value
=
"收款人"
,
example
=
"收款人"
)
private
String
payee
;
@ApiModelProperty
(
value
=
"收款银行"
,
example
=
"浙江银行"
)
private
String
payeeBankName
;
@ApiModelProperty
(
value
=
"收款银行卡卡号"
,
example
=
"62213545878787"
)
private
String
payeeBankCardNo
;
@ApiModelProperty
(
value
=
"公司名称"
,
example
=
"公司名称"
)
private
String
companyName
;
@ApiModelProperty
(
value
=
"企业税号"
,
example
=
"企业税号"
)
private
String
companyTaxCode
;
@ApiModelProperty
(
value
=
"公司地址"
,
example
=
"公司地址"
)
private
String
companyAddress
;
@ApiModelProperty
(
value
=
"公司电话"
,
example
=
"1222222222"
)
private
String
companyMobile
;
@ApiModelProperty
(
value
=
"公司开户行"
,
example
=
"中国银行"
)
private
String
companyBankName
;
@ApiModelProperty
(
value
=
"公司银行账号"
,
example
=
"6215454545"
)
private
String
companyBankNo
;
@ApiModelProperty
(
value
=
"公司联系人"
,
example
=
"1.23"
)
private
String
companyContact
;
@ApiModelProperty
(
value
=
"公司联系电话"
,
example
=
"公司联系人"
)
private
String
companyContactMobile
;
@ApiModelProperty
(
value
=
"公司联系地址"
,
example
=
"公司联系地址"
)
private
String
companyContactAddress
;
@ApiModelProperty
(
value
=
"快递公司"
,
example
=
"顺风"
)
private
String
expressCompany
;
@ApiModelProperty
(
value
=
"快递编号"
,
example
=
"SF145787"
)
private
String
expressNo
;
@ApiModelProperty
(
value
=
"开票状态"
,
example
=
"1"
)
private
Integer
invoiceStatus
;
@ApiModelProperty
(
value
=
"状态"
,
example
=
"1"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"合并结算单时间"
,
example
=
"2023-01-01 00:00:00"
)
private
String
mergeTime
;
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/controller/pc/carrier/CarrierSettlementOwnerController.java
0 → 100644
浏览文件 @
8f49fe24
package
com
.
clx
.
performance
.
controller
.
pc
.
carrier
;
import
com.clx.performance.service.SettlementOwnerService
;
import
com.clx.settlement.vo.pc.CarrierSettlementOwnerDetailVO
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.result.Result
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.constraints.NotNull
;
@Slf4j
@RestController
@RequestMapping
(
value
=
"/pc/carrier/settlementOwner"
)
@Validated
@Api
(
tags
=
"承运端-货主结算"
)
@AllArgsConstructor
public
class
CarrierSettlementOwnerController
{
private
final
SettlementOwnerService
settlementOwnerService
;
@ApiOperation
(
value
=
"结算单详情"
,
notes
=
"<br>By:李瑞新"
)
@GetMapping
(
"/getCarrierSettlementOwnerDetail"
)
@UnitCovert
(
param
=
false
)
public
Result
<
CarrierSettlementOwnerDetailVO
>
getCarrierSettlementOwnerDetail
(
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
return
Result
.
ok
(
settlementOwnerService
.
getCarrierSettlementOwnerDetail
(
id
));
}
}
performance-web/src/main/java/com/clx/performance/model/SettlementOwner.java
浏览文件 @
8f49fe24
...
...
@@ -43,7 +43,7 @@ public class SettlementOwner implements HasKey<Integer> {
private
String
invoiceImg
;
//结算凭证
private
String
payee
;
//收款人
private
String
payeeBankName
;
//收款银行
private
Integer
payeeBankCardNo
;
//收款银行卡卡号
private
String
payeeBankCardNo
;
//收款银行卡卡号
private
String
companyName
;
//公司名称
private
String
companyTaxCode
;
//企业税号
private
String
companyAddress
;
//公司地址
...
...
performance-web/src/main/java/com/clx/performance/service/SettlementOwnerService.java
浏览文件 @
8f49fe24
package
com
.
clx
.
performance
.
service
;
import
com.clx.settlement.vo.pc.CarrierSettlementOwnerDetailVO
;
/**
* @author liruixin
...
...
@@ -8,4 +9,6 @@ package com.clx.performance.service;
* Time 09:43
*/
public
interface
SettlementOwnerService
{
CarrierSettlementOwnerDetailVO
getCarrierSettlementOwnerDetail
(
Integer
id
);
}
performance-web/src/main/java/com/clx/performance/service/impl/SettlementOwnerServiceImpl.java
浏览文件 @
8f49fe24
package
com
.
clx
.
performance
.
service
.
impl
;
import
com.clx.performance.dao.SettlementOwnerDao
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.model.SettlementOwner
;
import
com.clx.performance.service.SettlementOwnerService
;
import
com.clx.performance.struct.SettlementOwnerStruct
;
import
com.clx.settlement.vo.pc.CarrierSettlementOwnerDetailVO
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
/**
...
...
@@ -8,6 +15,19 @@ import org.springframework.stereotype.Service;
* Date 2023-10-12
* Time 09:43
*/
@Slf4j
@Service
@AllArgsConstructor
public
class
SettlementOwnerServiceImpl
implements
SettlementOwnerService
{
private
final
SettlementOwnerDao
settlementOwnerDao
;
private
final
SettlementOwnerStruct
settlementOwnerStruct
;
@Override
public
CarrierSettlementOwnerDetailVO
getCarrierSettlementOwnerDetail
(
Integer
id
)
{
SettlementOwner
settlementOwner
=
settlementOwnerDao
.
getEntityByKey
(
id
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
return
settlementOwnerStruct
.
convert
(
settlementOwner
);
}
}
performance-web/src/main/java/com/clx/performance/struct/SettlementOwnerStruct.java
0 → 100644
浏览文件 @
8f49fe24
package
com
.
clx
.
performance
.
struct
;
import
com.clx.performance.model.SettlementOwner
;
import
com.clx.settlement.vo.pc.CarrierSettlementOwnerDetailVO
;
import
com.msl.common.utils.DateStructUtil
;
import
com.msl.common.utils.DateUtils
;
import
org.mapstruct.Mapper
;
@Mapper
(
componentModel
=
"spring"
,
uses
=
DateStructUtil
.
class
,
imports
=
{
DateUtils
.
class
})
public
interface
SettlementOwnerStruct
{
CarrierSettlementOwnerDetailVO
convert
(
SettlementOwner
settlementOwner
);
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论