zhanghua
2022-11-28 a4047b6048ebfe09e66a765b58ea12b5bd0e2e6e
ycl-platform/src/main/java/com/ycl/service/store/impl/StoreInfoServiceImpl.java
@@ -6,9 +6,11 @@
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ycl.entity.store.StoreInfo;
import com.ycl.entity.store.StoreScore;
import com.ycl.enums.common.ResultCode;
import com.ycl.exception.ApiException;
import com.ycl.mapper.store.StoreInfoMapper;
import com.ycl.mapper.store.StoreScoreMapper;
import com.ycl.mapper.video.VideoPointMapper;
import com.ycl.service.store.StoreInfoService;
import com.ycl.utils.ExcelUtils;
@@ -41,6 +43,9 @@
    @Resource
    VideoPointMapper videoPointMapper;
    @Resource
    StoreScoreMapper storeScoreMapper;
    @Override
@@ -79,4 +84,14 @@
            throw new ApiException(ResultCode.FAILED);
        }
    }
    @Override
    public Page<StoreScore> getScoreList(Long storeId, Integer pageSize, Integer pageNum) {
        Page<StoreScore> storeScorePage = new Page<>();
        storeScorePage.setSize(pageSize);
        storeScorePage.setCurrent(pageNum);
        LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<StoreScore>().eq(StoreScore::getStoreId, storeId);
        Page<StoreScore> page = storeScoreMapper.selectPage(storeScorePage, queryWrapper);
        return page;
    }
}