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
b141d4c1
Commit
b141d4c1
authored
Jul 23, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
两位小数
parent
ea93acb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
performance/Performance.Repository/PerforPerAllotRepository.cs
+4
-4
No files found.
performance/Performance.Repository/PerforPerAllotRepository.cs
View file @
b141d4c1
...
...
@@ -183,7 +183,7 @@ public IEnumerable<report_original_workload> QueryWorkloadData(int allotid, stri
?
"医生组"
:
unittypes
.
Any
(
t
=>
!
string
.
IsNullOrEmpty
(
t
)
&&
t
.
Contains
(
"护理"
))
?
"护理组"
:
"其他组"
;
string
clear
=
@"
SELECT DISTINCT AccountingUnit as Department,if(ifnull(DoctorName,'')='', '未知',DoctorName) DoctorName,PersonnelNumber,Category,
SUM(Fee
) Fee
SELECT DISTINCT AccountingUnit as Department,if(ifnull(DoctorName,'')='', '未知',DoctorName) DoctorName,PersonnelNumber,Category,
ROUND(SUM(Fee),2
) Fee
FROM view_second_report_workload
WHERE AllotId = @allotid AND UnitType in @unittypes AND AccountingUnit = @accountingunit
GROUP BY AccountingUnit,DoctorName,PersonnelNumber,Category
...
...
@@ -201,7 +201,7 @@ FROM view_second_report_workload
/// 查询门诊收入数据
/// </summary>
/// <param name="allotid"></param>
public
IEnumerable
<
ex_result
>
QueryIncomeData
(
int
allotid
,
string
source
,
string
accountingunit
,
string
[]
unittype
,
int
hospitalid
)
public
IEnumerable
<
ex_result
>
QueryIncomeData
(
int
allotid
,
string
source
,
string
accountingunit
,
string
[]
unittype
s
,
int
hospitalid
)
{
using
(
var
connection
=
context
.
Database
.
GetDbConnection
())
{
...
...
@@ -212,13 +212,13 @@ public IEnumerable<ex_result> QueryIncomeData(int allotid, string source, string
string
clear
=
$@"
SELECT DISTINCT AccountingUnit as Department,if(ifnull(DoctorName,'')='', '未知',DoctorName) DoctorName,PersonnelNumber,Category,
SUM(Fee
) Fee
SELECT DISTINCT AccountingUnit as Department,if(ifnull(DoctorName,'')='', '未知',DoctorName) DoctorName,PersonnelNumber,Category,
ROUND(SUM(Fee),2
) Fee
FROM
{
tableName
}
WHERE AllotId = @allotid AND UnitType in @unittypes AND AccountingUnit = @accountingunit
GROUP BY AccountingUnit,DoctorName,PersonnelNumber,Category
ORDER BY doctorname,Category;"
;
return
connection
.
Query
<
ex_result
>(
clear
,
new
{
allotid
,
accountingunit
,
unittype
,
hospitalid
},
commandTimeout
:
60
*
60
);
return
connection
.
Query
<
ex_result
>(
clear
,
new
{
allotid
,
accountingunit
,
unittype
s
,
hospitalid
},
commandTimeout
:
60
*
60
);
}
catch
(
Exception
ex
)
{
...
...
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