SellerOrderMeta.xml
955 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.SellerOrderMetaMapper">
<resultMap id="BaseResultMap" type="com.yoho.order.model.SellerOrderMeta">
<result column="id" property="id" jdbcType="INTEGER" />
<result column="skup" property="skup" jdbcType="INTEGER" />
<result column="uid" property="uid" jdbcType="INTEGER" />
<result column="meta_key" property="metaKey" jdbcType="VARCHAR" />
<result column="meta_value" property="metaValue" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List">
id, skup, uid, meta_key, meta_value
</sql>
<select id="selectBySkupAndKey" resultMap="BaseResultMap">
select <include refid="Base_Column_List" />
from seller_order_meta where skup=#{skup} and meta_key=#{metaKey}
</select>
</mapper>