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
aca0f8ed
Commit
aca0f8ed
authored
May 26, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
dabea9e0
0a7eef76
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 @
aca0f8ed
...
@@ -542,9 +542,9 @@ public ApiResponse GetAccountingList([FromBody] AccoungingRequest request)
...
@@ -542,9 +542,9 @@ public ApiResponse GetAccountingList([FromBody] AccoungingRequest request)
case
1
:
case
1
:
default
:
//返回accounting列表
default
:
//返回accounting列表
return
new
ApiResponse
(
ResponseType
.
OK
,
"ok"
,
list
);
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
());
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
());
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 @
aca0f8ed
...
@@ -8,7 +8,7 @@ public class AccoungingRequest
...
@@ -8,7 +8,7 @@ public class AccoungingRequest
public
int
AllotId
{
get
;
set
;
}
public
int
AllotId
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 1 返回accounting列表 2 返回核算单元
类型 3 返回核算单元
/// 1 返回accounting列表 2 返回核算单元
3 返回核算单元类型
/// </summary>
/// </summary>
public
int
Type
{
get
;
set
;
}
public
int
Type
{
get
;
set
;
}
...
...
performance/Performance.Services/ComputeService.cs
View file @
aca0f8ed
...
@@ -1791,7 +1791,7 @@ public res_baiscnorm EditHospitalAvg(ComputerAvgRequest request)
...
@@ -1791,7 +1791,7 @@ public res_baiscnorm EditHospitalAvg(ComputerAvgRequest request)
if
(!
emp
.
Any
())
if
(!
emp
.
Any
())
dicData
.
Add
(
type
,
"0"
);
dicData
.
Add
(
type
,
"0"
);
else
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
);
var
sum
=
employees
.
Where
(
c
=>
c
.
PersonnelNumber
==
num
)?.
Sum
(
t
=>
t
.
Amount
);
...
...
performance/Performance.Services/ConfigService.cs
View file @
aca0f8ed
...
@@ -646,10 +646,10 @@ public List<cof_accounting> GetAccountingList(AccoungingRequest request)
...
@@ -646,10 +646,10 @@ public List<cof_accounting> GetAccountingList(AccoungingRequest request)
switch
(
request
.
Type
)
switch
(
request
.
Type
)
{
{
case
1
:
//返回accounting列表
case
1
:
//返回accounting列表
case
2
:
//返回核算单元类型
case
3
:
//返回核算单元类型
default
:
default
:
return
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
);
return
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
);
case
3
:
//返回核算单元
case
2
:
//返回核算单元
return
cofaccountingRepository
.
GetEntities
(
t
=>
t
.
AllotId
==
request
.
AllotId
&&
t
.
UnitType
==
request
.
UnitType
);
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