From 89f5d1b28cf1b280bee4ec202cdf0c84dd4bf6a5 Mon Sep 17 00:00:00 2001 From: xmzhao71 Date: Fri, 20 Oct 2023 18:24:02 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B7=BB=E5=8A=A0=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/sm/impl/ServiceInfoServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suimangService/src/main/java/com/iformall/service/sm/impl/ServiceInfoServiceImpl.java b/suimangService/src/main/java/com/iformall/service/sm/impl/ServiceInfoServiceImpl.java index f6deac5..860d6f1 100644 --- a/suimangService/src/main/java/com/iformall/service/sm/impl/ServiceInfoServiceImpl.java +++ b/suimangService/src/main/java/com/iformall/service/sm/impl/ServiceInfoServiceImpl.java @@ -3,7 +3,7 @@ package com.iformall.service.sm.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; -import com.iformall.common.CommonConstant; +import com.iformall.common.CommonConstants; import com.iformall.common.ErrorCode; import com.iformall.domain.dto.neuver.SaveServiceInfoDTO; import com.iformall.domain.po.sm.ServiceInfo; @@ -26,7 +26,7 @@ public class ServiceInfoServiceImpl implements ServiceInfoService { public void saveServiceInfo(SaveServiceInfoDTO dto) { // 校验 ServiceInfo serviceInfo = serviceInfoMapper.selectOne(new LambdaQueryWrapper() - .eq(ServiceInfo::getDelFlag, CommonConstant.DEL_FLAG_NORMAL) + .eq(ServiceInfo::getDelFlag, CommonConstants.DEL_FLAG_NORMAL) .eq(ServiceInfo::getCode, dto.getCode())); Optional.ofNullable(serviceInfo).orElseThrow(() -> new BizException(ErrorCode.CODE_ALREADY_EXISTS));