Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
3ce198c2
Commit
3ce198c2
authored
Mar 22, 2025
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充应收单汇率数据刷新脚本
parent
c88b30cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
20250222-currency-rate.sql
sql/v2.2财务/20250222-currency-rate.sql
+3
-0
ReceivableBackVO.java
...r/yudao/module/wealth/vo/receivable/ReceivableBackVO.java
+57
-0
No files found.
sql/v2.2财务/20250222-currency-rate.sql
View file @
3ce198c2
...
@@ -84,6 +84,9 @@ ALTER TABLE `ecw_receivable` ADD COLUMN `dest_country_sub_source_amount` DECIMAL
...
@@ -84,6 +84,9 @@ ALTER TABLE `ecw_receivable` ADD COLUMN `dest_country_sub_source_amount` DECIMAL
ALTER
TABLE
`ecw_receivable`
ADD
COLUMN
`dest_country_sub_target_amount`
DECIMAL
(
14
,
4
)
DEFAULT
NULL
COMMENT
'目的国副币种支付基准金额'
AFTER
`dest_country_sub_source_amount`
;
ALTER
TABLE
`ecw_receivable`
ADD
COLUMN
`dest_country_sub_target_amount`
DECIMAL
(
14
,
4
)
DEFAULT
NULL
COMMENT
'目的国副币种支付基准金额'
AFTER
`dest_country_sub_source_amount`
;
ALTER
TABLE
`ecw_receivable`
ADD
COLUMN
`dest_country_sub_target_currency_code`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'目的国副币种代码'
AFTER
`dest_country_sub_target_amount`
;
ALTER
TABLE
`ecw_receivable`
ADD
COLUMN
`dest_country_sub_target_currency_code`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'目的国副币种代码'
AFTER
`dest_country_sub_target_amount`
;
update
`ecw_receivable`
r
left
join
`ecw_currency_rate`
r1
on
r
.
currency_id
=
r1
.
source_id
and
r
.
base_currency_id
=
r1
.
target_id
set
r
.
source_amount
=
r1
.
source_amount
,
r
.
`source_currency_code`
=
r1
.
target_currency_code
,
r
.
target_amount
=
r1
.
target_amount
,
r
.
`target_currency_code`
=
r1
.
target_currency_code
;
ALTER
TABLE
`ecw_commission_payable`
ADD
COLUMN
`source_amount`
DECIMAL
(
14
,
4
)
DEFAULT
NULL
COMMENT
'原币种基准金额'
AFTER
`exchange_rate`
;
ALTER
TABLE
`ecw_commission_payable`
ADD
COLUMN
`source_amount`
DECIMAL
(
14
,
4
)
DEFAULT
NULL
COMMENT
'原币种基准金额'
AFTER
`exchange_rate`
;
ALTER
TABLE
`ecw_commission_payable`
ADD
COLUMN
`source_currency_code`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'原币种代码'
AFTER
`source_amount`
;
ALTER
TABLE
`ecw_commission_payable`
ADD
COLUMN
`source_currency_code`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'原币种代码'
AFTER
`source_amount`
;
ALTER
TABLE
`ecw_commission_payable`
ADD
COLUMN
`target_amount`
DECIMAL
(
14
,
4
)
DEFAULT
NULL
COMMENT
'支付币种基准金额'
AFTER
`source_currency_code`
;
ALTER
TABLE
`ecw_commission_payable`
ADD
COLUMN
`target_amount`
DECIMAL
(
14
,
4
)
DEFAULT
NULL
COMMENT
'支付币种基准金额'
AFTER
`source_currency_code`
;
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/vo/receivable/ReceivableBackVO.java
View file @
3ce198c2
...
@@ -239,4 +239,61 @@ public class ReceivableBackVO {
...
@@ -239,4 +239,61 @@ public class ReceivableBackVO {
@ApiModelProperty
(
value
=
"基准币种id"
)
@ApiModelProperty
(
value
=
"基准币种id"
)
private
Long
baseCurrencyId
;
private
Long
baseCurrencyId
;
/**
* 目的国相关币种id(用于报表,跟费用类型相关)
*/
private
Long
destCountryCurrencyId
;
/**
* 目的国相关汇率(用于报表,跟费用类型相关)
*/
private
BigDecimal
destCountryRate
;
/**
* 额外费用副币种汇率(用于报表,跟费用类型相关)
*/
private
BigDecimal
destCountrySubRate
;
/**
* 原币种基准金额
*/
private
BigDecimal
sourceAmount
;
/**
* 原币种代码
*/
private
String
sourceCurrencyCode
;
/**
* 支付币种基准金额
*/
private
BigDecimal
targetAmount
;
/**
* 支付币种代码
*/
private
String
targetCurrencyCode
;
/**
* 目的国币种汇兑原币种基准金额
*/
private
BigDecimal
destCountrySourceAmount
;
/**
* 目的国币种支付基准金额
*/
private
BigDecimal
destCountryTargetAmount
;
/**
* 目的国币种代码
*/
private
String
destCountryTargetCurrencyCode
;
/**
* 目的国币副种汇兑原币种基准金额
*/
private
BigDecimal
destCountrySubSourceAmount
;
/**
* 目的国副币种支付基准金额
*/
private
BigDecimal
destCountrySubTargetAmount
;
/**
* 目的国副币种代码
*/
private
String
destCountrySubTargetCurrencyCode
;
}
}
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