OAuth2ClientMapper.xml 789 Bytes
<?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="cn.runsa.portal.base.dao.OAuth2ClientMapper">
	<cache eviction="LRU" flushInterval="60000" size="512" readOnly="true"/>
	<resultMap type="cn.runsa.portal.base.entity.OAuth2Client" id="oAuth2Client">
		<id property="id" column="ocId"/>
		<result property="name" column="ocName"/>
		<result property="upTime" column="ptUpTime"/>
		<result property="updater" column="ptUpdater"/>
	</resultMap>
	<select id="exists" resultType="Boolean">
		select count(*) from smOAuthClient where ocId=#{id}
	</select>
	<select id="selectById" resultMap="oAuth2Client">
		select *
		from smOAuthClient
		where ocId=#{id}
	</select>
</mapper>