package jnpf.permission.service.impl; import jnpf.base.service.SuperServiceImpl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import jnpf.permission.entity.SocialsUserEntity; import jnpf.permission.mapper.SocialsUserMapper; import jnpf.permission.service.SocialsUserService; import org.springframework.stereotype.Service; import java.util.List; /** * 流程设计 * * @author JNPF开发平台组 * @version V3.4.2 * @copyright 引迈信息技术有限公司 * @date 2022/7/14 9:33:16 */ @Service public class SocialsUserServiceImpl extends SuperServiceImpl implements SocialsUserService { @Override public List getListByUserId(String userId) { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.lambda().eq(SocialsUserEntity::getUserId,userId); return this.list(queryWrapper); } @Override public List getUserIfnoBySocialIdAndType(String socialId, String socialType) { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.lambda().eq(SocialsUserEntity::getSocialId,socialId); queryWrapper.lambda().eq(SocialsUserEntity::getSocialType,socialType); return this.list(queryWrapper); } @Override public List getListByUserIdAndSource(String userId, String socialType) { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.lambda().eq(SocialsUserEntity::getUserId,userId); queryWrapper.lambda().eq(SocialsUserEntity::getSocialType,socialType); return this.list(queryWrapper); } @Override public SocialsUserEntity getInfoBySocialId(String socialId,String socialType){ QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.lambda().eq(SocialsUserEntity::getSocialId,socialId); queryWrapper.lambda().eq(SocialsUserEntity::getSocialType,socialType); return this.getOne(queryWrapper); } }