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
05441a3c
Commit
05441a3c
authored
Sep 01, 2021
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正缺货数据同步
parent
3bb329ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ShortageBackgrounService.cs
...yStatistics/BackgroundService/ShortageBackgrounService.cs
+2
-2
No files found.
AutoTurnOver.WeeklyStatistics/BackgroundService/ShortageBackgrounService.cs
View file @
05441a3c
...
@@ -13,14 +13,14 @@ namespace AutoTurnOver.WeeklyStatistics
...
@@ -13,14 +13,14 @@ namespace AutoTurnOver.WeeklyStatistics
protected
override
Task
ExecuteAsync
(
CancellationToken
stoppingToken
)
protected
override
Task
ExecuteAsync
(
CancellationToken
stoppingToken
)
{
{
_timer
=
new
Timer
(
DoWork
,
null
,
TimeSpan
.
Zero
,
TimeSpan
.
FromSeconds
(
60
));
_timer
=
new
Timer
(
DoWork
,
null
,
TimeSpan
.
Zero
,
TimeSpan
.
FromSeconds
(
60
));
Console
.
WriteLine
(
"执行缺货数据同步!"
);
return
Task
.
CompletedTask
;
return
Task
.
CompletedTask
;
}
}
private
void
DoWork
(
object
state
)
private
void
DoWork
(
object
state
)
{
{
var
now
=
DateTime
.
Now
;
var
now
=
DateTime
.
Now
;
var
dayOfWeek
=
System
.
Globalization
.
CultureInfo
.
CurrentCulture
.
DateTimeFormat
.
GetDayName
(
now
.
DayOfWeek
);
if
(
now
.
Hour
==
1
&&
now
.
Minute
==
1
)
if
(
now
.
Hour
==
0
&&
now
.
Minute
==
1
)
{
{
try
try
{
{
...
...
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