SocialsUserServiceImpl.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package jnpf.permission.service.impl;
  2. import jnpf.base.service.SuperServiceImpl;
  3. import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  4. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  5. import jnpf.permission.entity.SocialsUserEntity;
  6. import jnpf.permission.mapper.SocialsUserMapper;
  7. import jnpf.permission.service.SocialsUserService;
  8. import org.springframework.stereotype.Service;
  9. import java.util.List;
  10. /**
  11. * 流程设计
  12. *
  13. * @author JNPF开发平台组
  14. * @version V3.4.2
  15. * @copyright 引迈信息技术有限公司
  16. * @date 2022/7/14 9:33:16
  17. */
  18. @Service
  19. public class SocialsUserServiceImpl extends SuperServiceImpl<SocialsUserMapper, SocialsUserEntity> implements SocialsUserService {
  20. @Override
  21. public List<SocialsUserEntity> getListByUserId(String userId) {
  22. QueryWrapper<SocialsUserEntity> queryWrapper = new QueryWrapper<>();
  23. queryWrapper.lambda().eq(SocialsUserEntity::getUserId,userId);
  24. return this.list(queryWrapper);
  25. }
  26. @Override
  27. public List<SocialsUserEntity> getUserIfnoBySocialIdAndType(String socialId, String socialType) {
  28. QueryWrapper<SocialsUserEntity> queryWrapper = new QueryWrapper<>();
  29. queryWrapper.lambda().eq(SocialsUserEntity::getSocialId,socialId);
  30. queryWrapper.lambda().eq(SocialsUserEntity::getSocialType,socialType);
  31. return this.list(queryWrapper);
  32. }
  33. @Override
  34. public List<SocialsUserEntity> getListByUserIdAndSource(String userId, String socialType) {
  35. QueryWrapper<SocialsUserEntity> queryWrapper = new QueryWrapper<>();
  36. queryWrapper.lambda().eq(SocialsUserEntity::getUserId,userId);
  37. queryWrapper.lambda().eq(SocialsUserEntity::getSocialType,socialType);
  38. return this.list(queryWrapper);
  39. }
  40. @Override
  41. public SocialsUserEntity getInfoBySocialId(String socialId,String socialType){
  42. QueryWrapper<SocialsUserEntity> queryWrapper = new QueryWrapper<>();
  43. queryWrapper.lambda().eq(SocialsUserEntity::getSocialId,socialId);
  44. queryWrapper.lambda().eq(SocialsUserEntity::getSocialType,socialType);
  45. return this.getOne(queryWrapper);
  46. }
  47. }