Jelajahi Sumber

视频横竖屏状态添加

小么熊🐻 2 tahun lalu
induk
melakukan
aa7d53fe38

+ 5 - 50
nbjk-service/src/main/java/com/miaxis/video/domain/VideoTeaching.java

@@ -59,60 +59,15 @@ public class VideoTeaching extends BaseBusinessEntity{
     @ApiModelProperty(value = "0未开启 1已开启")
     private Long state;
 
-    public void setId(Long id){
-        this.id = id;
-    }
 
-    public Long getId(){
-        return id;
-    }
-    public void setVideoName(String videoName){
-        this.videoName = videoName;
-    }
+    /** 0竖屏 1横屏*/
+    @Excel(name = "0竖屏 1横屏")
+    @TableField("horizontal")
+    @ApiModelProperty(value = "竖屏 1横屏")
+    private Integer horizontal;
 
-    public String getVideoName(){
-        return videoName;
-    }
-    public void setVideoCover(String videoCover){
-        this.videoCover = videoCover;
-    }
 
-    public String getVideoCover(){
-        return videoCover;
-    }
-    public void setVideoUrl(String videoUrl){
-        this.videoUrl = videoUrl;
-    }
 
-    public String getVideoUrl(){
-        return videoUrl;
-    }
-    public void setVideoSubject(Long videoSubject){
-        this.videoSubject = videoSubject;
-    }
 
-    public Long getVideoSubject(){
-        return videoSubject;
-    }
-    public void setState(Long state){
-        this.state = state;
-    }
 
-    public Long getState(){
-        return state;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("videoName", getVideoName())
-            .append("videoCover", getVideoCover())
-            .append("videoUrl", getVideoUrl())
-            .append("videoSubject", getVideoSubject())
-            .append("state", getState())
-            .append("createTime", getCreateTime())
-            .append("updateTime", getUpdateTime())
-            .toString();
-    }
 }

+ 2 - 0
nbjk-service/src/main/resources/mapper/video/VideoTeachingMapper.xml

@@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="videoUrl"    column="video_url"    />
         <result property="videoSubject"    column="video_subject"    />
         <result property="state"    column="state"    />
+        <result property="horizontal"    column="horizontal"    />
         <result property="createTime"    column="create_time"    />
         <result property="updateTime"    column="update_time"    />
     </resultMap>
@@ -27,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="videoUrl != null  and videoUrl != ''"> and video_url = #{videoUrl}</if>
             <if test="videoSubject != null "> and video_subject = #{videoSubject}</if>
             <if test="state != null "> and state = #{state}</if>
+            <if test="horizontal != null "> and state = #{horizontal}</if>
         </where>
     </select>