Authored by mali

鉴定服务

@@ -15,7 +15,7 @@ public interface QiniuLiveRecordMapper { @@ -15,7 +15,7 @@ public interface QiniuLiveRecordMapper {
15 15
16 int updateStatusBySkup(@Param("skup")Integer skup, @Param("status")Integer status); 16 int updateStatusBySkup(@Param("skup")Integer skup, @Param("status")Integer status);
17 17
18 - int updateShowFlagBySkup(@Param("skup")Integer skup, @Param("showFlag")Integer showFlag, @Param("id") Integer id); 18 + int updateShowFlagByOrderCode(@Param("orderCode")Long orderCode, @Param("showFlag")Integer showFlag, @Param("id") Integer id);
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
@@ -79,10 +79,10 @@ @@ -79,10 +79,10 @@
79 </update> 79 </update>
80 80
81 81
82 - <update id="updateShowFlagBySkup"> 82 + <update id="updateShowFlagByOrderCode">
83 update qiniu_live_record 83 update qiniu_live_record
84 set show_flag = #{showFlag,jdbcType=INTEGER} 84 set show_flag = #{showFlag,jdbcType=INTEGER}
85 - where skup = #{skup,jdbcType=INTEGER} and id != #{id,jdbcType=INTEGER} 85 + where order_code = #{orderCode,jdbcType=BIGINT} and id != #{id,jdbcType=INTEGER}
86 </update> 86 </update>
87 87
88 88
@@ -126,7 +126,7 @@ public class UfoLiveService { @@ -126,7 +126,7 @@ public class UfoLiveService {
126 126
127 // 保存记录 127 // 保存记录
128 private void saveRecord(QiniuLiveRecord req, String filePath, String persistId, int userId) { 128 private void saveRecord(QiniuLiveRecord req, String filePath, String persistId, int userId) {
129 - qiniuLiveRecordMapper.updateShowFlagBySkup(req.getSkup(), 0, 0); // 先更新之前的视频记录为不可见 129 + qiniuLiveRecordMapper.updateShowFlagByOrderCode(req.getOrderCode(), 0, 0); // 先更新之前的视频记录为不可见
130 130
131 QiniuLiveRecord record = new QiniuLiveRecord(); 131 QiniuLiveRecord record = new QiniuLiveRecord();
132 record.setDepotNo(req.getDepotNo()); 132 record.setDepotNo(req.getDepotNo());