【fix sonar】OnlAuthDataServiceImpl文件
This commit is contained in:
+9
-10
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user