|
- <?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.iformall.mapper.WxCUserAuthorityMapper">
-
- <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxCUserAuthority">
-
- <result column="user_name" jdbcType="VARCHAR" property="userName"/>
- <result column="type" jdbcType="VARCHAR" property="type"/>
- <result column="resource_id" jdbcType="VARCHAR" property="resourceId"/>
- <result column="class" jdbcType="VARCHAR" property="classType"/>
- <result column="expire_time" jdbcType="VARCHAR" property="expireTime"/>
- <result column="current_time" jdbcType="VARCHAR" property="expireTime"/>
-
- </resultMap>
- <select id="getAuthorAvatar" resultType="com.iformall.domain.po.WxCUserAuthority">
- select wca.user_name,wca.type,wca.resource_id,wca.expire_time,wcav.class
- from wx_c_author wca
- join wx_c_avatar wcav on wca.resource_id = wcav.id and wca.type = 0
- where wca.user_name=#{username} and wca.resource_id = #{resourceId}
- </select>
- <select id="getAuthorVoice" resultType="com.iformall.domain.po.WxCUserAuthority">
- select wca.user_name,wca.type,wca.resource_id,wca.expire_time,wcv.class
- from wx_c_author wca
- join wx_c_voice wcv on wca.resource_id =wcv.id and wca.type = 1
- where wca.user_name=#{username} and wca.resource_id = #{resourceId}
- </select>
-
-
- </mapper>
|