| @@ -3,7 +3,7 @@ package com.iformall.service.sm.impl; | |||||
| import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | ||||
| import com.github.pagehelper.PageHelper; | import com.github.pagehelper.PageHelper; | ||||
| import com.github.pagehelper.PageInfo; | import com.github.pagehelper.PageInfo; | ||||
| import com.iformall.common.CommonConstant; | |||||
| import com.iformall.common.CommonConstants; | |||||
| import com.iformall.common.ErrorCode; | import com.iformall.common.ErrorCode; | ||||
| import com.iformall.domain.dto.neuver.SaveServiceInfoDTO; | import com.iformall.domain.dto.neuver.SaveServiceInfoDTO; | ||||
| import com.iformall.domain.po.sm.ServiceInfo; | import com.iformall.domain.po.sm.ServiceInfo; | ||||
| @@ -26,7 +26,7 @@ public class ServiceInfoServiceImpl implements ServiceInfoService { | |||||
| public void saveServiceInfo(SaveServiceInfoDTO dto) { | public void saveServiceInfo(SaveServiceInfoDTO dto) { | ||||
| // 校验 | // 校验 | ||||
| ServiceInfo serviceInfo = serviceInfoMapper.selectOne(new LambdaQueryWrapper<ServiceInfo>() | ServiceInfo serviceInfo = serviceInfoMapper.selectOne(new LambdaQueryWrapper<ServiceInfo>() | ||||
| .eq(ServiceInfo::getDelFlag, CommonConstant.DEL_FLAG_NORMAL) | |||||
| .eq(ServiceInfo::getDelFlag, CommonConstants.DEL_FLAG_NORMAL) | |||||
| .eq(ServiceInfo::getCode, dto.getCode())); | .eq(ServiceInfo::getCode, dto.getCode())); | ||||
| Optional.ofNullable(serviceInfo).orElseThrow(() -> new BizException(ErrorCode.CODE_ALREADY_EXISTS)); | Optional.ofNullable(serviceInfo).orElseThrow(() -> new BizException(ErrorCode.CODE_ALREADY_EXISTS)); | ||||