Commit 44aed374 authored by hongguangwu's avatar hongguangwu

Merge branch 'develop' into MVP-1.7.3-shuiyou

parents 3759b1fb 5244df1b
...@@ -220,7 +220,7 @@ public class DoJointInsuranceTask { ...@@ -220,7 +220,7 @@ public class DoJointInsuranceTask {
List<EkpInsuranceViewVo> viewVoList; List<EkpInsuranceViewVo> viewVoList;
TInsuranceDetail detail; TInsuranceDetail detail;
viewVoList = ekpSettleService.selectViewBySettleNo(vo.getSettleNo(), vo.getPayFlag()); viewVoList = ekpSettleService.selectViewBySettleNo(vo.getSettleNo(), vo.getPayFlag());
if (!viewVoList.isEmpty()) { if (viewVoList != null && !viewVoList.isEmpty()) {
String insuranceId; String insuranceId;
for (EkpInsuranceViewVo viewVo : viewVoList) { for (EkpInsuranceViewVo viewVo : viewVoList) {
//获取所有的明细id //获取所有的明细id
...@@ -273,7 +273,7 @@ public class DoJointInsuranceTask { ...@@ -273,7 +273,7 @@ public class DoJointInsuranceTask {
} else { } else {
viewVo = ekpSettleService.selectFundViewBySettleNo(vo.getSettleNo(), vo.getPayFlag()); viewVo = ekpSettleService.selectFundViewBySettleNo(vo.getSettleNo(), vo.getPayFlag());
} }
if (!viewVo.isEmpty()) { if (viewVo != null && !viewVo.isEmpty()) {
viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag())); viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag()));
R<Boolean> flag = socialDaprUtils.updateSocialSettleStatus(viewVo); R<Boolean> flag = socialDaprUtils.updateSocialSettleStatus(viewVo);
if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) { if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) {
...@@ -311,7 +311,7 @@ public class DoJointInsuranceTask { ...@@ -311,7 +311,7 @@ public class DoJointInsuranceTask {
} else { } else {
viewVo = ekpSettleService.selectFIncomelViewBySettleNo(vo.getSettleNo()); viewVo = ekpSettleService.selectFIncomelViewBySettleNo(vo.getSettleNo());
} }
if (!viewVo.isEmpty()) { if (viewVo != null && !viewVo.isEmpty()) {
R<Boolean> flag = socialDaprUtils.updateIncomeSettleStatus(viewVo); R<Boolean> flag = socialDaprUtils.updateIncomeSettleStatus(viewVo);
if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) { if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) {
TUpdateStatusError error = new TUpdateStatusError(); TUpdateStatusError error = new TUpdateStatusError();
...@@ -357,7 +357,7 @@ public class DoJointInsuranceTask { ...@@ -357,7 +357,7 @@ public class DoJointInsuranceTask {
error.setTypeFlag(CommonConstants.FIVE_STRING); error.setTypeFlag(CommonConstants.FIVE_STRING);
//根据结算单号获取明细id和结算状态 //根据结算单号获取明细id和结算状态
viewVo = ekpSettleService.selectSalarylViewBySettleNo(vo.getSettleNo(), vo.getPayFlag()); viewVo = ekpSettleService.selectSalarylViewBySettleNo(vo.getSettleNo(), vo.getPayFlag());
if (!viewVo.isEmpty()) { if (viewVo != null && !viewVo.isEmpty()) {
viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag())); viewVo.forEach(e -> e.setPayFlag(vo.getPayFlag()));
R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo); R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo);
if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) { if (Common.isEmpty(flag) || Boolean.TRUE.equals(!flag.getData())) {
...@@ -390,7 +390,7 @@ public class DoJointInsuranceTask { ...@@ -390,7 +390,7 @@ public class DoJointInsuranceTask {
List<EkpInsuranceViewVo> viewVoList; List<EkpInsuranceViewVo> viewVoList;
TInsuranceDetail detail; TInsuranceDetail detail;
viewVoList = ekpSettleService.selectViewBySettleNo(error.getSettleNo(), error.getSettleType()); viewVoList = ekpSettleService.selectViewBySettleNo(error.getSettleNo(), error.getSettleType());
if (!viewVoList.isEmpty()) { if (viewVoList != null && !viewVoList.isEmpty()) {
String insuranceId; String insuranceId;
for (EkpInsuranceViewVo viewVo : viewVoList) { for (EkpInsuranceViewVo viewVo : viewVoList) {
//获取所有的明细id //获取所有的明细id
...@@ -437,7 +437,7 @@ public class DoJointInsuranceTask { ...@@ -437,7 +437,7 @@ public class DoJointInsuranceTask {
} else { } else {
viewVo = ekpSettleService.selectFundViewBySettleNo(error.getSettleNo(), error.getSettleType()); viewVo = ekpSettleService.selectFundViewBySettleNo(error.getSettleNo(), error.getSettleType());
} }
if (!viewVo.isEmpty()) { if (viewVo != null && !viewVo.isEmpty()) {
viewVo.forEach(e -> e.setPayFlag(error.getSettleType())); viewVo.forEach(e -> e.setPayFlag(error.getSettleType()));
R<Boolean> flag = socialDaprUtils.updateSocialSettleStatus(viewVo); R<Boolean> flag = socialDaprUtils.updateSocialSettleStatus(viewVo);
if (!Common.isEmpty(flag) || Boolean.TRUE.equals(flag.getData())) { if (!Common.isEmpty(flag) || Boolean.TRUE.equals(flag.getData())) {
...@@ -461,7 +461,7 @@ public class DoJointInsuranceTask { ...@@ -461,7 +461,7 @@ public class DoJointInsuranceTask {
} else { } else {
viewVo = ekpSettleService.selectFIncomelViewBySettleNo(error.getSettleNo()); viewVo = ekpSettleService.selectFIncomelViewBySettleNo(error.getSettleNo());
} }
if (!viewVo.isEmpty()) { if (viewVo != null && !viewVo.isEmpty()) {
R<Boolean> flag = socialDaprUtils.updateIncomeSettleStatus(viewVo); R<Boolean> flag = socialDaprUtils.updateIncomeSettleStatus(viewVo);
if (!Common.isEmpty(flag) || Boolean.TRUE.equals(flag.getData())) { if (!Common.isEmpty(flag) || Boolean.TRUE.equals(flag.getData())) {
error.setStatus(CommonConstants.ONE_INT); error.setStatus(CommonConstants.ONE_INT);
...@@ -479,7 +479,7 @@ public class DoJointInsuranceTask { ...@@ -479,7 +479,7 @@ public class DoJointInsuranceTask {
try { try {
//根据结算单号获取明细id和结算状态 //根据结算单号获取明细id和结算状态
viewVo = ekpSettleService.selectSalarylViewBySettleNo(error.getSettleNo(), error.getSettleType()); viewVo = ekpSettleService.selectSalarylViewBySettleNo(error.getSettleNo(), error.getSettleType());
if (!viewVo.isEmpty()) { if (viewVo != null && !viewVo.isEmpty()) {
viewVo.forEach(e -> e.setPayFlag(error.getSettleType())); viewVo.forEach(e -> e.setPayFlag(error.getSettleType()));
R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo); R<Boolean> flag = salaryDaprUtil.updateSalarySettleStatus(viewVo);
if (!Common.isEmpty(flag) && Boolean.TRUE.equals(flag.getData())) { if (!Common.isEmpty(flag) && Boolean.TRUE.equals(flag.getData())) {
......
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