package com.ssm.manage.mapper;

import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.entity.BaseProjectType;
import com.ssm.manage.query.ProjectTypeRequest;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
public interface BaseProjectTypeMapper extends BaseMapper<BaseProjectType> {
    int insertBatch(@RequestParam("list") List<BaseProjectType> list);
    List<ProjectTypeRequest> getMenu(ProjectTypeRequest projectTypeRequest);
    List<ProjectTypeRequest> getMenuId(ProjectTypeRequest projectTypeRequest);

    List<Long> selectByEveryId(BaseProjectType baseProjectType);

    List<Long> selectByChild(BaseProjectType baseProjectType);
}