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
f9988862
Commit
f9988862
authored
Jun 02, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不公示其他绩效验证工号
parent
00c3c793
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
performance/Performance.Services/EmployeeService.cs
+9
-7
No files found.
performance/Performance.Services/EmployeeService.cs
View file @
f9988862
...
...
@@ -478,7 +478,7 @@ public List<view_per_apr_amount> GetAprList(int allotId, string department, int?
public
bool
InsertApr
(
per_apr_amount
request
,
int
userId
)
{
if
(
request
==
null
)
return
false
;
throw
new
PerformanceException
(
"无效数据"
)
;
if
(
string
.
IsNullOrEmpty
(
request
.
PersonnelNumber
))
throw
new
PerformanceException
(
"文件中存在“工号”为空的数据"
);
...
...
@@ -503,8 +503,7 @@ public bool InsertApr(per_apr_amount request, int userId)
public
bool
UpdateApr
(
per_apr_amount
request
)
{
if
(
request
==
null
)
return
false
;
throw
new
PerformanceException
(
"无效数据"
);
if
(
string
.
IsNullOrEmpty
(
request
.
PersonnelNumber
))
throw
new
PerformanceException
(
"文件中存在“工号”为空的数据"
);
...
...
@@ -931,13 +930,17 @@ public List<view_per_apr_amount> GetAprHideList(int allotId, string department,
public
bool
InsertAprHide
(
per_apr_amount_hide
request
,
int
userId
)
{
if
(
request
==
null
)
return
false
;
throw
new
PerformanceException
(
"无效数据"
)
;
if
(
string
.
IsNullOrEmpty
(
request
.
PersonnelNumber
))
throw
new
PerformanceException
(
"文件中存在“工号”为空的数据"
);
if
(
string
.
IsNullOrEmpty
(
request
.
PerforType
)
&&
request
.
Amount
!=
0
)
throw
new
PerformanceException
(
"文件中存在“绩效类型”为空的数据"
);
var
employee
=
peremployeeRepository
.
GetEntity
(
t
=>
t
.
AllotId
==
request
.
AllotId
&&
t
.
PersonnelNumber
==
request
.
PersonnelNumber
);
if
(
employee
==
null
)
throw
new
PerformanceException
(
"工号在字典中不存在"
);
request
.
TypeInDepartment
=
GetTypeInDepartment
(
userId
);
request
.
Status
=
2
;
request
.
CreateDate
=
DateTime
.
Now
;
...
...
@@ -952,8 +955,7 @@ public bool InsertAprHide(per_apr_amount_hide request, int userId)
public
bool
UpdateAprHide
(
per_apr_amount_hide
request
)
{
if
(
request
==
null
)
return
false
;
throw
new
PerformanceException
(
"无效数据"
);
if
(
string
.
IsNullOrEmpty
(
request
.
PersonnelNumber
))
throw
new
PerformanceException
(
"文件中存在“工号”为空的数据"
);
...
...
@@ -1447,7 +1449,7 @@ public GatherResponse GetGatherTotal(Gather gather)
}
else
{
exresultgather
=
exresultgatherRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
gather
.
AllotId
);
exresultgather
=
exresultgatherRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
gather
.
AllotId
);
}
...
...
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