Authored by mali

转码

@@ -10,5 +10,5 @@ import org.apache.ibatis.annotations.Param; @@ -10,5 +10,5 @@ import org.apache.ibatis.annotations.Param;
10 public interface QiniuLiveRecordMapper { 10 public interface QiniuLiveRecordMapper {
11 int updateStatusByPersistId(@Param("persistId")String persistId, @Param("status")Integer status); 11 int updateStatusByPersistId(@Param("persistId")String persistId, @Param("status")Integer status);
12 12
13 - QiniuLiveRecord selectByOrderCodes(@Param("orderCode")Integer orderCode); 13 + QiniuLiveRecord selectByOrderCodes(@Param("orderCode")Long orderCode);
14 } 14 }
@@ -26,7 +26,10 @@ public class QiniuLiveRecordService { @@ -26,7 +26,10 @@ public class QiniuLiveRecordService {
26 } 26 }
27 } 27 }
28 28
29 - public QiniuLiveRecord selectByOrderCodes(Integer orderCode) { 29 + public QiniuLiveRecord selectByOrderCodes(Long orderCode) {
  30 + if (null == orderCode) {
  31 + return null;
  32 + }
30 QiniuLiveRecord qiniuLiveRecords = qiniuLiveRecordMapper.selectByOrderCodes(orderCode); 33 QiniuLiveRecord qiniuLiveRecords = qiniuLiveRecordMapper.selectByOrderCodes(orderCode);
31 34
32 if (null == qiniuLiveRecords || StringUtils.isEmpty(qiniuLiveRecords.getVedioFileUrl())) { 35 if (null == qiniuLiveRecords || StringUtils.isEmpty(qiniuLiveRecords.getVedioFileUrl())) {