package com.repair.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.repair.model.pojo.RepairConsume;
import com.repair.model.vo.ConsumeVo;
import com.repair.model.vo.RepairArticleConsumeVo;
import com.repair.model.vo.RepairConsumeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ceshi
 * @since 2023-07-18
 */
@Repository
public interface RepairConsumeMapper extends BaseMapper<RepairConsume> {
    List<ConsumeVo> queryConsumeList(@Param("name") String name, @Param("startTime") String startTime, @Param("endTime") String endTime);

    IPage<RepairConsumeVo> queryConsumePageList(IPage<RepairConsumeVo> page, @Param("name") String name, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<RepairArticleConsumeVo> queryArticleConsumes(@Param("schoolId") Integer schoolId, @Param("keyWork") String keyWork, @Param("findInSet") String findInSet);

    List<RepairArticleConsumeVo> queryArticleConsumesName(@Param("findInSet")String findInSet,@Param("schoolId")int schoolId);
}
