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
26dc5992
Commit
26dc5992
authored
Jun 28, 2022
by
1391696987
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复预留金额bug
parent
e98888c7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
26 deletions
+2
-26
performance/Performance.Repository/PerforReportRepository .cs
+2
-16
performance/Performance.Services/AllotService.cs
+0
-10
No files found.
performance/Performance.Repository/PerforReportRepository .cs
View file @
26dc5992
...
@@ -390,28 +390,14 @@ public List<EmployeeReservedDto> GetEmployeeReserved(ReservedRequest request)
...
@@ -390,28 +390,14 @@ public List<EmployeeReservedDto> GetEmployeeReserved(ReservedRequest request)
string
view
=
request
.
Source
==
1
?
"view_allot_result_report_emp"
:
request
.
Source
==
2
?
"view_allot_result_report_issue_source"
:
request
.
Source
==
3
?
"view_allot_result_report"
:
""
;
string
view
=
request
.
Source
==
1
?
"view_allot_result_report_emp"
:
request
.
Source
==
2
?
"view_allot_result_report_issue_source"
:
request
.
Source
==
3
?
"view_allot_result_report"
:
""
;
string
sql
=
$"SELECT * FROM
{
view
}
WHERE HospitalID=@HospitalID AND Year=@Year"
;
string
sql
=
$"SELECT * FROM
{
view
}
WHERE HospitalID=@HospitalID AND Year=@Year"
;
return
DapperQuery
<
EmployeeReservedDto
>(
sql
,
new
{
HospitalID
=
request
.
HospitalId
,
Year
=
request
.
Year
})?.
ToList
();
return
DapperQuery
<
EmployeeReservedDto
>(
sql
,
new
{
HospitalID
=
request
.
HospitalId
,
Year
=
request
.
Year
}
,
commandTimeout
:
60
*
60
)?.
ToList
();
}
}
/// <summary>
/// 获取医院预留绩效
/// </summary>
/// <param name="hospitalId"></param>
/// <param name="year"></param>
/// <returns></returns>
public
List
<
EmployeeReservedDto
>
GetEmployeeReserved
(
int
hospitalId
,
int
year
,
string
[]
unitTypes
,
string
accountingUnit
)
{
string
sql
=
@"
SELECT * FROM view_allot_result_report WHERE HospitalID=@HospitalID AND Year=@Year
AND ((UnitType IN @unitTypes AND AccountingUnit = @accountingUnit) OR (NewUnitType IN @unitTypes AND NewAccountingUnit = @accountingUnit))
"
;
return
DapperQuery
<
EmployeeReservedDto
>(
sql
,
new
{
HospitalID
=
hospitalId
,
Year
=
year
,
unitTypes
,
accountingUnit
})?.
ToList
();
}
public
List
<
view_allot_result
>
GetOwnerPerformance
(
List
<
int
>
hospitalId
,
string
jobNumber
)
public
List
<
view_allot_result
>
GetOwnerPerformance
(
List
<
int
>
hospitalId
,
string
jobNumber
)
{
{
string
sql
=
"SELECT * FROM view_allot_result WHERE States IN (6,8) AND HospitalID IN @HospitalID AND JobNumber=@JobNumber"
;
string
sql
=
"SELECT * FROM view_allot_result WHERE States IN (6,8) AND HospitalID IN @HospitalID AND JobNumber=@JobNumber"
;
return
DapperQuery
<
view_allot_result
>(
sql
,
new
{
HospitalID
=
hospitalId
,
JobNumber
=
jobNumber
})?.
ToList
();
return
DapperQuery
<
view_allot_result
>(
sql
,
new
{
HospitalID
=
hospitalId
,
JobNumber
=
jobNumber
}
,
commandTimeout
:
60
*
60
)?.
ToList
();
}
}
public
List
<
dynamic
>
QueryCompute
(
int
allotId
,
string
viewName
)
public
List
<
dynamic
>
QueryCompute
(
int
allotId
,
string
viewName
)
...
...
performance/Performance.Services/AllotService.cs
View file @
26dc5992
...
@@ -663,18 +663,8 @@ public List<EmployeeReservedDto> GetReserved(ReservedRequest request, int userid
...
@@ -663,18 +663,8 @@ public List<EmployeeReservedDto> GetReserved(ReservedRequest request, int userid
if
(!
role
.
HasValue
)
if
(!
role
.
HasValue
)
throw
new
PerformanceException
(
"用户信息错误"
);
throw
new
PerformanceException
(
"用户信息错误"
);
var
reserveds
=
_reportRepository
.
GetEmployeeReserved
(
request
);
if
(
reserveds
!=
null
&&
reserveds
.
Any
())
{
var
unitTpes
=
UnitTypeUtil
.
GetMaps
(
userInfo
?.
URole
.
Type
);
return
_reportRepository
.
GetEmployeeReserved
(
request
.
HospitalId
,
request
.
Year
,
unitTpes
,
userInfo
.
User
.
Department
);
}
else
{
return
_reportRepository
.
GetEmployeeReserved
(
request
);
return
_reportRepository
.
GetEmployeeReserved
(
request
);
}
}
}
/// <summary>
/// <summary>
/// 查询个人绩效
/// 查询个人绩效
/// </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