package cn.wise.sc.cement.business.mapper;

import cn.wise.sc.cement.business.entity.SysApproval;
import cn.wise.sc.cement.business.model.vo.ApprovalVo;
import cn.wise.sc.cement.business.model.vo.GroupVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import javax.websocket.server.ServerEndpoint;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ztw
 * @since 2020-08-21
 */
public interface SysApprovalMapper extends BaseMapper<SysApproval> {

	IPage<ApprovalVo> getPage(@Param("page") Page page);

	@Select("select user_id  from sys_approval where name=#{name} and status=1 ")
	List<Integer> getApprovalId(String name);

}
