Browse Source

feat:添加缺失类

photo
xmzhao71 1 year ago
parent
commit
89f5d1b28c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      suimangService/src/main/java/com/iformall/service/sm/impl/ServiceInfoServiceImpl.java

+ 2
- 2
suimangService/src/main/java/com/iformall/service/sm/impl/ServiceInfoServiceImpl.java View File

@@ -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<ServiceInfo>()
.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));



Loading…
Cancel
Save