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
f981c990
Commit
f981c990
authored
Jun 24, 2021
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修复及其他功能完善
parent
e28d60e9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
5 deletions
+15
-5
performance/Performance.Api/Controllers/SecondAllotController.cs
+4
-4
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+5
-0
performance/Performance.EntityModels/Entity/ag_bodysource.cs
+5
-0
performance/Performance.Services/RedistributionService.cs
+0
-0
performance/Performance.Services/SecondAllotService.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/SecondAllotController.cs
View file @
f981c990
...
@@ -678,7 +678,7 @@ public ApiResponse RedistributionCompute([FromBody] SecondComputeDto request)
...
@@ -678,7 +678,7 @@ public ApiResponse RedistributionCompute([FromBody] SecondComputeDto request)
// 重算部分数据
// 重算部分数据
_redistributionService
.
RedistributionCompute
((
ComputeMode
)
request
.
ComputeMode
,
request
.
Head
,
cleanDatas
);
_redistributionService
.
RedistributionCompute
((
ComputeMode
)
request
.
ComputeMode
,
request
.
Head
,
cleanDatas
);
var
dic
=
_redistributionService
.
GetTableHeaderDictionary
((
ComputeMode
)
request
.
ComputeMode
,
second
,
loads
,
workloadGroups
);
var
dic
=
_redistributionService
.
GetTableHeaderDictionary
((
ComputeMode
)
request
.
ComputeMode
,
allot
,
second
,
loads
,
workloadGroups
);
return
new
ApiResponse
(
ResponseType
.
OK
,
new
{
Head
=
request
.
Head
,
Body
=
cleanDatas
,
Dic
=
dic
});
return
new
ApiResponse
(
ResponseType
.
OK
,
new
{
Head
=
request
.
Head
,
Body
=
cleanDatas
,
Dic
=
dic
});
}
}
catch
(
PerformanceException
ex
)
catch
(
PerformanceException
ex
)
...
@@ -717,7 +717,7 @@ public ApiResponse RedistributionSave([FromBody] SecondComputeDto request)
...
@@ -717,7 +717,7 @@ public ApiResponse RedistributionSave([FromBody] SecondComputeDto request)
// 清理无效数据 没有Tab标签的数据才是要计算的数据
// 清理无效数据 没有Tab标签的数据才是要计算的数据
var
cleanDatas
=
request
.
Body
.
Where
(
w
=>
w
.
Count
>
0
&&
w
.
GetValue
(
nameof
(
ResponseType
),
""
)
==
ResponseType
.
OK
.
ToString
()).
ToList
();
var
cleanDatas
=
request
.
Body
.
Where
(
w
=>
w
.
Count
>
0
&&
w
.
GetValue
(
nameof
(
ResponseType
),
""
)
==
ResponseType
.
OK
.
ToString
()).
ToList
();
if
(
cleanDatas
==
null
||
cleanDatas
.
Count
==
0
)
if
(
cleanDatas
==
null
||
cleanDatas
.
Count
==
0
)
throw
new
PerformanceException
(
"提交参数都是无效数据,请重新填写数据后
查看计算结果
!"
);
throw
new
PerformanceException
(
"提交参数都是无效数据,请重新填写数据后
保存
!"
);
var
result
=
secondAllotService
.
RedistributionSave
(
allot
,
second
,
request
.
Head
,
cleanDatas
);
var
result
=
secondAllotService
.
RedistributionSave
(
allot
,
second
,
request
.
Head
,
cleanDatas
);
return
result
?
new
ApiResponse
(
ResponseType
.
OK
)
:
new
ApiResponse
(
ResponseType
.
Fail
,
"保存失败"
);
return
result
?
new
ApiResponse
(
ResponseType
.
OK
)
:
new
ApiResponse
(
ResponseType
.
Fail
,
"保存失败"
);
...
@@ -821,9 +821,9 @@ public ApiResponse RedistributionDetail([FromBody] SecondBaseDto request)
...
@@ -821,9 +821,9 @@ public ApiResponse RedistributionDetail([FromBody] SecondBaseDto request)
var
workloadGroups
=
_redistributionService
.
GetTopWorkloadBodyGroups
(
loads
);
var
workloadGroups
=
_redistributionService
.
GetTopWorkloadBodyGroups
(
loads
);
// 返回信息
// 返回信息
var
(
head
,
rows
)
=
_redistributionService
.
RedistributionDetail
((
ComputeMode
)
request
.
ComputeMode
,
allot
,
second
);
var
(
head
,
rows
)
=
_redistributionService
.
RedistributionDetail
((
ComputeMode
)
request
.
ComputeMode
,
allot
,
second
,
workloadGroups
);
var
dic
=
_redistributionService
.
GetTableHeaderDictionary
((
ComputeMode
)
request
.
ComputeMode
,
second
,
loads
,
workloadGroups
);
var
dic
=
_redistributionService
.
GetTableHeaderDictionary
((
ComputeMode
)
request
.
ComputeMode
,
allot
,
second
,
loads
,
workloadGroups
);
return
new
ApiResponse
(
ResponseType
.
OK
,
new
{
Head
=
head
,
Body
=
rows
,
Dic
=
dic
});
return
new
ApiResponse
(
ResponseType
.
OK
,
new
{
Head
=
head
,
Body
=
rows
,
Dic
=
dic
});
}
}
#
endregion
#
endregion
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
f981c990
...
@@ -469,6 +469,11 @@
...
@@ -469,6 +469,11 @@
职称系数
职称系数
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.ag_bodysource.TitlePerformanceScore"
>
<summary>
职称绩效得分
</summary>
</member>
<member
name=
"P:Performance.EntityModels.ag_bodysource.TitlePerformance"
>
<member
name=
"P:Performance.EntityModels.ag_bodysource.TitlePerformance"
>
<summary>
<summary>
职称绩效
职称绩效
...
...
performance/Performance.EntityModels/Entity/ag_bodysource.cs
View file @
f981c990
...
@@ -72,6 +72,11 @@ public class ag_bodysource
...
@@ -72,6 +72,11 @@ public class ag_bodysource
public
Nullable
<
decimal
>
TitleCoefficient
{
get
;
set
;
}
public
Nullable
<
decimal
>
TitleCoefficient
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 职称绩效得分
/// </summary>
public
Nullable
<
decimal
>
TitlePerformanceScore
{
get
;
set
;
}
/// <summary>
/// 职称绩效
/// 职称绩效
/// </summary>
/// </summary>
public
Nullable
<
decimal
>
TitlePerformance
{
get
;
set
;
}
public
Nullable
<
decimal
>
TitlePerformance
{
get
;
set
;
}
...
...
performance/Performance.Services/RedistributionService.cs
View file @
f981c990
This diff is collapsed.
Click to expand it.
performance/Performance.Services/SecondAllotService.cs
View file @
f981c990
...
@@ -1420,7 +1420,7 @@ private List<ag_secondallot> GetNotAuditSeconds(int hospitalId, ag_workload_type
...
@@ -1420,7 +1420,7 @@ private List<ag_secondallot> GetNotAuditSeconds(int hospitalId, ag_workload_type
/**
/**
* 添加数据时注意避免给已经提交过的数据添加,否则会造成提交时的数据和显示数据不一致
* 添加数据时注意避免给已经提交过的数据添加,否则会造成提交时的数据和显示数据不一致
*/
*/
return
agsecondallotRepository
.
GetEntities
(
t
=>
allots
.
Select
(
w
=>
w
.
ID
).
Contains
(
t
.
AllotId
.
Value
)
&&
t
.
Department
==
type
.
Department
&&
t
.
UnitType
==
type
.
UnitType
&&
IsAudit
(
t
.
Status
))
??
seconds
;
return
agsecondallotRepository
.
GetEntities
(
t
=>
allots
.
Select
(
w
=>
w
.
ID
).
Contains
(
t
.
AllotId
.
Value
)
&&
t
.
Department
==
type
.
Department
&&
t
.
UnitType
==
type
.
UnitType
&&
!
IsAudit
(
t
.
Status
))
??
seconds
;
}
}
/// <summary>
/// <summary>
...
...
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