ExpressScreenshots.xml
1.4 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.order.dal.ExpressScreenshotsMapper">
<resultMap id="BaseResultMap" type="com.yoho.order.model.ExpressScreenshots">
<result column="id" property="id" jdbcType="INTEGER" />
<result column="waybill_code" property="waybillCode" jdbcType="VARCHAR" />
<result column="url" property="url" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="create_uid" property="createUid" jdbcType="INTEGER" />
<result column="create_user_name" property="createUserName" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List">
id, waybill_code, url, create_time, create_uid, create_user_name
</sql>
<insert id="insert" parameterType="com.yoho.order.model.ExpressScreenshots">
insert into express_screenshots (waybill_code, url, create_time, create_uid, create_user_name)
values (#{waybillCode}, #{url}, #{createTime}, #{createUid}, #{createUserName})
</insert>
<select id="selectByWaybillCode" resultMap = "BaseResultMap">
select <include refid="Base_Column_List"></include>
from express_screenshots where waybill_code= #{waybillCode}
order by create_time asc
</select>
</mapper>