Commit e5ae8ba3 authored by hongguangwu's avatar hongguangwu

MVP1.7.5-薪资提交校验

parent 2b89cdc1
...@@ -1180,27 +1180,37 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe ...@@ -1180,27 +1180,37 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
if (!updatePerSonSalaryList.isEmpty()) { if (!updatePerSonSalaryList.isEmpty()) {
tInsuranceUnpurchasePersonSalaryService.saveBatch(updatePerSonSalaryList); tInsuranceUnpurchasePersonSalaryService.saveBatch(updatePerSonSalaryList);
} }
s.setIsCheckRisk(CommonConstants.ONE_INT); return getTrueR(s, "校验通过");
this.updateById(s);
return R.ok();
} else { } else {
return new R<>(CommonConstants.TWO_INT, "校验商险不通过!", returnList); return new R<>(CommonConstants.TWO_INT, "校验商险不通过!", returnList);
} }
} else { } else {
return R.ok(null, "均已购买商险"); return getTrueR(s, "均已购买商险");
} }
} }
} else { } else {
return R.ok(null, "没有报账明细,无需拦截"); return getTrueR(s, "没有报账明细,无需拦截");
} }
} else { } else {
return R.ok(null, "项目不含风险 或 无商险"); return getTrueR(s, "项目不含风险 或 无商险");
} }
} else { } else {
return R.failed("获取项目信息失败,请联管理员!"); return R.failed("获取项目信息失败,请联管理员!");
} }
} }
/**
* @Description: 校验通过的返回
* @Author: hgw
* @Date: 2025/1/16 11:16
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.util.List < com.yifu.cloud.plus.v1.yifu.salary.vo.SalaryRiskVo>>
**/
private R<List<SalaryRiskVo>> getTrueR(TSalaryStandard s, String msg) {
s.setIsCheckRisk(CommonConstants.ONE_INT);
this.updateById(s);
return R.ok(null, msg);
}
/** /**
* @Description: 设置增加 不购买商险的相关信息 * @Description: 设置增加 不购买商险的相关信息
* @Author: hgw * @Author: hgw
......
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