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
bd2d7fec
Commit
bd2d7fec
authored
May 28, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人事科修改系数提交
parent
2a6c8a8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
performance/Performance.Api/Controllers/EmployeeController.cs
+14
-0
performance/Performance.Services/EmployeeService.cs
+15
-0
No files found.
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
bd2d7fec
...
@@ -150,5 +150,18 @@ public ApiResponse DeleteClinic([CustomizeValidator(RuleSet = "Delete"), FromBod
...
@@ -150,5 +150,18 @@ public ApiResponse DeleteClinic([CustomizeValidator(RuleSet = "Delete"), FromBod
return
new
ApiResponse
(
ResponseType
.
Fail
);
return
new
ApiResponse
(
ResponseType
.
Fail
);
return
new
ApiResponse
(
ResponseType
.
OK
);
return
new
ApiResponse
(
ResponseType
.
OK
);
}
}
/// <summary>
/// 人事科修改参数后提交
/// </summary>
/// <param name="allotid"></param>
/// <returns></returns>
[
Route
(
"manage/audit/{allotid}"
)]
[
HttpPost
]
public
ApiResponse
Audit
(
int
allotid
)
{
var
result
=
employeeService
.
Audit
(
allotid
);
return
result
?
new
ApiResponse
(
ResponseType
.
OK
,
"提交成功"
)
:
new
ApiResponse
(
ResponseType
.
Fail
,
"提交失败"
);
}
}
}
}
}
\ No newline at end of file
performance/Performance.Services/EmployeeService.cs
View file @
bd2d7fec
...
@@ -245,5 +245,20 @@ public bool DeleteClinic(im_employee_clinic request)
...
@@ -245,5 +245,20 @@ public bool DeleteClinic(im_employee_clinic request)
}
}
#
endregion
#
endregion
/// <summary>
/// 人事科修改后提交状态
/// </summary>
/// <param name="allotId"></param>
/// <returns></returns>
public
bool
Audit
(
int
allotId
)
{
var
allot
=
perforPerallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"绩效信息错误"
);
allot
.
Generate
=
1
;
return
perforPerallotRepository
.
Update
(
allot
);
}
}
}
}
}
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