Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
AutogeneralShanghai
yd-backend
Commits
04c0239b
Commit
04c0239b
authored
Sep 02, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手工录入的薪资单显示银盾在线的保单列表
parent
2c250661
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
+17
-3
yd-api/src/main/java/com/yd/rmi/n22/salary/pojo/searchstaffsalarydetails/SearchStaffSalaryDetailsRequestBody.java
+2
-0
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
View file @
04c0239b
...
...
@@ -891,12 +891,18 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
public
SearchStaffSalaryDetailsResponseBody
searchStaffSalaryDetails
(
SearchStaffSalaryDetailsRequestBody
requestVO
)
{
SearchStaffSalaryDetailsResponseBody
responseBody
=
new
SearchStaffSalaryDetailsResponseBody
();
responseBody
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"820001"
)));
// 检查请求参数
if
(
StringUtils
.
isBlank
(
requestVO
.
getYears
())||
StringUtils
.
isBlank
(
requestVO
.
getMonth
()))
{
responseBody
.
setCommonResult
(
new
CommonResult
(
false
,
"查询年月不能为空"
));
return
responseBody
;
}
// 调接口
if
(
"1"
.
equals
(
requestVO
.
getIsBasic
()))
{
// 查询银盾在线佣金的保单列表
this
.
queryYdOnlineCommission
(
requestVO
,
responseBody
);
}
else
{
// 调N22接口
SearchStaffSalaryDetailsResponseVO
searchStaffSalaryDetailsResponseVO
=
n22SalaryService
.
searchStaffSalaryDetails
(
requestVO
);
if
(
"查询成功"
.
equals
(
searchStaffSalaryDetailsResponseVO
.
getResponseHead
().
getMessage
()))
{
responseBody
=
searchStaffSalaryDetailsResponseVO
.
getResponseBody
();
...
...
@@ -904,8 +910,7 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
this
.
queryYdOnlineCommission
(
requestVO
,
responseBody
);
responseBody
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
}
else
{
responseBody
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"820001"
)));
}
}
return
responseBody
;
}
...
...
@@ -922,13 +927,22 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
Long
withdrawId
=
withdraws
.
get
(
0
).
getWithdrawId
();
List
<
OtherCommission
>
otherCommissionList
=
responseBody
.
getOtherCommissionList
();
if
(
CollectionUtils
.
isNotEmpty
(
otherCommissionList
))
{
for
(
OtherCommission
otherCommission
:
otherCommissionList
)
{
// 此项为银盾在线佣金
if
(
"12C24EDF-83D7-081C-AE2C-085031C4DCAF"
.
equals
(
otherCommission
.
getProject_Id
()))
{
//获取withdrewId
otherCommission
.
setWithdrawedId
(
withdrawId
);
}
}
}
else
{
// 手工录入薪资单,List为空
otherCommissionList
=
new
ArrayList
<>();
OtherCommission
otherCommission
=
new
OtherCommission
();
otherCommission
.
setWithdrawedId
(
withdrawId
);
otherCommissionList
.
add
(
otherCommission
);
responseBody
.
setOtherCommissionList
(
otherCommissionList
);
}
}
...
...
yd-api/src/main/java/com/yd/rmi/n22/salary/pojo/searchstaffsalarydetails/SearchStaffSalaryDetailsRequestBody.java
View file @
04c0239b
...
...
@@ -17,4 +17,6 @@ public class SearchStaffSalaryDetailsRequestBody {
private
Long
practitionerId
;
private
String
isBasic
;
}
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