Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
data-center-auto
Commits
5b47e6a5
Commit
5b47e6a5
authored
Aug 12, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增最近30日现金流计算
parent
aabd4aae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
report.cs
AutoTurnOver.DB/report.cs
+9
-0
No files found.
AutoTurnOver.DB/report.cs
View file @
5b47e6a5
...
...
@@ -1794,6 +1794,7 @@ where t1.bailun_sku = t2.bailun_sku and t1.warehouse_code = t2.warehouse_code;
"
,
commandTimeout
:
0
);
}
catch
(
Exception
ex
)
{
...
...
@@ -1928,6 +1929,14 @@ truncate table dc_report_cash_flow_sku_group_temp;
update dc_report_cash_flow_sku_group set current_balance=current_income+current_expend ,last_balance=last_income+last_expend;
"
,
datePar
,
commandTimeout
:
0
);
_connection
.
Execute
(
@" update dc_base_stock as t1,
( select bailun_sku,warehouse_code, abs(sum(case when val<0 then val else 0 end )) as 'pay_amount_30',
sum(case when val>0 then val else 0 end ) as 'income_amount_30'
from dc_report_cash_flow_log where occur_time >=@btime and is_delete=0 GROUP BY bailun_sku,warehouse_code ) as t2
set t1.pay_amount_30 =t2.pay_amount_30 , t1.income_amount_30 = t2.income_amount_30
where t1.bailun_sku = t2.bailun_sku and t1.warehouse_code = t2.warehouse_code;
"
,
new
{
btime
=
DateTime
.
Now
.
AddDays
(-
30
).
ToDayHome
()},
commandTimeout
:
0
);
}
}
...
...
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