package com.yeejoin.amos.api.openapi.face.orm.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yeejoin.amos.api.openapi.face.orm.entity.OpenapiBizToken;

import java.util.List;

/**
 * 
 * <pre>
 * Mapper 接口
 * </pre>
 *
 * @author gwb
 * @version $Id: OpenapiLogMapper.java, v 0.1 2021年11月10日 下午5:54:19 gwb Exp $
 */
public interface OpenapiBizTokenMapper extends BaseMapper<OpenapiBizToken> {


    @Select("SELECT " +
	            " * " +
	            " FROM " +
	            " iot_openapi_biz_token bt " +
	            " WHERE " +
	            " bt.APP_ID = '${appId}'")
	public OpenapiBizToken getByAppId(@Param("appId") String appId);


	@Select("select DEVELOPER_AGENCY from iot_openapi_biz_token  where DEVELOPER_AGENCY is not null AND DATA_TYPE = 'cyl' group by DEVELOPER_AGENCY")
	public List<String> getServiceList();
}	