Ver código fonte

修改字段

xueyiming 1 mês atrás
pai
commit
2e2c90a8be

+ 6 - 6
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/longarticle/MatchVideo.java

@@ -15,7 +15,7 @@ public class MatchVideo {
 
 
     private String accountName;
     private String accountName;
 
 
-    private String contentTraceId;
+    private String videoPoolTraceId;
 
 
     private Integer contentStatus;
     private Integer contentStatus;
 
 
@@ -81,12 +81,12 @@ public class MatchVideo {
         this.accountName = accountName;
         this.accountName = accountName;
     }
     }
 
 
-    public String getContentTraceId() {
-        return contentTraceId;
+    public String getVideoPoolTraceId() {
+        return videoPoolTraceId;
     }
     }
 
 
-    public void setContentTraceId(String contentTraceId) {
-        this.contentTraceId = contentTraceId;
+    public void setVideoPoolTraceId(String videoPoolTraceId) {
+        this.videoPoolTraceId = videoPoolTraceId;
     }
     }
 
 
     public Integer getContentStatus() {
     public Integer getContentStatus() {
@@ -165,7 +165,7 @@ public class MatchVideo {
         sb.append(", flowPoolLevel=").append(flowPoolLevel);
         sb.append(", flowPoolLevel=").append(flowPoolLevel);
         sb.append(", ghId=").append(ghId);
         sb.append(", ghId=").append(ghId);
         sb.append(", accountName=").append(accountName);
         sb.append(", accountName=").append(accountName);
-        sb.append(", contentTraceId=").append(contentTraceId);
+        sb.append(", videoPoolTraceId=").append(videoPoolTraceId);
         sb.append(", contentStatus=").append(contentStatus);
         sb.append(", contentStatus=").append(contentStatus);
         sb.append(", contentStatusUpdateTime=").append(contentStatusUpdateTime);
         sb.append(", contentStatusUpdateTime=").append(contentStatusUpdateTime);
         sb.append(", successStatus=").append(successStatus);
         sb.append(", successStatus=").append(successStatus);

+ 28 - 28
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/longarticle/MatchVideoExample.java

@@ -526,73 +526,73 @@ public class MatchVideoExample {
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdIsNull() {
-            addCriterion("content_trace_id is null");
+        public Criteria andVideoPoolTraceIdIsNull() {
+            addCriterion("video_pool_trace_id is null");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdIsNotNull() {
-            addCriterion("content_trace_id is not null");
+        public Criteria andVideoPoolTraceIdIsNotNull() {
+            addCriterion("video_pool_trace_id is not null");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdEqualTo(String value) {
-            addCriterion("content_trace_id =", value, "contentTraceId");
+        public Criteria andVideoPoolTraceIdEqualTo(String value) {
+            addCriterion("video_pool_trace_id =", value, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdNotEqualTo(String value) {
-            addCriterion("content_trace_id <>", value, "contentTraceId");
+        public Criteria andVideoPoolTraceIdNotEqualTo(String value) {
+            addCriterion("video_pool_trace_id <>", value, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdGreaterThan(String value) {
-            addCriterion("content_trace_id >", value, "contentTraceId");
+        public Criteria andVideoPoolTraceIdGreaterThan(String value) {
+            addCriterion("video_pool_trace_id >", value, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdGreaterThanOrEqualTo(String value) {
-            addCriterion("content_trace_id >=", value, "contentTraceId");
+        public Criteria andVideoPoolTraceIdGreaterThanOrEqualTo(String value) {
+            addCriterion("video_pool_trace_id >=", value, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdLessThan(String value) {
-            addCriterion("content_trace_id <", value, "contentTraceId");
+        public Criteria andVideoPoolTraceIdLessThan(String value) {
+            addCriterion("video_pool_trace_id <", value, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdLessThanOrEqualTo(String value) {
-            addCriterion("content_trace_id <=", value, "contentTraceId");
+        public Criteria andVideoPoolTraceIdLessThanOrEqualTo(String value) {
+            addCriterion("video_pool_trace_id <=", value, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdLike(String value) {
-            addCriterion("content_trace_id like", value, "contentTraceId");
+        public Criteria andVideoPoolTraceIdLike(String value) {
+            addCriterion("video_pool_trace_id like", value, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdNotLike(String value) {
-            addCriterion("content_trace_id not like", value, "contentTraceId");
+        public Criteria andVideoPoolTraceIdNotLike(String value) {
+            addCriterion("video_pool_trace_id not like", value, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdIn(List<String> values) {
-            addCriterion("content_trace_id in", values, "contentTraceId");
+        public Criteria andVideoPoolTraceIdIn(List<String> values) {
+            addCriterion("video_pool_trace_id in", values, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdNotIn(List<String> values) {
-            addCriterion("content_trace_id not in", values, "contentTraceId");
+        public Criteria andVideoPoolTraceIdNotIn(List<String> values) {
+            addCriterion("video_pool_trace_id not in", values, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdBetween(String value1, String value2) {
-            addCriterion("content_trace_id between", value1, value2, "contentTraceId");
+        public Criteria andVideoPoolTraceIdBetween(String value1, String value2) {
+            addCriterion("video_pool_trace_id between", value1, value2, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 
-        public Criteria andContentTraceIdNotBetween(String value1, String value2) {
-            addCriterion("content_trace_id not between", value1, value2, "contentTraceId");
+        public Criteria andVideoPoolTraceIdNotBetween(String value1, String value2) {
+            addCriterion("video_pool_trace_id not between", value1, value2, "videoPoolTraceId");
             return (Criteria) this;
             return (Criteria) this;
         }
         }
 
 

+ 3 - 3
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/MatchVideoServiceImpl.java

@@ -232,13 +232,13 @@ public class MatchVideoServiceImpl {
     public void addCrawlerVideo(MatchVideo matchVideo) {
     public void addCrawlerVideo(MatchVideo matchVideo) {
         //数据准备
         //数据准备
         SingleVideoSourceExample example = new SingleVideoSourceExample();
         SingleVideoSourceExample example = new SingleVideoSourceExample();
-        example.createCriteria().andContentTraceIdEqualTo(matchVideo.getContentTraceId());
+        example.createCriteria().andContentTraceIdEqualTo(matchVideo.getVideoPoolTraceId());
         List<SingleVideoSource> singleVideoSources = singleVideoSourceMapper.selectByExample(example);
         List<SingleVideoSource> singleVideoSources = singleVideoSourceMapper.selectByExample(example);
         if (CollectionUtils.isEmpty(singleVideoSources)) {
         if (CollectionUtils.isEmpty(singleVideoSources)) {
             return;
             return;
         }
         }
         VideoContentUnderstandingExample videoContentUnderstandingExample = new VideoContentUnderstandingExample();
         VideoContentUnderstandingExample videoContentUnderstandingExample = new VideoContentUnderstandingExample();
-        videoContentUnderstandingExample.createCriteria().andContentTraceIdEqualTo(matchVideo.getContentTraceId());
+        videoContentUnderstandingExample.createCriteria().andContentTraceIdEqualTo(matchVideo.getVideoPoolTraceId());
         List<VideoContentUnderstanding> videoContentUnderstandings = videoContentUnderstandingMapper.selectByExample(videoContentUnderstandingExample);
         List<VideoContentUnderstanding> videoContentUnderstandings = videoContentUnderstandingMapper.selectByExample(videoContentUnderstandingExample);
         if (CollectionUtils.isEmpty(videoContentUnderstandings)) {
         if (CollectionUtils.isEmpty(videoContentUnderstandings)) {
             return;
             return;
@@ -290,7 +290,7 @@ public class MatchVideoServiceImpl {
             return;
             return;
         }
         }
 
 
-        if (StringUtils.isNotEmpty(matchVideo.getContentTraceId())) {
+        if (StringUtils.isNotEmpty(matchVideo.getVideoPoolTraceId())) {
             addCrawlerVideo(matchVideo);
             addCrawlerVideo(matchVideo);
             return;
             return;
         }
         }

+ 16 - 16
long-article-server/src/main/resources/mapper/longarticle/MatchVideoMapper.xml

@@ -8,7 +8,7 @@
     <result column="flow_pool_level" jdbcType="VARCHAR" property="flowPoolLevel" />
     <result column="flow_pool_level" jdbcType="VARCHAR" property="flowPoolLevel" />
     <result column="gh_id" jdbcType="VARCHAR" property="ghId" />
     <result column="gh_id" jdbcType="VARCHAR" property="ghId" />
     <result column="account_name" jdbcType="VARCHAR" property="accountName" />
     <result column="account_name" jdbcType="VARCHAR" property="accountName" />
-    <result column="content_trace_id" jdbcType="VARCHAR" property="contentTraceId" />
+    <result column="video_pool_trace_id" jdbcType="VARCHAR" property="videoPoolTraceId" />
     <result column="content_status" jdbcType="INTEGER" property="contentStatus" />
     <result column="content_status" jdbcType="INTEGER" property="contentStatus" />
     <result column="content_status_update_time" jdbcType="INTEGER" property="contentStatusUpdateTime" />
     <result column="content_status_update_time" jdbcType="INTEGER" property="contentStatusUpdateTime" />
     <result column="success_status" jdbcType="INTEGER" property="successStatus" />
     <result column="success_status" jdbcType="INTEGER" property="successStatus" />
@@ -79,7 +79,7 @@
     </where>
     </where>
   </sql>
   </sql>
   <sql id="Base_Column_List">
   <sql id="Base_Column_List">
-    id, trace_id, content_id, flow_pool_level, gh_id, account_name, content_trace_id, 
+    id, trace_id, content_id, flow_pool_level, gh_id, account_name, video_pool_trace_id, 
     content_status, content_status_update_time, success_status, request_timestamp, update_time, 
     content_status, content_status_update_time, success_status, request_timestamp, update_time, 
     process_times, publish_flag
     process_times, publish_flag
   </sql>
   </sql>
@@ -143,13 +143,13 @@
   <insert id="insert" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.MatchVideo">
   <insert id="insert" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.MatchVideo">
     insert into long_articles_match_videos (id, trace_id, content_id, 
     insert into long_articles_match_videos (id, trace_id, content_id, 
       flow_pool_level, gh_id, account_name, 
       flow_pool_level, gh_id, account_name, 
-      content_trace_id, content_status, content_status_update_time, 
+      video_pool_trace_id, content_status, content_status_update_time, 
       success_status, request_timestamp, update_time, 
       success_status, request_timestamp, update_time, 
       process_times, publish_flag, response
       process_times, publish_flag, response
       )
       )
     values (#{id,jdbcType=INTEGER}, #{traceId,jdbcType=VARCHAR}, #{contentId,jdbcType=VARCHAR}, 
     values (#{id,jdbcType=INTEGER}, #{traceId,jdbcType=VARCHAR}, #{contentId,jdbcType=VARCHAR}, 
       #{flowPoolLevel,jdbcType=VARCHAR}, #{ghId,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, 
       #{flowPoolLevel,jdbcType=VARCHAR}, #{ghId,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, 
-      #{contentTraceId,jdbcType=VARCHAR}, #{contentStatus,jdbcType=INTEGER}, #{contentStatusUpdateTime,jdbcType=INTEGER}, 
+      #{videoPoolTraceId,jdbcType=VARCHAR}, #{contentStatus,jdbcType=INTEGER}, #{contentStatusUpdateTime,jdbcType=INTEGER}, 
       #{successStatus,jdbcType=INTEGER}, #{requestTimestamp,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
       #{successStatus,jdbcType=INTEGER}, #{requestTimestamp,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
       #{processTimes,jdbcType=INTEGER}, #{publishFlag,jdbcType=INTEGER}, #{response,jdbcType=LONGVARCHAR}
       #{processTimes,jdbcType=INTEGER}, #{publishFlag,jdbcType=INTEGER}, #{response,jdbcType=LONGVARCHAR}
       )
       )
@@ -175,8 +175,8 @@
       <if test="accountName != null">
       <if test="accountName != null">
         account_name,
         account_name,
       </if>
       </if>
-      <if test="contentTraceId != null">
-        content_trace_id,
+      <if test="videoPoolTraceId != null">
+        video_pool_trace_id,
       </if>
       </if>
       <if test="contentStatus != null">
       <if test="contentStatus != null">
         content_status,
         content_status,
@@ -222,8 +222,8 @@
       <if test="accountName != null">
       <if test="accountName != null">
         #{accountName,jdbcType=VARCHAR},
         #{accountName,jdbcType=VARCHAR},
       </if>
       </if>
-      <if test="contentTraceId != null">
-        #{contentTraceId,jdbcType=VARCHAR},
+      <if test="videoPoolTraceId != null">
+        #{videoPoolTraceId,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="contentStatus != null">
       <if test="contentStatus != null">
         #{contentStatus,jdbcType=INTEGER},
         #{contentStatus,jdbcType=INTEGER},
@@ -278,8 +278,8 @@
       <if test="record.accountName != null">
       <if test="record.accountName != null">
         account_name = #{record.accountName,jdbcType=VARCHAR},
         account_name = #{record.accountName,jdbcType=VARCHAR},
       </if>
       </if>
-      <if test="record.contentTraceId != null">
-        content_trace_id = #{record.contentTraceId,jdbcType=VARCHAR},
+      <if test="record.videoPoolTraceId != null">
+        video_pool_trace_id = #{record.videoPoolTraceId,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="record.contentStatus != null">
       <if test="record.contentStatus != null">
         content_status = #{record.contentStatus,jdbcType=INTEGER},
         content_status = #{record.contentStatus,jdbcType=INTEGER},
@@ -318,7 +318,7 @@
       flow_pool_level = #{record.flowPoolLevel,jdbcType=VARCHAR},
       flow_pool_level = #{record.flowPoolLevel,jdbcType=VARCHAR},
       gh_id = #{record.ghId,jdbcType=VARCHAR},
       gh_id = #{record.ghId,jdbcType=VARCHAR},
       account_name = #{record.accountName,jdbcType=VARCHAR},
       account_name = #{record.accountName,jdbcType=VARCHAR},
-      content_trace_id = #{record.contentTraceId,jdbcType=VARCHAR},
+      video_pool_trace_id = #{record.videoPoolTraceId,jdbcType=VARCHAR},
       content_status = #{record.contentStatus,jdbcType=INTEGER},
       content_status = #{record.contentStatus,jdbcType=INTEGER},
       content_status_update_time = #{record.contentStatusUpdateTime,jdbcType=INTEGER},
       content_status_update_time = #{record.contentStatusUpdateTime,jdbcType=INTEGER},
       success_status = #{record.successStatus,jdbcType=INTEGER},
       success_status = #{record.successStatus,jdbcType=INTEGER},
@@ -339,7 +339,7 @@
       flow_pool_level = #{record.flowPoolLevel,jdbcType=VARCHAR},
       flow_pool_level = #{record.flowPoolLevel,jdbcType=VARCHAR},
       gh_id = #{record.ghId,jdbcType=VARCHAR},
       gh_id = #{record.ghId,jdbcType=VARCHAR},
       account_name = #{record.accountName,jdbcType=VARCHAR},
       account_name = #{record.accountName,jdbcType=VARCHAR},
-      content_trace_id = #{record.contentTraceId,jdbcType=VARCHAR},
+      video_pool_trace_id = #{record.videoPoolTraceId,jdbcType=VARCHAR},
       content_status = #{record.contentStatus,jdbcType=INTEGER},
       content_status = #{record.contentStatus,jdbcType=INTEGER},
       content_status_update_time = #{record.contentStatusUpdateTime,jdbcType=INTEGER},
       content_status_update_time = #{record.contentStatusUpdateTime,jdbcType=INTEGER},
       success_status = #{record.successStatus,jdbcType=INTEGER},
       success_status = #{record.successStatus,jdbcType=INTEGER},
@@ -369,8 +369,8 @@
       <if test="accountName != null">
       <if test="accountName != null">
         account_name = #{accountName,jdbcType=VARCHAR},
         account_name = #{accountName,jdbcType=VARCHAR},
       </if>
       </if>
-      <if test="contentTraceId != null">
-        content_trace_id = #{contentTraceId,jdbcType=VARCHAR},
+      <if test="videoPoolTraceId != null">
+        video_pool_trace_id = #{videoPoolTraceId,jdbcType=VARCHAR},
       </if>
       </if>
       <if test="contentStatus != null">
       <if test="contentStatus != null">
         content_status = #{contentStatus,jdbcType=INTEGER},
         content_status = #{contentStatus,jdbcType=INTEGER},
@@ -406,7 +406,7 @@
       flow_pool_level = #{flowPoolLevel,jdbcType=VARCHAR},
       flow_pool_level = #{flowPoolLevel,jdbcType=VARCHAR},
       gh_id = #{ghId,jdbcType=VARCHAR},
       gh_id = #{ghId,jdbcType=VARCHAR},
       account_name = #{accountName,jdbcType=VARCHAR},
       account_name = #{accountName,jdbcType=VARCHAR},
-      content_trace_id = #{contentTraceId,jdbcType=VARCHAR},
+      video_pool_trace_id = #{videoPoolTraceId,jdbcType=VARCHAR},
       content_status = #{contentStatus,jdbcType=INTEGER},
       content_status = #{contentStatus,jdbcType=INTEGER},
       content_status_update_time = #{contentStatusUpdateTime,jdbcType=INTEGER},
       content_status_update_time = #{contentStatusUpdateTime,jdbcType=INTEGER},
       success_status = #{successStatus,jdbcType=INTEGER},
       success_status = #{successStatus,jdbcType=INTEGER},
@@ -424,7 +424,7 @@
       flow_pool_level = #{flowPoolLevel,jdbcType=VARCHAR},
       flow_pool_level = #{flowPoolLevel,jdbcType=VARCHAR},
       gh_id = #{ghId,jdbcType=VARCHAR},
       gh_id = #{ghId,jdbcType=VARCHAR},
       account_name = #{accountName,jdbcType=VARCHAR},
       account_name = #{accountName,jdbcType=VARCHAR},
-      content_trace_id = #{contentTraceId,jdbcType=VARCHAR},
+      video_pool_trace_id = #{videoPoolTraceId,jdbcType=VARCHAR},
       content_status = #{contentStatus,jdbcType=INTEGER},
       content_status = #{contentStatus,jdbcType=INTEGER},
       content_status_update_time = #{contentStatusUpdateTime,jdbcType=INTEGER},
       content_status_update_time = #{contentStatusUpdateTime,jdbcType=INTEGER},
       success_status = #{successStatus,jdbcType=INTEGER},
       success_status = #{successStatus,jdbcType=INTEGER},

+ 2 - 2
long-article-server/src/main/resources/mybatis-generator-config.xml

@@ -49,8 +49,8 @@
                              targetProject="/Users/shimeng/Desktop/project/long-article-manage/long-article-server/src/main/java">
                              targetProject="/Users/shimeng/Desktop/project/long-article-manage/long-article-server/src/main/java">
             <property name="enableSubPackages" value="true"/>
             <property name="enableSubPackages" value="true"/>
         </javaClientGenerator>
         </javaClientGenerator>
-        <table tableName="video_content_understanding" domainObjectName="VideoContentUnderstanding" alias="" />
-<!--        <table tableName="long_articles_match_videos" domainObjectName="MatchVideo" alias="" />-->
+<!--        <table tableName="video_content_understanding" domainObjectName="VideoContentUnderstanding" alias="" />-->
+        <table tableName="long_articles_match_videos" domainObjectName="MatchVideo" alias="" />
 <!--            <columnOverride column="response" javaType="java.lang.String" jdbcType="LONGVARCHAR" />-->
 <!--            <columnOverride column="response" javaType="java.lang.String" jdbcType="LONGVARCHAR" />-->
 <!--        </table>-->
 <!--        </table>-->
 <!--        <table tableName="long_articles_text" domainObjectName="LongArticlesText" alias="">-->
 <!--        <table tableName="long_articles_text" domainObjectName="LongArticlesText" alias="">-->