<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jeesite.modules.sso.dao.SsoAppDao">


    <!-- 查询数据
    <select id="findList" resultType="SsoApp">
        SELECT ${sqlMap.column.toSql()}
        FROM ${sqlMap.table.toSql()}
        <where>
            ${sqlMap.where.toSql()}
        </where>
        ORDER BY ${sqlMap.order.toSql()}
    </select> -->

    <select id="selectAppBykey" resultType="com.jeesite.modules.sso.entity.SsoApp">
        SELECT * FROM `sso_app` WHERE app_key=#{appKey}
    </select>
    <select id="selectAppBySecretkey" resultType="com.jeesite.modules.sso.entity.SsoApp">
        SELECT * FROM `sso_app` WHERE app_key=#{appKey} AND app_secretkey=#{appSecretkey}
    </select>
    <update id="changeStatus">
        update sso_app set app_status=#{type} where id=#{id}
    </update>
    <update id="recommendStatus">
        update sso_app set is_recommend=#{type} where id=#{id}
    </update>
</mapper>