|
|
<?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.QiniuLiveRecordMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.yoho.order.model.QiniuLiveRecord" >
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="order_code" property="orderCode" jdbcType="BIGINT" />
|
|
|
<result column="skup" property="skup" jdbcType="INTEGER" />
|
|
|
<result column="seller_order_code" property="sellerOrderCode" jdbcType="BIGINT" />
|
|
|
<result column="depot_no" property="depotNo" jdbcType="INTEGER" />
|
|
|
<result column="start_time" property="startTime" jdbcType="INTEGER" />
|
|
|
<result column="end_time" property="endTime" jdbcType="INTEGER" />
|
|
|
<result column="persist_id" property="persistId" jdbcType="VARCHAR" />
|
|
|
<result column="vedio_file_url" property="vedioFileUrl" jdbcType="VARCHAR" />
|
|
|
<result column="create_time" property="createTime" jdbcType="INTEGER" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
<result column="pid" property="pid" jdbcType="INTEGER" />
|
|
|
<result column="status" property="status" jdbcType="INTEGER" />
|
|
|
<result column="storage_id" property="storageId" jdbcType="INTEGER" />
|
|
|
<result column="goods_id" property="goodsId" jdbcType="INTEGER" />
|
|
|
<result column="product_id" property="productId" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, order_code, skup, seller_order_code, depot_no, start_time, end_time, persist_id,
|
|
|
vedio_file_url, create_time, update_time, pid, status, storage_id, goods_id, product_id
|
|
|
</sql>
|
|
|
<select id="selectByOrderCodes" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from qiniu_live_record
|
|
|
where order_code in
|
|
|
<foreach collection="orderCodes" open="(" close=")" separator="," item="orderCode">
|
|
|
#{orderCode,jdbcType=BIGINT}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
|
|
|
<insert id="insert" parameterType="com.yoho.order.model.QiniuLiveRecord" >
|
|
|
insert into qiniu_live_record (order_code, skup,
|
|
|
seller_order_code, depot_no, start_time,
|
|
|
end_time, persist_id, vedio_file_url,
|
|
|
create_time, pid,
|
|
|
status)
|
|
|
values (#{orderCode,jdbcType=BIGINT}, #{skup,jdbcType=INTEGER},
|
|
|
#{sellerOrderCode,jdbcType=BIGINT}, #{depotNo,jdbcType=INTEGER}, #{startTime,jdbcType=INTEGER},
|
|
|
#{endTime,jdbcType=INTEGER}, #{persistId,jdbcType=VARCHAR}, #{vedioFileUrl,jdbcType=VARCHAR},
|
|
|
#{createTime,jdbcType=INTEGER}, #{pid,jdbcType=INTEGER},
|
|
|
#{status,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateProductBySkup" parameterType="com.yoho.order.model.QiniuLiveRecord" >
|
|
|
update qiniu_live_record
|
|
|
set seller_order_code = #{sellerOrderCode,jdbcType=BIGINT},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
storage_id = #{storageId,jdbcType=INTEGER},
|
|
|
goods_id = #{goodsId,jdbcType=INTEGER},
|
|
|
product_id = #{productId,jdbcType=INTEGER}
|
|
|
where skup = #{skup,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
<update id="updateVedioBySkup" parameterType="com.yoho.order.model.QiniuLiveRecord" >
|
|
|
update qiniu_live_record
|
|
|
set start_time = #{startTime,jdbcType=INTEGER},
|
|
|
end_time = #{endTime,jdbcType=INTEGER},
|
|
|
persist_id = #{persistId,jdbcType=VARCHAR},
|
|
|
vedio_file_url = #{vedioFileUrl,jdbcType=VARCHAR},
|
|
|
update_time = #{updateTime,jdbcType=INTEGER},
|
|
|
pid = #{pid,jdbcType=INTEGER},
|
|
|
status = #{status,jdbcType=INTEGER}
|
|
|
where skup = #{skup,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
|
|
|
<update id="updateStatusBySkup">
|
|
|
update qiniu_live_record
|
|
|
set status = #{status,jdbcType=INTEGER}
|
|
|
where skup = #{skup,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|