package com.ssm.manage.mapper;

import com.github.pagehelper.Page;
import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.entity.BaseProject;
import com.ssm.manage.query.ProjectRequest;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
public interface BaseProjectMapper extends BaseMapper<BaseProject> {
    int insertBatch(@RequestParam("list")List<BaseProject> list);

    Integer selelctCount(ProjectRequest projectRequest);

    List<BaseProject> selectPageNew(ProjectRequest projectRequest);

    List<BaseProject> selectUpdate(@RequestParam("list")List<BaseProject> list);

    List<BaseProject> selectList(@Param("collect") List<Long> collect);

    List<BaseProject> selectRepeatPage(ProjectRequest projectRequest);
}