Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-csf
Commits
057caf31
Commit
057caf31
authored
Apr 24, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增应付2
parent
124fec83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+4
-5
yd-csf-feign/src/main/java/com/yd/csf/feign/request/expectedfortune/ExpectedFortuneAddRequest.java
+6
-0
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
View file @
057caf31
...
...
@@ -954,13 +954,9 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
expectedFortune
.
setFortuneName
(
queryByDict
(
expectedFortuneDto
.
getFortuneType
()));
// 应付款编号(序号递增)
expectedFortune
.
setPayableNo
(
this
.
createPayableNo
(
expectedFortune
.
getFortuneBizType
(),
++
currentSeq
));
// 默认结算汇率(查询当前期数入账记录的结算汇率)
expectedFortune
.
setDefaultExchangeRate
(
queryCommissionExchangeRate
(
expectedFortuneDto
.
getPolicyNo
(),
expectedFortuneDto
.
getFortunePeriod
())
);
// 计算金额
expectedFortune
.
setAmount
(
NumberUtil
.
div
(
expectedFortuneDto
.
getHkdAmount
(),
expectedFortune
.
getDefaultExchangeRate
(),
2
)
NumberUtil
.
div
(
expectedFortuneDto
.
getHkdAmount
(),
expectedFortune
Dto
.
getDefaultExchangeRate
(),
2
)
);
// 已出帐金额、待出帐金额、已出帐比例、待出帐比例
...
...
@@ -1046,6 +1042,9 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
if
(
Objects
.
isNull
(
expectedFortuneDto
.
getCurrency
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"预计出账币种不能为空"
);
}
if
(
Objects
.
isNull
(
expectedFortuneDto
.
getDefaultExchangeRate
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"结算汇率不能为空"
);
}
}
}
...
...
yd-csf-feign/src/main/java/com/yd/csf/feign/request/expectedfortune/ExpectedFortuneAddRequest.java
View file @
057caf31
...
...
@@ -76,6 +76,12 @@ public class ExpectedFortuneAddRequest {
private
String
fortuneType
;
/**
* 结算汇率
*/
@Schema
(
description
=
"结算汇率"
)
private
BigDecimal
defaultExchangeRate
;
/**
* 出账金额 单位:港币
*/
@Schema
(
description
=
"出账金额 单位:港币"
)
...
...
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