Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
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
DataCenter_Core2.1_20190520
Commits
9078e2ac
Commit
9078e2ac
authored
Feb 20, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
现金流量表的库存去掉耗材库存
parent
5b496be0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Program.cs
Bailun.DC.DailyPayAndIncoming/Program.cs
+1
-1
Services.cs
Bailun.DC.DailyPayAndIncoming/Services.cs
+1
-1
No files found.
Bailun.DC.DailyPayAndIncoming/Program.cs
View file @
9078e2ac
...
...
@@ -22,7 +22,7 @@ namespace Bailun.DC.DailyPayAndIncoming
//{
// var _services = new Services();
// var start = DateTime.Parse("2020-0
1-01
");
// var start = DateTime.Parse("2020-0
2-19
");
// while (start < DateTime.Now)
// {
// Console.WriteLine(start);
...
...
Bailun.DC.DailyPayAndIncoming/Services.cs
View file @
9078e2ac
...
...
@@ -197,7 +197,7 @@ namespace Bailun.DC.DailyPayAndIncoming
//库存 每日晚上12点10分跑每日库存服务
sql
=
$@"select sum(ds.unit_price * (ds.usable_stock + ds.occupy_stock))
from dc_daily_stock ds left join dc_base_sku s on ds.bailun_sku = s.bailun_sku
left join dc_base_warehouse w on ds.warehouse_code = w.warehouse_code
join dc_base_warehouse w on ds.warehouse_code = w.warehouse_code and w.hq_type!='耗材仓'
where ds.record_time = '
{
start
.
ToString
(
"yyyy-MM-dd"
)}
'"
;
var
objStock
=
cn
.
QueryFirstOrDefault
<
decimal
?>(
sql
,
null
,
null
,
2
*
60
);
...
...
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