【fix sonar】OnlAuthDataServiceImpl文件
This commit is contained in:
+9
-10
@@ -1,6 +1,5 @@
|
|||||||
package com.jero.generater.modules.online.auth.service.impl;
|
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.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.jero.generater.modules.online.auth.entity.OnlAuthData;
|
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;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@Service("OnlAuthDataServiceImpl")
|
@Service("OnlAuthDataServiceImpl")
|
||||||
public class OnlAuthDataServiceImpl extends ServiceImpl<OnlAuthDataMapper, OnlAuthData> implements IOnlAuthDataService
|
public class OnlAuthDataServiceImpl extends ServiceImpl<OnlAuthDataMapper, OnlAuthData> implements IOnlAuthDataService {
|
||||||
{
|
@Autowired
|
||||||
@Autowired
|
private OnlAuthRelationMapper onlAuthRelationMapper;
|
||||||
private OnlAuthRelationMapper onlAuthRelationMapper;
|
|
||||||
|
|
||||||
public void deleteOne(String id) {
|
@Override
|
||||||
removeById(id);
|
public void deleteOne(String id) {
|
||||||
LambdaQueryWrapper<OnlAuthRelation> lambdaQueryWrapper = new LambdaQueryWrapper();
|
removeById(id);
|
||||||
this.onlAuthRelationMapper.delete((Wrapper)lambdaQueryWrapper.eq(OnlAuthRelation::getAuthId, id));
|
LambdaQueryWrapper<OnlAuthRelation> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
}
|
this.onlAuthRelationMapper.delete(lambdaQueryWrapper.eq(OnlAuthRelation::getAuthId, id));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user