package com.sckw.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.order.model.KwoWantBuy;
import com.sckw.order.model.vo.req.WantBuySelectParam;
import com.sckw.order.model.vo.res.TableTopRes;
import com.sckw.order.model.vo.res.WantBuySelectRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @desc: 求购mapper
 * @author: yzc
 * @date: 2023-06-25 14:45
 */
@Mapper
public interface KwpWantBuyMapper extends BaseMapper<KwoWantBuy> {

    List<WantBuySelectRes> queryBuyHallList(@Param("wantBuyReq") WantBuySelectParam wantBuyReq);

    List<WantBuySelectRes> pageSelect(@Param("wantBuyReq") WantBuySelectParam wantBuyReq);

    /**
     * 查询数据
     * @param wantBuyReq 请求参数
     * @param authEntIdList 用户关联的企业id list
     * @return
     */
    List<WantBuySelectRes> pageSelectAllByManager(@Param("wantBuyReq") WantBuySelectParam wantBuyReq, @Param("authEntIdList") List<Long> authEntIdList);

    List<TableTopRes> statisticsCount(@Param("wantBuyReq") WantBuySelectParam wantBuyReq);
}
