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
d20cc292
Commit
d20cc292
authored
Feb 25, 2021
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增库存销量报表的备份服务
parent
6f2e798b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
2 deletions
+33
-2
report.cs
AutoTurnOver.DB/report.cs
+0
-0
dc_report_tag_stock_week.cs
AutoTurnOver.Models/dc_report_tag_stock_week.cs
+26
-0
Program.cs
ResetOutofstock/Program.cs
+1
-2
StockBackgrounService.cs
ResetOutofstock/StockBackgrounService.cs
+6
-0
No files found.
AutoTurnOver.DB/report.cs
View file @
d20cc292
This diff is collapsed.
Click to expand it.
AutoTurnOver.Models/dc_report_tag_stock_week.cs
0 → 100644
View file @
d20cc292
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
AutoTurnOver.Models
{
public
class
dc_report_tag_stock_week
{
public
int
id
{
get
;
set
;
}
public
string
week_str
{
get
;
set
;
}
public
DateTime
date
{
get
;
set
;
}
public
string
tag
{
get
;
set
;
}
public
string
field
{
get
;
set
;
}
public
decimal
val
{
get
;
set
;
}
}
public
class
dc_report_tag_stock_week_search_dto
{
public
string
hq_type
{
get
;
set
;
}
public
string
area_name
{
get
;
set
;
}
public
string
product_type_desc
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
string
tag
{
get
;
set
;
}
}
}
ResetOutofstock/Program.cs
View file @
d20cc292
...
@@ -17,8 +17,7 @@ namespace ResetOutofstock
...
@@ -17,8 +17,7 @@ namespace ResetOutofstock
{
{
var
now
=
DateTime
.
Now
;
var
now
=
DateTime
.
Now
;
report
.
GenerateWeekTagStockDatas
();
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
ResetOutofstock/StockBackgrounService.cs
View file @
d20cc292
...
@@ -79,6 +79,12 @@ namespace ResetOutofstock
...
@@ -79,6 +79,12 @@ namespace ResetOutofstock
report
.
PurchaseWeekBackUp
();
report
.
PurchaseWeekBackUp
();
Console
.
WriteLine
(
$"结束 备份上周采购库存,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Console
.
WriteLine
(
$"结束 备份上周采购库存,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
}
}
if
(
now
.
Hour
==
4
&&
now
.
Minute
==
15
)
{
Console
.
WriteLine
(
$"开始 备份上周库存销量报表,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
report
.
GenerateWeekTagStockDatas
();
Console
.
WriteLine
(
$"结束 备份上周库存销量报表,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
}
}
}
if
(
now
.
Hour
==
8
&&
now
.
Minute
==
10
)
if
(
now
.
Hour
==
8
&&
now
.
Minute
==
10
)
...
...
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