PhoneUidDepotMapper.xml 1022 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="com.yoho.order.dal.PhoneUidDepotMapper" >
  <resultMap id="BaseResultMap" type="com.yoho.order.model.PhoneUidDepot" >
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="phone_uid" property="phoneUid" jdbcType="VARCHAR" />
    <result column="depot_no" property="depotNo" jdbcType="INTEGER" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, phone_uid, depot_no
  </sql>
  <select id="selectByphoneUid" resultMap="BaseResultMap" parameterType="java.lang.String" >
    select  <include refid="Base_Column_List" /> from phone_uid_depot
    where phone_uid = #{phoneUid,jdbcType=VARCHAR} limit 1
  </select>

  <insert id="insert" parameterType="com.yoho.order.model.PhoneUidDepot" >
    insert into phone_uid_depot (phone_uid, depot_no) values (#{phoneUid,jdbcType=VARCHAR}, #{depotNo,jdbcType=INTEGER})
  </insert>

</mapper>