Commit a199dd3f authored by hongguangwu's avatar hongguangwu

MVP1.7.8-优化BUG

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