薪酬系统-福利方案,自定义福利项启用逻辑优化

This commit is contained in:
sy 2023-07-18 09:33:07 +08:00
parent f93090b063
commit 7c3c929fcd
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class SICategoryBiz {
throw new SalaryRunTimeException("isUse is required");
}
List<InsuranceSchemeDetailPO> insuranceSchemeDetailPOS = new SISchemeBiz().queryListByInsuranceIdIsPayment(id, IsPaymentEnum.YES.getValue());
if(CollectionUtils.isNotEmpty(insuranceSchemeDetailPOS)) {
if(CollectionUtils.isNotEmpty(insuranceSchemeDetailPOS) && isUse == 0) {
throw new SalaryRunTimeException("该福利开启缴费,不可删除(或停用)");
}
ICategoryPO iCategoryPO = getByID(id);