Commit 9503f076d92c31860c7e461d416cbaebb15cc4df
1 parent
71e4eae7
feature(*): 日志打印
日志打印
Showing
1 changed file
with
5 additions
and
1 deletions
fw-morax-service/src/main/java/cn/fw/morax/service/biz/kpi/KpiGroupBizService.java
... | ... | @@ -548,7 +548,11 @@ public class KpiGroupBizService { |
548 | 548 | .eq(KpiGroup::getYn, Boolean.TRUE) |
549 | 549 | .eq(KpiGroup::getStatus, SettingStatusEnum.EFFECTIVE) |
550 | 550 | ); |
551 | - BV.isTrue(count <= 0, "绩效组名称重复,请重新输入"); | |
551 | +// BV.isTrue(count <= 0, "绩效组名称重复,请重新输入"); | |
552 | + if (count > 0) { | |
553 | + log.info("绩效组名称重复,name:{},id:{}: ", name, Optional.ofNullable(id).orElse(0L).toString()); | |
554 | + throw new BusinessException("绩效组名称重复,请重新输入"); | |
555 | + } | |
552 | 556 | |
553 | 557 | List<SettingDraft> drafts = commonService.getEditDraftByName(name, SettingDraftTypeEnum.KPI, draftId); |
554 | 558 | BV.isTrue(drafts.size() <= 0, "绩效组名称在草稿中存在,请重新输入"); | ... | ... |