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
bec0973f
Commit
bec0973f
authored
Apr 11, 2022
by
ruyun.zhang@suvalue.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
H5页面接口
parent
f6704bd6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
92 deletions
+21
-92
performance/Performance.Api/Controllers/AllotController.cs
+1
-90
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
+5
-0
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
+5
-0
performance/Performance.DtoModels/Response/OwnerPerformanceDto.cs
+4
-0
performance/Performance.EntityModels/Entity/per_allot.cs
+4
-0
performance/Performance.EntityModels/Entity/per_batch.cs
+1
-1
performance/Performance.Repository/PerforReportRepository .cs
+1
-1
performance/Performance.Services/AllotService.cs
+0
-0
No files found.
performance/Performance.Api/Controllers/AllotController.cs
View file @
bec0973f
...
@@ -575,96 +575,7 @@ public ApiResponse GetOwnerMobilePerformance(string begin = "", string end = "")
...
@@ -575,96 +575,7 @@ public ApiResponse GetOwnerMobilePerformance(string begin = "", string end = "")
throw
new
PerformanceException
(
"您选择的时间范围无效"
);
throw
new
PerformanceException
(
"您选择的时间范围无效"
);
endDate
=
endDate
.
AddMonths
(
1
);
endDate
=
endDate
.
AddMonths
(
1
);
var
dtos
=
_allotService
.
GetOwnerMobilePerformance
(
userid
,
beginDate
,
endDate
);
List
<
OwnerMobilePerformanceDto
>
dtos
=
new
List
<
OwnerMobilePerformanceDto
>();
var
datas
=
_allotService
.
GetOwnerPerformance
(
userid
);
var
groupDatas
=
datas
.
Where
(
w
=>
(
new
DateTime
(
w
.
Year
,
w
.
Month
,
1
))
>=
beginDate
&&
(
new
DateTime
(
w
.
Year
,
w
.
Month
,
1
))
<
endDate
)
.
GroupBy
(
w
=>
w
.
JobNumber
);
foreach
(
var
item
in
groupDatas
)
{
var
perforSumFee
=
new
OwnerMobileItemDto
{
Title
=
"业绩绩效"
,
Amount
=
item
.
Sum
(
w
=>
w
.
PerforSumFee
)
??
0
,
Details
=
item
.
SelectMany
(
w
=>
w
.
Detail
)
.
Where
(
w
=>
(
w
.
PerforSumFee
??
0
)
!=
0
)
.
Select
(
w
=>
new
OwnerMobileItemDetailDto
{
Title
=
w
.
AccountingUnit
,
Amount
=
w
.
PerforSumFee
??
0
,
}).
ToList
()
};
var
perforManagementFee
=
new
OwnerMobileItemDto
{
Title
=
"管理绩效"
,
Amount
=
item
.
Sum
(
w
=>
w
.
PerforManagementFee
)
??
0
,
Details
=
item
.
SelectMany
(
w
=>
w
.
Detail
)
.
Where
(
w
=>
(
w
.
PerforManagementFee
??
0
)
!=
0
)
.
Select
(
w
=>
new
OwnerMobileItemDetailDto
{
Title
=
w
.
AccountingUnit
,
Amount
=
w
.
PerforManagementFee
??
0
,
}).
ToList
()
};
var
nightWorkPerfor
=
new
OwnerMobileItemDto
{
Title
=
"夜班绩效"
,
Amount
=
item
.
Sum
(
w
=>
w
.
NightWorkPerfor
)
??
0
,
Details
=
item
.
SelectMany
(
w
=>
w
.
Detail
)
.
Where
(
w
=>
(
w
.
NightWorkPerfor
??
0
)
!=
0
)
.
Select
(
w
=>
new
OwnerMobileItemDetailDto
{
Title
=
w
.
AccountingUnit
,
Amount
=
w
.
NightWorkPerfor
??
0
,
}).
ToList
()
};
var
otherPerfor
=
new
OwnerMobileItemDto
{
Title
=
"医院其他绩效"
,
Amount
=
item
.
Sum
(
w
=>
w
.
OtherPerfor
)
??
0
,
Details
=
item
.
SelectMany
(
w
=>
w
.
Detail
)
.
Where
(
w
=>
(
w
.
OtherPerfor
??
0
)
!=
0
)
.
Select
(
w
=>
new
OwnerMobileItemDetailDto
{
Title
=
w
.
SourceItem
,
Amount
=
w
.
OtherPerfor
??
0
,
}).
ToList
()
};
var
hideOtherPerfor
=
new
OwnerMobileItemDto
{
Title
=
"不公示其他绩效"
,
Amount
=
item
.
Sum
(
w
=>
w
.
HideOtherPerfor
)
??
0
,
Details
=
item
.
SelectMany
(
w
=>
w
.
Detail
)
.
Where
(
w
=>
(
w
.
HideOtherPerfor
??
0
)
!=
0
)
.
Select
(
w
=>
new
OwnerMobileItemDetailDto
{
Title
=
w
.
SourceItem
,
Amount
=
w
.
HideOtherPerfor
??
0
,
}).
ToList
()
};
var
reservedRatioFee
=
new
OwnerMobileItemDto
{
Title
=
"预留绩效"
,
Amount
=
item
.
Sum
(
w
=>
w
.
ReservedRatioFee
)
??
0
,
Details
=
new
List
<
OwnerMobileItemDetailDto
>()
};
var
dto
=
new
OwnerMobilePerformanceDto
{
Total
=
item
.
Sum
(
w
=>
w
.
RealGiveFee
),
Items
=
new
List
<
OwnerMobileItemDto
>()
};
if
(
perforSumFee
.
Amount
!=
0
)
dto
.
Items
.
Add
(
perforSumFee
);
if
(
perforManagementFee
.
Amount
!=
0
)
dto
.
Items
.
Add
(
perforManagementFee
);
if
(
nightWorkPerfor
.
Amount
!=
0
)
dto
.
Items
.
Add
(
nightWorkPerfor
);
if
(
otherPerfor
.
Amount
!=
0
)
dto
.
Items
.
Add
(
otherPerfor
);
if
(
hideOtherPerfor
.
Amount
!=
0
)
dto
.
Items
.
Add
(
hideOtherPerfor
);
if
(
reservedRatioFee
.
Amount
!=
0
)
dto
.
Items
.
Add
(
reservedRatioFee
);
dtos
.
Add
(
dto
);
}
return
new
ApiResponse
(
ResponseType
.
OK
,
dtos
);
return
new
ApiResponse
(
ResponseType
.
OK
,
dtos
);
}
}
}
}
...
...
performance/Performance.Api/wwwroot/Performance.DtoModels.xml
View file @
bec0973f
...
@@ -3594,6 +3594,11 @@
...
@@ -3594,6 +3594,11 @@
实发绩效
实发绩效
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.DtoModels.OwnerPerformanceDto.IssueDate"
>
<summary>
发放时间
</summary>
</member>
<member
name=
"P:Performance.DtoModels.OwnerMobilePerformanceDto.Total"
>
<member
name=
"P:Performance.DtoModels.OwnerMobilePerformanceDto.Total"
>
<summary>
<summary>
绩效发放总额
绩效发放总额
...
...
performance/Performance.Api/wwwroot/Performance.EntityModels.xml
View file @
bec0973f
...
@@ -5940,6 +5940,11 @@
...
@@ -5940,6 +5940,11 @@
是否修改过配置 1修改过 0未修改
是否修改过配置 1修改过 0未修改
</summary>
</summary>
</member>
</member>
<member
name=
"P:Performance.EntityModels.per_allot.PigeonholeDate"
>
<summary>
归档日期
</summary>
</member>
<member
name=
"T:Performance.EntityModels.per_apr_amount"
>
<member
name=
"T:Performance.EntityModels.per_apr_amount"
>
<summary>
<summary>
...
...
performance/Performance.DtoModels/Response/OwnerPerformanceDto.cs
View file @
bec0973f
...
@@ -15,6 +15,10 @@ public class OwnerPerformanceDto : view_allot_result
...
@@ -15,6 +15,10 @@ public class OwnerPerformanceDto : view_allot_result
/// 实发绩效
/// 实发绩效
/// </summary>
/// </summary>
public
decimal
RealGiveFee
{
get
;
set
;
}
public
decimal
RealGiveFee
{
get
;
set
;
}
/// <summary>
/// 发放时间
/// </summary>
public
string
IssueDate
{
get
;
set
;
}
}
}
...
...
performance/Performance.EntityModels/Entity/per_allot.cs
View file @
bec0973f
...
@@ -105,5 +105,9 @@ public class per_allot
...
@@ -105,5 +105,9 @@ public class per_allot
/// 是否修改过配置 1修改过 0未修改
/// 是否修改过配置 1修改过 0未修改
/// </summary>
/// </summary>
public
int
IsModifyConfig
{
get
;
set
;
}
public
int
IsModifyConfig
{
get
;
set
;
}
/// <summary>
/// 归档日期
/// </summary>
public
Nullable
<
DateTime
>
PigeonholeDate
{
get
;
set
;
}
}
}
}
}
performance/Performance.EntityModels/Entity/per_batch.cs
View file @
bec0973f
...
@@ -39,7 +39,7 @@ public class per_batch
...
@@ -39,7 +39,7 @@ public class per_batch
/// <summary>
/// <summary>
/// 批次日期
/// 批次日期
/// </summary>
/// </summary>
public
DateTime
BatchDate
{
get
;
set
;
}
public
Nullable
<
DateTime
>
BatchDate
{
get
;
set
;
}
public
string
BankName
{
get
;
set
;
}
public
string
BankName
{
get
;
set
;
}
/// <summary>
/// <summary>
...
...
performance/Performance.Repository/PerforReportRepository .cs
View file @
bec0973f
...
@@ -393,7 +393,7 @@ public List<EmployeeReservedDto> GetEmployeeReserved(int hospitalId, int year)
...
@@ -393,7 +393,7 @@ public List<EmployeeReservedDto> GetEmployeeReserved(int hospitalId, int year)
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
= 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
})?.
ToList
();
}
}
...
...
performance/Performance.Services/AllotService.cs
View file @
bec0973f
This diff is collapsed.
Click to expand it.
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