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

import cn.wise.sc.cement.business.entity.Handle;
import cn.wise.sc.cement.business.model.vo.ClientVo;
import cn.wise.sc.cement.business.model.vo.HandleVo;
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 java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author ztw
 * @since 2020-09-10
 */
public interface HandleMapper extends BaseMapper<Handle> {


	IPage<HandleVo> getPage(@Param("page") Page page, @Param("params") Map<String, Object> params);

	HandleVo getDetail(Integer id);

	@Select("select count(*) from team t where t.handle_id = #{id}")
	Integer countTeamByhandleId(@Param("id") Integer id);




}
