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
cb5c446e
Commit
cb5c446e
authored
Apr 20, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增应付17
parent
f0b103f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
+14
-10
yd-csf-service/src/main/java/com/yd/csf/service/vo/FortuneVO.java
+1
-1
No files found.
yd-csf-api/src/main/java/com/yd/csf/api/service/impl/ApiExpectedFortuneServiceImpl.java
View file @
cb5c446e
...
@@ -1274,16 +1274,20 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
...
@@ -1274,16 +1274,20 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
ExpectedFortune
updateExpectedFortune
=
new
ExpectedFortune
();
ExpectedFortune
updateExpectedFortune
=
new
ExpectedFortune
();
BeanUtils
.
copyProperties
(
request
,
updateExpectedFortune
);
BeanUtils
.
copyProperties
(
request
,
updateExpectedFortune
);
updateExpectedFortune
.
setId
(
expectedFortune
.
getId
());
updateExpectedFortune
.
setId
(
expectedFortune
.
getId
());
// 默认结算汇率
updateExpectedFortune
.
setDefaultExchangeRate
(
// 币种或金额变更,则需要重新计算港币金额和待出账金额
queryExchangeRateByFeign
(
if
(
ObjectUtils
.
notEqual
(
expectedFortune
.
getCurrency
(),
request
.
getCurrency
())
||
ObjectUtils
.
notEqual
(
expectedFortune
.
getHkdAmount
(),
request
.
getAmount
()))
{
updateExpectedFortune
.
getCurrency
(),
// 默认结算汇率
"HKD"
updateExpectedFortune
.
setDefaultExchangeRate
(
));
queryExchangeRateByFeign
(
// 计算港币金额
updateExpectedFortune
.
getCurrency
(),
updateExpectedFortune
.
setHkdAmount
(
updateExpectedFortune
.
getAmount
().
multiply
(
updateExpectedFortune
.
getDefaultExchangeRate
()));
"HKD"
// 更新待出账金额
));
updateExpectedFortune
.
setUnpaidAmount
(
updateExpectedFortune
.
getHkdAmount
());
// 计算港币金额
updateExpectedFortune
.
setHkdAmount
(
updateExpectedFortune
.
getAmount
().
multiply
(
updateExpectedFortune
.
getDefaultExchangeRate
()));
// 更新待出账金额
updateExpectedFortune
.
setUnpaidAmount
(
updateExpectedFortune
.
getHkdAmount
());
}
// 获取当前登录用户
// 获取当前登录用户
AuthUserDto
currentLoginUser
=
SecurityUtil
.
getCurrentLoginUser
();
AuthUserDto
currentLoginUser
=
SecurityUtil
.
getCurrentLoginUser
();
String
loginUserId
=
currentLoginUser
.
getId
().
toString
();
String
loginUserId
=
currentLoginUser
.
getId
().
toString
();
...
...
yd-csf-service/src/main/java/com/yd/csf/service/vo/FortuneVO.java
View file @
cb5c446e
...
@@ -233,7 +233,7 @@ public class FortuneVO implements Serializable {
...
@@ -233,7 +233,7 @@ public class FortuneVO implements Serializable {
*/
*/
@Schema
(
description
=
"出账日(实)"
)
@Schema
(
description
=
"出账日(实)"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
Date
actualPayoutDate
;
private
Local
Date
actualPayoutDate
;
/**
/**
* 是否含税 0=No, 1=Yes
* 是否含税 0=No, 1=Yes
...
...
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