SmartUserChannelMapper.xml 1.2 KB
<?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.com.glsx.smart.modules.mapper.SmartUserChannelMapper">
    <resultMap id="BaseResultMap" type="cn.com.glsx.smart.modules.entity.SmartUserChannel">
        <!--@mbg.generated generated on Fri Apr 23 15:24:29 CST 2021.-->
        <!--@Table smart_user_channel-->
        <id column="id" jdbcType="BIGINT" property="id"/>
        <result column="user_id" jdbcType="BIGINT" property="userId"/>
        <result column="channel" jdbcType="TINYINT" property="channel"/>
        <result column="third_id" jdbcType="VARCHAR" property="thirdId"/>
        <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
    </resultMap>
    <sql id="Base_Column_List">
        <!--@mbg.generated generated on Fri Apr 23 15:24:29 CST 2021.-->
        id, user_id, channel, third_id, create_time
    </sql>
    <select id="selectByUserId" parameterType="java.lang.Long" resultMap="BaseResultMap">
        SELECT <include refid="Base_Column_List"/> FROM smart_user_channel
        WHERE 1 = 1 AND user_id = #{userId,jdbcType=BIGINT}
    </select>

</mapper>