Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
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
黄奎
Education
Commits
437dc5aa
Commit
437dc5aa
authored
Mar 19, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时器调整
parent
a3ebadf6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
9 deletions
+23
-9
QuarzHelper.cs
Edu.EducationCore/Helper/QuarzHelper.cs
+10
-5
appsettings.json
Edu.EducationCore/appsettings.json
+11
-3
FinanceModule.cs
Edu.Module.Finance/FinanceModule.cs
+1
-0
FinanceController.cs
Edu.WebApi/Controllers/Finance/FinanceController.cs
+1
-1
No files found.
Edu.EducationCore/Helper/QuarzHelper.cs
View file @
437dc5aa
...
...
@@ -120,6 +120,7 @@ namespace Edu.Education.Helper
/// <returns></returns>
public
async
Task
RevenueReportTimer
()
{
string
CronExpression2
=
"0 10 8,12,18,22 * * ?"
;
//每天8,12,19,22点触发
NameValueCollection
props
=
new
NameValueCollection
{
{
"quartz.serializer.type"
,
"binary"
}
...
...
@@ -131,12 +132,16 @@ namespace Edu.Education.Helper
IJobDetail
job
=
JobBuilder
.
Create
<
CreateRevenueReport
>()
.
WithIdentity
(
"job4"
,
"group4"
)
.
Build
();
ITrigger
trigger
=
TriggerBuilder
.
Create
()
//ITrigger trigger = TriggerBuilder.Create()
// .WithIdentity("trigger4", "group4")
// .StartNow()
// .WithSimpleSchedule(x => x
// .WithIntervalInHours(1)
// .RepeatForever())
// .Build();
ICronTrigger
trigger
=
(
ICronTrigger
)
TriggerBuilder
.
Create
()
.
WithIdentity
(
"trigger4"
,
"group4"
)
.
StartNow
()
.
WithSimpleSchedule
(
x
=>
x
.
WithIntervalInHours
(
1
)
.
RepeatForever
())
.
WithCronSchedule
(
CronExpression2
)
.
Build
();
await
scheduler
.
ScheduleJob
(
job
,
trigger
);
...
...
Edu.EducationCore/appsettings.json
View file @
437dc5aa
{
"ConnectionStrings"
:
{
"DefaultConnection"
:
"server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
//
"DefaultConnection"
:
"server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
//
"DefaultConnectionPName"
:
"MySql.Data.MySqlClient"
,
//
"FinanceConnection"
:
"server=192.168.1.214;user id=reborn;password=Reborn@2018;database=test_reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
//
"FinanceConnectionPName"
:
"MySql.Data.MySqlClient"
,
//
"DataStatisticsConnection"
:
"server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_datastatistics;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
//
"DataStatisticsConnectionPName"
:
"MySql.Data.MySqlClient"
,
"DefaultConnection"
:
"server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;user id=reborn;password=Reborn@2018;database=uat_reborn_edu;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"DefaultConnectionPName"
:
"MySql.Data.MySqlClient"
,
"FinanceConnection"
:
"server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"FinanceConnectionPName"
:
"MySql.Data.MySqlClient"
"FinanceConnection"
:
"server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;user id=reborn;password=Reborn@2018;database=uat_reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"FinanceConnectionPName"
:
"MySql.Data.MySqlClient"
,
"DataStatisticsConnection"
:
"server=rm-bp1tj77h6kp0d02fb.mysql.rds.aliyuncs.com;user id=reborn;password=Reborn@2018;database=uat_reborn_datastatistics;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"DataStatisticsConnectionPName"
:
"MySql.Data.MySqlClient"
},
"Logging"
:
{
"LogLevel"
:
{
...
...
Edu.Module.Finance/FinanceModule.cs
View file @
437dc5aa
...
...
@@ -325,6 +325,7 @@ namespace Edu.Module.Finance
demodel
=
new
RB_Edu_RevenueReport_Extend
()
{
Id
=
0
,
ClassId
=
item
.
ClassId
,
Rb_Group_Id
=
GroupId
,
SchoolId
=
item
.
School_Id
,
SchoolName
=
item
.
SchoolName
,
...
...
Edu.WebApi/Controllers/Finance/FinanceController.cs
View file @
437dc5aa
...
...
@@ -67,7 +67,7 @@ namespace Edu.WebApi.Controllers.Finance
//利润
decimal
ProfitActual
=
0
;
//实际利润
decimal
ProfitNow
=
0
;
//当前利润
ProfitActual
=
(
Income
Receive
+
OtherIncomeReceive
)
-
PayReceive
;
ProfitActual
=
(
Income
Actual
+
OtherIncomeActual
)
-
PayReceive
;
ProfitNow
=
(
IncomeActual
+
OtherIncomeActual
)
-
PayActual
;
//提成
...
...
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