Commit a199dd3f authored by hongguangwu's avatar hongguangwu

MVP1.7.8-优化BUG

parent 7c42f7f8
...@@ -819,7 +819,7 @@ public class TInsuranceDetailController { ...@@ -819,7 +819,7 @@ public class TInsuranceDetailController {
* @Date: 2025/1/14 9:56 * @Date: 2025/1/14 9:56
* @return: com.yifu.cloud.plus.v1.yifu.salary.vo.SalaryRiskListVo * @return: com.yifu.cloud.plus.v1.yifu.salary.vo.SalaryRiskListVo
**/ **/
@SysLog("重新更新结算状态同步失败的数据") @SysLog("获取商险是否在保")
@Inner @Inner
@PostMapping("/inner/getRiskByIdCard") @PostMapping("/inner/getRiskByIdCard")
public SalaryRiskListVo getRiskByIdCard(@RequestBody List<TSalaryAccount> idCardList) { public SalaryRiskListVo getRiskByIdCard(@RequestBody List<TSalaryAccount> idCardList) {
......
...@@ -223,6 +223,7 @@ public class DoJointInsuranceTask { ...@@ -223,6 +223,7 @@ public class DoJointInsuranceTask {
String insuranceId; String insuranceId;
for (EkpInsuranceViewVo viewVo : viewVoList) { for (EkpInsuranceViewVo viewVo : viewVoList) {
//获取所有的明细id //获取所有的明细id
if (Common.isNotNull(viewVo.getId())) {
insuranceId = viewVo.getId().substring(0, 19); insuranceId = viewVo.getId().substring(0, 19);
detail = insuranceDetailMapper.selectById(insuranceId); detail = insuranceDetailMapper.selectById(insuranceId);
if (Common.isNotNull(detail)) { if (Common.isNotNull(detail)) {
...@@ -249,6 +250,7 @@ public class DoJointInsuranceTask { ...@@ -249,6 +250,7 @@ public class DoJointInsuranceTask {
} }
} }
} }
}
} catch (Exception e) { } catch (Exception e) {
TUpdateStatusError error = new TUpdateStatusError(); TUpdateStatusError error = new TUpdateStatusError();
error.setSettleNo(vo.getSettleNo()); error.setSettleNo(vo.getSettleNo());
...@@ -393,6 +395,7 @@ public class DoJointInsuranceTask { ...@@ -393,6 +395,7 @@ public class DoJointInsuranceTask {
String insuranceId; String insuranceId;
for (EkpInsuranceViewVo viewVo : viewVoList) { for (EkpInsuranceViewVo viewVo : viewVoList) {
//获取所有的明细id //获取所有的明细id
if (Common.isNotNull(viewVo.getId())) {
insuranceId = viewVo.getId().substring(0, 19); insuranceId = viewVo.getId().substring(0, 19);
detail = insuranceDetailMapper.selectById(insuranceId); detail = insuranceDetailMapper.selectById(insuranceId);
if (Common.isNotNull(detail)) { if (Common.isNotNull(detail)) {
...@@ -418,6 +421,7 @@ public class DoJointInsuranceTask { ...@@ -418,6 +421,7 @@ public class DoJointInsuranceTask {
insuranceDetailMapper.updateById(detail); insuranceDetailMapper.updateById(detail);
} }
} }
}
error.setStatus(CommonConstants.ONE_INT); error.setStatus(CommonConstants.ONE_INT);
error.setTitle(InsurancesConstants.AGAIN_UPDATE_STATUS); error.setTitle(InsurancesConstants.AGAIN_UPDATE_STATUS);
updateStatusErrorMapper.updateById(error); updateStatusErrorMapper.updateById(error);
......
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
from from
view_insurance_info b view_insurance_info b
where where
1 = 1 b.detailsId is not null
<if test="payFlag != null and payFlag != '' and payFlag == 0"> <if test="payFlag != null and payFlag != '' and payFlag == 0">
and b.earningNo = #{settleNo} and b.earningNo = #{settleNo}
</if> </if>
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
from from
view_social_info a view_social_info a
where where
1 = 1 a.detailsId is not null
<if test="payFlag != null and payFlag != '' and payFlag == 0"> <if test="payFlag != null and payFlag != '' and payFlag == 0">
and a.earningNo = #{settleNo} and a.earningNo = #{settleNo}
</if> </if>
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
from from
view_funds_info a view_funds_info a
where where
1 = 1 a.detailsId is not null
<if test="payFlag != null and payFlag != '' and payFlag == 0"> <if test="payFlag != null and payFlag != '' and payFlag == 0">
and a.earningNo = #{settleNo} and a.earningNo = #{settleNo}
</if> </if>
......
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