Commit 861c376b authored by hongguangwu's avatar hongguangwu

MVP1.7.5-薪资提交校验

parent d6777cf5
......@@ -1159,26 +1159,29 @@ public class TSalaryStandardServiceImpl extends ServiceImpl<TSalaryStandardMappe
isTrue = true;
setUpdateRiskInfo(s, buyPerson, updatePerSonSalaryList, updatePerSonList);
} else {
a.setMsg("未购买商险列表 有 不购买申请 但 未购买社保");
a.setMsg("“不购买申请”原因为“社保已购买”,但社保不在保");
}
}
} else {
a.setMsg("未购买商险列表 有 不购买申请 但 不购买原因 为空");
a.setMsg("未购买商险列表 有“不购买申请”但“不购买原因”为空");
}
} else {
a.setMsg("未购买商险列表 且无 不购买申请");
a.setMsg("无在途/在保的“商险”且无“不购买申请”");
}
if (!isTrue) {
returnList.add(a);
}
}
if (!updatePerSonList.isEmpty()) {
tInsuranceUnpurchasePersonService.updateBatchById(updatePerSonList);
}
if (!updatePerSonSalaryList.isEmpty()) {
tInsuranceUnpurchasePersonSalaryService.saveBatch(updatePerSonSalaryList);
}
// 无错误信息返回
if (returnList.isEmpty()) {
if (!updatePerSonList.isEmpty()) {
tInsuranceUnpurchasePersonService.updateBatchById(updatePerSonList);
}
if (!updatePerSonSalaryList.isEmpty()) {
tInsuranceUnpurchasePersonSalaryService.saveBatch(updatePerSonSalaryList);
}
s.setIsCheckRisk(CommonConstants.ONE_INT);
this.updateById(s);
return R.ok();
} else {
return new R<>(CommonConstants.TWO_INT, "校验商险不通过!", returnList);
......
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