Commit 04c0239b by jianan

手工录入的薪资单显示银盾在线的保单列表

parent 2c250661
...@@ -891,21 +891,26 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe ...@@ -891,21 +891,26 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
public SearchStaffSalaryDetailsResponseBody searchStaffSalaryDetails(SearchStaffSalaryDetailsRequestBody requestVO) { public SearchStaffSalaryDetailsResponseBody searchStaffSalaryDetails(SearchStaffSalaryDetailsRequestBody requestVO) {
SearchStaffSalaryDetailsResponseBody responseBody = new SearchStaffSalaryDetailsResponseBody(); SearchStaffSalaryDetailsResponseBody responseBody = new SearchStaffSalaryDetailsResponseBody();
responseBody.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("820001")));
// 检查请求参数 // 检查请求参数
if (StringUtils.isBlank(requestVO.getYears())||StringUtils.isBlank(requestVO.getMonth())) { if (StringUtils.isBlank(requestVO.getYears())||StringUtils.isBlank(requestVO.getMonth())) {
responseBody.setCommonResult(new CommonResult(false, "查询年月不能为空")); responseBody.setCommonResult(new CommonResult(false, "查询年月不能为空"));
return responseBody; return responseBody;
} }
// 调接口 if ("1".equals(requestVO.getIsBasic())) {
SearchStaffSalaryDetailsResponseVO searchStaffSalaryDetailsResponseVO = n22SalaryService.searchStaffSalaryDetails(requestVO);
if ("查询成功".equals(searchStaffSalaryDetailsResponseVO.getResponseHead().getMessage())) {
responseBody = searchStaffSalaryDetailsResponseVO.getResponseBody();
// 查询银盾在线佣金的保单列表 // 查询银盾在线佣金的保单列表
this.queryYdOnlineCommission(requestVO, responseBody); this.queryYdOnlineCommission(requestVO, responseBody);
responseBody.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
} else { } else {
responseBody.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("820001"))); // 调N22接口
SearchStaffSalaryDetailsResponseVO searchStaffSalaryDetailsResponseVO = n22SalaryService.searchStaffSalaryDetails(requestVO);
if ("查询成功".equals(searchStaffSalaryDetailsResponseVO.getResponseHead().getMessage())) {
responseBody = searchStaffSalaryDetailsResponseVO.getResponseBody();
// 查询银盾在线佣金的保单列表
this.queryYdOnlineCommission(requestVO, responseBody);
responseBody.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
}
} }
return responseBody; return responseBody;
} }
...@@ -922,13 +927,22 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe ...@@ -922,13 +927,22 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
Long withdrawId = withdraws.get(0).getWithdrawId(); Long withdrawId = withdraws.get(0).getWithdrawId();
List<OtherCommission> otherCommissionList = responseBody.getOtherCommissionList(); List<OtherCommission> otherCommissionList = responseBody.getOtherCommissionList();
for (OtherCommission otherCommission : otherCommissionList) { if (CollectionUtils.isNotEmpty(otherCommissionList)) {
// 此项为银盾在线佣金 for (OtherCommission otherCommission : otherCommissionList) {
if ("12C24EDF-83D7-081C-AE2C-085031C4DCAF".equals(otherCommission.getProject_Id())) { // 此项为银盾在线佣金
//获取withdrewId if ("12C24EDF-83D7-081C-AE2C-085031C4DCAF".equals(otherCommission.getProject_Id())) {
otherCommission.setWithdrawedId(withdrawId); //获取withdrewId
otherCommission.setWithdrawedId(withdrawId);
}
} }
} else {
// 手工录入薪资单,List为空
otherCommissionList = new ArrayList<>();
OtherCommission otherCommission = new OtherCommission();
otherCommission.setWithdrawedId(withdrawId);
otherCommissionList.add(otherCommission);
responseBody.setOtherCommissionList(otherCommissionList);
} }
} }
......
...@@ -17,4 +17,6 @@ public class SearchStaffSalaryDetailsRequestBody { ...@@ -17,4 +17,6 @@ public class SearchStaffSalaryDetailsRequestBody {
private Long practitionerId; private Long practitionerId;
private String isBasic;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment