【fix sonar】OnlAuthDataServiceImpl文件

This commit is contained in:
梁琦涛
2023-03-13 14:07:04 +08:00
parent 506468b88c
commit 1332e91290
@@ -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<OnlAuthDataMapper, OnlAuthData> implements IOnlAuthDataService
{
@Autowired
private OnlAuthRelationMapper onlAuthRelationMapper;
public class OnlAuthDataServiceImpl extends ServiceImpl<OnlAuthDataMapper, OnlAuthData> implements IOnlAuthDataService {
@Autowired
private OnlAuthRelationMapper onlAuthRelationMapper;
public void deleteOne(String id) {
removeById(id);
LambdaQueryWrapper<OnlAuthRelation> lambdaQueryWrapper = new LambdaQueryWrapper();
this.onlAuthRelationMapper.delete((Wrapper)lambdaQueryWrapper.eq(OnlAuthRelation::getAuthId, id));
}
@Override
public void deleteOne(String id) {
removeById(id);
LambdaQueryWrapper<OnlAuthRelation> lambdaQueryWrapper = new LambdaQueryWrapper<>();
this.onlAuthRelationMapper.delete(lambdaQueryWrapper.eq(OnlAuthRelation::getAuthId, id));
}
}