UserProfileMapper.xml 1.11 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="com.yoho.message.dal.IUserProfileDao">
	<resultMap id="BaseResultMap" type="com.yoho.message.dal.model.UserProfile">
		<id column="uid" property="uid" jdbcType="INTEGER" />
		<result column="email" property="email" jdbcType="VARCHAR" />
		<result column="mobile" property="mobile" jdbcType="VARCHAR" />
		<result column="password" property="password" jdbcType="VARCHAR" />
		<result column="user_source" property="userSource" jdbcType="TINYINT" />
		<result column="create_time" property="createTime" jdbcType="INTEGER" />
		<result column="user_channel" property="userChannel" jdbcType="SMALLINT" />
		<result column="status" property="status" jdbcType="TINYINT" />
	</resultMap>
	<sql id="Base_Column_List">
		uid, email, mobile, password, user_source, create_time,
		user_channel,
		status
	</sql>
	<select id="selectByUids" resultMap="BaseResultMap">
		SELECT
		<include refid="Base_Column_List" />
		FROM user_profile WHERE uid in(${uids})
	</select>

</mapper>