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
f418d2e6
Commit
f418d2e6
authored
May 31, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
v22.4.18
parents
11413c2b
7ca51ded
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
82 additions
and
15 deletions
+82
-15
performance/Performance.Api/Properties/PublishProfiles/SingleFile.pubxml
+29
-0
performance/Performance.Api/Startup.cs
+12
-2
performance/Performance.DtoModels/Request/SecondAuditRequest.cs
+0
-1
performance/Performance.DtoModels/Response/DeptdicResponse.cs
+8
-8
performance/Performance.Services/ComputeConfig.cs
+1
-0
performance/Performance.Services/PersonService.cs
+28
-0
performance/Performance.Services/ReportGlobalService.cs
+3
-3
performance/Performance.Services/SecondAllot/SecondAllotService.cs
+1
-1
No files found.
performance/Performance.Api/Properties/PublishProfiles/SingleFile.pubxml
0 → 100644
View file @
f418d2e6
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<DeleteExistingFiles>True</DeleteExistingFiles>
<ExcludeApp_Data>False</ExcludeApp_Data>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>bin\Release\net5.0\publish\</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<DebugType>embedded</DebugType>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<PublishSingleFile>True</PublishSingleFile>
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PublishReadyToRun>True</PublishReadyToRun>
<SiteUrlToLaunchAfterPublish />
<PublishTrimmed>True</PublishTrimmed>
<ProjectGuid>3ae00ff5-f0ba-4d72-a23b-770186309327</ProjectGuid>
</PropertyGroup>
</Project>
\ No newline at end of file
performance/Performance.Api/Startup.cs
View file @
f418d2e6
...
...
@@ -6,6 +6,7 @@
using
Microsoft.AspNetCore.Builder
;
using
Microsoft.AspNetCore.Hosting
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Http.Connections
;
using
Microsoft.AspNetCore.Mvc
;
using
Microsoft.AspNetCore.Mvc.Authorization
;
using
Microsoft.Extensions.Configuration
;
...
...
@@ -15,6 +16,7 @@
using
Performance.DtoModels
;
using
Performance.Infrastructure
;
using
Performance.Services
;
using
System
;
using
System.Globalization
;
using
System.Reflection
;
using
System.Text
;
...
...
@@ -87,7 +89,11 @@ public void ConfigureServices(IServiceCollection services)
services
.
AddDependencyInjectionConfiguration
();
// signalr
services
.
AddSignalR
();
services
.
AddSignalR
(
hubOptions
=>
{
hubOptions
.
EnableDetailedErrors
=
true
;
hubOptions
.
KeepAliveInterval
=
TimeSpan
.
FromMinutes
(
1
);
});
// cors
services
.
AddCors
(
options
=>
...
...
@@ -132,7 +138,11 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app
.
UseEndpoints
(
endpoints
=>
{
endpoints
.
MapHub
<
AllotLogHub
>(
"/performance/allotLogHub"
);
endpoints
.
MapHub
<
AllotLogHub
>(
"/performance/allotLogHub"
,
options
=>
{
options
.
Transports
=
HttpTransportType
.
WebSockets
|
HttpTransportType
.
LongPolling
;
options
.
WebSockets
.
CloseTimeout
=
TimeSpan
.
FromMinutes
(
1
);
});
endpoints
.
MapControllers
();
});
...
...
performance/Performance.DtoModels/Request/SecondAuditRequest.cs
View file @
f418d2e6
...
...
@@ -22,7 +22,6 @@ public SecondAuditRequestValidator()
{
RuleFor
(
x
=>
x
.
SecondId
).
NotNull
().
NotEmpty
().
GreaterThan
(
0
);
RuleFor
(
x
=>
x
.
IsPass
).
NotNull
().
NotEmpty
().
InclusiveBetween
(
1
,
2
);
RuleFor
(
x
=>
x
.
Remark
).
NotNull
().
NotEmpty
();
}
}
}
performance/Performance.DtoModels/Response/DeptdicResponse.cs
View file @
f418d2e6
...
...
@@ -10,14 +10,14 @@ public class DeptdicResponse
public
int
HospitalId
{
get
;
set
;
}
public
string
HISDeptName
{
get
;
set
;
}
public
string
Department
{
get
;
set
;
}
public
Deptdic
OutDoctorAccounting
{
get
;
set
;
}
public
Deptdic
OutNurseAccounting
{
get
;
set
;
}
public
Deptdic
OutTechnicAccounting
{
get
;
set
;
}
public
Deptdic
InpatDoctorAccounting
{
get
;
set
;
}
public
Deptdic
InpatNurseAccounting
{
get
;
set
;
}
public
Deptdic
InpatTechnicAccounting
{
get
;
set
;
}
public
Deptdic
LogisticsAccounting
{
get
;
set
;
}
public
Deptdic
SpecialAccounting
{
get
;
set
;
}
public
string
OutDoctorAccounting
{
get
;
set
;
}
public
string
OutNurseAccounting
{
get
;
set
;
}
public
string
OutTechnicAccounting
{
get
;
set
;
}
public
string
InpatDoctorAccounting
{
get
;
set
;
}
public
string
InpatNurseAccounting
{
get
;
set
;
}
public
string
InpatTechnicAccounting
{
get
;
set
;
}
public
string
LogisticsAccounting
{
get
;
set
;
}
public
string
SpecialAccounting
{
get
;
set
;
}
public
DateTime
?
CreateTime
{
get
;
set
;
}
public
int
IsVerify
{
get
;
set
;
}
}
...
...
performance/Performance.Services/ComputeConfig.cs
View file @
f418d2e6
...
...
@@ -174,6 +174,7 @@ public static List<cof_alias> GetAllPersonnelTags(bool ownerQuery)
new
cof_alias
{
Alias
=
"备用09"
,
Name
=
nameof
(
per_employee
.
Reserve09
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"备用10"
,
Name
=
nameof
(
per_employee
.
Reserve10
),
States
=
0
,
SumStatus
=
0
,
Sort
=
20
},
new
cof_alias
{
Alias
=
"核算组别"
,
Name
=
nameof
(
report_performance_person_tags
.
UnitType
),
States
=
1
,
SumStatus
=
0
,
Sort
=
99
},
new
cof_alias
{
Alias
=
"绩效发放情况"
,
Name
=
nameof
(
report_performance_person_tags
.
Tag1
),
States
=
1
,
SumStatus
=
0
,
Sort
=
100
},
new
cof_alias
{
Alias
=
"当月绩效权重"
,
Name
=
nameof
(
report_performance_person_tags
.
Tag2
),
States
=
1
,
SumStatus
=
0
,
Sort
=
101
},
new
cof_alias
{
Alias
=
"重点群体对比1"
,
Name
=
nameof
(
report_performance_person_tags
.
Tag3
),
States
=
1
,
SumStatus
=
0
,
Sort
=
102
},
...
...
performance/Performance.Services/PersonService.cs
View file @
f418d2e6
...
...
@@ -442,6 +442,34 @@ public IEnumerable<DeptdicResponse> GetDepartments(int allotId)
IsVerify
=
t
.
Min
(
w
=>
w
.
IsVerify
)
??
1
,
});
}
var
dic
=
dics
.
FirstOrDefault
(
group
=>
group
.
Department
==
department
&&
group
.
HISDeptName
==
hISDeptName
&&
group
.
UnitType
==
unitType
.
ToString
()
&&
group
.
Source
==
source
);
if
(
dic
==
null
)
dic
=
dics
.
FirstOrDefault
(
group
=>
group
.
Department
==
department
&&
group
.
HISDeptName
==
hISDeptName
&&
group
.
UnitType
==
unitType
.
ToString
());
return
dic
?.
AccountingUnit
;
}
var
result
=
depts
.
GroupBy
(
t
=>
new
{
t
.
HISDeptName
,
t
.
Department
})
.
Select
(
t
=>
new
DeptdicResponse
{
HospitalId
=
hospitalId
,
HISDeptName
=
t
.
Key
.
HISDeptName
,
Department
=
t
.
Key
.
Department
,
OutDoctorAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
医生组
,
"门诊"
),
OutNurseAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
护理组
,
"门诊"
),
OutTechnicAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
医技组
,
"门诊"
),
InpatDoctorAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
医生组
,
"住院"
),
InpatNurseAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
护理组
,
"住院"
),
InpatTechnicAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
医技组
,
"住院"
),
LogisticsAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
行政后勤
),
SpecialAccounting
=
GetDeptdic
(
t
.
ToList
(),
t
.
Key
.
Department
,
t
.
Key
.
HISDeptName
,
UnitType
.
特殊核算组
),
CreateTime
=
t
.
Max
(
group
=>
group
.
CreateTime
),
IsVerify
=
t
.
Min
(
w
=>
w
.
IsVerify
)
??
1
,
});
return
result
.
OrderBy
(
w
=>
w
.
IsVerify
).
ThenByDescending
(
t
=>
t
.
CreateTime
).
ThenBy
(
t
=>
t
.
Department
);
}
...
...
performance/Performance.Services/ReportGlobalService.cs
View file @
f418d2e6
...
...
@@ -872,7 +872,7 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
{
var
json
=
JsonHelper
.
Serialize
(
item
);
var
data
=
JsonHelper
.
Deserialize
<
report_performance_tags
>(
json
);
if
(!
string
.
IsNullOrEmpty
(
data
.
UnitType
)
&&
!
string
.
IsNullOrEmpty
(
data
.
AccountingUnit
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Tag1
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Tag2
)
)
if
(!
string
.
IsNullOrEmpty
(
data
.
UnitType
)
&&
!
string
.
IsNullOrEmpty
(
data
.
AccountingUnit
)
&&
!
string
.
IsNullOrEmpty
(
data
.
Tag1
))
{
data
.
CreateTime
=
Convert
.
ToDateTime
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
report
.
Add
(
data
);
...
...
@@ -886,8 +886,8 @@ public void SaveReportTag(int hospitalId, SaveCollectData request)
public
static
Dictionary
<
string
,
string
>
ReportTag
{
get
;
}
=
new
Dictionary
<
string
,
string
>
{
{
nameof
(
report_performance_tags
.
UnitType
),
"核算
单元类型
"
},
{
nameof
(
report_performance_tags
.
AccountingUnit
),
"
科室
"
},
{
nameof
(
report_performance_tags
.
UnitType
),
"核算
组别
"
},
{
nameof
(
report_performance_tags
.
AccountingUnit
),
"
核算单元
"
},
{
nameof
(
report_performance_tags
.
Tag1
),
"绩效发放情况"
},
{
nameof
(
report_performance_tags
.
Tag2
),
"当月绩效权重"
},
{
nameof
(
report_performance_tags
.
Tag3
),
"重点群体对比1"
},
...
...
performance/Performance.Services/SecondAllot/SecondAllotService.cs
View file @
f418d2e6
...
...
@@ -525,7 +525,7 @@ public void SaveSecondAllotHeadData(int secondId, string json)
if
(
workValue
==
null
||
!
workValue
.
Any
())
return
;
foreach
(
var
value
in
workValue
)
foreach
(
var
value
in
workValue
.
Distinct
()
)
{
for
(
int
i
=
0
;
i
<
prefix
.
Length
;
i
++)
{
...
...
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