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
25b4727d
Commit
25b4727d
authored
Jun 29, 2021
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
de31278e
c61ac407
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
119 additions
and
91 deletions
+119
-91
Config.cs
Edu.Common/Config.cs
+12
-0
DutyPlanModule.cs
Edu.Module.Duty/DutyPlanModule.cs
+16
-12
DutyPlanController.cs
Edu.WebApi/Controllers/Duty/DutyPlanController.cs
+12
-2
appsettings.json
Edu.WebApi/appsettings.json
+79
-77
No files found.
Edu.Common/Config.cs
View file @
25b4727d
...
@@ -596,5 +596,17 @@ namespace Edu.Common
...
@@ -596,5 +596,17 @@ namespace Edu.Common
return
ReadConfigKey
(
"MallJwtSecretKey"
);
return
ReadConfigKey
(
"MallJwtSecretKey"
);
}
}
}
}
/// <summary>
/// 值班日期验证
/// </summary>
public
static
DateTime
DutyDate
{
get
{
DateTime
.
TryParse
(
ReadConfigKey
(
"DutyDate"
),
out
DateTime
dt
);
return
dt
;
}
}
}
}
}
}
\ No newline at end of file
Edu.Module.Duty/DutyPlanModule.cs
View file @
25b4727d
...
@@ -890,7 +890,7 @@ namespace Edu.Module.Duty
...
@@ -890,7 +890,7 @@ namespace Edu.Module.Duty
}
}
if
(!
string
.
IsNullOrEmpty
(
tempStr
))
if
(!
string
.
IsNullOrEmpty
(
tempStr
))
{
{
empList
=
accountRepository
.
GetEmployeeListRepository
(
new
Model
.
ViewModel
.
User
.
Employee_ViewModel
()
{
QIds
=
tempStr
});
empList
=
accountRepository
.
GetEmployeeListRepository
(
new
Model
.
ViewModel
.
User
.
Employee_ViewModel
()
{
QIds
=
tempStr
.
TrimStart
(
','
).
TrimEnd
(
','
)
});
}
}
}
}
foreach
(
var
item
in
contentList
)
foreach
(
var
item
in
contentList
)
...
@@ -1290,7 +1290,10 @@ namespace Edu.Module.Duty
...
@@ -1290,7 +1290,10 @@ namespace Edu.Module.Duty
}
}
if
(
Status
==
2
)
if
(
Status
==
2
)
{
{
var
workContentList
=
duty_ContentRepository
.
GetDutyContentListRepository
(
new
RB_Duty_Content_ViewModel
()
{
PlanId
=
Id
,
PlanShift
=
Shift
,
PlanType
=
1
,
CreateBy
=
DutyMan
}).
ToList
();
var
dutyModel
=
duty_PlanRepository
.
GetEntity
(
Id
);
if
(
dutyModel
.
Date
>=
Common
.
Config
.
DutyDate
)
{
var
workContentList
=
duty_ContentRepository
.
GetDutyContentListRepository
(
new
RB_Duty_Content_ViewModel
()
{
PlanId
=
Id
,
PlanShift
=
Shift
,
PlanType
=
1
,
CreateBy
=
DutyMan
}).
ToList
();
if
(
workContentList
!=
null
&&
workContentList
.
Count
>
0
)
if
(
workContentList
!=
null
&&
workContentList
.
Count
>
0
)
{
{
foreach
(
var
item
in
workContentList
)
foreach
(
var
item
in
workContentList
)
...
@@ -1307,6 +1310,7 @@ namespace Edu.Module.Duty
...
@@ -1307,6 +1310,7 @@ namespace Edu.Module.Duty
}
}
}
}
}
}
}
if
(
dt
<
startTime
)
if
(
dt
<
startTime
)
{
{
message
=
"还未到下班时间,不能打卡!"
;
message
=
"还未到下班时间,不能打卡!"
;
...
...
Edu.WebApi/Controllers/Duty/DutyPlanController.cs
View file @
25b4727d
...
@@ -361,7 +361,7 @@ namespace Edu.WebApi.Controllers.Duty
...
@@ -361,7 +361,7 @@ namespace Edu.WebApi.Controllers.Duty
{
{
Id
=
0
,
Id
=
0
,
PlanShift
=
Shift
,
PlanShift
=
Shift
,
PlanType
=
3
,
PlanType
=
3
,
PlanId
=
Id
,
PlanId
=
Id
,
OtherContent
=
"无"
,
OtherContent
=
"无"
,
OtherRemark
=
"无"
,
OtherRemark
=
"无"
,
...
@@ -369,7 +369,12 @@ namespace Edu.WebApi.Controllers.Duty
...
@@ -369,7 +369,12 @@ namespace Edu.WebApi.Controllers.Duty
WorkIsFinish
=
1
,
WorkIsFinish
=
1
,
ItemId
=
0
,
ItemId
=
0
,
ItemType
=
0
,
ItemType
=
0
,
});
CreateBy
=
base
.
UserInfo
.
Id
,
CreateTime
=
DateTime
.
Now
,
UpdateBy
=
base
.
UserInfo
.
Id
,
UpdateTime
=
DateTime
.
Now
,
Group_Id
=
base
.
UserInfo
.
Group_Id
,
});
;
}
}
if
(
IsHandover
==
1
)
if
(
IsHandover
==
1
)
{
{
...
@@ -385,6 +390,11 @@ namespace Edu.WebApi.Controllers.Duty
...
@@ -385,6 +390,11 @@ namespace Edu.WebApi.Controllers.Duty
WorkIsFinish
=
1
,
WorkIsFinish
=
1
,
ItemId
=
0
,
ItemId
=
0
,
ItemType
=
0
,
ItemType
=
0
,
CreateBy
=
base
.
UserInfo
.
Id
,
CreateTime
=
DateTime
.
Now
,
UpdateBy
=
base
.
UserInfo
.
Id
,
UpdateTime
=
DateTime
.
Now
,
Group_Id
=
base
.
UserInfo
.
Group_Id
,
});
});
}
}
}
}
...
...
Edu.WebApi/appsettings.json
View file @
25b4727d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"SettlementRate"
:
"0.60"
,
"SettlementRate"
:
"0.60"
,
"SellCommissionFFBL"
:
"0.15"
,
"SellCommissionFFBL"
:
"0.15"
,
"JwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"JwtSecretKey"
:
"@VIITTOREBORN*2018"
,
"MallJwtSecretKey"
:
"@VIITTOREBORN*2018123
"
,
"MallJwtSecretKey"
:
"@VIITTOREBORN*2018
"
,
"JwtExpirTime"
:
86400
,
"JwtExpirTime"
:
86400
,
"IsSendMsg"
:
2
,
"IsSendMsg"
:
2
,
"AllowedHosts"
:
"*"
,
"AllowedHosts"
:
"*"
,
...
@@ -75,5 +75,7 @@
...
@@ -75,5 +75,7 @@
//超过下班时间
60
分钟不能打卡
//超过下班时间
60
分钟不能打卡
"MoreThanMinutes"
:
60
,
"MoreThanMinutes"
:
60
,
//连续缺课课时
//连续缺课课时
"AbsentHours"
:
12
"AbsentHours"
:
12
,
//值班时间验证日期
"DutyDate"
:
"2021-06-30"
}
}
\ No newline at end of file
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