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
d7397aba
Commit
d7397aba
authored
Jun 05, 2023
by
ruyun.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
忽略列头修改
parent
2197f5ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
+3
-2
performance/Performance.Services/ComputeService.cs
+4
-0
No files found.
performance/Performance.Services/ComputeService.UniteDeptDetail.cs
View file @
d7397aba
...
...
@@ -15,6 +15,7 @@
using
Performance.Repository
;
using
static
Performance
.
Services
.
ExtractExcelService
.
WriteDataHelper
;
using
System.Drawing
;
using
Microsoft.Extensions.Configuration
;
namespace
Performance.Services
{
...
...
@@ -54,7 +55,7 @@ public UniteDeptDetailResponse UniteDeptDetail(int allotId, UnitType unitType, s
RealGiveFee
=
0
,
};
var
ignore
=
new
string
[]
{
"合计"
,
"汇总"
,
"总计"
}
;
var
ignore
=
_configuration
.
GetSection
(
"UniteDeptDetailIgnore"
).
Get
<
string
[
]>
()
??
Array
.
Empty
<
string
>()
;
var
persheet
=
_perforPerSheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
new
List
<
per_sheet
>();
var
headers
=
_perforImheaderRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
new
List
<
im_header
>();
var
basicData
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
&&
t
.
AccountingUnit
==
accountingUnit
)
??
new
List
<
im_data
>();
...
...
@@ -493,7 +494,7 @@ public List<UniteDeptDetailItem> GetUniteDeptDetailSetting(int allotId)
var
allot
=
perforPerallotRepository
.
GetEntity
(
t
=>
t
.
ID
==
allotId
);
if
(
allot
==
null
)
throw
new
PerformanceException
(
"绩效月信息错误"
);
var
ignore
=
new
string
[]
{
"合计"
,
"汇总"
,
"总计"
}
;
var
ignore
=
_configuration
.
GetSection
(
"UniteDeptDetailIgnore"
).
Get
<
string
[
]>
()
??
Array
.
Empty
<
string
>()
;
var
persheet
=
_perforPerSheetRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
new
List
<
per_sheet
>();
var
headers
=
_perforImheaderRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
new
List
<
im_header
>();
var
basicData
=
_perforImDataRepository
.
GetEntities
(
t
=>
t
.
AllotID
==
allotId
)
??
new
List
<
im_data
>();
...
...
performance/Performance.Services/ComputeService.cs
View file @
d7397aba
...
...
@@ -4,6 +4,7 @@
using
System.Linq.Expressions
;
using
System.Text.RegularExpressions
;
using
AutoMapper
;
using
Microsoft.Extensions.Configuration
;
using
Performance.DtoModels
;
using
Performance.DtoModels.Request
;
using
Performance.EntityModels
;
...
...
@@ -16,6 +17,7 @@ namespace Performance.Services
public
partial
class
ComputeService
:
IAutoInjection
{
private
readonly
IMapper
_mapper
;
private
readonly
IConfiguration
_configuration
;
private
readonly
PerforUserRepository
_userRepository
;
private
readonly
PerforResaccountRepository
perforResaccountRepository
;
private
readonly
PerforPersheetRepository
_perforPerSheetRepository
;
...
...
@@ -42,6 +44,7 @@ public partial class ComputeService : IAutoInjection
public
ComputeService
(
IMapper
mapper
,
IConfiguration
configuration
,
PerforUserRepository
userRepository
,
PerforResaccountRepository
perforResaccountRepository
,
PerforPersheetRepository
perforPerSheetRepository
,
...
...
@@ -67,6 +70,7 @@ public partial class ComputeService : IAutoInjection
PerforCofDeptDetailRepository
perforCofDeptDetailRepository
)
{
_mapper
=
mapper
;
_configuration
=
configuration
;
_userRepository
=
userRepository
;
this
.
perforResaccountRepository
=
perforResaccountRepository
;
this
.
_perforPerSheetRepository
=
perforPerSheetRepository
;
...
...
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