supeng 2 bulan lalu
induk
melakukan
2e6778a8b6

+ 96 - 0
content-understanding-core/src/main/java/com/tzld/piaoquan/content/understanding/dao/mapper/CuVideoUnderstandingResultMapper.java

@@ -0,0 +1,96 @@
+package com.tzld.piaoquan.content.understanding.dao.mapper;
+
+import com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResult;
+import com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResultExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface CuVideoUnderstandingResultMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    long countByExample(CuVideoUnderstandingResultExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    int deleteByExample(CuVideoUnderstandingResultExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    int insert(CuVideoUnderstandingResult record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    int insertSelective(CuVideoUnderstandingResult record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    List<CuVideoUnderstandingResult> selectByExample(CuVideoUnderstandingResultExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    CuVideoUnderstandingResult selectByPrimaryKey(Long id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    int updateByExampleSelective(@Param("record") CuVideoUnderstandingResult record, @Param("example") CuVideoUnderstandingResultExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    int updateByExample(@Param("record") CuVideoUnderstandingResult record, @Param("example") CuVideoUnderstandingResultExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    int updateByPrimaryKeySelective(CuVideoUnderstandingResult record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    int updateByPrimaryKey(CuVideoUnderstandingResult record);
+}

+ 15 - 0
content-understanding-core/src/main/java/com/tzld/piaoquan/content/understanding/model/dto/ContentUnderstandingResultDTO.java

@@ -0,0 +1,15 @@
+package com.tzld.piaoquan.content.understanding.model.dto;
+
+import lombok.Data;
+
+/**
+ * 内容理解信息结果
+ *
+ * @author supeng
+ */
+@Data
+public class ContentUnderstandingResultDTO {
+    private Long videoId;
+    private Long pipelineId;
+    private String info;
+}

+ 242 - 0
content-understanding-core/src/main/java/com/tzld/piaoquan/content/understanding/model/po/CuVideoUnderstandingResult.java

@@ -0,0 +1,242 @@
+package com.tzld.piaoquan.content.understanding.model.po;
+
+import java.util.Date;
+
+/**
+ *
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table cu_video_understanding_result
+ */
+public class CuVideoUnderstandingResult {
+    /**
+     * Database Column Remarks:
+     *   ID
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column cu_video_understanding_result.id
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    private Long id;
+
+    /**
+     * Database Column Remarks:
+     *   视频ID
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column cu_video_understanding_result.video_id
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    private Long videoId;
+
+    /**
+     * Database Column Remarks:
+     *   pipeline ID
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column cu_video_understanding_result.pipeline_id
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    private Long pipelineId;
+
+    /**
+     * Database Column Remarks:
+     *   内容理解信息
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column cu_video_understanding_result.info
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    private String info;
+
+    /**
+     * Database Column Remarks:
+     *   创建时间
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column cu_video_understanding_result.create_time
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    private Date createTime;
+
+    /**
+     * Database Column Remarks:
+     *   更新时间
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column cu_video_understanding_result.update_time
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    private Date updateTime;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column cu_video_understanding_result.id
+     *
+     * @return the value of cu_video_understanding_result.id
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public Long getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column cu_video_understanding_result.id
+     *
+     * @param id the value for cu_video_understanding_result.id
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column cu_video_understanding_result.video_id
+     *
+     * @return the value of cu_video_understanding_result.video_id
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public Long getVideoId() {
+        return videoId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column cu_video_understanding_result.video_id
+     *
+     * @param videoId the value for cu_video_understanding_result.video_id
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void setVideoId(Long videoId) {
+        this.videoId = videoId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column cu_video_understanding_result.pipeline_id
+     *
+     * @return the value of cu_video_understanding_result.pipeline_id
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public Long getPipelineId() {
+        return pipelineId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column cu_video_understanding_result.pipeline_id
+     *
+     * @param pipelineId the value for cu_video_understanding_result.pipeline_id
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void setPipelineId(Long pipelineId) {
+        this.pipelineId = pipelineId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column cu_video_understanding_result.info
+     *
+     * @return the value of cu_video_understanding_result.info
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public String getInfo() {
+        return info;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column cu_video_understanding_result.info
+     *
+     * @param info the value for cu_video_understanding_result.info
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void setInfo(String info) {
+        this.info = info;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column cu_video_understanding_result.create_time
+     *
+     * @return the value of cu_video_understanding_result.create_time
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column cu_video_understanding_result.create_time
+     *
+     * @param createTime the value for cu_video_understanding_result.create_time
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column cu_video_understanding_result.update_time
+     *
+     * @return the value of cu_video_understanding_result.update_time
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column cu_video_understanding_result.update_time
+     *
+     * @param updateTime the value for cu_video_understanding_result.update_time
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", videoId=").append(videoId);
+        sb.append(", pipelineId=").append(pipelineId);
+        sb.append(", info=").append(info);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 673 - 0
content-understanding-core/src/main/java/com/tzld/piaoquan/content/understanding/model/po/CuVideoUnderstandingResultExample.java

@@ -0,0 +1,673 @@
+package com.tzld.piaoquan.content.understanding.model.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class CuVideoUnderstandingResultExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public CuVideoUnderstandingResultExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Long value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Long value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Long value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Long value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Long value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Long> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Long> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Long value1, Long value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Long value1, Long value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdIsNull() {
+            addCriterion("video_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdIsNotNull() {
+            addCriterion("video_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdEqualTo(Long value) {
+            addCriterion("video_id =", value, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdNotEqualTo(Long value) {
+            addCriterion("video_id <>", value, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdGreaterThan(Long value) {
+            addCriterion("video_id >", value, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("video_id >=", value, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdLessThan(Long value) {
+            addCriterion("video_id <", value, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdLessThanOrEqualTo(Long value) {
+            addCriterion("video_id <=", value, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdIn(List<Long> values) {
+            addCriterion("video_id in", values, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdNotIn(List<Long> values) {
+            addCriterion("video_id not in", values, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdBetween(Long value1, Long value2) {
+            addCriterion("video_id between", value1, value2, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoIdNotBetween(Long value1, Long value2) {
+            addCriterion("video_id not between", value1, value2, "videoId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdIsNull() {
+            addCriterion("pipeline_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdIsNotNull() {
+            addCriterion("pipeline_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdEqualTo(Long value) {
+            addCriterion("pipeline_id =", value, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdNotEqualTo(Long value) {
+            addCriterion("pipeline_id <>", value, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdGreaterThan(Long value) {
+            addCriterion("pipeline_id >", value, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("pipeline_id >=", value, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdLessThan(Long value) {
+            addCriterion("pipeline_id <", value, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdLessThanOrEqualTo(Long value) {
+            addCriterion("pipeline_id <=", value, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdIn(List<Long> values) {
+            addCriterion("pipeline_id in", values, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdNotIn(List<Long> values) {
+            addCriterion("pipeline_id not in", values, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdBetween(Long value1, Long value2) {
+            addCriterion("pipeline_id between", value1, value2, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPipelineIdNotBetween(Long value1, Long value2) {
+            addCriterion("pipeline_id not between", value1, value2, "pipelineId");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoIsNull() {
+            addCriterion("info is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoIsNotNull() {
+            addCriterion("info is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoEqualTo(String value) {
+            addCriterion("info =", value, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoNotEqualTo(String value) {
+            addCriterion("info <>", value, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoGreaterThan(String value) {
+            addCriterion("info >", value, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoGreaterThanOrEqualTo(String value) {
+            addCriterion("info >=", value, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoLessThan(String value) {
+            addCriterion("info <", value, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoLessThanOrEqualTo(String value) {
+            addCriterion("info <=", value, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoLike(String value) {
+            addCriterion("info like", value, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoNotLike(String value) {
+            addCriterion("info not like", value, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoIn(List<String> values) {
+            addCriterion("info in", values, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoNotIn(List<String> values) {
+            addCriterion("info not in", values, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoBetween(String value1, String value2) {
+            addCriterion("info between", value1, value2, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andInfoNotBetween(String value1, String value2) {
+            addCriterion("info not between", value1, value2, "info");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("create_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("create_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(Date value) {
+            addCriterion("create_time =", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<Date> values) {
+            addCriterion("create_time in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<Date> values) {
+            addCriterion("create_time not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(Date value1, Date value2) {
+            addCriterion("create_time between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("create_time not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIsNull() {
+            addCriterion("update_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIsNotNull() {
+            addCriterion("update_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeEqualTo(Date value) {
+            addCriterion("update_time =", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotEqualTo(Date value) {
+            addCriterion("update_time <>", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeGreaterThan(Date value) {
+            addCriterion("update_time >", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("update_time >=", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeLessThan(Date value) {
+            addCriterion("update_time <", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("update_time <=", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIn(List<Date> values) {
+            addCriterion("update_time in", values, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotIn(List<Date> values) {
+            addCriterion("update_time not in", values, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
+            addCriterion("update_time between", value1, value2, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("update_time not between", value1, value2, "updateTime");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated do_not_delete_during_merge Fri Apr 11 14:03:46 CST 2025
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table cu_video_understanding_result
+     *
+     * @mbg.generated Fri Apr 11 14:03:46 CST 2025
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 6 - 7
content-understanding-core/src/main/java/com/tzld/piaoquan/content/understanding/service/PipelineService.java

@@ -1,7 +1,6 @@
 package com.tzld.piaoquan.content.understanding.service;
 
 import com.tzld.piaoquan.content.understanding.model.dto.ContentDTO;
-import com.tzld.piaoquan.content.understanding.model.dto.ContentUnderstandDTO;
 import com.tzld.piaoquan.content.understanding.model.param.ContentAnalyseParam;
 
 /**
@@ -11,12 +10,12 @@ public interface PipelineService {
 
     void execute(ContentAnalyseParam param);
 
-    /**
-     * 执行流程
-     *
-     * @param dto
-     */
-    void execute(ContentUnderstandDTO dto);
+//    /**
+//     * 执行流程
+//     *
+//     * @param dto
+//     */
+//    void execute(ContentUnderstandDTO dto);
 
     void execute(ContentDTO contentDTO);
 }

+ 0 - 1
content-understanding-core/src/main/java/com/tzld/piaoquan/content/understanding/service/impl/ContentServiceImpl.java

@@ -7,7 +7,6 @@ import com.tzld.piaoquan.content.understanding.common.enums.ExceptionEnum;
 import com.tzld.piaoquan.content.understanding.common.exception.CommonException;
 import com.tzld.piaoquan.content.understanding.dao.mapper.CuPipelineMapper;
 import com.tzld.piaoquan.content.understanding.model.dto.ContentDTO;
-import com.tzld.piaoquan.content.understanding.model.dto.ContentUnderstandDTO;
 import com.tzld.piaoquan.content.understanding.model.dto.TaskInfoDTO;
 import com.tzld.piaoquan.content.understanding.model.dto.TaskResultDTO;
 import com.tzld.piaoquan.content.understanding.model.param.ContentAnalyseParam;

+ 53 - 52
content-understanding-core/src/main/java/com/tzld/piaoquan/content/understanding/service/impl/PipelineServiceImpl.java

@@ -2,7 +2,6 @@ package com.tzld.piaoquan.content.understanding.service.impl;
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.TypeReference;
-import com.tzld.piaoquan.content.understanding.common.enums.ContentTypeEnum;
 import com.tzld.piaoquan.content.understanding.common.enums.ExceptionEnum;
 import com.tzld.piaoquan.content.understanding.common.exception.CommonException;
 import com.tzld.piaoquan.content.understanding.dao.mapper.CuPipelineMapper;
@@ -11,7 +10,6 @@ import com.tzld.piaoquan.content.understanding.dao.mapper.CuPromptMapper;
 import com.tzld.piaoquan.content.understanding.dao.mapper.CuTaskMapper;
 import com.tzld.piaoquan.content.understanding.model.dto.ContentAnalyseDTO;
 import com.tzld.piaoquan.content.understanding.model.dto.ContentDTO;
-import com.tzld.piaoquan.content.understanding.model.dto.ContentUnderstandDTO;
 import com.tzld.piaoquan.content.understanding.model.dto.TreeNode;
 import com.tzld.piaoquan.content.understanding.model.param.ActionParam;
 import com.tzld.piaoquan.content.understanding.model.param.ContentAnalyseParam;
@@ -78,39 +76,39 @@ public class PipelineServiceImpl implements PipelineService {
         executeTreeNodeBFS(root, dto);
     }
 
-    @Override
-    public void execute(ContentUnderstandDTO dto) {
-        // 1.数据准备
-        Long pipelineId = dto.getPipelineId();
-        // 1.新增任务
-        String taskId = UUID.randomUUID().toString().replace("-", "") + System.currentTimeMillis();
-        CuTask cuTask = new CuTask();
-        cuTask.setTaskId(taskId);
-        cuTask.setPipelineId(pipelineId);
-//        cuTask.setInput();
-        int insertCount = cuTaskMapper.insertSelective(cuTask);
-        // 2.获取pipeline配置
-        Integer contentType = dto.getContentType();
-        CuPipelineStepExample example = new CuPipelineStepExample();
-        example.createCriteria().andPipelineIdEqualTo(pipelineId);
-        List<CuPipelineStep> stepList = cuPipelineStepMapper.selectByExample(example);
-        if (Objects.isNull(stepList) || stepList.isEmpty()) {
-            throw new CommonException(ExceptionEnum.CONFIG_ERROR, "无配置 pipelineId:" + pipelineId);
-        }
-        // 3.构建tree结构
-        TreeNode root = buildTree(stepList);
-        root.setType(contentType);
-        String content = getContent(dto, contentType);
-        if (Objects.isNull(content)) {
-            throw new CommonException(ExceptionEnum.DATA_ERROR, "数据异常content:" + content);
-        }
-        root.setInput(content);
-        ContentAnalyseDTO dto1 = new ContentAnalyseDTO();
-        dto1.setVideoId(dto.getVideoId());
-        dto1.setContent(content);
-        // 4.按照步骤执行pipeline每一步动作
-        executeTreeNodeBFS(root, dto1);
-    }
+//    @Override
+//    public void execute(ContentUnderstandDTO dto) {
+//        // 1.数据准备
+//        Long pipelineId = dto.getPipelineId();
+//        // 1.新增任务
+//        String taskId = UUID.randomUUID().toString().replace("-", "") + System.currentTimeMillis();
+//        CuTask cuTask = new CuTask();
+//        cuTask.setTaskId(taskId);
+//        cuTask.setPipelineId(pipelineId);
+////        cuTask.setInput();
+//        int insertCount = cuTaskMapper.insertSelective(cuTask);
+//        // 2.获取pipeline配置
+//        Integer contentType = dto.getContentType();
+//        CuPipelineStepExample example = new CuPipelineStepExample();
+//        example.createCriteria().andPipelineIdEqualTo(pipelineId);
+//        List<CuPipelineStep> stepList = cuPipelineStepMapper.selectByExample(example);
+//        if (Objects.isNull(stepList) || stepList.isEmpty()) {
+//            throw new CommonException(ExceptionEnum.CONFIG_ERROR, "无配置 pipelineId:" + pipelineId);
+//        }
+//        // 3.构建tree结构
+//        TreeNode root = buildTree(stepList);
+//        root.setType(contentType);
+//        String content = getContent(dto, contentType);
+//        if (Objects.isNull(content)) {
+//            throw new CommonException(ExceptionEnum.DATA_ERROR, "数据异常content:" + content);
+//        }
+//        root.setInput(content);
+//        ContentAnalyseDTO dto1 = new ContentAnalyseDTO();
+//        dto1.setVideoId(dto.getVideoId());
+//        dto1.setContent(content);
+//        // 4.按照步骤执行pipeline每一步动作
+//        executeTreeNodeBFS(root, dto1);
+//    }
 
     @Override
     public void execute(ContentDTO contentDTO) {
@@ -150,23 +148,23 @@ public class PipelineServiceImpl implements PipelineService {
         executeTreeNodeBFS(root, dto1);
     }
 
-    private String getContent(ContentUnderstandDTO dto, Integer contentType) {
-        String content = null;
-        if (Objects.equals(contentType, ContentTypeEnum.TITLE.getValue())) {
-            content = dto.getTitle();
-        } else if (Objects.equals(contentType, ContentTypeEnum.COVER.getValue())) {
-            content = dto.getCoverUrl();
-        } else if (Objects.equals(contentType, ContentTypeEnum.VIDEO.getValue())) {
-            content = dto.getVideoUrl();
-        } else if (Objects.equals(contentType, ContentTypeEnum.INTRODUCTION.getValue())) {
-            content = dto.getIntroduction();
-        } else if (Objects.equals(contentType, ContentTypeEnum.AUDIO.getValue())) {
-            content = dto.getAudioUrl();
-        } else if (Objects.equals(contentType, ContentTypeEnum.SRT_VTT.getValue())) {
-            content = dto.getSrt();
-        }
-        return content;
-    }
+//    private String getContent(ContentUnderstandDTO dto, Integer contentType) {
+//        String content = null;
+//        if (Objects.equals(contentType, ContentTypeEnum.TITLE.getValue())) {
+//            content = dto.getTitle();
+//        } else if (Objects.equals(contentType, ContentTypeEnum.COVER.getValue())) {
+//            content = dto.getCoverUrl();
+//        } else if (Objects.equals(contentType, ContentTypeEnum.VIDEO.getValue())) {
+//            content = dto.getVideoUrl();
+//        } else if (Objects.equals(contentType, ContentTypeEnum.INTRODUCTION.getValue())) {
+//            content = dto.getIntroduction();
+//        } else if (Objects.equals(contentType, ContentTypeEnum.AUDIO.getValue())) {
+//            content = dto.getAudioUrl();
+//        } else if (Objects.equals(contentType, ContentTypeEnum.SRT_VTT.getValue())) {
+//            content = dto.getSrt();
+//        }
+//        return content;
+//    }
 
     public TreeNode buildTree(List<CuPipelineStep> stepList) {
         Map<Long, TreeNode> nodeMap = new HashMap<>();
@@ -227,7 +225,10 @@ public class PipelineServiceImpl implements PipelineService {
                         Map<String, Object> resultMap = JSON.parseObject(result, new TypeReference<Map<String, Object>>() {
                         });
                         resultMap.put("video_id", videoId);
+                        //保存数据到mongo
                         mongoTemplate.insert(resultMap, COLLECTION_NAME);
+                        //保存数据到mysql
+
                     } catch (Exception e) {
                         log.error("step execute error step = {}, result = {}", e, JSON.toJSONString(step), result);
                     }

+ 303 - 0
content-understanding-core/src/main/resources/mapper/CuVideoUnderstandingResultMapper.xml

@@ -0,0 +1,303 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.tzld.piaoquan.content.understanding.dao.mapper.CuVideoUnderstandingResultMapper">
+  <resultMap id="BaseResultMap" type="com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResult">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="video_id" jdbcType="BIGINT" property="videoId" />
+    <result column="pipeline_id" jdbcType="BIGINT" property="pipelineId" />
+    <result column="info" jdbcType="VARCHAR" property="info" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    id, video_id, pipeline_id, info, create_time, update_time
+  </sql>
+  <select id="selectByExample" parameterType="com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResultExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from cu_video_understanding_result
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from cu_video_understanding_result
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    delete from cu_video_understanding_result
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResultExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    delete from cu_video_understanding_result
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResult">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    insert into cu_video_understanding_result (id, video_id, pipeline_id, 
+      info, create_time, update_time
+      )
+    values (#{id,jdbcType=BIGINT}, #{videoId,jdbcType=BIGINT}, #{pipelineId,jdbcType=BIGINT}, 
+      #{info,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResult">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    insert into cu_video_understanding_result
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="videoId != null">
+        video_id,
+      </if>
+      <if test="pipelineId != null">
+        pipeline_id,
+      </if>
+      <if test="info != null">
+        info,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=BIGINT},
+      </if>
+      <if test="videoId != null">
+        #{videoId,jdbcType=BIGINT},
+      </if>
+      <if test="pipelineId != null">
+        #{pipelineId,jdbcType=BIGINT},
+      </if>
+      <if test="info != null">
+        #{info,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResultExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    select count(*) from cu_video_understanding_result
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    update cu_video_understanding_result
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=BIGINT},
+      </if>
+      <if test="record.videoId != null">
+        video_id = #{record.videoId,jdbcType=BIGINT},
+      </if>
+      <if test="record.pipelineId != null">
+        pipeline_id = #{record.pipelineId,jdbcType=BIGINT},
+      </if>
+      <if test="record.info != null">
+        info = #{record.info,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="record.updateTime != null">
+        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    update cu_video_understanding_result
+    set id = #{record.id,jdbcType=BIGINT},
+      video_id = #{record.videoId,jdbcType=BIGINT},
+      pipeline_id = #{record.pipelineId,jdbcType=BIGINT},
+      info = #{record.info,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      update_time = #{record.updateTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResult">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    update cu_video_understanding_result
+    <set>
+      <if test="videoId != null">
+        video_id = #{videoId,jdbcType=BIGINT},
+      </if>
+      <if test="pipelineId != null">
+        pipeline_id = #{pipelineId,jdbcType=BIGINT},
+      </if>
+      <if test="info != null">
+        info = #{info,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.content.understanding.model.po.CuVideoUnderstandingResult">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Fri Apr 11 14:03:46 CST 2025.
+    -->
+    update cu_video_understanding_result
+    set video_id = #{videoId,jdbcType=BIGINT},
+      pipeline_id = #{pipelineId,jdbcType=BIGINT},
+      info = #{info,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_time = #{updateTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>

+ 2 - 1
content-understanding-core/src/main/resources/mybatis-generator-config.xml

@@ -46,10 +46,11 @@
             <property name="enableSubPackages" value="true"/>
         </javaClientGenerator>
 
-        <table tableName="cu_pipeline" domainObjectName="CuPipeline" alias=""/>
+<!--        <table tableName="cu_pipeline" domainObjectName="CuPipeline" alias=""/>-->
 <!--        <table tableName="cu_pipeline_step" domainObjectName="CuPipelineStep" alias=""/>-->
 <!--        <table tableName="cu_prompt" domainObjectName="CuPrompt" alias=""/>-->
 <!--        <table tableName="cu_task" domainObjectName="CuTask" alias=""/>-->
+        <table tableName="cu_video_understanding_result" domainObjectName="CuVideoUnderstandingResult" alias=""/>
 
     </context>
 

+ 0 - 2
content-understanding-server/src/main/java/com/tzld/piaoquan/content/understanding/controller/ContentController.java

@@ -1,11 +1,9 @@
 package com.tzld.piaoquan.content.understanding.controller;
 
-import com.tzld.piaoquan.content.understanding.common.base.CommonRequest;
 import com.tzld.piaoquan.content.understanding.common.base.CommonResponse;
 import com.tzld.piaoquan.content.understanding.model.param.ContentAnalyseParam;
 import com.tzld.piaoquan.content.understanding.model.param.ContentUnderstandParam;
 import com.tzld.piaoquan.content.understanding.service.ContentService;
-import com.tzld.piaoquan.content.understanding.service.PipelineService;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;

+ 6 - 0
content-understanding-server/src/main/java/com/tzld/piaoquan/content/understanding/controller/ContentUnderstandingController.java

@@ -36,4 +36,10 @@ public class ContentUnderstandingController {
         return CommonResponse.create(taskResultDTO);
     }
 
+    @PostMapping(value = "getVideoInfo")
+    public CommonResponse<TaskResultDTO> getVideoInfo(@RequestBody ContentAnalyseParam param) {
+
+        return CommonResponse.create();
+    }
+
 }