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
b0b22508
Commit
b0b22508
authored
Mar 31, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into release/v22.2.10-Beta-ninghai
parents
2e872508
c48b87fb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
11 deletions
+23
-11
performance/Performance.Api/Controllers/TemplateController.cs
+3
-3
performance/Performance.EntityModels/Entity/ex_result.cs
+1
-1
performance/Performance.Services/ConfigService.cs
+2
-2
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
+1
-0
performance/Performance.Services/ExtractExcelService/ExtractHelper/ExcelHelper.cs
+3
-1
performance/Performance.Services/ExtractExcelService/ExtractHelper/ExtractHelper.cs
+8
-2
performance/Performance.Services/ExtractExcelService/ExtractHelper/WriteDataHelper.cs
+0
-0
performance/Performance.Services/ExtractExcelService/ExtractService.cs
+1
-1
performance/Performance.Services/ExtractExcelService/QueryService.cs
+3
-0
performance/Performance.Services/RedistributionService.cs
+1
-1
No files found.
performance/Performance.Api/Controllers/TemplateController.cs
View file @
b0b22508
...
@@ -225,9 +225,9 @@ public ApiResponse NewExtractData([CustomizeValidator, FromBody] ExtractRequest
...
@@ -225,9 +225,9 @@ public ApiResponse NewExtractData([CustomizeValidator, FromBody] ExtractRequest
//}
//}
//检验科室、费用类型是否需要补充
//检验科室、费用类型是否需要补充
if
(
allot
.
IsExtracting
==
1
&&
allot
.
ExtractTime
.
HasValue
&&
DateTime
.
Now
.
AddHours
(-
3
)
<
allot
.
ExtractTime
)
//
if (allot.IsExtracting == 1 && allot.ExtractTime.HasValue && DateTime.Now.AddHours(-3) < allot.ExtractTime)
return
new
ApiResponse
(
ResponseType
.
OK
,
"正在提取数据,请稍等!"
,
new
{
IsExtracting
=
true
});
//
return new ApiResponse(ResponseType.OK, "正在提取数据,请稍等!", new { IsExtracting = true });
_taskService
.
Add
(
Background
.
JobType
.
提取数据
,
JsonHelper
.
Serialize
(
new
{
request
.
AllotId
,
request
.
HospitalId
,
request
.
UseScheme
,
isSingle
,
filePath
}));
_taskService
.
Add
(
Background
.
JobType
.
提取数据
,
JsonHelper
.
Serialize
(
new
{
request
.
AllotId
,
request
.
HospitalId
,
request
.
UseScheme
,
isSingle
,
filePath
}));
...
...
performance/Performance.EntityModels/Entity/ex_result.cs
View file @
b0b22508
...
@@ -79,6 +79,6 @@ public class ex_result
...
@@ -79,6 +79,6 @@ public class ex_result
// /// <summary>
// /// <summary>
// /// 1 删除 0 未删除
// /// 1 删除 0 未删除
// /// </summary>
// /// </summary>
//
public int IsDelete { get; set; }
public
int
IsDelete
{
get
;
set
;
}
}
}
}
}
performance/Performance.Services/ConfigService.cs
View file @
b0b22508
...
@@ -799,7 +799,7 @@ public cof_accounting AccountingInsert(cof_accounting request)
...
@@ -799,7 +799,7 @@ public cof_accounting AccountingInsert(cof_accounting request)
var
existed
=
cofaccountingRepository
.
GetEntity
(
w
=>
w
.
Code
==
request
.
Code
);
var
existed
=
cofaccountingRepository
.
GetEntity
(
w
=>
w
.
Code
==
request
.
Code
);
if
(
existed
!=
null
)
throw
new
PerformanceException
(
"核算单元编码重复"
);
if
(
existed
!=
null
)
throw
new
PerformanceException
(
"核算单元编码重复"
);
existed
=
cofaccountingRepository
.
GetEntity
(
w
=>
w
.
UnitType
==
request
.
UnitType
&&
w
.
AccountingUnit
==
request
.
AccountingUnit
);
existed
=
cofaccountingRepository
.
GetEntity
(
w
=>
w
.
AllotId
==
request
.
AllotId
&&
w
.
UnitType
==
request
.
UnitType
&&
w
.
AccountingUnit
==
request
.
AccountingUnit
);
if
(
existed
!=
null
)
throw
new
PerformanceException
(
"核算单元、核算组别已存在"
);
if
(
existed
!=
null
)
throw
new
PerformanceException
(
"核算单元、核算组别已存在"
);
var
entity
=
new
cof_accounting
var
entity
=
new
cof_accounting
...
@@ -1767,7 +1767,7 @@ public HandsonTable GetDrugtypeFactorConfig(int hospitalId, int allotId)
...
@@ -1767,7 +1767,7 @@ public HandsonTable GetDrugtypeFactorConfig(int hospitalId, int allotId)
var
models
=
perforExmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
SheetType
==
(
int
)
SheetType
.
Income
);
var
models
=
perforExmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
SheetType
==
(
int
)
SheetType
.
Income
);
if
(
models
==
null
||
!
models
.
Any
())
if
(
models
==
null
||
!
models
.
Any
())
{
{
exConfigService
.
DefaultModules
(
hospitalId
);
//
exConfigService.DefaultModules(hospitalId);
models
=
perforExmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
SheetType
==
(
int
)
SheetType
.
Income
);
models
=
perforExmoduleRepository
.
GetEntities
(
t
=>
t
.
HospitalId
==
hospitalId
&&
t
.
SheetType
==
(
int
)
SheetType
.
Income
);
if
(
models
==
null
||
!
models
.
Any
())
return
table
;
if
(
models
==
null
||
!
models
.
Any
())
return
table
;
...
...
performance/Performance.Services/ExtractExcelService/DictionaryService.cs
View file @
b0b22508
...
@@ -299,6 +299,7 @@ private void ExResult(per_allot allot, sys_hospitalconfig config, string sql, st
...
@@ -299,6 +299,7 @@ private void ExResult(per_allot allot, sys_hospitalconfig config, string sql, st
ConfigId
=
config
.
Id
,
ConfigId
=
config
.
Id
,
AllotId
=
allot
.
ID
,
AllotId
=
allot
.
ID
,
CreateTime
=
createTime
,
CreateTime
=
createTime
,
IsDelete
=
0
,
}).
ToList
();
}).
ToList
();
exresultRepository
.
AddRange
(
result
.
ToArray
());
exresultRepository
.
AddRange
(
result
.
ToArray
());
}
}
...
...
performance/Performance.Services/ExtractExcelService/ExtractHelper/ExcelHelper.cs
View file @
b0b22508
...
@@ -282,7 +282,9 @@ public static void EvaluateAll(this IWorkbook workbook)
...
@@ -282,7 +282,9 @@ public static void EvaluateAll(this IWorkbook workbook)
{
{
try
try
{
{
workbook
.
GetCreationHelper
().
CreateFormulaEvaluator
().
EvaluateAll
();
var
creation
=
workbook
.
GetCreationHelper
();
var
formula
=
creation
?.
CreateFormulaEvaluator
();
formula
?.
EvaluateAll
();
}
}
catch
catch
{
{
...
...
performance/Performance.Services/ExtractExcelService/ExtractHelper/ExtractHelper.cs
View file @
b0b22508
...
@@ -65,8 +65,14 @@ public static void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook wo
...
@@ -65,8 +65,14 @@ public static void CreateNotExistSheet(List<ex_module> modulesList, IWorkbook wo
var
item
=
pairs
.
Where
(
t
=>
t
.
Key
.
ToString
().
NoBlank
().
StartsWith
(
"1."
)).
OrderByDescending
(
t
=>
t
.
Key
).
First
();
var
item
=
pairs
.
Where
(
t
=>
t
.
Key
.
ToString
().
NoBlank
().
StartsWith
(
"1."
)).
OrderByDescending
(
t
=>
t
.
Key
).
First
();
var
copysheet
=
workbook
.
GetSheet
(
item
.
Key
);
var
copysheet
=
workbook
.
GetSheet
(
item
.
Key
);
if
(
copysheet
==
null
)
continue
;
if
(
copysheet
==
null
)
continue
;
var
newSheet
=
copysheet
.
CopySheet
(
module
.
ModuleName
,
true
);
try
workbook
.
SetSheetOrder
(
newSheet
.
SheetName
,
workbook
.
NumberOfSheets
-
1
);
{
var
newSheet
=
copysheet
.
CopySheet
(
module
.
ModuleName
,
true
);
workbook
.
SetSheetOrder
(
newSheet
.
SheetName
,
workbook
.
NumberOfSheets
-
1
);
}
catch
(
Exception
)
{
}
}
}
}
}
}
}
...
...
performance/Performance.Services/ExtractExcelService/ExtractHelper/WriteDataHelper.cs
View file @
b0b22508
This diff is collapsed.
Click to expand it.
performance/Performance.Services/ExtractExcelService/ExtractService.cs
View file @
b0b22508
...
@@ -307,7 +307,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
...
@@ -307,7 +307,7 @@ private List<ExtractTransDto> StandDataFormat(int hospitalId, List<ex_result> re
dict
.
ForEach
(
t
=>
dict
.
ForEach
(
t
=>
{
{
t
.
HISDeptName
=
WriteDataHelper
.
HasValue
(
t
.
HISDeptName
,
t
.
Department
);
t
.
Department
=
WriteDataHelper
.
HasValue
(
t
.
HISDeptName
,
t
.
Department
);
});
});
var
data
=
results
.
GroupJoin
(
dict
,
outer
=>
new
{
Department
=
outer
.
Department
},
inner
=>
new
{
Department
=
inner
.
HISDeptName
},
(
outer
,
inner
)
=>
new
{
outer
,
inner
})
var
data
=
results
.
GroupJoin
(
dict
,
outer
=>
new
{
Department
=
outer
.
Department
},
inner
=>
new
{
Department
=
inner
.
HISDeptName
},
(
outer
,
inner
)
=>
new
{
outer
,
inner
})
...
...
performance/Performance.Services/ExtractExcelService/QueryService.cs
View file @
b0b22508
...
@@ -225,6 +225,7 @@ private List<ex_result> ExtractModuleData(per_allot allot, string groupName, boo
...
@@ -225,6 +225,7 @@ private List<ex_result> ExtractModuleData(per_allot allot, string groupName, boo
ConfigId
=
config
.
Id
,
ConfigId
=
config
.
Id
,
AllotId
=
allot
.
ID
,
AllotId
=
allot
.
ID
,
CreateTime
=
CreateTime
,
CreateTime
=
CreateTime
,
IsDelete
=
0
,
}).
ToList
();
}).
ToList
();
exresultRepository
.
InsertExecute
(
result
.
ToArray
());
exresultRepository
.
InsertExecute
(
result
.
ToArray
());
data
.
AddRange
(
result
);
data
.
AddRange
(
result
);
...
@@ -303,6 +304,7 @@ private List<ex_result> ExtractItemData(per_allot allot, string groupName, bool
...
@@ -303,6 +304,7 @@ private List<ex_result> ExtractItemData(per_allot allot, string groupName, bool
ConfigId
=
config
.
Id
,
ConfigId
=
config
.
Id
,
AllotId
=
allot
.
ID
,
AllotId
=
allot
.
ID
,
CreateTime
=
CreateTime
,
CreateTime
=
CreateTime
,
IsDelete
=
0
,
}).
ToList
();
}).
ToList
();
exresultRepository
.
InsertExecute
(
result
.
ToArray
());
exresultRepository
.
InsertExecute
(
result
.
ToArray
());
data
.
AddRange
(
result
);
data
.
AddRange
(
result
);
...
@@ -377,6 +379,7 @@ private List<ex_result> ExtractSpecialData(per_allot allot, string groupName, bo
...
@@ -377,6 +379,7 @@ private List<ex_result> ExtractSpecialData(per_allot allot, string groupName, bo
ConfigId
=
config
.
Id
,
ConfigId
=
config
.
Id
,
AllotId
=
allot
.
ID
,
AllotId
=
allot
.
ID
,
CreateTime
=
CreateTime
,
CreateTime
=
CreateTime
,
IsDelete
=
0
,
}).
ToList
();
}).
ToList
();
exresultRepository
.
InsertExecute
(
result
.
ToArray
());
exresultRepository
.
InsertExecute
(
result
.
ToArray
());
data
.
AddRange
(
result
);
data
.
AddRange
(
result
);
...
...
performance/Performance.Services/RedistributionService.cs
View file @
b0b22508
...
@@ -788,7 +788,7 @@ private HandsonTableBase ComputeMode_Format2(per_allot allot, List<string> colHe
...
@@ -788,7 +788,7 @@ private HandsonTableBase ComputeMode_Format2(per_allot allot, List<string> colHe
{
{
getAlias
(
nameof
(
ag_bodysource
.
WorkNumber
),
"工号"
),
getAlias
(
nameof
(
ag_bodysource
.
WorkNumber
),
"工号"
),
getAlias
(
nameof
(
ag_bodysource
.
Name
),
"姓名"
),
getAlias
(
nameof
(
ag_bodysource
.
Name
),
"姓名"
),
getAlias
(
nameof
(
ag_bodysource
.
Post
),
"
人员系数
"
),
getAlias
(
nameof
(
ag_bodysource
.
Post
),
"
领取平均绩效
"
),
getAlias
(
nameof
(
ag_bodysource
.
StaffCoefficient
),
"人员系数"
),
getAlias
(
nameof
(
ag_bodysource
.
StaffCoefficient
),
"人员系数"
),
getAlias
(
nameof
(
ag_bodysource
.
ActualAttendance
),
"出勤"
),
getAlias
(
nameof
(
ag_bodysource
.
ActualAttendance
),
"出勤"
),
getAlias
(
nameof
(
ag_bodysource
.
JobTitle
),
"职称"
),
getAlias
(
nameof
(
ag_bodysource
.
JobTitle
),
"职称"
),
...
...
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