Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
1401bbd9
提交
1401bbd9
authored
4月 25, 2024
作者:
huyufan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
开发:承运功能迭代
上级
f5af8da4
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
66 行增加
和
8 行删除
+66
-8
PerformanceFeign.java
...main/java/com/clx/performance/feign/PerformanceFeign.java
+7
-0
OwnerAccountArrearsVO.java
...java/com/clx/performance/vo/pc/OwnerAccountArrearsVO.java
+23
-0
OwnerAccountFeignController.java
...ormance/controller/feign/OwnerAccountFeignController.java
+13
-0
OwnerAccountService.java
...java/com/clx/performance/service/OwnerAccountService.java
+4
-4
OwnerAccountServiceImpl.java
...clx/performance/service/impl/OwnerAccountServiceImpl.java
+19
-4
没有找到文件。
performance-api/src/main/java/com/clx/performance/feign/PerformanceFeign.java
浏览文件 @
1401bbd9
...
@@ -11,6 +11,7 @@ import com.clx.performance.vo.app.collect.AppCollectTruckVO;
...
@@ -11,6 +11,7 @@ import com.clx.performance.vo.app.collect.AppCollectTruckVO;
import
com.clx.performance.vo.feign.FreightEstimateVO
;
import
com.clx.performance.vo.feign.FreightEstimateVO
;
import
com.clx.performance.vo.feign.OrderGoodsFeignVO
;
import
com.clx.performance.vo.feign.OrderGoodsFeignVO
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.OwnerAccountArrearsVO
;
import
com.clx.performance.vo.pc.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.breakcontract.carrier.BreakContractOwnerRuleVO
;
import
com.clx.performance.vo.pc.breakcontract.carrier.BreakContractOwnerRuleVO
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
...
@@ -22,6 +23,7 @@ import org.springframework.web.bind.annotation.RequestParam;
...
@@ -22,6 +23,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -115,4 +117,9 @@ public interface PerformanceFeign {
...
@@ -115,4 +117,9 @@ public interface PerformanceFeign {
@GetMapping
(
value
=
{
"clx-performance/feign/owner/loanAccount"
})
@GetMapping
(
value
=
{
"clx-performance/feign/owner/loanAccount"
})
Result
<
OwnerLoanAccountVO
>
loanAccount
(
@RequestParam
Long
userNo
);
Result
<
OwnerLoanAccountVO
>
loanAccount
(
@RequestParam
Long
userNo
);
@GetMapping
(
value
=
{
"clx-performance/feign/owner/accountArrearsInfo"
})
Result
<
OwnerAccountArrearsVO
>
accountArrearsInfo
(
@RequestParam
(
value
=
"userNo"
)
Long
userNo
,
@RequestParam
(
value
=
"prepaidArrearsOrder"
)
BigDecimal
prepaidArrearsOrder
,
@RequestParam
(
value
=
"marginArrearsOrder"
)
BigDecimal
marginArrearsOrder
);
}
}
performance-api/src/main/java/com/clx/performance/vo/pc/OwnerAccountArrearsVO.java
0 → 100644
浏览文件 @
1401bbd9
package
com
.
clx
.
performance
.
vo
.
pc
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Builder
;
import
lombok.Data
;
import
java.math.BigDecimal
;
@Data
@Builder
public
class
OwnerAccountArrearsVO
{
@ApiModelProperty
(
"当前预付账户未支付订单金额"
)
private
BigDecimal
prepaidArrearsOrderSumMoney
;
@ApiModelProperty
(
"当前保证金账户未支付订单金额"
)
private
BigDecimal
marginArrearsOrderSumMoney
;
@ApiModelProperty
(
"货主用户编码"
)
private
Long
userNo
;
}
performance-web/src/main/java/com/clx/performance/controller/feign/OwnerAccountFeignController.java
浏览文件 @
1401bbd9
...
@@ -5,6 +5,7 @@ import com.clx.performance.param.pc.owner.FrozenAccountParam;
...
@@ -5,6 +5,7 @@ import com.clx.performance.param.pc.owner.FrozenAccountParam;
import
com.clx.performance.param.pc.owner.ThawAccountParam
;
import
com.clx.performance.param.pc.owner.ThawAccountParam
;
import
com.clx.performance.service.OwnerAccountService
;
import
com.clx.performance.service.OwnerAccountService
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.OwnerAccountArrearsVO
;
import
com.clx.performance.vo.pc.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.OwnerLoanAccountVO
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -13,6 +14,8 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -13,6 +14,8 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.math.BigDecimal
;
@Slf4j
@Slf4j
@RestController
@RestController
@RequestMapping
(
"/feign/owner"
)
@RequestMapping
(
"/feign/owner"
)
...
@@ -50,4 +53,14 @@ public class OwnerAccountFeignController {
...
@@ -50,4 +53,14 @@ public class OwnerAccountFeignController {
public
Result
<
OwnerLoanAccountVO
>
loanAccount
(
@RequestParam
Long
userNo
)
{
public
Result
<
OwnerLoanAccountVO
>
loanAccount
(
@RequestParam
Long
userNo
)
{
return
Result
.
ok
(
ownerAccountService
.
loanAccount
(
userNo
));
return
Result
.
ok
(
ownerAccountService
.
loanAccount
(
userNo
));
}
}
@ApiOperation
(
value
=
"查询用户预付运费和保证金账户"
,
notes
=
"<br>By:胡宇帆"
)
@GetMapping
(
"/accountArrearsInfo"
)
public
Result
<
OwnerAccountArrearsVO
>
accountArrearsInfo
(
@RequestParam
(
value
=
"userNo"
)
Long
userNo
,
@RequestParam
(
value
=
"prepaidArrearsOrder"
)
BigDecimal
prepaidArrearsOrder
,
@RequestParam
(
value
=
"marginArrearsOrder"
)
BigDecimal
marginArrearsOrder
)
{
return
Result
.
ok
(
ownerAccountService
.
accountArrearsInfo
(
userNo
,
prepaidArrearsOrder
,
marginArrearsOrder
));
}
}
}
performance-web/src/main/java/com/clx/performance/service/OwnerAccountService.java
浏览文件 @
1401bbd9
...
@@ -13,14 +13,12 @@ import com.clx.performance.param.pc.*;
...
@@ -13,14 +13,12 @@ import com.clx.performance.param.pc.*;
import
com.clx.performance.param.pc.owner.CreteAccountParam
;
import
com.clx.performance.param.pc.owner.CreteAccountParam
;
import
com.clx.performance.param.pc.owner.FrozenAccountParam
;
import
com.clx.performance.param.pc.owner.FrozenAccountParam
;
import
com.clx.performance.param.pc.owner.ThawAccountParam
;
import
com.clx.performance.param.pc.owner.ThawAccountParam
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.*
;
import
com.clx.performance.vo.pc.OwnerAccountRunningWaterRecordVO
;
import
com.clx.performance.vo.pc.OwnerAccountVO
;
import
com.clx.performance.vo.pc.OwnerLoanAccountVO
;
import
com.clx.user.param.pc.owner.UpdateOwnerBindCardFeignParam
;
import
com.clx.user.param.pc.owner.UpdateOwnerBindCardFeignParam
;
import
com.clx.user.vo.pc.owner.OwnerBindCardVO
;
import
com.clx.user.vo.pc.owner.OwnerBindCardVO
;
import
org.apache.poi.xssf.streaming.SXSSFWorkbook
;
import
org.apache.poi.xssf.streaming.SXSSFWorkbook
;
import
java.math.BigDecimal
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -104,4 +102,6 @@ public interface OwnerAccountService {
...
@@ -104,4 +102,6 @@ public interface OwnerAccountService {
void
resetPassword
(
ResetPasswordParam
param
);
void
resetPassword
(
ResetPasswordParam
param
);
OwnerLoanAccountVO
loanAccount
(
Long
userNo
);
OwnerLoanAccountVO
loanAccount
(
Long
userNo
);
OwnerAccountArrearsVO
accountArrearsInfo
(
Long
userNo
,
BigDecimal
prepaidArrearsOrder
,
BigDecimal
marginArrearsOrder
);
}
}
performance-web/src/main/java/com/clx/performance/service/impl/OwnerAccountServiceImpl.java
浏览文件 @
1401bbd9
...
@@ -43,10 +43,7 @@ import com.clx.performance.utils.excel.ExcelData;
...
@@ -43,10 +43,7 @@ import com.clx.performance.utils.excel.ExcelData;
import
com.clx.performance.utils.excel.ExcelField
;
import
com.clx.performance.utils.excel.ExcelField
;
import
com.clx.performance.utils.excel.ExcelSheet
;
import
com.clx.performance.utils.excel.ExcelSheet
;
import
com.clx.performance.utils.excel.ExcelUtil
;
import
com.clx.performance.utils.excel.ExcelUtil
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.*
;
import
com.clx.performance.vo.pc.OwnerAccountRunningWaterRecordVO
;
import
com.clx.performance.vo.pc.OwnerAccountVO
;
import
com.clx.performance.vo.pc.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformAccountConfigVO
;
import
com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformAccountConfigVO
;
import
com.clx.user.enums.owner.FreezeSettingEnum
;
import
com.clx.user.enums.owner.FreezeSettingEnum
;
import
com.clx.user.feign.OwnerFeign
;
import
com.clx.user.feign.OwnerFeign
;
...
@@ -1257,4 +1254,22 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
...
@@ -1257,4 +1254,22 @@ public class OwnerAccountServiceImpl implements OwnerAccountService {
return
ownerLoanAccountStruct
.
convert
(
ownerLoanAccount
);
return
ownerLoanAccountStruct
.
convert
(
ownerLoanAccount
);
}
}
@Override
public
OwnerAccountArrearsVO
accountArrearsInfo
(
Long
userNo
,
BigDecimal
prepaidArrearsOrder
,
BigDecimal
marginArrearsOrder
)
{
List
<
OwnerAccount
>
accountList
=
ownerAccountDao
.
listByField
(
OwnerAccount:
:
getOwnerUserNo
,
userNo
);
OwnerAccountArrearsVO
build
=
OwnerAccountArrearsVO
.
builder
().
build
();
//查询保证金和预付运费欠多少金额
for
(
OwnerAccount
ownerAccount
:
accountList
)
{
if
(
ownerAccount
.
getAccountType
().
equals
(
OwnerAccountEnum
.
AccountTypeStatus
.
MARGIN_ACCOUNT
.
getCode
()))
{
build
.
setMarginArrearsOrderSumMoney
(
ownerAccount
.
getUsableBalance
().
subtract
(
marginArrearsOrder
));
}
if
(
ownerAccount
.
getAccountType
().
equals
(
OwnerAccountEnum
.
AccountTypeStatus
.
PREPAID_FREIGHT_ACCOUNT
.
getCode
()))
{
build
.
setPrepaidArrearsOrderSumMoney
(
ownerAccount
.
getUsableBalance
().
subtract
(
prepaidArrearsOrder
));
}
}
return
build
;
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论