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
48f2afc5
Commit
48f2afc5
authored
Jul 02, 2021
by
lcx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/新二次分配' of
http://192.168.18.110:8880/zry/performance
into feature/新二次分配
parents
f941ce08
34e0a0f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+3
-0
performance/Performance.Repository/PerforPerAllotRepository.cs
+8
-5
performance/Performance.Services/SecondAllotService.cs
+4
-1
No files found.
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
48f2afc5
...
@@ -842,6 +842,9 @@
...
@@ -842,6 +842,9 @@
<member
name=
"F:Performance.DtoModels.SheetType.Assess"
>
<member
name=
"F:Performance.DtoModels.SheetType.Assess"
>
<summary>
考核
</summary>
<summary>
考核
</summary>
</member>
</member>
<member
name=
"F:Performance.DtoModels.SheetType.OnlyExtract"
>
<summary>
抽取数据,不写入
</summary>
</member>
<member
name=
"T:Performance.DtoModels.AccountUnitType"
>
<member
name=
"T:Performance.DtoModels.AccountUnitType"
>
<summary>
<summary>
核算单元类型
核算单元类型
...
...
performance/Performance.Repository/PerforPerAllotRepository.cs
View file @
48f2afc5
...
@@ -261,17 +261,20 @@ public IEnumerable<view_second_workload_result> GetSecondWorkload(int allotid, s
...
@@ -261,17 +261,20 @@ public IEnumerable<view_second_workload_result> GetSecondWorkload(int allotid, s
/// <param name="unittype"></param>
/// <param name="unittype"></param>
/// <param name="accountingunit"></param>
/// <param name="accountingunit"></param>
/// <returns></returns>
/// <returns></returns>
public
IEnumerable
<
string
>
GetSecondWorkloadMaps
(
int
allotid
,
string
unittype
,
string
accountingunit
)
public
IEnumerable
<
string
>
GetSecondWorkloadMaps
(
int
hospitalId
)
{
{
using
(
var
connection
=
context
.
Database
.
GetDbConnection
())
using
(
var
connection
=
context
.
Database
.
GetDbConnection
())
{
{
if
(
connection
.
State
!=
ConnectionState
.
Open
)
connection
.
Open
();
if
(
connection
.
State
!=
ConnectionState
.
Open
)
connection
.
Open
();
try
try
{
{
string
query
=
$@"SELECT DISTINCT Category FROM view_second_workload_his his
string
query
=
$@"SELECT DISTINCT Category FROM (
INNER JOIN per_dept_dic dic ON his.HospitalId = dic.HospitalId and his.UnitType = dic.UnitType and his.Department = dic.HISDeptName
SELECT IF(Source = 102,EName,ItemName) Category FROM ex_type t1
WHERE AllotId = @allotid AND dic.UnitType = @unittype AND dic.AccountingUnit = @accountingunit"
;
LEFT JOIN ex_item t2 ON t1.Id = t2.TypeId
return
connection
.
Query
<
string
>(
query
,
new
{
allotid
,
unittype
,
accountingunit
},
commandTimeout
:
60
*
60
);
WHERE Source IN (102,7) AND HospitalId = @hospitalId
)TAB
WHERE IFNULL(Category,'')<>''"
;
return
connection
.
Query
<
string
>(
query
,
new
{
hospitalId
},
commandTimeout
:
60
*
60
);
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
...
performance/Performance.Services/SecondAllotService.cs
View file @
48f2afc5
...
@@ -1063,7 +1063,10 @@ public List<string> WorkloadMap(int secondId)
...
@@ -1063,7 +1063,10 @@ public List<string> WorkloadMap(int secondId)
var
second
=
agsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondId
);
var
second
=
agsecondallotRepository
.
GetEntity
(
t
=>
t
.
Id
==
secondId
);
if
(
second
==
null
)
throw
new
PerformanceException
(
"参数错误"
);
if
(
second
==
null
)
throw
new
PerformanceException
(
"参数错误"
);
var
worktypes
=
perallotRepository
.
GetSecondWorkloadMaps
(
second
.
AllotId
.
Value
,
second
.
UnitType
,
second
.
Department
);
var
allot
=
perallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
second
.
AllotId
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"参数错误"
);
var
worktypes
=
perallotRepository
.
GetSecondWorkloadMaps
(
allot
.
HospitalId
);
return
(
worktypes
!=
null
&&
worktypes
.
Any
())
?
worktypes
.
ToList
()
:
new
List
<
string
>();
return
(
worktypes
!=
null
&&
worktypes
.
Any
())
?
worktypes
.
ToList
()
:
new
List
<
string
>();
}
}
...
...
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