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
a4689af6
Commit
a4689af6
authored
Apr 09, 2019
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传文件复制配置bug修改
parent
6e63e344
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
performance/Performance.Services/AgainAllotService.cs
+2
-2
performance/Performance.Services/ConfigService.cs
+6
-4
No files found.
performance/Performance.Services/AgainAllotService.cs
View file @
a4689af6
...
@@ -356,12 +356,12 @@ public List<AgainAllotResponse> GetAllotList(int userid)
...
@@ -356,12 +356,12 @@ public List<AgainAllotResponse> GetAllotList(int userid)
var
hospital
=
perforUserhospitalRepository
.
GetEntity
(
t
=>
t
.
UserID
==
userid
);
var
hospital
=
perforUserhospitalRepository
.
GetEntity
(
t
=>
t
.
UserID
==
userid
);
if
(
hospital
==
null
)
if
(
hospital
==
null
)
throw
new
NotImplementedException
(
"人员未选择医院"
);
throw
new
NotImplementedException
(
"人员未选择医院"
);
var
allot
=
perforPerallotRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospital
.
HospitalID
&&
t
.
CreateUser
==
userid
);
var
allot
=
perforPerallotRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospital
.
HospitalID
);
if
(
allot
==
null
)
if
(
allot
==
null
)
throw
new
NotImplementedException
(
"该医院未生成绩效"
);
throw
new
NotImplementedException
(
"该医院未生成绩效"
);
var
allotId
=
allot
.
Select
(
t
=>
t
.
ID
).
ToList
();
var
allotId
=
allot
.
Select
(
t
=>
t
.
ID
).
ToList
();
var
again
=
perforPeragainallotRepository
.
GetEntities
(
t
=>
allotId
.
Contains
(
t
.
AllotID
.
Value
)
&&
t
.
CreateUser
==
userid
);
var
again
=
perforPeragainallotRepository
.
GetEntities
(
t
=>
allotId
.
Contains
(
t
.
AllotID
.
Value
)
&&
t
.
Department
==
user
.
Department
);
var
arrId
=
again
==
null
?
new
List
<
int
>()
:
again
.
Select
(
t
=>
t
.
AllotID
.
Value
).
ToList
();
var
arrId
=
again
==
null
?
new
List
<
int
>()
:
again
.
Select
(
t
=>
t
.
AllotID
.
Value
).
ToList
();
//取得未生成二次绩效的绩效id
//取得未生成二次绩效的绩效id
var
exceptId
=
allotId
.
Except
(
arrId
).
ToList
();
var
exceptId
=
allotId
.
Except
(
arrId
).
ToList
();
...
...
performance/Performance.Services/ConfigService.cs
View file @
a4689af6
...
@@ -424,13 +424,15 @@ public void CopyAgain(int againid)
...
@@ -424,13 +424,15 @@ public void CopyAgain(int againid)
if
(
list
[
i
].
ID
==
allot
.
ID
&&
(
i
-
1
)
>=
0
)
if
(
list
[
i
].
ID
==
allot
.
ID
&&
(
i
-
1
)
>=
0
)
allot
=
list
[
i
-
1
];
allot
=
list
[
i
-
1
];
}
}
List
<
cof_again
>
record
=
new
List
<
cof_again
>();
//根据上月绩效获取二次绩效信息
//根据上月绩效获取二次绩效信息
var
beforeAgain
=
perforPeragainallotRepository
.
GetEntity
(
t
=>
t
.
AllotID
==
allot
.
ID
&&
t
.
CreateUser
==
again
.
CreateUser
);
var
beforeAgain
=
perforPeragainallotRepository
.
GetEntity
(
t
=>
t
.
AllotID
==
allot
.
ID
);
var
record
=
_againRepository
.
GetEntities
(
t
=>
t
.
AgainAllotID
==
-
1
);
if
(
again
.
AllotID
!=
allot
.
ID
&&
beforeAgain
!=
null
)
if
(
again
.
AllotID
!=
allot
.
ID
&&
beforeAgain
!=
null
)
record
=
_againRepository
.
GetEntities
(
t
=>
t
.
AgainAllotID
==
beforeAgain
.
ID
);
record
=
_againRepository
.
GetEntities
(
t
=>
t
.
AgainAllotID
==
beforeAgain
.
ID
);
//int days = DateTime.DaysInMonth(allot.Year, allot.Month);
if
(
record
==
null
||
record
.
Count
==
0
)
record
=
_againRepository
.
GetEntities
(
t
=>
t
.
AgainAllotID
==
-
1
);
var
againList
=
record
.
Select
(
t
=>
new
cof_again
var
againList
=
record
.
Select
(
t
=>
new
cof_again
{
{
AllotID
=
allot
.
ID
,
AllotID
=
allot
.
ID
,
...
...
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