Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
dce4e258
Commit
dce4e258
authored
May 28, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人事科提交判断条件修改
parent
e99dbc90
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
performance/Performance.Api/Controllers/SecondAllotController.cs
+1
-1
performance/Performance.Services/EmployeeService.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
dce4e258
...
@@ -262,7 +262,7 @@ public ApiResponse SingleSave([FromBody]ag_workload_type request)
...
@@ -262,7 +262,7 @@ public ApiResponse SingleSave([FromBody]ag_workload_type request)
/// 删除二次绩效工作量类型
/// 删除二次绩效工作量类型
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
[
Route
(
"api/second/
singl
e/delete"
)]
[
Route
(
"api/second/
worktyp
e/delete"
)]
[
HttpPost
]
[
HttpPost
]
public
ApiResponse
SingleDelete
([
CustomizeValidator
(
RuleSet
=
"Delete"
),
FromBody
]
WorkloadRequest
request
)
public
ApiResponse
SingleDelete
([
CustomizeValidator
(
RuleSet
=
"Delete"
),
FromBody
]
WorkloadRequest
request
)
{
{
...
...
performance/Performance.Services/EmployeeService.cs
View file @
dce4e258
...
@@ -254,7 +254,7 @@ public bool DeleteClinic(im_employee_clinic request)
...
@@ -254,7 +254,7 @@ public bool DeleteClinic(im_employee_clinic request)
public
bool
Audit
(
int
allotId
)
public
bool
Audit
(
int
allotId
)
{
{
var
allot
=
perforPerallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
var
allot
=
perforPerallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
if
(
allot
==
null
)
if
(
allot
==
null
||
!
new
List
<
int
>
{
(
int
)
AllotStates
.
GenerateSucceed
,
(
int
)
AllotStates
.
Archive
}.
Contains
(
allot
.
States
)
)
throw
new
PerformanceException
(
"绩效信息错误"
);
throw
new
PerformanceException
(
"绩效信息错误"
);
allot
.
Generate
=
1
;
allot
.
Generate
=
1
;
...
...
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