package com.ssm.manage.service;

import com.github.pagehelper.PageInfo;
import com.ssm.core.service.BaseService;
import com.ssm.manage.entity.BaseProjectType;
import com.ssm.manage.entity.SmsException;
import com.ssm.manage.query.ProjectTypeRequest;

import java.util.List;

public interface SsmProjectTypeService extends BaseService<BaseProjectType> {
    PageInfo<BaseProjectType> selectPage(ProjectTypeRequest projectTypeRequest);

    int addProjectType(ProjectTypeRequest projectTypeRequest,String key) throws SmsException;

    int updateProjectType(ProjectTypeRequest projectTypeRequest,String key) throws SmsException;

    int deleteProjectType(ProjectTypeRequest projectTypeRequest) throws SmsException;

    int updateStates(ProjectTypeRequest projectTypeRequest) throws SmsException;

    List<BaseProjectType> list(Long storeId);

    List<ProjectTypeRequest> getMenu(ProjectTypeRequest projectTypeRequest);
    List<ProjectTypeRequest> getMenuId(ProjectTypeRequest projectTypeRequest);

    List<BaseProjectType> insertBatch(List<BaseProjectType> list, Long storeId, String storeName, String key) throws SmsException;

    List<Long> selectByEveryId(BaseProjectType baseProjectType);

    List<Long> selectByChild(BaseProjectType baseProjectType);
}
