1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- package com.fdkankan.project.tieta.service.impl;
- import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
- import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
- import com.fdkankan.project.tieta.entity.FullphotoFileindex;
- import com.fdkankan.project.tieta.mapper.FullphotoFileindexMapper;
- import com.fdkankan.project.tieta.service.FullphotoFileindexService;
- import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
- import org.springframework.stereotype.Service;
- import java.util.List;
- /**
- * <p>
- * 服务实现类
- * </p>
- *
- * @author dsx
- * @since 2024-07-01
- */
- @Service
- public class FullphotoFileindexServiceImpl extends ServiceImpl<FullphotoFileindexMapper, FullphotoFileindex> implements FullphotoFileindexService {
- @Override
- public List<FullphotoFileindex> listByStationCodeAndEntityId(String stationCode, String entityId) {
- return this.list(new LambdaQueryWrapper<FullphotoFileindex>()
- .eq(FullphotoFileindex::getStationCode, stationCode)
- .eq(FullphotoFileindex::getEntityId, entityId)
- .eq(FullphotoFileindex::getStatus, 1)
- .orderByAsc(FullphotoFileindex::getUpTime));
- }
- /**
- * 根据站址编码和机房id分页查询
- * @param current
- * @param size
- * @return
- */
- @Override
- public Page<FullphotoFileindex> pageStationCodeAndEntityId(long current, int size) {
- Page<FullphotoFileindex> fullphotoFileindexPage = new Page<>(current, size);
- Page<FullphotoFileindex> fullphotoFileindexPage1 = this.baseMapper.pageStationCodeAndEntityId(fullphotoFileindexPage);
- return fullphotoFileindexPage1;
- }
- /**
- * 根据上传id查询列表
- * @param uploadId
- * @return
- */
- @Override
- public List<FullphotoFileindex> listByUploadId(String uploadId) {
- return this.list(new LambdaQueryWrapper<FullphotoFileindex>()
- .eq(FullphotoFileindex::getUploadId, uploadId));
- }
- }
|