Browse Source

Merge branch 'dev_1_2_20220802'

liweifan 3 years ago
parent
commit
001297826b

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/dto/search/VideoLessonGroupSearch.java

@@ -11,7 +11,7 @@ import io.swagger.annotations.ApiModelProperty;
  */
 @ApiModel(value = "VideoLessonGroupSearch", description = "视频课组列表查询")
 public class VideoLessonGroupSearch extends QueryInfo {
-    @ApiModelProperty(value = "是否上架 (0:否  1:是)",hidden = true)
+    @ApiModelProperty(value = "是否上架 (0:否  1:是)")
     private Integer shelvesFlag;
 
     @ApiModelProperty(value = "审核状态(DOING:审核中 PASS:已上架 UNPASS:审核失败 UNSHELVES: 下架)")

+ 3 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/LiveRoomServiceImpl.java

@@ -274,6 +274,9 @@ public class LiveRoomServiceImpl extends ServiceImpl<LiveRoomDao, LiveRoom> impl
         String roomTitle = WrapperUtil.toStr(param, "roomTitle", "房间标题不能为空!");
         String liveRemark = WrapperUtil.toStr(param, "liveRemark", "直播间描述不能为空!");
         Integer liveTime = WrapperUtil.toInt(param, "liveTime", "请选择直播时长!");
+        if (roomTitle.length() > 12) {
+            throw new BizException("房间标题不能超出12个字");
+        }
         Date liveStartTime = new Date();
         Date liveEndTime = DateUtil.addMinutes(liveStartTime, liveTime);
         //当前时间有课程则不能开启直播

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetServiceImpl.java

@@ -446,7 +446,7 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
         }
 
         // 删除曲目专辑关联
-        delAlbumSheetRef(musicSheetDto.getId(), musicSheetDto.getMusicSubject());
+        // delAlbumSheetRef(musicSheetDto.getId(), musicSheetDto.getMusicSubject());
 
         List<MusicSheetAccompaniment> list;
         if (!AudioTypeEnum.MIDI.getCode().equals(musicSheetDto.getAudioType().getCode())) {

+ 1 - 11
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/vo/VideoLessonGroupUpVo.java

@@ -8,6 +8,7 @@ import io.swagger.annotations.ApiModelProperty;
 
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
+import java.util.Date;
 
 /**
  * @author: cy
@@ -48,10 +49,6 @@ public class VideoLessonGroupUpVo extends BaseEntity {
     @ApiModelProperty(value = "是否热门课程")
     private Integer hotFlag;
 
-    @ApiModelProperty(value = "是否上架 (0:否  1:是)")
-    @ListValue(vals = {0, 1}, message = "是否上架必须提交指定值")
-    private Integer shelvesFlag;
-
     @ApiModelProperty(value = "审核状态(0:待审核;1:通过;2:未通过)")
     @ListValue(vals = {0, 1, 2}, message = "审核状态必须提交指定值")
     private Integer auditStatus;
@@ -144,11 +141,4 @@ public class VideoLessonGroupUpVo extends BaseEntity {
         this.auditStatus = auditStatus;
     }
 
-    public Integer getShelvesFlag() {
-        return shelvesFlag;
-    }
-
-    public void setShelvesFlag(Integer shelvesFlag) {
-        this.shelvesFlag = shelvesFlag;
-    }
 }

+ 0 - 4
cooleshow-user/user-biz/src/main/resources/config/mybatis/VideoLessonGroupMapper.xml

@@ -83,10 +83,6 @@
 			<if test="lessonTag !=null and lessonTag !=''">lesson_tag_ = #{lessonTag},</if>
 			<if test="topFlag !=null">top_flag_ = #{topFlag},</if>
 			<if test="hotFlag !=null">hot_flag_ = #{hotFlag},</if>
-			<if test="shelvesFlag !=null">shelves_flag_ = #{shelvesFlag},</if>
-			<if test="shelvesTime !=null">shelves_time_ = #{shelvesTime},</if>
-			<if test="shelvesReason !=null and shelvesReason !=''">shelves_reason_ = #{shelvesReason},</if>
-			<if test="shelvesId !=null">shelves_id_ = #{shelvesId},</if>
 			<if test="auditStatus !=null">audit_status_ = #{auditStatus},</if>
 			update_time_ = SYSDATE(),
 			lesson_count_ = (SELECT COUNT(1) FROM video_lesson_group_detail WHERE video_lesson_group_id_ = #{id})

+ 1 - 0
cooleshow-user/user-teacher/src/main/java/com/yonge/cooleshow/teacher/controller/VideoLessonGroupController.java

@@ -66,6 +66,7 @@ public class VideoLessonGroupController extends BaseController {
         }
         if(!StringUtil.isNullOrEmpty(query.getAuditStatus())){
             if(query.getAuditStatus().equals("UNSHELVES")){
+                query.setAuditStatus(null);
                 query.setShelvesFlag(0);
             }else{
                 query.setShelvesFlag(1);