Authored by mali

鉴定服务

@@ -19,8 +19,6 @@ public interface QiniuLiveRecordMapper { @@ -19,8 +19,6 @@ public interface QiniuLiveRecordMapper {
19 19
20 void updateDiscardVideo(@Param("orderCode")Long orderCode, @Param("showFlag")Integer showFlag); 20 void updateDiscardVideo(@Param("orderCode")Long orderCode, @Param("showFlag")Integer showFlag);
21 21
22 - int insertInitRecord(QiniuLiveRecord record);  
23 -  
24 int updateVideoUrl(@Param("id")Integer id, @Param("vedioUrl")String vedioUrl, @Param("updateTime")Integer updateTime); 22 int updateVideoUrl(@Param("id")Integer id, @Param("vedioUrl")String vedioUrl, @Param("updateTime")Integer updateTime);
25 23
26 List<QiniuLiveRecord> selectByTime(@Param("startTime")Integer startTime, @Param("endTime")Integer endTime); 24 List<QiniuLiveRecord> selectByTime(@Param("startTime")Integer startTime, @Param("endTime")Integer endTime);
@@ -21,10 +21,11 @@ @@ -21,10 +21,11 @@
21 <result column="show_flag" property="showFlag" jdbcType="INTEGER" /> 21 <result column="show_flag" property="showFlag" jdbcType="INTEGER" />
22 <result column="camera_code" property="cameraCode" javaType="INTEGER" /> 22 <result column="camera_code" property="cameraCode" javaType="INTEGER" />
23 <result column="video_url" property="vedioUrl" jdbcType="VARCHAR" /> 23 <result column="video_url" property="vedioUrl" jdbcType="VARCHAR" />
  24 + <result column="order_type" property="orderType" jdbcType="INTEGER" />
24 </resultMap> 25 </resultMap>
25 <sql id="Base_Column_List" > 26 <sql id="Base_Column_List" >
26 id, order_code, skup, seller_order_code, depot_no, start_time, end_time, persist_id, 27 id, order_code, skup, seller_order_code, depot_no, start_time, end_time, persist_id,
27 - vedio_file_url, create_time, update_time, pid, status, storage_id, goods_id, product_id, show_flag, camera_code, video_url 28 + vedio_file_url, create_time, update_time, pid, status, storage_id, goods_id, product_id, show_flag, camera_code, video_url, order_type
28 </sql> 29 </sql>
29 <select id="selectByOrderCodes" resultMap="BaseResultMap" parameterType="java.lang.Integer" > 30 <select id="selectByOrderCodes" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
30 select 31 select
@@ -41,17 +42,12 @@ @@ -41,17 +42,12 @@
41 seller_order_code, depot_no, start_time, 42 seller_order_code, depot_no, start_time,
42 end_time, persist_id, vedio_file_url, 43 end_time, persist_id, vedio_file_url,
43 create_time, pid, 44 create_time, pid,
44 - status, camera_code) 45 + status, camera_code, order_type)
45 values (#{orderCode,jdbcType=BIGINT}, #{skup,jdbcType=INTEGER}, 46 values (#{orderCode,jdbcType=BIGINT}, #{skup,jdbcType=INTEGER},
46 #{sellerOrderCode,jdbcType=BIGINT}, #{depotNo,jdbcType=INTEGER}, #{startTime,jdbcType=INTEGER}, 47 #{sellerOrderCode,jdbcType=BIGINT}, #{depotNo,jdbcType=INTEGER}, #{startTime,jdbcType=INTEGER},
47 #{endTime,jdbcType=INTEGER}, #{persistId,jdbcType=VARCHAR}, #{vedioFileUrl,jdbcType=VARCHAR}, 48 #{endTime,jdbcType=INTEGER}, #{persistId,jdbcType=VARCHAR}, #{vedioFileUrl,jdbcType=VARCHAR},
48 #{createTime,jdbcType=INTEGER}, #{pid,jdbcType=INTEGER}, 49 #{createTime,jdbcType=INTEGER}, #{pid,jdbcType=INTEGER},
49 - #{status,jdbcType=INTEGER}, #{cameraCode, jdbcType=INTEGER})  
50 - </insert>  
51 -  
52 - <insert id="insertInitRecord" parameterType="com.yoho.order.model.QiniuLiveRecord" useGeneratedKeys="true" keyProperty="id">  
53 - insert into qiniu_live_record (order_code, start_time, create_time, status, show_flag)  
54 - values (#{orderCode,jdbcType=BIGINT}, #{startTime,jdbcType=INTEGER},#{createTime,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{showFlag,jdbcType=INTEGER}) 50 + #{status,jdbcType=INTEGER}, #{cameraCode, jdbcType=INTEGER}, #{orderType, jdbcType=INTEGER})
55 </insert> 51 </insert>
56 52
57 <update id="updateProductBySkup" parameterType="com.yoho.order.model.QiniuLiveRecord" > 53 <update id="updateProductBySkup" parameterType="com.yoho.order.model.QiniuLiveRecord" >
@@ -141,6 +141,7 @@ public class UfoLiveService { @@ -141,6 +141,7 @@ public class UfoLiveService {
141 record.setStatus(0); 141 record.setStatus(0);
142 record.setVedioFileUrl(null == filePath ? "" : filePath); 142 record.setVedioFileUrl(null == filePath ? "" : filePath);
143 record.setCameraCode(req.getCameraCode()); 143 record.setCameraCode(req.getCameraCode());
  144 + record.setOrderType(req.getOrderType());
144 qiniuLiveRecordMapper.insert(record); 145 qiniuLiveRecordMapper.insert(record);
145 146
146 record.setNotInId(record.getId()); 147 record.setNotInId(record.getId());