Authored by mali

鉴定服务

... ... @@ -15,7 +15,7 @@ public interface QiniuLiveRecordMapper {
int updateStatusBySkup(@Param("skup")Integer skup, @Param("status")Integer status);
int updateShowFlagBySkup(@Param("skup")Integer skup, @Param("showFlag")Integer showFlag, @Param("id") Integer id);
int updateShowFlagByOrderCode(@Param("orderCode")Long orderCode, @Param("showFlag")Integer showFlag, @Param("id") Integer id);
void updateDiscardVideo(@Param("orderCode")Long orderCode, @Param("showFlag")Integer showFlag);
... ...
... ... @@ -79,10 +79,10 @@
</update>
<update id="updateShowFlagBySkup">
<update id="updateShowFlagByOrderCode">
update qiniu_live_record
set show_flag = #{showFlag,jdbcType=INTEGER}
where skup = #{skup,jdbcType=INTEGER} and id != #{id,jdbcType=INTEGER}
where order_code = #{orderCode,jdbcType=BIGINT} and id != #{id,jdbcType=INTEGER}
</update>
... ...
... ... @@ -126,7 +126,7 @@ public class UfoLiveService {
// 保存记录
private void saveRecord(QiniuLiveRecord req, String filePath, String persistId, int userId) {
qiniuLiveRecordMapper.updateShowFlagBySkup(req.getSkup(), 0, 0); // 先更新之前的视频记录为不可见
qiniuLiveRecordMapper.updateShowFlagByOrderCode(req.getOrderCode(), 0, 0); // 先更新之前的视频记录为不可见
QiniuLiveRecord record = new QiniuLiveRecord();
record.setDepotNo(req.getDepotNo());
... ...