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
3bd57de9
Commit
3bd57de9
authored
Apr 27, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成绩效时 补充费用占比
parent
512290f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
performance/Performance.Repository/PerforCofdirectorRepository.cs
+19
-1
performance/Performance.Services/AllotService.cs
+5
-1
No files found.
performance/Performance.Repository/PerforCofdirectorRepository.cs
View file @
3bd57de9
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// <copyright file=" cof_director.cs">
// * FileName: cof_director.cs
// * history : Created by T4 2019-03-22 15:48:55
...
...
@@ -55,5 +55,23 @@ public int DelAgain(int againid)
return
Execute
(
sql
,
new
{
againid
});
}
/// <summary>
/// 补充费用占比类型
/// </summary>
/// <param name="allotid"></param>
/// <returns></returns>
public
int
SupplementaryData
(
int
allotid
)
{
var
sql
=
@"insert into cof_drugtype(allotid,charge) select
distinct @allotid allotid,typename charge
from per_sheet sheet
inner join im_data im on sheet.id = im.sheetid
inner join cof_drugtype dtype on sheet.allotid = dtype.allotid
and im.typename != dtype.charge
where sheet.allotid = @allotid and sheet.sheettype = 3 "
;
return
Execute
(
sql
,
new
{
allotid
});
}
}
}
performance/Performance.Services/AllotService.cs
View file @
3bd57de9
...
...
@@ -36,6 +36,7 @@ public class AllotService : IAutoInjection
private
readonly
PerforHospitalRepository
perforHospitalRepository
;
private
readonly
PerforResbaiscnormRepository
perforResbaiscnormRepository
;
private
PerforHospitalconfigRepository
perforHospitalconfigRepository
;
private
PerforCofdirectorRepository
perforCofdirectorRepository
;
//private readonly IHubContext<AllotLogHub> hubContext;
private
readonly
LogManageService
logManageService
;
...
...
@@ -59,7 +60,8 @@ public class AllotService : IAutoInjection
PerforHospitalconfigRepository
perforHospitalconfigRepository
,
//IHubContext<AllotLogHub> hubContext
LogManageService
logManageService
,
ReportService
reportService
)
ReportService
reportService
,
PerforCofdirectorRepository
perforCofdirectorRepository
)
{
_allotRepository
=
allotRepository
;
_againallotRepository
=
againallotRepository
;
...
...
@@ -81,6 +83,7 @@ public class AllotService : IAutoInjection
//this.hubContext = hubContext;
this
.
logManageService
=
logManageService
;
this
.
reportService
=
reportService
;
this
.
perforCofdirectorRepository
=
perforCofdirectorRepository
;
}
#
region
基础功能
...
...
@@ -328,6 +331,7 @@ public void Generate(per_allot allot, string mail)
perforResbaiscnormRepository
.
AddRange
(
baiscnormList
.
ToArray
());
UpdateAllotStates
(
allot
.
ID
,
(
int
)
AllotStates
.
GenerateAccomplish
,
EnumHelper
.
GetDescription
(
AllotStates
.
GenerateAccomplish
));
perforCofdirectorRepository
.
SupplementaryData
(
allot
.
ID
);
logManageService
.
WriteMsg
(
"正在生成报表数据"
,
"正在生成报表数据"
,
1
,
allot
.
ID
,
"ReceiveMessage"
,
true
);
var
res
=
reportService
.
ImportData
(
allot
);
...
...
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