薪酬系统-福利方案,自定义福利项启用逻辑优化
This commit is contained in:
parent
f93090b063
commit
7c3c929fcd
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue