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
28c328db
Commit
28c328db
authored
Mar 22, 2025
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充应收单汇率数据刷新脚本
parent
3ce198c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
20250222-currency-rate.sql
sql/v2.2财务/20250222-currency-rate.sql
+3
-0
No files found.
sql/v2.2财务/20250222-currency-rate.sql
View file @
28c328db
...
@@ -87,6 +87,9 @@ ALTER TABLE `ecw_receivable` ADD COLUMN `dest_country_sub_target_currency_code`
...
@@ -87,6 +87,9 @@ ALTER TABLE `ecw_receivable` ADD COLUMN `dest_country_sub_target_currency_code`
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
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
;
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
;
update
`ecw_receivable`
r
left
join
`ecw_currency`
c1
on
r
.
currency_id
=
c1
.
id
set
r
.
source_amount
=
1
,
r
.
`source_currency_code`
=
c1
.
fuhao
,
r
.
target_amount
=
1
,
r
.
`target_currency_code`
=
c1
.
fuhao
where
r
.
currency_id
=
r
.
base_currency_id
;
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`
;
...
...
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