OrderConfig.xml
917 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.OrderConfigMapper">
<resultMap id="BaseResultMap" type="com.yoho.order.model.OrderConfig">
<result column="id" property="id" jdbcType="INTEGER" />
<result column="code" property="code" jdbcType="VARCHAR" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="content" property="content" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List">
id, code, name, content, create_time
</sql>
<select id="selectByCode" resultMap="BaseResultMap">
select <include refid="Base_Column_List" />
from order_config where code=#{code}
</select>
</mapper>