Browse Source

删除BUG修改

小么熊🐻 3 years ago
parent
commit
74823ad0d9

+ 1 - 0
zzjs-service/src/main/java/com/miaxis/teachingVideo/service/impl/TeachingVideoInfoServiceImpl.java

@@ -297,6 +297,7 @@ public class TeachingVideoInfoServiceImpl extends ServiceImpl<TeachingVideoInfoM
             req.setCoverData(UpFile);
 
             ModifyMediaInfoResponse resp = vodClient.ModifyMediaInfo(req);
+
             JSONObject jsonObject = JSONObject.parseObject(DescribeMediaInfosResponse.toJsonString(resp));
             String coverUrl = (String) jsonObject.get("CoverUrl");//封面访问路径
 

+ 7 - 7
zzjs-service/src/main/resources/mapper/teachingDsp/TeachingDspInfoMapper.xml

@@ -48,13 +48,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         LEFT JOIN file_info f1 on f1.file_id = vi.file_id
         LEFT JOIN file_info f2 on f2.file_id = vi.cover_file_id
         <where>
-            <if test="fileId != null "> and file_id = #{fileId}</if>
-            <if test="coverFileId != null "> and cover_file_id = #{coverFileId}</if>
-            <if test="title != null  and title != ''"> and title like concat('%', #{title}, '%')</if>
-            <if test="videoDescribe != null  and videoDescribe != ''"> and video_describe like concat('%', #{videoDescribe}, '%')</if>
-            <if test="videoDuration != null  and videoDuration != ''"> and video_duration = #{videoDuration}</if>
-            <if test="shelfStatus != null "> and shelf_status = #{shelfStatus}</if>
-            <if test="status != null  and status != ''"> and status = #{status}</if>
+            <if test="fileId != null "> and vi.file_id = #{fileId}</if>
+            <if test="coverFileId != null "> and vi.cover_file_id = #{coverFileId}</if>
+            <if test="title != null  and title != ''"> and vi.title like concat('%', #{title}, '%')</if>
+            <if test="videoDescribe != null  and videoDescribe != ''"> and vi.video_describe like concat('%', #{videoDescribe}, '%')</if>
+            <if test="videoDuration != null  and videoDuration != ''"> and vi.video_duration = #{videoDuration}</if>
+            <if test="shelfStatus != null "> and vi.shelf_status = #{shelfStatus}</if>
+            <if test="status != null  and status != ''"> and vi.status = #{status}</if>
         </where>
         order by sort
     </select>

+ 8 - 8
zzjs-service/src/main/resources/mapper/teachingVideo/TeachingVideoInfoMapper.xml

@@ -50,14 +50,14 @@
         LEFT JOIN file_info f2 on f2.file_id = vi.cover_file_id
         LEFT JOIN teaching_video_type_info ti on ti.id = vi.teaching_video_type_id
         <where>
-            <if test="fileId != null "> and file_id = #{fileId}</if>
-            <if test="coverFileId != null "> and cover_file_id = #{coverFileId}</if>
-            <if test="title != null  and title != ''"> and title like concat('%', #{title}, '%')</if>
-            <if test="videoDescribe != null  and videoDescribe != ''"> and video_describe like concat('%', #{videoDescribe}, '%')</if>
-            <if test="videoDuration != null  and videoDuration != ''"> and video_duration = #{videoDuration}</if>
-            <if test="teachingVideoTypeId != null "> and teaching_video_type_id = #{teachingVideoTypeId}</if>
-            <if test="shelfStatus != null "> and shelf_status = #{shelfStatus}</if>
-            <if test="status != null  and status != ''"> and status = #{status}</if>
+            <if test="fileId != null "> and vi.file_id = #{fileId}</if>
+            <if test="coverFileId != null "> and vi.cover_file_id = #{coverFileId}</if>
+            <if test="title != null  and title != ''"> and vi.title like concat('%', #{title}, '%')</if>
+            <if test="videoDescribe != null  and videoDescribe != ''"> and vi.video_describe like concat('%', #{videoDescribe}, '%')</if>
+            <if test="videoDuration != null  and videoDuration != ''"> and vi.video_duration = #{videoDuration}</if>
+            <if test="teachingVideoTypeId != null "> and vi.teaching_video_type_id = #{teachingVideoTypeId}</if>
+            <if test="shelfStatus != null "> and vi.shelf_status = #{shelfStatus}</if>
+            <if test="status != null  and status != ''"> and vi.status = #{status}</if>
         </where>
         order by vi.sort asc
     </select>