ソースを参照

抓获取一点通 语音和图片

小么熊🐻 1 年間 前
コミット
822a1e92ba

+ 11 - 0
zzjs-admin/src/test/java/com/miaxis/test/YdtTest.java

@@ -475,6 +475,11 @@ public class YdtTest {
                 String qbAnalyse = skillEntity.getString("qbAnalyse");
                 String qbReadAnalyse = skillEntity.getString("qbReadAnalyse");
                 String qbSkillAudioLink = skillEntity.getString("qbSkillAudioLink");
+                String shortVideoImage = skillEntity.getString("shortVideoImage");
+                String shortVideoUrl = skillEntity.getString("shortVideoUrl");
+                String ydtVideoPic = skillEntity.getString("ydtVideoPic");
+                String ydtVideo = skillEntity.getString("ydtVideo");
+
 
                 JSONObject specialInfo = result.getJSONObject("specialInfo");
                 String firTitle = specialInfo.getString("firTitle");
@@ -489,6 +494,12 @@ public class YdtTest {
                 webNoteJs.setQbSkillAudioLink(qbSkillAudioLink);
                 webNoteJs.setFirTilte(firTitle);
                 webNoteJs.setSecTitle(secTitle);
+                webNoteJs.setShortVideoImage(shortVideoImage);
+                webNoteJs.setShortVideoUrl(shortVideoUrl);
+                webNoteJs.setYdtVideoPic(ydtVideoPic);
+                webNoteJs.setYdtVideo(ydtVideo);
+
+
                 webNoteJs.setWord(word);
 
                 return webNoteJs;

+ 59 - 79
zzjs-service/src/main/java/com/miaxis/question/domain/WebNoteJs.java

@@ -1,16 +1,13 @@
 package com.miaxis.question.domain;
 
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-import com.miaxis.common.annotation.Excel;
-import com.miaxis.common.core.domain.BaseEntity;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
 import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.miaxis.common.annotation.Excel;
 import com.miaxis.common.core.domain.BaseBusinessEntity;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 /**
  * 题目技巧解释对象 web_note_js
@@ -21,112 +18,95 @@ import lombok.Data;
 @Data
 @TableName("web_note_js")
 @ApiModel(value = "WebNoteJs", description = "题目技巧解释对象 web_note_js")
-public class WebNoteJs extends BaseBusinessEntity{
+public class WebNoteJs extends BaseBusinessEntity {
     private static final long serialVersionUID = 1L;
 
-    /**  题目ID */
-    @TableId(value = "id",type = IdType.INPUT)
+    /**
+     * 题目ID
+     */
+    @TableId(value = "id", type = IdType.INPUT)
     @ApiModelProperty(value = " 题目ID")
     private Long id;
 
-    /** 技巧带关键字用【】 */
+    /**
+     * 技巧带关键字用【】
+     */
     @Excel(name = "技巧带关键字用【】")
     @TableField("qb_analyse")
     @ApiModelProperty(value = "技巧带关键字用【】")
     private String qbAnalyse;
 
-    /** 技巧不带关键字 */
+    /**
+     * 技巧不带关键字
+     */
     @Excel(name = "技巧不带关键字")
     @TableField("qb_read_analyse")
     @ApiModelProperty(value = "技巧不带关键字")
     private String qbReadAnalyse;
 
-    /** 技巧你语音链接 */
+    /**
+     * 技巧你语音链接
+     */
     @Excel(name = "技巧你语音链接")
     @TableField("qb_skill_audio_link")
     @ApiModelProperty(value = "技巧你语音链接")
     private String qbSkillAudioLink;
 
-    /** 总结主标题 */
+    /**
+     * 总结主标题
+     */
     @Excel(name = "总结主标题")
     @TableField("fir_tilte")
     @ApiModelProperty(value = "总结主标题")
     private String firTilte;
 
-    /** 总结子村题 */
+    /**
+     * 总结子村题
+     */
     @Excel(name = "总结子村题")
     @TableField("sec_title")
     @ApiModelProperty(value = "总结子村题")
     private String secTitle;
 
-    /** 总结内容每一点用“;”隔开 */
+    /**
+     * 总结内容每一点用“;”隔开
+     */
     @Excel(name = "总结内容每一点用“;”隔开")
     @TableField("word")
     @ApiModelProperty(value = "总结内容每一点用“;”隔开")
     private String word;
 
-    public void setId(Long id){
-        this.id = id;
-    }
-
-    public Long getId(){
-        return id;
-    }
-    public void setQbAnalyse(String qbAnalyse){
-        this.qbAnalyse = qbAnalyse;
-    }
-
-    public String getQbAnalyse(){
-        return qbAnalyse;
-    }
-    public void setQbReadAnalyse(String qbReadAnalyse){
-        this.qbReadAnalyse = qbReadAnalyse;
-    }
-
-    public String getQbReadAnalyse(){
-        return qbReadAnalyse;
-    }
-    public void setQbSkillAudioLink(String qbSkillAudioLink){
-        this.qbSkillAudioLink = qbSkillAudioLink;
-    }
-
-    public String getQbSkillAudioLink(){
-        return qbSkillAudioLink;
-    }
-    public void setFirTilte(String firTilte){
-        this.firTilte = firTilte;
-    }
-
-    public String getFirTilte(){
-        return firTilte;
-    }
-    public void setSecTitle(String secTitle){
-        this.secTitle = secTitle;
-    }
-
-    public String getSecTitle(){
-        return secTitle;
-    }
-    public void setWord(String word){
-        this.word = word;
-    }
+    /**
+     * 短视频URL
+     */
+    @Excel(name = "短视频URL")
+    @TableField("short_video_url")
+    @ApiModelProperty(value = "短视频URL")
+    private String shortVideoUrl;
+
+    /**
+     * 短视频封面
+     */
+    @Excel(name = "短视频封面")
+    @TableField("short_video_image")
+    @ApiModelProperty(value = "短视频封面")
+    private String shortVideoImage;
+
+    /**
+     * 视频URL
+     */
+    @Excel(name = "视频URL")
+    @TableField("ydt_video")
+    @ApiModelProperty(value = "视频URL")
+    private String ydtVideo;
+
+    /**
+     * 视频封面
+     */
+    @Excel(name = "视频封面")
+    @TableField("ydt_video_pic")
+    @ApiModelProperty(value = "视频封面")
+    private String ydtVideoPic;
 
-    public String getWord(){
-        return word;
-    }
 
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("qbAnalyse", getQbAnalyse())
-            .append("qbReadAnalyse", getQbReadAnalyse())
-            .append("qbSkillAudioLink", getQbSkillAudioLink())
-            .append("firTilte", getFirTilte())
-            .append("secTitle", getSecTitle())
-            .append("word", getWord())
-            .append("createTime", getCreateTime())
-            .append("updateTime", getUpdateTime())
-            .toString();
-    }
 }

+ 8 - 0
zzjs-service/src/main/resources/mapper/question/WebNoteJsMapper.xml

@@ -12,6 +12,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="firTilte"    column="fir_tilte"    />
         <result property="secTitle"    column="sec_title"    />
         <result property="word"    column="word"    />
+        <result property="shortVideoUrl"    column="short_video_url"    />
+        <result property="shortVideoImage"    column="short_video_image"    />
+        <result property="ydtVideo"    column="ydt_video"    />
+        <result property="ydtVideoPic"    column="ydt_video_pic"    />
         <result property="createTime"    column="create_time"    />
         <result property="updateTime"    column="update_time"    />
     </resultMap>
@@ -29,6 +33,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="firTilte != null  and firTilte != ''"> and fir_tilte = #{firTilte}</if>
             <if test="secTitle != null  and secTitle != ''"> and sec_title = #{secTitle}</if>
             <if test="word != null  and word != ''"> and word = #{word}</if>
+            <if test="shortVideoUrl != null  and shortVideoUrl != ''"> and short_video_url = #{shortVideoUrl}</if>
+            <if test="shortVideoImage != null  and shortVideoImage != ''"> and short_video_image = #{shortVideoImage}</if>
+            <if test="ydtVideo != null  and ydtVideo != ''"> and ydt_video = #{ydtVideo}</if>
+            <if test="ydtVideoPic != null  and ydtVideoPic != ''"> and ydt_video_pic = #{ydtVideoPic}</if>
         </where>
     </select>