Commit 5a6a812b authored by 李灿灿's avatar 李灿灿

fix:登记保单保费bug修复

parent 7e1ce918
...@@ -2065,10 +2065,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -2065,10 +2065,6 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
if (Optional.ofNullable(detail).isPresent()){ if (Optional.ofNullable(detail).isPresent()){
//当两次发票号不一致时才更新 //当两次发票号不一致时才更新
if (!success.getInvoiceNo().equals(detail.getInvoiceNo())){ if (!success.getInvoiceNo().equals(detail.getInvoiceNo())){
//设置发票号
detail.setInvoiceNo(success.getInvoiceNo());
detailList.add(detail);
//只有当结算id存在的时候修改数据才会推给ekp //只有当结算id存在的时候修改数据才会推给ekp
if (StringUtils.isNotBlank(detail.getDefaultSettleId())){ if (StringUtils.isNotBlank(detail.getDefaultSettleId())){
try { try {
...@@ -2086,6 +2082,10 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap ...@@ -2086,6 +2082,10 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
log.error("pushEkp error registeredInvoiceNo:",e.getMessage()); log.error("pushEkp error registeredInvoiceNo:",e.getMessage());
} }
} }
//设置发票号
detail.setInvoiceNo(success.getInvoiceNo());
detailList.add(detail);
} }
} }
} }
......
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