From 1332e9129094265d90cd549ffde9c599a727a035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= Date: Mon, 13 Mar 2023 14:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91OnlAuthDataService?= =?UTF-8?q?Impl=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/OnlAuthDataServiceImpl.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/auth/service/impl/OnlAuthDataServiceImpl.java b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/auth/service/impl/OnlAuthDataServiceImpl.java index 84fda33f..cec19d31 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/auth/service/impl/OnlAuthDataServiceImpl.java +++ b/jero-boot/jero-boot-base/jero-boot-base-generater/src/main/java/com/jero/generater/modules/online/auth/service/impl/OnlAuthDataServiceImpl.java @@ -1,6 +1,5 @@ package com.jero.generater.modules.online.auth.service.impl; -import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.jero.generater.modules.online.auth.entity.OnlAuthData; @@ -12,15 +11,15 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service("OnlAuthDataServiceImpl") -public class OnlAuthDataServiceImpl extends ServiceImpl implements IOnlAuthDataService -{ -@Autowired -private OnlAuthRelationMapper onlAuthRelationMapper; +public class OnlAuthDataServiceImpl extends ServiceImpl implements IOnlAuthDataService { + @Autowired + private OnlAuthRelationMapper onlAuthRelationMapper; -public void deleteOne(String id) { - removeById(id); - LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper(); - this.onlAuthRelationMapper.delete((Wrapper)lambdaQueryWrapper.eq(OnlAuthRelation::getAuthId, id)); -} + @Override + public void deleteOne(String id) { + removeById(id); + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + this.onlAuthRelationMapper.delete(lambdaQueryWrapper.eq(OnlAuthRelation::getAuthId, id)); + } }