package com.chushang.inspection.terminal.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chushang.datascope.annotation.DataScope;
import com.chushang.inspection.project.vo.CountVO;
import com.chushang.inspection.terminal.po.Store;
import com.chushang.inspection.terminal.query.StoreQuery;
import com.chushang.inspection.terminal.vo.StoreVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
  * @auther: zhao
  * @date: 2024/6/21 16:39
  */
public interface StoreMapper extends BaseMapper<Store> {

    @DataScope(deptAlias = "s")
    List<StoreVO> pageList(@Param("query") StoreQuery query,
                           Page<Store> page);

    List<CountVO> countByProjectIds(@Param("projectIds") Set<Long> projectIds);

}
