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
da26a92d
Commit
da26a92d
authored
Sep 26, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a97eadc8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
22 deletions
+24
-22
Program.cs
Bailun.DC.DailySemiPurchaseSellStock/Program.cs
+19
-19
Services.cs
Bailun.DC.DailySemiPurchaseSellStock/Services.cs
+4
-0
AllotServices.cs
Bailun.DC.Services/AllotServices.cs
+0
-2
SkuMonitorServices.cs
Bailun.DC.Services/SkuMonitorServices.cs
+1
-1
No files found.
Bailun.DC.DailySemiPurchaseSellStock/Program.cs
View file @
da26a92d
...
...
@@ -7,29 +7,29 @@ namespace Bailun.DC.DailySemiPurchaseSellStock
{
class
Program
{
//static async Task Main(string[] args)
//{
// Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// services.AddHostedService<Services>();
// });
// await builder.RunConsoleAsync();
//}
static
void
Main
(
string
[]
args
)
static
async
Task
Main
(
string
[]
args
)
{
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
var
_services
=
new
Services
();
services
.
AddHostedService
<
Services
>();
});
var
start
=
DateTime
.
Parse
(
"2020-05-26"
);
_services
.
Init
(
start
);
//while (start.AddDays(1) < DateTime.Now)
await
builder
.
RunConsoleAsync
();
}
//static void Main(string[] args)
//{
// Console.WriteLine(start);
// var _services = new Services();
// var start = DateTime.Parse("2020-09-25");
// _services.Init(start);
// start = start.AddDays(1);
// //while (start.AddDays(1) < DateTime.Now)
// //{
// // Console.WriteLine(start);
// // _services.Init(start);
// // start = start.AddDays(1);
// //}
//}
}
}
}
Bailun.DC.DailySemiPurchaseSellStock/Services.cs
View file @
da26a92d
...
...
@@ -179,9 +179,13 @@ namespace Bailun.DC.DailySemiPurchaseSellStock
m
.
end_onway_amount
=
p
.
Sum
(
a
=>
a
.
amount
);
}
if
(
m
.
end_onway_amount
>
0
||
m
.
end_onway_count
>
0
||
m
.
end_stock_amount
>
0
||
m
.
end_stock_count
>
0
||
m
.
start_onway_amount
>
0
||
m
.
start_onway_count
>
0
||
m
.
start_stock_amount
>
0
||
m
.
start_stock_count
>
0
)
{
list
.
Add
(
m
);
}
}
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
+
"Allow User Variables=True"
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
...
...
Bailun.DC.Services/AllotServices.cs
View file @
da26a92d
...
...
@@ -335,8 +335,6 @@ namespace Bailun.DC.Services
return
obj
.
AsList
();
}
}
}
...
...
Bailun.DC.Services/SkuMonitorServices.cs
View file @
da26a92d
...
...
@@ -410,7 +410,7 @@ namespace Bailun.DC.Services
dc_datawarehouse t1
join dc_base_stock t2 on t1.sku=t2.bailun_sku and t1.warehouse_code=t2.warehouse_code "
;
sql
+=
" where
t1.id>0
"
;
sql
+=
" where
1=1
"
;
if
(!
string
.
IsNullOrWhiteSpace
(
skucategoryids
))
{
...
...
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