Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
huatu_API
Project
Project
Details
Activity
Releases
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
liudong1993
huatu_API
Commits
fe7e17f0
Commit
fe7e17f0
authored
Aug 26, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单尾款提醒
parent
0a04e0ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
Program.cs
REBORN.HuaTuQUART/Program.cs
+18
-18
No files found.
REBORN.HuaTuQUART/Program.cs
View file @
fe7e17f0
...
...
@@ -27,19 +27,19 @@ namespace REBORN.HuaTuQUART
{
static
void
Main
(
string
[]
args
)
{
//
ServiceBase[] ServicesToRun;
//
ServicesToRun = new ServiceBase[]
//
{
//
new RebornTimerServer(),
//
};
//
ServiceBase.Run(ServicesToRun);
QuarzHelper
quarzHelper
=
new
QuarzHelper
();
ServiceBase
[]
ServicesToRun
;
ServicesToRun
=
new
ServiceBase
[]
{
new
RebornTimerServer
(),
};
ServiceBase
.
Run
(
ServicesToRun
);
//
QuarzHelper quarzHelper = new QuarzHelper();
// quarzHelper.StartAsync();
// quarzHelper.StartSellTaskStatistics();
// quarzHelper.StartUpdateAnnualLeaves();
// quarzHelper.StartUpdateRevenueReport().GetAwaiter();
quarzHelper
.
StartAsync
();
Console
.
ReadKey
();
//
quarzHelper.StartAsync();
//
Console.ReadKey();
//注: 发布时 app.confing需要配置成正式数据库连接地址
}
...
...
@@ -62,17 +62,17 @@ namespace REBORN.HuaTuQUART
IJobDetail
job
=
JobBuilder
.
Create
<
SellTask
>()
.
WithIdentity
(
"job1"
,
"group1"
)
.
Build
();
ITrigger
trigger
=
TriggerBuilder
.
Create
()
.
WithIdentity
(
"trigger1"
,
"group1"
)
.
StartNow
()
.
WithSimpleSchedule
(
x
=>
x
.
WithIntervalInMinutes
(
10
)
.
RepeatForever
())
.
Build
();
//ICronTrigger trigger = (ICronTrigger)TriggerBuilder.Create()
//ITrigger trigger = TriggerBuilder.Create()
// .WithIdentity("trigger1", "group1")
// .WithCronSchedule(cronExpression)
// .StartNow()
// .WithSimpleSchedule(x => x
// .WithIntervalInMinutes(10)
// .RepeatForever())
// .Build();
ICronTrigger
trigger
=
(
ICronTrigger
)
TriggerBuilder
.
Create
()
.
WithIdentity
(
"trigger1"
,
"group1"
)
.
WithCronSchedule
(
cronExpression
)
.
Build
();
await
scheduler
.
ScheduleJob
(
job
,
trigger
);
...
...
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