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
94e745ca
Commit
94e745ca
authored
Dec 17, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
61bea321
572034e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
TeachingRewardsModule.cs
Edu.Module.Course/TeachingRewardsModule.cs
+6
-6
appsettings.json
Edu.WebApi/appsettings.json
+2
-0
No files found.
Edu.Module.Course/TeachingRewardsModule.cs
View file @
94e745ca
...
...
@@ -1046,11 +1046,11 @@ namespace Edu.Module.Course
decimal
FullClassRate
=
0
;
if
(
teachModel
.
BaseStuNum
>
0
)
{
FullClassRate
=
Math
.
Round
(
Convert
.
ToDecimal
(
TotalPeopleNum
)
/
teachModel
.
BaseStuNum
,
2
,
MidpointRounding
.
AwayFromZero
);
FullClassRate
=
Math
.
Round
(
Convert
.
ToDecimal
(
TotalPeopleNum
)
/
teachModel
.
BaseStuNum
,
2
,
MidpointRounding
.
AwayFromZero
)
*
100
;
}
//班级平均上课率
decimal
AvgTakeClassRate
=
class_CheckRepository
.
GetClassAvgTakeClassRate
(
classId
,
classModel
.
Group_Id
);
decimal
AvgTakeClassRate
=
class_CheckRepository
.
GetClassAvgTakeClassRate
(
classId
,
classModel
.
Group_Id
)
*
100
;
//查询奖金金额
decimal
UnitPrice
=
0
;
...
...
@@ -1169,15 +1169,15 @@ namespace Edu.Module.Course
{
new
{
CostTypeId
=
Config
.
ReadConfigKey
(
"
Bonus
CostTypeId"
),
CostTypeId
=
Config
.
ReadConfigKey
(
"
Perf
CostTypeId"
),
Number
=
tmodel
.
ClassHours
,
OriginalMoney
=
tmodel
.
UnitPrice
,
tmodel
.
UnitPrice
,
Remark
=
"满班率:"
+
tmodel
.
FullClassRate
+
",平均上课率:"
+
tmodel
.
AvgCheckRate
+
",累计课时:"
+
tmodel
.
ClassHours
}
};
string
Remark
=
teacherModel
.
TeacherName
+
"教师绩效"
;
var
classModel
=
classRepository
.
GetEntity
(
tmodel
.
ClassId
);
string
Remark
=
teacherModel
.
TeacherName
+
"教师
【"
+
(
classModel
?.
ClassName
??
""
)
+
"】
绩效"
;
var
financeObj
=
new
{
IsPublic
,
...
...
@@ -1186,7 +1186,7 @@ namespace Edu.Module.Course
CurrencyId
,
WBMoney
=
tmodel
.
Money
,
PayDate
=
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
),
TemplateId
=
Config
.
ReadConfigKey
(
"Teaching
Bonus
Templete"
),
TemplateId
=
Config
.
ReadConfigKey
(
"Teaching
Perf
Templete"
),
OrderSource
=
17
,
OtherType
=
27
,
ReFinanceId
=
perfId
,
...
...
Edu.WebApi/appsettings.json
View file @
94e745ca
...
...
@@ -26,6 +26,8 @@
"PaymentFinanceApi"
:
"http://192.168.1.13:8083/api/Mall/InsertFinanceBatchForMallOut"
,
"TeachingBonusTemplete"
:
141
,
"BonusCostTypeId"
:
540
,
"TeachingPerfTemplete"
:
141
,
"PerfCostTypeId"
:
540
,
"RabbitMqConfig"
:
{
"HostName"
:
"47.96.25.130"
,
"VirtualHost"
:
"/"
,
...
...
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