Authored by mali

鉴定服务

... ... @@ -19,8 +19,6 @@ public interface QiniuLiveRecordMapper {
void updateDiscardVideo(@Param("orderCode")Long orderCode, @Param("showFlag")Integer showFlag);
int insertInitRecord(QiniuLiveRecord record);
int updateVideoUrl(@Param("id")Integer id, @Param("vedioUrl")String vedioUrl, @Param("updateTime")Integer updateTime);
List<QiniuLiveRecord> selectByTime(@Param("startTime")Integer startTime, @Param("endTime")Integer endTime);
... ...
... ... @@ -21,10 +21,11 @@
<result column="show_flag" property="showFlag" jdbcType="INTEGER" />
<result column="camera_code" property="cameraCode" javaType="INTEGER" />
<result column="video_url" property="vedioUrl" jdbcType="VARCHAR" />
<result column="order_type" property="orderType" 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, show_flag, camera_code, video_url
vedio_file_url, create_time, update_time, pid, status, storage_id, goods_id, product_id, show_flag, camera_code, video_url, order_type
</sql>
<select id="selectByOrderCodes" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
... ... @@ -41,17 +42,12 @@
seller_order_code, depot_no, start_time,
end_time, persist_id, vedio_file_url,
create_time, pid,
status, camera_code)
status, camera_code, order_type)
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}, #{cameraCode, jdbcType=INTEGER})
</insert>
<insert id="insertInitRecord" parameterType="com.yoho.order.model.QiniuLiveRecord" useGeneratedKeys="true" keyProperty="id">
insert into qiniu_live_record (order_code, start_time, create_time, status, show_flag)
values (#{orderCode,jdbcType=BIGINT}, #{startTime,jdbcType=INTEGER},#{createTime,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{showFlag,jdbcType=INTEGER})
#{status,jdbcType=INTEGER}, #{cameraCode, jdbcType=INTEGER}, #{orderType, jdbcType=INTEGER})
</insert>
<update id="updateProductBySkup" parameterType="com.yoho.order.model.QiniuLiveRecord" >
... ...
... ... @@ -141,6 +141,7 @@ public class UfoLiveService {
record.setStatus(0);
record.setVedioFileUrl(null == filePath ? "" : filePath);
record.setCameraCode(req.getCameraCode());
record.setOrderType(req.getOrderType());
qiniuLiveRecordMapper.insert(record);
record.setNotInId(record.getId());
... ...