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
0a7eef76
Commit
0a7eef76
authored
May 25, 2021
by
钟博
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/医院其他绩效统计表bug'
parents
2b44bef5
48ecc275
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
performance/Performance.Api/Controllers/ConfigController.cs
+2
-2
performance/Performance.DtoModels/Request/AccoungingRequest.cs
+1
-1
performance/Performance.Services/ComputeService.cs
+1
-1
performance/Performance.Services/ConfigService.cs
+2
-2
No files found.
performance/Performance.Api/Controllers/ConfigController.cs
View file @
0a7eef76
...
...
@@ -542,9 +542,9 @@ public ApiResponse GetAccountingList([FromBody] AccoungingRequest request)
case
1
:
default
:
//返回accounting列表
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
list
);
case
2
:
//返回核算单元类型
case
3
:
//返回核算单元类型
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
list
.
Select
(
t
=>
new
TitleValue
{
Title
=
t
.
UnitType
,
Value
=
t
.
UnitType
}).
ToDistinct
());
case
3
:
//返回核算单元
case
2
:
//返回核算单元
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
list
.
Select
(
t
=>
new
TitleValue
{
Title
=
t
.
AccountingUnit
,
Value
=
t
.
AccountingUnit
}).
ToDistinct
());
}
}
...
...
performance/Performance.DtoModels/Request/AccoungingRequest.cs
View file @
0a7eef76
...
...
@@ -8,7 +8,7 @@ public class AccoungingRequest
public
int
AllotId
{
get
;
set
;
}
/// <summary>
/// 1 返回accounting列表 2 返回核算单元
类型 3 返回核算单元
/// 1 返回accounting列表 2 返回核算单元
3 返回核算单元类型
/// </summary>
public
int
Type
{
get
;
set
;
}
...
...
performance/Performance.Services/ComputeService.cs
View file @
0a7eef76
...
...
@@ -1791,7 +1791,7 @@ public res_baiscnorm EditHospitalAvg(ComputerAvgRequest request)
if
(!
emp
.
Any
())
dicData
.
Add
(
type
,
"0"
);
else
dicData
.
Add
(
type
,
Math
.
Round
(
Convert
.
ToDecimal
(
emp
?.
First
()?.
Amount
),
0
).
ToString
());
dicData
.
Add
(
type
,
Math
.
Round
(
Convert
.
ToDecimal
(
emp
?.
Sum
(
c
=>
c
.
Amount
))
).
ToString
());
}
var
sum
=
employees
.
Where
(
c
=>
c
.
PersonnelNumber
==
num
)?.
Sum
(
t
=>
t
.
Amount
);
...
...
performance/Performance.Services/ConfigService.cs
View file @
0a7eef76
...
...
@@ -646,10 +646,10 @@ public List<cof_accounting> GetAccountingList(AccoungingRequest request)
switch
(
request
.
Type
)
{
case
1
:
//返回accounting列表
case
2
:
//返回核算单元类型
case
3
:
//返回核算单元类型
default
:
return
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
);
case
3
:
//返回核算单元
case
2
:
//返回核算单元
return
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
&&
t
.
UnitType
==
request
.
UnitType
);
}
}
...
...
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