FullphotoFileindexServiceImpl.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package com.fdkankan.project.tieta.service.impl;
  2. import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  3. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  4. import com.fdkankan.project.tieta.entity.FullphotoFileindex;
  5. import com.fdkankan.project.tieta.mapper.FullphotoFileindexMapper;
  6. import com.fdkankan.project.tieta.service.FullphotoFileindexService;
  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 dsx
  16. * @since 2024-07-01
  17. */
  18. @Service
  19. public class FullphotoFileindexServiceImpl extends ServiceImpl<FullphotoFileindexMapper, FullphotoFileindex> implements FullphotoFileindexService {
  20. @Override
  21. public List<FullphotoFileindex> listByStationCodeAndEntityId(String stationCode, String entityId) {
  22. return this.list(new LambdaQueryWrapper<FullphotoFileindex>()
  23. .eq(FullphotoFileindex::getStationCode, stationCode)
  24. .eq(FullphotoFileindex::getEntityId, entityId)
  25. .eq(FullphotoFileindex::getStatus, 1)
  26. .orderByAsc(FullphotoFileindex::getUpTime));
  27. }
  28. /**
  29. * 根据站址编码和机房id分页查询
  30. * @param current
  31. * @param size
  32. * @return
  33. */
  34. @Override
  35. public Page<FullphotoFileindex> pageStationCodeAndEntityId(long current, int size) {
  36. Page<FullphotoFileindex> fullphotoFileindexPage = new Page<>(current, size);
  37. Page<FullphotoFileindex> fullphotoFileindexPage1 = this.baseMapper.pageStationCodeAndEntityId(fullphotoFileindexPage);
  38. return fullphotoFileindexPage1;
  39. }
  40. /**
  41. * 根据上传id查询列表
  42. * @param uploadId
  43. * @return
  44. */
  45. @Override
  46. public List<FullphotoFileindex> listByUploadId(String uploadId) {
  47. return this.list(new LambdaQueryWrapper<FullphotoFileindex>()
  48. .eq(FullphotoFileindex::getUploadId, uploadId));
  49. }
  50. }