JyUserFileServiceImpl.java 966 B

1234567891011121314151617181920212223242526272829303132
  1. package com.fdkankan.manage.service.impl;
  2. import cn.dev33.satoken.stp.StpUtil;
  3. import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  4. import com.fdkankan.manage.entity.JyUserFile;
  5. import com.fdkankan.manage.mapper.IJyUserFileMapper;
  6. import com.fdkankan.manage.service.IJyUserFileService;
  7. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  8. import org.springframework.stereotype.Service;
  9. import java.util.List;
  10. /**
  11. * <p>
  12. * 服务实现类
  13. * </p>
  14. *
  15. * @author
  16. * @since 2025-04-10
  17. */
  18. @Service
  19. public class JyUserFileServiceImpl extends ServiceImpl<IJyUserFileMapper, JyUserFile> implements IJyUserFileService {
  20. @Override
  21. public List<JyUserFile> getByType(Integer imgType) {
  22. LambdaQueryWrapper<JyUserFile> wrapper = new LambdaQueryWrapper<>();
  23. wrapper.eq(JyUserFile::getSysUserId,StpUtil.getLoginId());
  24. wrapper.eq(JyUserFile::getImgType,imgType);
  25. return this.list(wrapper);
  26. }
  27. }