Browse Source

完善流程

xueyiming 7 months ago
parent
commit
e7bed156d1
23 changed files with 4456 additions and 188 deletions
  1. 30 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/dao/mapper/PlanAccountMapper.java
  2. 30 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/dao/mapper/PublishMiniprogramMapper.java
  3. 191 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/PlanAccount.java
  4. 1252 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/PlanAccountExample.java
  5. 235 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/PublishMiniprogram.java
  6. 1522 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/PublishMiniprogramExample.java
  7. 1 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/ContentItemVO.java
  8. 0 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/FilterSortContentParam.java
  9. 1 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/LongArticleSystemContentVO.java
  10. 1 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/LongArticleSystemPushContentParam.java
  11. 16 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/MatchMiniprogramStatusParam.java
  12. 0 16
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/ProduceAuditLayoutContentObjVO.java
  13. 1 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/PublishMiniprogramParam.java
  14. 24 34
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/CardServiceImpl.java
  15. 20 9
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/ContentServiceImpl.java
  16. 200 80
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/CoreServiceImpl.java
  17. 18 17
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/CoverServiceImpl.java
  18. 20 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/PlanAccountServiceImpl.java
  19. 24 14
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/PlanServiceImpl.java
  20. 16 0
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/DateUtil.java
  21. 389 0
      long-article-server/src/main/resources/mapper/PlanAccountMapper.xml
  22. 451 0
      long-article-server/src/main/resources/mapper/PublishMiniprogramMapper.xml
  23. 14 14
      long-article-server/src/main/resources/mybatis-generator-config.xml

+ 30 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/dao/mapper/PlanAccountMapper.java

@@ -0,0 +1,30 @@
+package com.tzld.piaoquan.longarticle.dao.mapper;
+
+import com.tzld.piaoquan.longarticle.model.po.PlanAccount;
+import com.tzld.piaoquan.longarticle.model.po.PlanAccountExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PlanAccountMapper {
+    long countByExample(PlanAccountExample example);
+
+    int deleteByExample(PlanAccountExample example);
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(PlanAccount record);
+
+    int insertSelective(PlanAccount record);
+
+    List<PlanAccount> selectByExample(PlanAccountExample example);
+
+    PlanAccount selectByPrimaryKey(Long id);
+
+    int updateByExampleSelective(@Param("record") PlanAccount record, @Param("example") PlanAccountExample example);
+
+    int updateByExample(@Param("record") PlanAccount record, @Param("example") PlanAccountExample example);
+
+    int updateByPrimaryKeySelective(PlanAccount record);
+
+    int updateByPrimaryKey(PlanAccount record);
+}

+ 30 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/dao/mapper/PublishMiniprogramMapper.java

@@ -0,0 +1,30 @@
+package com.tzld.piaoquan.longarticle.dao.mapper;
+
+import com.tzld.piaoquan.longarticle.model.po.PublishMiniprogram;
+import com.tzld.piaoquan.longarticle.model.po.PublishMiniprogramExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface PublishMiniprogramMapper {
+    long countByExample(PublishMiniprogramExample example);
+
+    int deleteByExample(PublishMiniprogramExample example);
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(PublishMiniprogram record);
+
+    int insertSelective(PublishMiniprogram record);
+
+    List<PublishMiniprogram> selectByExample(PublishMiniprogramExample example);
+
+    PublishMiniprogram selectByPrimaryKey(Long id);
+
+    int updateByExampleSelective(@Param("record") PublishMiniprogram record, @Param("example") PublishMiniprogramExample example);
+
+    int updateByExample(@Param("record") PublishMiniprogram record, @Param("example") PublishMiniprogramExample example);
+
+    int updateByPrimaryKeySelective(PublishMiniprogram record);
+
+    int updateByPrimaryKey(PublishMiniprogram record);
+}

+ 191 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/PlanAccount.java

@@ -0,0 +1,191 @@
+package com.tzld.piaoquan.longarticle.model.po;
+
+import java.util.Date;
+
+public class PlanAccount {
+    private Long id;
+
+    private String planId;
+
+    private String planName;
+
+    private String accountId;
+
+    private String accountName;
+
+    private String ghId;
+
+    private Integer publishNum;
+
+    private Integer publishPreMinNum;
+
+    private String publishPushTime;
+
+    private String miniStrategy;
+
+    private Integer miniprogramUseType;
+
+    private String sortStrategy;
+
+    private Integer pushType;
+
+    private Integer status;
+
+    private Date createTime;
+
+    private Date updateTime;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public String getPlanId() {
+        return planId;
+    }
+
+    public void setPlanId(String planId) {
+        this.planId = planId;
+    }
+
+    public String getPlanName() {
+        return planName;
+    }
+
+    public void setPlanName(String planName) {
+        this.planName = planName;
+    }
+
+    public String getAccountId() {
+        return accountId;
+    }
+
+    public void setAccountId(String accountId) {
+        this.accountId = accountId;
+    }
+
+    public String getAccountName() {
+        return accountName;
+    }
+
+    public void setAccountName(String accountName) {
+        this.accountName = accountName;
+    }
+
+    public String getGhId() {
+        return ghId;
+    }
+
+    public void setGhId(String ghId) {
+        this.ghId = ghId;
+    }
+
+    public Integer getPublishNum() {
+        return publishNum;
+    }
+
+    public void setPublishNum(Integer publishNum) {
+        this.publishNum = publishNum;
+    }
+
+    public Integer getPublishPreMinNum() {
+        return publishPreMinNum;
+    }
+
+    public void setPublishPreMinNum(Integer publishPreMinNum) {
+        this.publishPreMinNum = publishPreMinNum;
+    }
+
+    public String getPublishPushTime() {
+        return publishPushTime;
+    }
+
+    public void setPublishPushTime(String publishPushTime) {
+        this.publishPushTime = publishPushTime;
+    }
+
+    public String getMiniStrategy() {
+        return miniStrategy;
+    }
+
+    public void setMiniStrategy(String miniStrategy) {
+        this.miniStrategy = miniStrategy;
+    }
+
+    public Integer getMiniprogramUseType() {
+        return miniprogramUseType;
+    }
+
+    public void setMiniprogramUseType(Integer miniprogramUseType) {
+        this.miniprogramUseType = miniprogramUseType;
+    }
+
+    public String getSortStrategy() {
+        return sortStrategy;
+    }
+
+    public void setSortStrategy(String sortStrategy) {
+        this.sortStrategy = sortStrategy;
+    }
+
+    public Integer getPushType() {
+        return pushType;
+    }
+
+    public void setPushType(Integer pushType) {
+        this.pushType = pushType;
+    }
+
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    @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(", planId=").append(planId);
+        sb.append(", planName=").append(planName);
+        sb.append(", accountId=").append(accountId);
+        sb.append(", accountName=").append(accountName);
+        sb.append(", ghId=").append(ghId);
+        sb.append(", publishNum=").append(publishNum);
+        sb.append(", publishPreMinNum=").append(publishPreMinNum);
+        sb.append(", publishPushTime=").append(publishPushTime);
+        sb.append(", miniStrategy=").append(miniStrategy);
+        sb.append(", miniprogramUseType=").append(miniprogramUseType);
+        sb.append(", sortStrategy=").append(sortStrategy);
+        sb.append(", pushType=").append(pushType);
+        sb.append(", status=").append(status);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 1252 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/PlanAccountExample.java

@@ -0,0 +1,1252 @@
+package com.tzld.piaoquan.longarticle.model.po;
+
+import com.tzld.piaoquan.longarticle.utils.page.Page;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PlanAccountExample {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    protected Page page;
+
+    public PlanAccountExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setPage(Page page) {
+        this.page=page;
+    }
+
+    public Page getPage() {
+        return page;
+    }
+
+    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 andPlanIdIsNull() {
+            addCriterion("plan_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdIsNotNull() {
+            addCriterion("plan_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdEqualTo(String value) {
+            addCriterion("plan_id =", value, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdNotEqualTo(String value) {
+            addCriterion("plan_id <>", value, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdGreaterThan(String value) {
+            addCriterion("plan_id >", value, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdGreaterThanOrEqualTo(String value) {
+            addCriterion("plan_id >=", value, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdLessThan(String value) {
+            addCriterion("plan_id <", value, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdLessThanOrEqualTo(String value) {
+            addCriterion("plan_id <=", value, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdLike(String value) {
+            addCriterion("plan_id like", value, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdNotLike(String value) {
+            addCriterion("plan_id not like", value, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdIn(List<String> values) {
+            addCriterion("plan_id in", values, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdNotIn(List<String> values) {
+            addCriterion("plan_id not in", values, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdBetween(String value1, String value2) {
+            addCriterion("plan_id between", value1, value2, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanIdNotBetween(String value1, String value2) {
+            addCriterion("plan_id not between", value1, value2, "planId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameIsNull() {
+            addCriterion("plan_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameIsNotNull() {
+            addCriterion("plan_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameEqualTo(String value) {
+            addCriterion("plan_name =", value, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameNotEqualTo(String value) {
+            addCriterion("plan_name <>", value, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameGreaterThan(String value) {
+            addCriterion("plan_name >", value, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameGreaterThanOrEqualTo(String value) {
+            addCriterion("plan_name >=", value, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameLessThan(String value) {
+            addCriterion("plan_name <", value, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameLessThanOrEqualTo(String value) {
+            addCriterion("plan_name <=", value, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameLike(String value) {
+            addCriterion("plan_name like", value, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameNotLike(String value) {
+            addCriterion("plan_name not like", value, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameIn(List<String> values) {
+            addCriterion("plan_name in", values, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameNotIn(List<String> values) {
+            addCriterion("plan_name not in", values, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameBetween(String value1, String value2) {
+            addCriterion("plan_name between", value1, value2, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanNameNotBetween(String value1, String value2) {
+            addCriterion("plan_name not between", value1, value2, "planName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdIsNull() {
+            addCriterion("account_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdIsNotNull() {
+            addCriterion("account_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdEqualTo(String value) {
+            addCriterion("account_id =", value, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdNotEqualTo(String value) {
+            addCriterion("account_id <>", value, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdGreaterThan(String value) {
+            addCriterion("account_id >", value, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdGreaterThanOrEqualTo(String value) {
+            addCriterion("account_id >=", value, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdLessThan(String value) {
+            addCriterion("account_id <", value, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdLessThanOrEqualTo(String value) {
+            addCriterion("account_id <=", value, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdLike(String value) {
+            addCriterion("account_id like", value, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdNotLike(String value) {
+            addCriterion("account_id not like", value, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdIn(List<String> values) {
+            addCriterion("account_id in", values, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdNotIn(List<String> values) {
+            addCriterion("account_id not in", values, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdBetween(String value1, String value2) {
+            addCriterion("account_id between", value1, value2, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountIdNotBetween(String value1, String value2) {
+            addCriterion("account_id not between", value1, value2, "accountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameIsNull() {
+            addCriterion("account_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameIsNotNull() {
+            addCriterion("account_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameEqualTo(String value) {
+            addCriterion("account_name =", value, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameNotEqualTo(String value) {
+            addCriterion("account_name <>", value, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameGreaterThan(String value) {
+            addCriterion("account_name >", value, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameGreaterThanOrEqualTo(String value) {
+            addCriterion("account_name >=", value, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameLessThan(String value) {
+            addCriterion("account_name <", value, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameLessThanOrEqualTo(String value) {
+            addCriterion("account_name <=", value, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameLike(String value) {
+            addCriterion("account_name like", value, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameNotLike(String value) {
+            addCriterion("account_name not like", value, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameIn(List<String> values) {
+            addCriterion("account_name in", values, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameNotIn(List<String> values) {
+            addCriterion("account_name not in", values, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameBetween(String value1, String value2) {
+            addCriterion("account_name between", value1, value2, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAccountNameNotBetween(String value1, String value2) {
+            addCriterion("account_name not between", value1, value2, "accountName");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdIsNull() {
+            addCriterion("gh_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdIsNotNull() {
+            addCriterion("gh_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdEqualTo(String value) {
+            addCriterion("gh_id =", value, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdNotEqualTo(String value) {
+            addCriterion("gh_id <>", value, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdGreaterThan(String value) {
+            addCriterion("gh_id >", value, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdGreaterThanOrEqualTo(String value) {
+            addCriterion("gh_id >=", value, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdLessThan(String value) {
+            addCriterion("gh_id <", value, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdLessThanOrEqualTo(String value) {
+            addCriterion("gh_id <=", value, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdLike(String value) {
+            addCriterion("gh_id like", value, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdNotLike(String value) {
+            addCriterion("gh_id not like", value, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdIn(List<String> values) {
+            addCriterion("gh_id in", values, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdNotIn(List<String> values) {
+            addCriterion("gh_id not in", values, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdBetween(String value1, String value2) {
+            addCriterion("gh_id between", value1, value2, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andGhIdNotBetween(String value1, String value2) {
+            addCriterion("gh_id not between", value1, value2, "ghId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumIsNull() {
+            addCriterion("publish_num is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumIsNotNull() {
+            addCriterion("publish_num is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumEqualTo(Integer value) {
+            addCriterion("publish_num =", value, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumNotEqualTo(Integer value) {
+            addCriterion("publish_num <>", value, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumGreaterThan(Integer value) {
+            addCriterion("publish_num >", value, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumGreaterThanOrEqualTo(Integer value) {
+            addCriterion("publish_num >=", value, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumLessThan(Integer value) {
+            addCriterion("publish_num <", value, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumLessThanOrEqualTo(Integer value) {
+            addCriterion("publish_num <=", value, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumIn(List<Integer> values) {
+            addCriterion("publish_num in", values, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumNotIn(List<Integer> values) {
+            addCriterion("publish_num not in", values, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumBetween(Integer value1, Integer value2) {
+            addCriterion("publish_num between", value1, value2, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishNumNotBetween(Integer value1, Integer value2) {
+            addCriterion("publish_num not between", value1, value2, "publishNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumIsNull() {
+            addCriterion("publish_pre_min_num is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumIsNotNull() {
+            addCriterion("publish_pre_min_num is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumEqualTo(Integer value) {
+            addCriterion("publish_pre_min_num =", value, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumNotEqualTo(Integer value) {
+            addCriterion("publish_pre_min_num <>", value, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumGreaterThan(Integer value) {
+            addCriterion("publish_pre_min_num >", value, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumGreaterThanOrEqualTo(Integer value) {
+            addCriterion("publish_pre_min_num >=", value, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumLessThan(Integer value) {
+            addCriterion("publish_pre_min_num <", value, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumLessThanOrEqualTo(Integer value) {
+            addCriterion("publish_pre_min_num <=", value, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumIn(List<Integer> values) {
+            addCriterion("publish_pre_min_num in", values, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumNotIn(List<Integer> values) {
+            addCriterion("publish_pre_min_num not in", values, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumBetween(Integer value1, Integer value2) {
+            addCriterion("publish_pre_min_num between", value1, value2, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPreMinNumNotBetween(Integer value1, Integer value2) {
+            addCriterion("publish_pre_min_num not between", value1, value2, "publishPreMinNum");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeIsNull() {
+            addCriterion("publish_push_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeIsNotNull() {
+            addCriterion("publish_push_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeEqualTo(String value) {
+            addCriterion("publish_push_time =", value, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeNotEqualTo(String value) {
+            addCriterion("publish_push_time <>", value, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeGreaterThan(String value) {
+            addCriterion("publish_push_time >", value, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeGreaterThanOrEqualTo(String value) {
+            addCriterion("publish_push_time >=", value, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeLessThan(String value) {
+            addCriterion("publish_push_time <", value, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeLessThanOrEqualTo(String value) {
+            addCriterion("publish_push_time <=", value, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeLike(String value) {
+            addCriterion("publish_push_time like", value, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeNotLike(String value) {
+            addCriterion("publish_push_time not like", value, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeIn(List<String> values) {
+            addCriterion("publish_push_time in", values, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeNotIn(List<String> values) {
+            addCriterion("publish_push_time not in", values, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeBetween(String value1, String value2) {
+            addCriterion("publish_push_time between", value1, value2, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishPushTimeNotBetween(String value1, String value2) {
+            addCriterion("publish_push_time not between", value1, value2, "publishPushTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyIsNull() {
+            addCriterion("mini_strategy is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyIsNotNull() {
+            addCriterion("mini_strategy is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyEqualTo(String value) {
+            addCriterion("mini_strategy =", value, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyNotEqualTo(String value) {
+            addCriterion("mini_strategy <>", value, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyGreaterThan(String value) {
+            addCriterion("mini_strategy >", value, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyGreaterThanOrEqualTo(String value) {
+            addCriterion("mini_strategy >=", value, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyLessThan(String value) {
+            addCriterion("mini_strategy <", value, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyLessThanOrEqualTo(String value) {
+            addCriterion("mini_strategy <=", value, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyLike(String value) {
+            addCriterion("mini_strategy like", value, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyNotLike(String value) {
+            addCriterion("mini_strategy not like", value, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyIn(List<String> values) {
+            addCriterion("mini_strategy in", values, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyNotIn(List<String> values) {
+            addCriterion("mini_strategy not in", values, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyBetween(String value1, String value2) {
+            addCriterion("mini_strategy between", value1, value2, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniStrategyNotBetween(String value1, String value2) {
+            addCriterion("mini_strategy not between", value1, value2, "miniStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeIsNull() {
+            addCriterion("miniprogram_use_type is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeIsNotNull() {
+            addCriterion("miniprogram_use_type is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeEqualTo(Integer value) {
+            addCriterion("miniprogram_use_type =", value, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeNotEqualTo(Integer value) {
+            addCriterion("miniprogram_use_type <>", value, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeGreaterThan(Integer value) {
+            addCriterion("miniprogram_use_type >", value, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("miniprogram_use_type >=", value, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeLessThan(Integer value) {
+            addCriterion("miniprogram_use_type <", value, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeLessThanOrEqualTo(Integer value) {
+            addCriterion("miniprogram_use_type <=", value, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeIn(List<Integer> values) {
+            addCriterion("miniprogram_use_type in", values, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeNotIn(List<Integer> values) {
+            addCriterion("miniprogram_use_type not in", values, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeBetween(Integer value1, Integer value2) {
+            addCriterion("miniprogram_use_type between", value1, value2, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniprogramUseTypeNotBetween(Integer value1, Integer value2) {
+            addCriterion("miniprogram_use_type not between", value1, value2, "miniprogramUseType");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyIsNull() {
+            addCriterion("sort_strategy is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyIsNotNull() {
+            addCriterion("sort_strategy is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyEqualTo(String value) {
+            addCriterion("sort_strategy =", value, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyNotEqualTo(String value) {
+            addCriterion("sort_strategy <>", value, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyGreaterThan(String value) {
+            addCriterion("sort_strategy >", value, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyGreaterThanOrEqualTo(String value) {
+            addCriterion("sort_strategy >=", value, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyLessThan(String value) {
+            addCriterion("sort_strategy <", value, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyLessThanOrEqualTo(String value) {
+            addCriterion("sort_strategy <=", value, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyLike(String value) {
+            addCriterion("sort_strategy like", value, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyNotLike(String value) {
+            addCriterion("sort_strategy not like", value, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyIn(List<String> values) {
+            addCriterion("sort_strategy in", values, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyNotIn(List<String> values) {
+            addCriterion("sort_strategy not in", values, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyBetween(String value1, String value2) {
+            addCriterion("sort_strategy between", value1, value2, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andSortStrategyNotBetween(String value1, String value2) {
+            addCriterion("sort_strategy not between", value1, value2, "sortStrategy");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeIsNull() {
+            addCriterion("push_type is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeIsNotNull() {
+            addCriterion("push_type is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeEqualTo(Integer value) {
+            addCriterion("push_type =", value, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeNotEqualTo(Integer value) {
+            addCriterion("push_type <>", value, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeGreaterThan(Integer value) {
+            addCriterion("push_type >", value, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("push_type >=", value, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeLessThan(Integer value) {
+            addCriterion("push_type <", value, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeLessThanOrEqualTo(Integer value) {
+            addCriterion("push_type <=", value, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeIn(List<Integer> values) {
+            addCriterion("push_type in", values, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeNotIn(List<Integer> values) {
+            addCriterion("push_type not in", values, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeBetween(Integer value1, Integer value2) {
+            addCriterion("push_type between", value1, value2, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andPushTypeNotBetween(Integer value1, Integer value2) {
+            addCriterion("push_type not between", value1, value2, "pushType");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIsNull() {
+            addCriterion("`status` is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIsNotNull() {
+            addCriterion("`status` is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusEqualTo(Integer value) {
+            addCriterion("`status` =", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotEqualTo(Integer value) {
+            addCriterion("`status` <>", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusGreaterThan(Integer value) {
+            addCriterion("`status` >", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
+            addCriterion("`status` >=", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusLessThan(Integer value) {
+            addCriterion("`status` <", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusLessThanOrEqualTo(Integer value) {
+            addCriterion("`status` <=", value, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusIn(List<Integer> values) {
+            addCriterion("`status` in", values, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotIn(List<Integer> values) {
+            addCriterion("`status` not in", values, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusBetween(Integer value1, Integer value2) {
+            addCriterion("`status` between", value1, value2, "status");
+            return (Criteria) this;
+        }
+
+        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
+            addCriterion("`status` not between", value1, value2, "status");
+            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;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    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);
+        }
+    }
+}

+ 235 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/PublishMiniprogram.java

@@ -0,0 +1,235 @@
+package com.tzld.piaoquan.longarticle.model.po;
+
+import java.util.Date;
+
+public class PublishMiniprogram {
+    private Long id;
+
+    private Long planAccountId;
+
+    private String publishContentId;
+
+    private String appId;
+
+    private String appName;
+
+    private String avatar;
+
+    private Integer miniId;
+
+    private Integer miniProgramType;
+
+    private Long videoId;
+
+    private String source;
+
+    private String videoTitle;
+
+    private String videoCover;
+
+    private String videoPath;
+
+    private String productionPath;
+
+    private String rootShareId;
+
+    private Integer index;
+
+    private String traceId;
+
+    private Integer isDelete;
+
+    private Date createTime;
+
+    private Date updateTime;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    public Long getPlanAccountId() {
+        return planAccountId;
+    }
+
+    public void setPlanAccountId(Long planAccountId) {
+        this.planAccountId = planAccountId;
+    }
+
+    public String getPublishContentId() {
+        return publishContentId;
+    }
+
+    public void setPublishContentId(String publishContentId) {
+        this.publishContentId = publishContentId;
+    }
+
+    public String getAppId() {
+        return appId;
+    }
+
+    public void setAppId(String appId) {
+        this.appId = appId;
+    }
+
+    public String getAppName() {
+        return appName;
+    }
+
+    public void setAppName(String appName) {
+        this.appName = appName;
+    }
+
+    public String getAvatar() {
+        return avatar;
+    }
+
+    public void setAvatar(String avatar) {
+        this.avatar = avatar;
+    }
+
+    public Integer getMiniId() {
+        return miniId;
+    }
+
+    public void setMiniId(Integer miniId) {
+        this.miniId = miniId;
+    }
+
+    public Integer getMiniProgramType() {
+        return miniProgramType;
+    }
+
+    public void setMiniProgramType(Integer miniProgramType) {
+        this.miniProgramType = miniProgramType;
+    }
+
+    public Long getVideoId() {
+        return videoId;
+    }
+
+    public void setVideoId(Long videoId) {
+        this.videoId = videoId;
+    }
+
+    public String getSource() {
+        return source;
+    }
+
+    public void setSource(String source) {
+        this.source = source;
+    }
+
+    public String getVideoTitle() {
+        return videoTitle;
+    }
+
+    public void setVideoTitle(String videoTitle) {
+        this.videoTitle = videoTitle;
+    }
+
+    public String getVideoCover() {
+        return videoCover;
+    }
+
+    public void setVideoCover(String videoCover) {
+        this.videoCover = videoCover;
+    }
+
+    public String getVideoPath() {
+        return videoPath;
+    }
+
+    public void setVideoPath(String videoPath) {
+        this.videoPath = videoPath;
+    }
+
+    public String getProductionPath() {
+        return productionPath;
+    }
+
+    public void setProductionPath(String productionPath) {
+        this.productionPath = productionPath;
+    }
+
+    public String getRootShareId() {
+        return rootShareId;
+    }
+
+    public void setRootShareId(String rootShareId) {
+        this.rootShareId = rootShareId;
+    }
+
+    public Integer getIndex() {
+        return index;
+    }
+
+    public void setIndex(Integer index) {
+        this.index = index;
+    }
+
+    public String getTraceId() {
+        return traceId;
+    }
+
+    public void setTraceId(String traceId) {
+        this.traceId = traceId;
+    }
+
+    public Integer getIsDelete() {
+        return isDelete;
+    }
+
+    public void setIsDelete(Integer isDelete) {
+        this.isDelete = isDelete;
+    }
+
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    @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(", planAccountId=").append(planAccountId);
+        sb.append(", publishContentId=").append(publishContentId);
+        sb.append(", appId=").append(appId);
+        sb.append(", appName=").append(appName);
+        sb.append(", avatar=").append(avatar);
+        sb.append(", miniId=").append(miniId);
+        sb.append(", miniProgramType=").append(miniProgramType);
+        sb.append(", videoId=").append(videoId);
+        sb.append(", source=").append(source);
+        sb.append(", videoTitle=").append(videoTitle);
+        sb.append(", videoCover=").append(videoCover);
+        sb.append(", videoPath=").append(videoPath);
+        sb.append(", productionPath=").append(productionPath);
+        sb.append(", rootShareId=").append(rootShareId);
+        sb.append(", index=").append(index);
+        sb.append(", traceId=").append(traceId);
+        sb.append(", isDelete=").append(isDelete);
+        sb.append(", createTime=").append(createTime);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 1522 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/po/PublishMiniprogramExample.java

@@ -0,0 +1,1522 @@
+package com.tzld.piaoquan.longarticle.model.po;
+
+import com.tzld.piaoquan.longarticle.utils.page.Page;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class PublishMiniprogramExample {
+    protected String orderByClause;
+
+    protected boolean distinct;
+
+    protected List<Criteria> oredCriteria;
+
+    protected Page page;
+
+    public PublishMiniprogramExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    public void setPage(Page page) {
+        this.page=page;
+    }
+
+    public Page getPage() {
+        return page;
+    }
+
+    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 andPlanAccountIdIsNull() {
+            addCriterion("plan_account_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdIsNotNull() {
+            addCriterion("plan_account_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdEqualTo(Long value) {
+            addCriterion("plan_account_id =", value, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdNotEqualTo(Long value) {
+            addCriterion("plan_account_id <>", value, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdGreaterThan(Long value) {
+            addCriterion("plan_account_id >", value, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("plan_account_id >=", value, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdLessThan(Long value) {
+            addCriterion("plan_account_id <", value, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdLessThanOrEqualTo(Long value) {
+            addCriterion("plan_account_id <=", value, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdIn(List<Long> values) {
+            addCriterion("plan_account_id in", values, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdNotIn(List<Long> values) {
+            addCriterion("plan_account_id not in", values, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdBetween(Long value1, Long value2) {
+            addCriterion("plan_account_id between", value1, value2, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPlanAccountIdNotBetween(Long value1, Long value2) {
+            addCriterion("plan_account_id not between", value1, value2, "planAccountId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdIsNull() {
+            addCriterion("publish_content_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdIsNotNull() {
+            addCriterion("publish_content_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdEqualTo(String value) {
+            addCriterion("publish_content_id =", value, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdNotEqualTo(String value) {
+            addCriterion("publish_content_id <>", value, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdGreaterThan(String value) {
+            addCriterion("publish_content_id >", value, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdGreaterThanOrEqualTo(String value) {
+            addCriterion("publish_content_id >=", value, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdLessThan(String value) {
+            addCriterion("publish_content_id <", value, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdLessThanOrEqualTo(String value) {
+            addCriterion("publish_content_id <=", value, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdLike(String value) {
+            addCriterion("publish_content_id like", value, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdNotLike(String value) {
+            addCriterion("publish_content_id not like", value, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdIn(List<String> values) {
+            addCriterion("publish_content_id in", values, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdNotIn(List<String> values) {
+            addCriterion("publish_content_id not in", values, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdBetween(String value1, String value2) {
+            addCriterion("publish_content_id between", value1, value2, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andPublishContentIdNotBetween(String value1, String value2) {
+            addCriterion("publish_content_id not between", value1, value2, "publishContentId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdIsNull() {
+            addCriterion("app_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdIsNotNull() {
+            addCriterion("app_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdEqualTo(String value) {
+            addCriterion("app_id =", value, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdNotEqualTo(String value) {
+            addCriterion("app_id <>", value, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdGreaterThan(String value) {
+            addCriterion("app_id >", value, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdGreaterThanOrEqualTo(String value) {
+            addCriterion("app_id >=", value, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdLessThan(String value) {
+            addCriterion("app_id <", value, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdLessThanOrEqualTo(String value) {
+            addCriterion("app_id <=", value, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdLike(String value) {
+            addCriterion("app_id like", value, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdNotLike(String value) {
+            addCriterion("app_id not like", value, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdIn(List<String> values) {
+            addCriterion("app_id in", values, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdNotIn(List<String> values) {
+            addCriterion("app_id not in", values, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdBetween(String value1, String value2) {
+            addCriterion("app_id between", value1, value2, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppIdNotBetween(String value1, String value2) {
+            addCriterion("app_id not between", value1, value2, "appId");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameIsNull() {
+            addCriterion("app_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameIsNotNull() {
+            addCriterion("app_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameEqualTo(String value) {
+            addCriterion("app_name =", value, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameNotEqualTo(String value) {
+            addCriterion("app_name <>", value, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameGreaterThan(String value) {
+            addCriterion("app_name >", value, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameGreaterThanOrEqualTo(String value) {
+            addCriterion("app_name >=", value, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameLessThan(String value) {
+            addCriterion("app_name <", value, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameLessThanOrEqualTo(String value) {
+            addCriterion("app_name <=", value, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameLike(String value) {
+            addCriterion("app_name like", value, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameNotLike(String value) {
+            addCriterion("app_name not like", value, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameIn(List<String> values) {
+            addCriterion("app_name in", values, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameNotIn(List<String> values) {
+            addCriterion("app_name not in", values, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameBetween(String value1, String value2) {
+            addCriterion("app_name between", value1, value2, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAppNameNotBetween(String value1, String value2) {
+            addCriterion("app_name not between", value1, value2, "appName");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarIsNull() {
+            addCriterion("avatar is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarIsNotNull() {
+            addCriterion("avatar is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarEqualTo(String value) {
+            addCriterion("avatar =", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarNotEqualTo(String value) {
+            addCriterion("avatar <>", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarGreaterThan(String value) {
+            addCriterion("avatar >", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarGreaterThanOrEqualTo(String value) {
+            addCriterion("avatar >=", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarLessThan(String value) {
+            addCriterion("avatar <", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarLessThanOrEqualTo(String value) {
+            addCriterion("avatar <=", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarLike(String value) {
+            addCriterion("avatar like", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarNotLike(String value) {
+            addCriterion("avatar not like", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarIn(List<String> values) {
+            addCriterion("avatar in", values, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarNotIn(List<String> values) {
+            addCriterion("avatar not in", values, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarBetween(String value1, String value2) {
+            addCriterion("avatar between", value1, value2, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarNotBetween(String value1, String value2) {
+            addCriterion("avatar not between", value1, value2, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdIsNull() {
+            addCriterion("mini_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdIsNotNull() {
+            addCriterion("mini_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdEqualTo(Integer value) {
+            addCriterion("mini_id =", value, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdNotEqualTo(Integer value) {
+            addCriterion("mini_id <>", value, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdGreaterThan(Integer value) {
+            addCriterion("mini_id >", value, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("mini_id >=", value, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdLessThan(Integer value) {
+            addCriterion("mini_id <", value, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdLessThanOrEqualTo(Integer value) {
+            addCriterion("mini_id <=", value, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdIn(List<Integer> values) {
+            addCriterion("mini_id in", values, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdNotIn(List<Integer> values) {
+            addCriterion("mini_id not in", values, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdBetween(Integer value1, Integer value2) {
+            addCriterion("mini_id between", value1, value2, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("mini_id not between", value1, value2, "miniId");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeIsNull() {
+            addCriterion("mini_program_type is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeIsNotNull() {
+            addCriterion("mini_program_type is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeEqualTo(Integer value) {
+            addCriterion("mini_program_type =", value, "miniProgramType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeNotEqualTo(Integer value) {
+            addCriterion("mini_program_type <>", value, "miniProgramType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeGreaterThan(Integer value) {
+            addCriterion("mini_program_type >", value, "miniProgramType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeGreaterThanOrEqualTo(Integer value) {
+            addCriterion("mini_program_type >=", value, "miniProgramType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeLessThan(Integer value) {
+            addCriterion("mini_program_type <", value, "miniProgramType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeLessThanOrEqualTo(Integer value) {
+            addCriterion("mini_program_type <=", value, "miniProgramType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeIn(List<Integer> values) {
+            addCriterion("mini_program_type in", values, "miniProgramType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeNotIn(List<Integer> values) {
+            addCriterion("mini_program_type not in", values, "miniProgramType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeBetween(Integer value1, Integer value2) {
+            addCriterion("mini_program_type between", value1, value2, "miniProgramType");
+            return (Criteria) this;
+        }
+
+        public Criteria andMiniProgramTypeNotBetween(Integer value1, Integer value2) {
+            addCriterion("mini_program_type not between", value1, value2, "miniProgramType");
+            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 andSourceIsNull() {
+            addCriterion("`source` is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceIsNotNull() {
+            addCriterion("`source` is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceEqualTo(String value) {
+            addCriterion("`source` =", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceNotEqualTo(String value) {
+            addCriterion("`source` <>", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceGreaterThan(String value) {
+            addCriterion("`source` >", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceGreaterThanOrEqualTo(String value) {
+            addCriterion("`source` >=", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceLessThan(String value) {
+            addCriterion("`source` <", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceLessThanOrEqualTo(String value) {
+            addCriterion("`source` <=", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceLike(String value) {
+            addCriterion("`source` like", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceNotLike(String value) {
+            addCriterion("`source` not like", value, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceIn(List<String> values) {
+            addCriterion("`source` in", values, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceNotIn(List<String> values) {
+            addCriterion("`source` not in", values, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceBetween(String value1, String value2) {
+            addCriterion("`source` between", value1, value2, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andSourceNotBetween(String value1, String value2) {
+            addCriterion("`source` not between", value1, value2, "source");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleIsNull() {
+            addCriterion("video_title is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleIsNotNull() {
+            addCriterion("video_title is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleEqualTo(String value) {
+            addCriterion("video_title =", value, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleNotEqualTo(String value) {
+            addCriterion("video_title <>", value, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleGreaterThan(String value) {
+            addCriterion("video_title >", value, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleGreaterThanOrEqualTo(String value) {
+            addCriterion("video_title >=", value, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleLessThan(String value) {
+            addCriterion("video_title <", value, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleLessThanOrEqualTo(String value) {
+            addCriterion("video_title <=", value, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleLike(String value) {
+            addCriterion("video_title like", value, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleNotLike(String value) {
+            addCriterion("video_title not like", value, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleIn(List<String> values) {
+            addCriterion("video_title in", values, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleNotIn(List<String> values) {
+            addCriterion("video_title not in", values, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleBetween(String value1, String value2) {
+            addCriterion("video_title between", value1, value2, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoTitleNotBetween(String value1, String value2) {
+            addCriterion("video_title not between", value1, value2, "videoTitle");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverIsNull() {
+            addCriterion("video_cover is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverIsNotNull() {
+            addCriterion("video_cover is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverEqualTo(String value) {
+            addCriterion("video_cover =", value, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverNotEqualTo(String value) {
+            addCriterion("video_cover <>", value, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverGreaterThan(String value) {
+            addCriterion("video_cover >", value, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverGreaterThanOrEqualTo(String value) {
+            addCriterion("video_cover >=", value, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverLessThan(String value) {
+            addCriterion("video_cover <", value, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverLessThanOrEqualTo(String value) {
+            addCriterion("video_cover <=", value, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverLike(String value) {
+            addCriterion("video_cover like", value, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverNotLike(String value) {
+            addCriterion("video_cover not like", value, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverIn(List<String> values) {
+            addCriterion("video_cover in", values, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverNotIn(List<String> values) {
+            addCriterion("video_cover not in", values, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverBetween(String value1, String value2) {
+            addCriterion("video_cover between", value1, value2, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoCoverNotBetween(String value1, String value2) {
+            addCriterion("video_cover not between", value1, value2, "videoCover");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathIsNull() {
+            addCriterion("video_path is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathIsNotNull() {
+            addCriterion("video_path is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathEqualTo(String value) {
+            addCriterion("video_path =", value, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathNotEqualTo(String value) {
+            addCriterion("video_path <>", value, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathGreaterThan(String value) {
+            addCriterion("video_path >", value, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathGreaterThanOrEqualTo(String value) {
+            addCriterion("video_path >=", value, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathLessThan(String value) {
+            addCriterion("video_path <", value, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathLessThanOrEqualTo(String value) {
+            addCriterion("video_path <=", value, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathLike(String value) {
+            addCriterion("video_path like", value, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathNotLike(String value) {
+            addCriterion("video_path not like", value, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathIn(List<String> values) {
+            addCriterion("video_path in", values, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathNotIn(List<String> values) {
+            addCriterion("video_path not in", values, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathBetween(String value1, String value2) {
+            addCriterion("video_path between", value1, value2, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andVideoPathNotBetween(String value1, String value2) {
+            addCriterion("video_path not between", value1, value2, "videoPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathIsNull() {
+            addCriterion("production_path is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathIsNotNull() {
+            addCriterion("production_path is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathEqualTo(String value) {
+            addCriterion("production_path =", value, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathNotEqualTo(String value) {
+            addCriterion("production_path <>", value, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathGreaterThan(String value) {
+            addCriterion("production_path >", value, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathGreaterThanOrEqualTo(String value) {
+            addCriterion("production_path >=", value, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathLessThan(String value) {
+            addCriterion("production_path <", value, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathLessThanOrEqualTo(String value) {
+            addCriterion("production_path <=", value, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathLike(String value) {
+            addCriterion("production_path like", value, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathNotLike(String value) {
+            addCriterion("production_path not like", value, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathIn(List<String> values) {
+            addCriterion("production_path in", values, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathNotIn(List<String> values) {
+            addCriterion("production_path not in", values, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathBetween(String value1, String value2) {
+            addCriterion("production_path between", value1, value2, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andProductionPathNotBetween(String value1, String value2) {
+            addCriterion("production_path not between", value1, value2, "productionPath");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdIsNull() {
+            addCriterion("root_share_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdIsNotNull() {
+            addCriterion("root_share_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdEqualTo(String value) {
+            addCriterion("root_share_id =", value, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdNotEqualTo(String value) {
+            addCriterion("root_share_id <>", value, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdGreaterThan(String value) {
+            addCriterion("root_share_id >", value, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdGreaterThanOrEqualTo(String value) {
+            addCriterion("root_share_id >=", value, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdLessThan(String value) {
+            addCriterion("root_share_id <", value, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdLessThanOrEqualTo(String value) {
+            addCriterion("root_share_id <=", value, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdLike(String value) {
+            addCriterion("root_share_id like", value, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdNotLike(String value) {
+            addCriterion("root_share_id not like", value, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdIn(List<String> values) {
+            addCriterion("root_share_id in", values, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdNotIn(List<String> values) {
+            addCriterion("root_share_id not in", values, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdBetween(String value1, String value2) {
+            addCriterion("root_share_id between", value1, value2, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andRootShareIdNotBetween(String value1, String value2) {
+            addCriterion("root_share_id not between", value1, value2, "rootShareId");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexIsNull() {
+            addCriterion("`index` is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexIsNotNull() {
+            addCriterion("`index` is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexEqualTo(Integer value) {
+            addCriterion("`index` =", value, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexNotEqualTo(Integer value) {
+            addCriterion("`index` <>", value, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexGreaterThan(Integer value) {
+            addCriterion("`index` >", value, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexGreaterThanOrEqualTo(Integer value) {
+            addCriterion("`index` >=", value, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexLessThan(Integer value) {
+            addCriterion("`index` <", value, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexLessThanOrEqualTo(Integer value) {
+            addCriterion("`index` <=", value, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexIn(List<Integer> values) {
+            addCriterion("`index` in", values, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexNotIn(List<Integer> values) {
+            addCriterion("`index` not in", values, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexBetween(Integer value1, Integer value2) {
+            addCriterion("`index` between", value1, value2, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andIndexNotBetween(Integer value1, Integer value2) {
+            addCriterion("`index` not between", value1, value2, "index");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdIsNull() {
+            addCriterion("trace_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdIsNotNull() {
+            addCriterion("trace_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdEqualTo(String value) {
+            addCriterion("trace_id =", value, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdNotEqualTo(String value) {
+            addCriterion("trace_id <>", value, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdGreaterThan(String value) {
+            addCriterion("trace_id >", value, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdGreaterThanOrEqualTo(String value) {
+            addCriterion("trace_id >=", value, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdLessThan(String value) {
+            addCriterion("trace_id <", value, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdLessThanOrEqualTo(String value) {
+            addCriterion("trace_id <=", value, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdLike(String value) {
+            addCriterion("trace_id like", value, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdNotLike(String value) {
+            addCriterion("trace_id not like", value, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdIn(List<String> values) {
+            addCriterion("trace_id in", values, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdNotIn(List<String> values) {
+            addCriterion("trace_id not in", values, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdBetween(String value1, String value2) {
+            addCriterion("trace_id between", value1, value2, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andTraceIdNotBetween(String value1, String value2) {
+            addCriterion("trace_id not between", value1, value2, "traceId");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteIsNull() {
+            addCriterion("is_delete is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteIsNotNull() {
+            addCriterion("is_delete is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteEqualTo(Integer value) {
+            addCriterion("is_delete =", value, "isDelete");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteNotEqualTo(Integer value) {
+            addCriterion("is_delete <>", value, "isDelete");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteGreaterThan(Integer value) {
+            addCriterion("is_delete >", value, "isDelete");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
+            addCriterion("is_delete >=", value, "isDelete");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteLessThan(Integer value) {
+            addCriterion("is_delete <", value, "isDelete");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
+            addCriterion("is_delete <=", value, "isDelete");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteIn(List<Integer> values) {
+            addCriterion("is_delete in", values, "isDelete");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteNotIn(List<Integer> values) {
+            addCriterion("is_delete not in", values, "isDelete");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
+            addCriterion("is_delete between", value1, value2, "isDelete");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
+            addCriterion("is_delete not between", value1, value2, "isDelete");
+            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;
+        }
+    }
+
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    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);
+        }
+    }
+}

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/LongArticleSystemContentItemVO.java → long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/ContentItemVO.java

@@ -7,7 +7,7 @@ import lombok.experimental.Accessors;
 @Getter
 @Setter
 @Accessors(chain = true)
-public class LongArticleSystemContentItemVO {
+public class ContentItemVO {
     //"发布内容ID")
     private String publishContentId;
     //"来源ID,一般为生成内容ID")

+ 0 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/LongArticleSystemFilterSortContentParam.java → long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/FilterSortContentParam.java


+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/LongArticleSystemContentVO.java

@@ -14,5 +14,5 @@ public class LongArticleSystemContentVO {
     //"内容总数")
     private Long totalCount;
     //"内容列表")
-    private List<LongArticleSystemContentItemVO> contentItemList;
+    private List<ContentItemVO> contentItemList;
 }

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/LongArticleSystemPushContentParam.java

@@ -13,5 +13,5 @@ public class LongArticleSystemPushContentParam {
     //"发布内容ID")
     private String publishContentId;
     //"排版内容")
-    private List<PublishMiniprogram> miniprogramCardList;
+    private List<PublishMiniprogramParam> miniprogramCardList;
 }

+ 16 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/MatchMiniprogramStatusParam.java

@@ -0,0 +1,16 @@
+package com.tzld.piaoquan.longarticle.model.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+@Getter
+@Setter
+public class MatchMiniprogramStatusParam {
+
+    //"发布内容ID")
+    private String publishContentId;
+    //"小程序匹配状态(2-匹配成功,3-匹配失败)")
+    private Integer status;
+    //"匹配失败原因")
+    private String errorMsg;
+}

+ 0 - 16
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/ProduceAuditLayoutContentObjVO.java

@@ -1,16 +0,0 @@
-package com.tzld.piaoquan.longarticle.model.vo;
-
-import lombok.Getter;
-import lombok.Setter;
-import lombok.experimental.Accessors;
-
-@Getter
-@Setter
-@Accessors(chain = true)
-public class ProduceAuditLayoutContentObjVO {
-
-    //"排版内容类型 0文本 1图片 2公众号 3首图/尾图 4小程序卡片")
-    private Integer type;
-    //"排版内容")
-    private String data;
-}

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/PublishMiniprogram.java → long-article-server/src/main/java/com/tzld/piaoquan/longarticle/model/vo/PublishMiniprogramParam.java

@@ -12,7 +12,7 @@ import java.math.BigDecimal;
 @Setter
 @Accessors(chain = true)
 @ToString
-public class PublishMiniprogram {
+public class PublishMiniprogramParam {
 
     private String productionCover;
     private String productionName;

+ 24 - 34
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/CardServiceImpl.java

@@ -3,7 +3,8 @@ package com.tzld.piaoquan.longarticle.service.impl;
 import com.alibaba.fastjson.JSONObject;
 import com.ctrip.framework.apollo.spring.annotation.ApolloJsonValue;
 import com.tzld.piaoquan.longarticle.model.bo.VideoDetail;
-import com.tzld.piaoquan.longarticle.model.vo.PublishMiniprogram;
+import com.tzld.piaoquan.longarticle.model.po.PublishMiniprogram;
+import com.tzld.piaoquan.longarticle.model.vo.PublishMiniprogramParam;
 import com.tzld.piaoquan.longarticle.service.CardService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -31,12 +32,12 @@ public class CardServiceImpl implements CardService {
         String rootSourceId;
 
         switch (miniProgramType) {
-            case 2:
-                rootSourceId = "touliu_tencentGzhArticle_" + ghId + "_" + generateSourceId();
-                break;
             case 1:
                 rootSourceId = "longArticles_" + generateSourceId();
                 break;
+            case 2:
+                rootSourceId = "touliu_tencentGzhArticle_" + ghId + "_" + generateSourceId();
+                break;
             case 3:
                 rootSourceId = "WeCom_" + generateSourceId();
                 break;
@@ -75,7 +76,7 @@ public class CardServiceImpl implements CardService {
         }
     }
 
-    public PublishMiniprogram generateSingleCard(Integer index, String ghId, Integer miniId, VideoDetail videoDetail, Integer miniProgramType, String publishContentId) {
+    public PublishMiniprogram generateSingleCard(Long planAccountId, Integer index, String ghId, Integer miniId, VideoDetail videoDetail, Integer miniProgramType, String publishContentId) {
         String strMiniId = String.valueOf(miniId);
         JSONObject miniInfo = miniProgramMap.getJSONObject(strMiniId);
         String avatar = miniInfo.getString("avatar");
@@ -86,40 +87,29 @@ public class CardServiceImpl implements CardService {
         String uid = videoDetail.getUid();
         JSONObject jsonObject = createGzhPath(videoId, uid, ghId, miniProgramType);
 
+
         PublishMiniprogram publishMiniprogram = new PublishMiniprogram();
-        publishMiniprogram.setProgramId(appId);
-        publishMiniprogram.setProgramName(appName);
-        publishMiniprogram.setProgramAvatar(avatar);
-        publishMiniprogram.setMini_id(miniId);
-        publishMiniprogram.setMiniprogramUseType(miniProgramType);
-        String kimiTitle = videoDetail.getKimiTitle();
-        if (StringUtils.hasText(kimiTitle)) {
-            kimiTitle = kimiTitle.replace("\"", "");
-            if (kimiTitle.length() > 32) {
-                kimiTitle = kimiTitle.substring(0, 32);
-            }
-            publishMiniprogram.setProductionName(kimiTitle);
-        }
-        String videoCover = videoDetail.getVideoCover();
-        String imageUrl = coverService.pushCover(videoCover, publishContentId);
-        if (StringUtils.isEmpty(imageUrl)) {
-            //TODO 上线要放开
-//            return null;
-        }
-        publishMiniprogram.setProductionCover(imageUrl);
-        publishMiniprogram.setProductionPath(jsonObject.getString("productionPath"));
-        publishMiniprogram.setRootShareId(jsonObject.getString("rootShareId"));
+        publishMiniprogram.setPlanAccountId(planAccountId);
+        publishMiniprogram.setAppId(appId);
+        publishMiniprogram.setPublishContentId(publishContentId);
+        publishMiniprogram.setAppId(appId);
+        publishMiniprogram.setAppName(appName);
+        publishMiniprogram.setAvatar(avatar);
+        publishMiniprogram.setMiniId(miniId);
+        publishMiniprogram.setMiniProgramType(miniProgramType);
+        publishMiniprogram.setVideoId(Long.parseLong(videoId));
         publishMiniprogram.setSource(videoDetail.getSource());
-        publishMiniprogram.setVideoUrl(videoDetail.getVideoPath());
+        publishMiniprogram.setVideoTitle(videoDetail.getKimiTitle());
+        publishMiniprogram.setVideoCover(videoDetail.getVideoCover());
+        publishMiniprogram.setVideoPath(videoDetail.getVideoPath());
+        publishMiniprogram.setProductionPath(jsonObject.getString("productionPath"));
+        publishMiniprogram.setRootShareId(jsonObject.getString("productionPath"));
+        publishMiniprogram.setIndex(index);
         publishMiniprogram.setTraceId(videoDetail.getTraceId());
-        publishMiniprogram.setParagraphPosition(BigDecimal.valueOf(index * 0.25));
-        if (index == 1) {
-            publishMiniprogram.setParagraphPosition(BigDecimal.valueOf(0.01));
-        }
         return publishMiniprogram;
     }
 
-    public List<PublishMiniprogram> generateCards(String ghId, List<VideoDetail> videoDetails, int miniProgramType, String publishContentId) {
+    public List<PublishMiniprogram> generateCards(Long planAccountId, String ghId, List<VideoDetail> videoDetails, int miniProgramType, String publishContentId) {
         int long_articles_mini_program_id = 25;
         int touliu_mini_program_id = 33;
         int we_com_mini_program_id = 27;
@@ -145,7 +135,7 @@ public class CardServiceImpl implements CardService {
         }
         for (int index = 0; index < videoDetails.size(); index++) {
             VideoDetail videoDetail = videoDetails.get(index);
-            PublishMiniprogram card = generateSingleCard(index + 1, ghId, miniId, videoDetail, miniProgramType, publishContentId);
+            PublishMiniprogram card = generateSingleCard(planAccountId, index + 1, ghId, miniId, videoDetail, miniProgramType, publishContentId);
             if (card != null) {
                 cardList.add(card);
             }

+ 20 - 9
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/ContentServiceImpl.java

@@ -1,26 +1,24 @@
 package com.tzld.piaoquan.longarticle.service.impl;
 
 import com.alibaba.fastjson.JSON;
-import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.ctrip.framework.apollo.spring.annotation.ApolloJsonValue;
 import com.tzld.piaoquan.longarticle.dao.mapper.CrawlerVideoMapper;
+import com.tzld.piaoquan.longarticle.dao.mapper.MatchVideoMapper;
 import com.tzld.piaoquan.longarticle.model.dto.MiniprogramCardRequest;
 import com.tzld.piaoquan.longarticle.model.po.CrawlerVideo;
 import com.tzld.piaoquan.longarticle.model.po.CrawlerVideoExample;
-import com.tzld.piaoquan.longarticle.model.po.LongArticlesText;
-import com.tzld.piaoquan.longarticle.model.vo.LongArticleSystemContentItemVO;
+import com.tzld.piaoquan.longarticle.model.po.MatchVideo;
+import com.tzld.piaoquan.longarticle.model.po.MatchVideoExample;
+import com.tzld.piaoquan.longarticle.model.vo.ContentItemVO;
 import com.tzld.piaoquan.longarticle.service.ContentService;
-import com.tzld.piaoquan.longarticle.service.KimiService;
 import com.tzld.piaoquan.longarticle.utils.*;
 import lombok.extern.slf4j.Slf4j;
-import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 
 import java.util.*;
-import java.util.stream.Collectors;
 
 @Slf4j
 @Service
@@ -31,12 +29,15 @@ public class ContentServiceImpl implements ContentService {
     @ApolloJsonValue("${testAccountLevel2:{}}")
     private Map<String, Integer> ghIdMap;
 
+    @Autowired
+    private MatchVideoMapper matchVideoMapper;
+
     @Autowired
     private CrawlerVideoMapper crawlerVideoMapper;
 
-    public boolean submitMiniprogramCard(MiniprogramCardRequest request) {
+    public boolean matchMiniprogramVideo(MiniprogramCardRequest request) {
         String apiUrl = "http://47.99.132.47:8111/search_videos";
-        List<LongArticleSystemContentItemVO> contentItemList = new ArrayList<>();
+        List<ContentItemVO> contentItemList = new ArrayList<>();
         try {
             String res = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl, JSON.toJSONString(request));
             JSONObject jsonObject = JSON.parseObject(res);
@@ -50,6 +51,16 @@ public class ContentServiceImpl implements ContentService {
         return false;
     }
 
+    public MatchVideo getContent(String contentId, String ghId) {
+        MatchVideoExample matchVideoExample = new MatchVideoExample();
+        matchVideoExample.createCriteria().andGhIdEqualTo(ghId).andContentIdEqualTo(contentId);
+        List<MatchVideo> matchVideos = matchVideoMapper.selectByExample(matchVideoExample);
+        if (CollectionUtils.isEmpty(matchVideos)) {
+            return null;
+        }
+        return matchVideos.get(0);
+    }
+
 
     public List<CrawlerVideo> getContentVideo(String contentId, String flowPoolLevel, String ghId) {
         CrawlerVideoExample example = new CrawlerVideoExample();
@@ -82,7 +93,7 @@ public class ContentServiceImpl implements ContentService {
         return videoList;
     }
 
-    public static <T> List<T> shuffleList(List<T> oriList) {
+    private <T> List<T> shuffleList(List<T> oriList) {
         // 使用 ArrayList 创建副本
         List<T> shuffledList = new ArrayList<>(oriList);
         Collections.shuffle(shuffledList); // 随机打乱列表

+ 200 - 80
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/CoreServiceImpl.java

@@ -1,22 +1,25 @@
 package com.tzld.piaoquan.longarticle.service.impl;
 
+import com.tzld.piaoquan.longarticle.dao.mapper.PlanAccountMapper;
+import com.tzld.piaoquan.longarticle.dao.mapper.PublishMiniprogramMapper;
+import com.tzld.piaoquan.longarticle.model.dto.*;
 import com.tzld.piaoquan.longarticle.model.bo.*;
-import com.tzld.piaoquan.longarticle.model.dto.ArticleSortRequest;
-import com.tzld.piaoquan.longarticle.model.dto.ArticleSortResponse;
-import com.tzld.piaoquan.longarticle.model.dto.ArticleSortResponseData;
-import com.tzld.piaoquan.longarticle.model.dto.PublishArticleData;
-import com.tzld.piaoquan.longarticle.model.po.CrawlerVideo;
-import com.tzld.piaoquan.longarticle.model.po.LongArticlesText;
+import com.tzld.piaoquan.longarticle.model.po.*;
+import com.tzld.piaoquan.longarticle.model.po.PlanAccount;
 import com.tzld.piaoquan.longarticle.model.vo.*;
 import com.tzld.piaoquan.longarticle.service.CoreService;
+import com.tzld.piaoquan.longarticle.utils.DateUtil;
 import com.tzld.piaoquan.longarticle.utils.TimeZoneUtil;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 
+import java.math.BigDecimal;
 import java.util.ArrayList;
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 
 @Service
 public class CoreServiceImpl implements CoreService {
@@ -42,89 +45,153 @@ public class CoreServiceImpl implements CoreService {
     @Autowired
     private CoverServiceImpl coverService;
 
-    public void core() {
-        List<PlanAccount> planAccounts = new ArrayList<>();
+    @Autowired
+    private PlanAccountMapper planAccountMapper;
+
+    @Autowired
+    private PlanAccountServiceImpl planAccountService;
+
+    @Autowired
+    private PublishMiniprogramMapper publishMiniprogramMapper;
 
+    public void init() {
         List<LongArticleSystemPlan> allLongArticleSystemPlans = planService.getAllLongArticleSystemPlan();
-//        for (LongArticleSystemPlan longArticleSystemPlan : allLongArticleSystemPlans) {
-//            //获取排序策略
-//            Map<String, String> sortStgMap = new HashMap<>();
-//            List<GzhArticleSortTaskParam> gzhArticleSortTask = longArticleSystemPlan.getGzhArticleSortTask();
-//            for (GzhArticleSortTaskParam gzhArticleSortTaskParam : gzhArticleSortTask) {
-//                String strategy = gzhArticleSortTaskParam.getStrategy();
-//                List<String> accountIds = gzhArticleSortTaskParam.getAccountIds();
-//                for (String accountId : accountIds) {
-//                    sortStgMap.put(accountId, strategy);
-//                }
-//            }
-//            //获取小程序策略
-//            Map<String, MiniprogramInsertTaskParam> miniStgMap = new HashMap<>();
-//            List<MiniprogramInsertTaskParam> miniprogramInsertTasks = longArticleSystemPlan.getMiniprogramInsertTasks();
-//            for (MiniprogramInsertTaskParam miniprogramInsertTaskParam : miniprogramInsertTasks) {
-//                List<String> accountIds = miniprogramInsertTaskParam.getAccountIds();
-//                for (String accountId : accountIds) {
-//                    miniStgMap.put(accountId, miniprogramInsertTaskParam);
-//                }
-//            }
-//            for (LongArticleSystemPlanAccount account : longArticleSystemPlan.getAccountList()) {
-//                PlanAccount planAccount = new PlanAccount();
-//                String accountId = account.getId();
-//                planAccount.setPlanId(longArticleSystemPlan.getId());
-//                planAccount.setPlanName(longArticleSystemPlan.getName());
-//                planAccount.setAccountId(accountId);
-//                planAccount.setAccountName(account.getName());
-//                planAccount.setGzhId(account.getGzhId());
-//                planAccount.setPublishNum(longArticleSystemPlan.getPublishNum());
-//                planAccount.setPublishPerMinNum(longArticleSystemPlan.getPublishPerMinNum());
-//                planAccount.setPublishPushTime(longArticleSystemPlan.getPublishPushTime());
-//                MiniprogramInsertTaskParam miniprogramInsertTaskParam = miniStgMap.get(accountId);
-//                if (miniprogramInsertTaskParam != null) {
-//                    planAccount.setMiniprogramUseType(miniprogramInsertTaskParam.getMiniprogramUseType());
-//                    planAccount.setMiniStrategy(miniprogramInsertTaskParam.getStrategy());
-//                } else {
-//                    planAccount.setMiniprogramUseType(1);
-//                    planAccount.setMiniStrategy("strategy_v1");
-//                }
-//                if (sortStgMap.containsKey(accountId)) {
-//                    planAccount.setSortStrategy(sortStgMap.get(accountId));
-//                } else {
-//                    planAccount.setSortStrategy("ArticleRankV1");
-//                }
-//                planAccount.setPushType(longArticleSystemPlan.getPushType());
-//                planAccounts.add(planAccount);
-//            }
-//        }
-
-//        for (PlanAccount planAccount : planAccounts) {
-//            LongArticleSystemGetContentsParam param = new LongArticleSystemGetContentsParam();
-//            param.setAccountId(param.getAccountId());
-//            param.setPlanId(planAccount.getPlanId());
-//            LongArticleSystemContentVO longArticleSystemContentVO = planService.listWaitingMatchMiniprogramContents(param);
-//            //TODO 调用匹配接口
-//
-//            //TODO 匹配成功后  通知AIGC
-//
-//        }
+        for (LongArticleSystemPlan longArticleSystemPlan : allLongArticleSystemPlans) {
+            //TODO 判断计划当天是否需要发送  不发送不记录
+            //获取排序策略
+            Map<String, String> sortStgMap = new HashMap<>();
+            List<GzhArticleSortTaskParam> gzhArticleSortTask = longArticleSystemPlan.getGzhArticleSortTask();
+            for (GzhArticleSortTaskParam gzhArticleSortTaskParam : gzhArticleSortTask) {
+                String strategy = gzhArticleSortTaskParam.getStrategy();
+                List<String> accountIds = gzhArticleSortTaskParam.getAccountIds();
+                for (String accountId : accountIds) {
+                    sortStgMap.put(accountId, strategy);
+                }
+            }
+            //获取小程序策略
+            Map<String, MiniprogramInsertTaskParam> miniStgMap = new HashMap<>();
+            List<MiniprogramInsertTaskParam> miniprogramInsertTasks = longArticleSystemPlan.getMiniprogramInsertTasks();
+            for (MiniprogramInsertTaskParam miniprogramInsertTaskParam : miniprogramInsertTasks) {
+                List<String> accountIds = miniprogramInsertTaskParam.getAccountIds();
+                for (String accountId : accountIds) {
+                    miniStgMap.put(accountId, miniprogramInsertTaskParam);
+                }
+            }
+            for (LongArticleSystemPlanAccount account : longArticleSystemPlan.getAccountList()) {
+                PlanAccountExample example = new PlanAccountExample();
+                example.createCriteria().andAccountIdEqualTo(account.getId()).andPlanIdEqualTo(longArticleSystemPlan.getId())
+                        .andCreateTimeGreaterThan(DateUtil.getThatDayDate());
+                long l = planAccountMapper.countByExample(example);
+                if (l > 0) {
+                    continue;
+                }
+                PlanAccount planAccount = new PlanAccount();
+                String accountId = account.getId();
+                planAccount.setPlanId(longArticleSystemPlan.getId());
+                planAccount.setPlanName(longArticleSystemPlan.getName());
+                planAccount.setAccountId(accountId);
+                planAccount.setAccountName(account.getName());
+                planAccount.setGhId(account.getGzhId());
+                planAccount.setPublishNum(longArticleSystemPlan.getPublishNum());
+                planAccount.setPublishPreMinNum(longArticleSystemPlan.getPublishPerMinNum());
+                MiniprogramInsertTaskParam miniprogramInsertTaskParam = miniStgMap.get(accountId);
+                if (miniprogramInsertTaskParam != null) {
+                    planAccount.setMiniprogramUseType(miniprogramInsertTaskParam.getMiniprogramUseType());
+                    planAccount.setMiniStrategy(miniprogramInsertTaskParam.getStrategy());
+                }
+                if (sortStgMap.containsKey(accountId)) {
+                    planAccount.setSortStrategy(sortStgMap.get(accountId));
+                }
+                planAccount.setPushType(longArticleSystemPlan.getPushType());
+                planAccountMapper.insertSelective(planAccount);
+            }
+        }
+    }
+
+    public void match() {
+        //查询状态为0的请求匹配
+        PlanAccountExample example = new PlanAccountExample();
+        example.createCriteria().andCreateTimeGreaterThan(DateUtil.getThatDayDate()).andStatusEqualTo(0);
+        List<PlanAccount> planAccounts = planAccountMapper.selectByExample(example);
+        for (PlanAccount planAccount : planAccounts) {
+            LongArticleSystemGetContentsParam param = new LongArticleSystemGetContentsParam();
+            param.setAccountId(param.getAccountId());
+            param.setPlanId(planAccount.getPlanId());
+            LongArticleSystemContentVO longArticleSystemContentVO = planService.getContentItemList(param);
+            if (longArticleSystemContentVO == null) {
+                continue;
+            }
+            //没有待匹配的文章  更新状态为1  待排序
+            if (longArticleSystemContentVO.getTotalCount() == 0) {
+                PlanAccount updatePlanAccount = new PlanAccount();
+                updatePlanAccount.setId(planAccount.getId());
+                updatePlanAccount.setStatus(1);
+                planAccountMapper.updateByPrimaryKey(updatePlanAccount);
+            }
+            for (ContentItemVO contentItemVO : longArticleSystemContentVO.getContentItemList()) {
+                MatchVideo content = contentService.getContent(planAccount.getGhId(), contentItemVO.getContent());
+                if (content != null) {
+                    Integer contentStatus = content.getContentStatus();
+                    if (contentStatus == 3 || contentStatus == 4) {
+                        MatchMiniprogramStatusParam statusParam = new MatchMiniprogramStatusParam();
+                        statusParam.setStatus(2);
+                        statusParam.setPublishContentId(contentItemVO.getPublishContentId());
+                        planService.updateMatchMiniprogramStatus(statusParam);
+                        continue;
+                    }
+                    if (contentStatus == 99 || contentStatus == 97) {
+                        MatchMiniprogramStatusParam statusParam = new MatchMiniprogramStatusParam();
+                        statusParam.setStatus(3);
+                        statusParam.setPublishContentId(contentItemVO.getPublishContentId());
+                        if (contentStatus == 99) {
+                            statusParam.setErrorMsg("匹配视频失败");
+                        }
+                        if (contentStatus == 97) {
+                            statusParam.setErrorMsg("文章晋级或者退场");
+                        }
+                        planService.updateMatchMiniprogramStatus(statusParam);
+                        continue;
+                    }
+                }
+
+                MiniprogramCardRequest request = new MiniprogramCardRequest();
+                request.setGhId(planAccount.getGhId());
+                request.setAccountName(planAccount.getAccountName());
+                request.setContent(contentItemVO.getContent());
+                request.setTitle(contentItemVO.getTitle());
+                request.setStrategy(planAccount.getMiniStrategy());
+                request.setArticleId(contentItemVO.getSourceId());
+                request.setFlowPoolLevelTag(contentItemVO.getFlowPoolLevelTag());
+                contentService.matchMiniprogramVideo(request);
+            }
+        }
+    }
+
+    public void core() {
+        List<PlanAccount> planAccounts = new ArrayList<>();
 
         PlanAccount planAccount1 = new PlanAccount();
         planAccount1.setAccountId("20231208111728193795195");
         planAccount1.setAccountName("票圈大事件");
-        planAccount1.setGzhId("gh_9e559b3b94ca");
+        planAccount1.setGhId("gh_9e559b3b94ca");
         planAccount1.setPlanId("20241012140830436890740");
         planAccount1.setPublishNum(8);
         planAccount1.setMiniStrategy("strategy_v1");
         planAccount1.setSortStrategy("ArticleRankV5");
-        planAccount1.setPublishPerMinNum(4);
+        planAccount1.setPublishPreMinNum(4);
         planAccount1.setMiniprogramUseType(1);
         planAccount1.setPushType(2);
         planAccounts.add(planAccount1);
 
-
+        //查询状态为1的  开始排序  发布小程序视频  组装 发布文章
+//        PlanAccountExample example = new PlanAccountExample();
+//        example.createCriteria().andCreateTimeGreaterThan(DateUtil.getThatDayDate()).andStatusEqualTo(1);
+//        List<PlanAccount> planAccounts = planAccountMapper.selectByExample(example);
         for (PlanAccount planAccount : planAccounts) {
             ArticleSortRequest articleSortRequest = new ArticleSortRequest();
             articleSortRequest.setAccountId(planAccount.getAccountId());
             articleSortRequest.setAccountName(planAccount.getAccountName());
-            articleSortRequest.setGhId(planAccount.getGzhId());
+            articleSortRequest.setGhId(planAccount.getGhId());
             articleSortRequest.setStrategy(planAccount.getSortStrategy());
             articleSortRequest.setPublishNum(planAccount.getPublishNum());
             articleSortRequest.setPlanId(planAccount.getPlanId());
@@ -153,9 +220,11 @@ public class CoreServiceImpl implements CoreService {
             for (PublishArticleData publishArticleData : rankList) {
                 LongArticleSystemPushContentParam contentParam = new LongArticleSystemPushContentParam();
                 String publishContentId = publishArticleData.getId();
+                //获取小程序
                 List<CrawlerVideo> contentVideos =
-                        contentService.getContentVideo(publishArticleData.getSourceId(), publishArticleData.getContentPoolType(), planAccount.getGzhId());
+                        contentService.getContentVideo(publishArticleData.getSourceId(), publishArticleData.getContentPoolType(), planAccount.getGhId());
                 List<VideoDetail> videoDetails = new ArrayList<>();
+                //发布小程序
                 for (CrawlerVideo crawlerVideo : contentVideos) {
                     String videoOssPath = crawlerVideo.getVideoOssPath();
                     String platform = crawlerVideo.getPlatform();
@@ -175,15 +244,59 @@ public class CoreServiceImpl implements CoreService {
                     videoDetails.add(publish);
                 }
                 if (videoDetails.size() < 2) {
+                    MatchMiniprogramStatusParam statusParam = new MatchMiniprogramStatusParam();
+                    statusParam.setStatus(3);
+                    statusParam.setPublishContentId(publishContentId);
+                    statusParam.setErrorMsg("小程序视频数量不足");
+                    planService.updateMatchMiniprogramStatus(statusParam);
                     continue;
                 }
-                String gzhId = planAccount.getGzhId();
-                List<PublishMiniprogram> cardList = cardService.generateCards(gzhId, videoDetails, planAccount.getMiniprogramUseType(), publishContentId);
-                if (CollectionUtils.isEmpty(cardList)) {
+                String ghId = planAccount.getGhId();
+                Long planAccountId = planAccount.getId();
+                List<PublishMiniprogram> cardList = cardService.generateCards(planAccountId, ghId, videoDetails, planAccount.getMiniprogramUseType(), publishContentId);
+                if (CollectionUtils.isEmpty(cardList) && cardList.size() < 2) {
+                    continue;
+                }
+                List<PublishMiniprogramParam> publishCardList = new ArrayList<>();
+                for (PublishMiniprogram publishMiniprogram : cardList) {
+                    String videoCover = publishMiniprogram.getVideoCover();
+                    String wxUrl = coverService.pushCover(videoCover, publishMiniprogram.getPublishContentId());
+                    if (StringUtils.isEmpty(wxUrl)) {
+                        continue;
+                    }
+                    PublishMiniprogramParam param = new PublishMiniprogramParam();
+                    param.setProgramId(publishMiniprogram.getAppId());
+                    param.setProgramName(publishMiniprogram.getAppName());
+                    param.setProgramAvatar(publishMiniprogram.getAvatar());
+                    param.setMini_id(Integer.valueOf(publishMiniprogram.getMiniId()));
+                    param.setMiniprogramUseType(publishMiniprogram.getMiniProgramType());
+                    String videoTitle = publishMiniprogram.getVideoTitle();
+                    if (org.springframework.util.StringUtils.hasText(videoTitle)) {
+                        videoTitle = videoTitle.replace("\"", "");
+                        if (videoTitle.length() > 32) {
+                            videoTitle = videoTitle.substring(0, 32);
+                        }
+                        param.setProductionName(videoTitle);
+                    }
+                    param.setProductionCover(wxUrl);
+                    param.setProductionPath(publishMiniprogram.getProductionPath());
+                    param.setRootShareId(publishMiniprogram.getRootShareId());
+                    param.setSource(publishMiniprogram.getSource());
+                    param.setVideoUrl(publishMiniprogram.getVideoPath());
+                    param.setParagraphPosition(BigDecimal.valueOf(publishMiniprogram.getIndex() * 0.25));
+                    if (publishMiniprogram.getIndex() == 1) {
+                        param.setParagraphPosition(BigDecimal.valueOf(0.01));
+                    }
+                    param.setTraceId(publishMiniprogram.getTraceId());
+                    publishCardList.add(param);
+                    publishMiniprogramMapper.insertSelective(publishMiniprogram);
+                }
+
+                if (publishCardList.size() < 2) {
                     continue;
                 }
                 contentParam.setPublishContentId(publishContentId);
-                contentParam.setMiniprogramCardList(cardList);
+                contentParam.setMiniprogramCardList(publishCardList);
                 pushContentList.add(contentParam);
             }
             LongArticleSystemCreatePushTaskParam gzhPushParam = new LongArticleSystemCreatePushTaskParam();
@@ -198,11 +311,18 @@ public class CoreServiceImpl implements CoreService {
                 gzhPushParam.setPushScheduleTimestamp(System.currentTimeMillis());
             }
             gzhPushParam.setPushContentList(pushContentList);
-            if (pushContentList.size() < planAccount.getPublishPerMinNum()) {
-                //TODO 数量不足
+            if (pushContentList.size() < planAccount.getPublishPreMinNum()) {
+                //TODO 数量不足 更新状态 发布失败
+                planAccountService.updateStatus(5, planAccount.getId());
+                continue;
             }
-            planService.createPushTask(gzhPushParam);
-        }
+            System.out.println(gzhPushParam);
+            boolean pushTask = planService.createPushTask(gzhPushParam);
+            if (pushTask) {
+                //更新状态  发布完成
+                planAccountService.updateStatus(3, planAccount.getId());
 
+            }
+        }
     }
 }

+ 18 - 17
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/CoverServiceImpl.java

@@ -16,22 +16,23 @@ public class CoverServiceImpl implements CoverService {
 
 
     public String pushCover(String coverUrl, String publishContentId) {
-        String apiUrl = "http://aigc-testapi.cybertogether.net/aigc//publish/LongArticleSystem/uploadMiniprogramCover";
-        try {
-            JSONObject param = new JSONObject();
-            param.put("coverUrl", coverUrl);
-            param.put("publishContentId", publishContentId);
-            String res = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl, JSONObject.toJSONString(param));
-            JSONObject jsonObject = JSON.parseObject(res);
-            Integer code = jsonObject.getInteger("code");
-            if (code == 0) {
-                JSONObject data = jsonObject.getJSONObject("data");
-                return data.getString("wxUrl");
-            }
-            return null;
-        } catch (Exception e) {
-            log.error("getAllLongArticleSystemPlan error", e);
-        }
-        return null;
+        return coverUrl;
+//        String apiUrl = "http://aigc-testapi.cybertogether.net/aigc//publish/LongArticleSystem/uploadMiniprogramCover";
+//        try {
+//            JSONObject param = new JSONObject();
+//            param.put("coverUrl", coverUrl);
+//            param.put("publishContentId", publishContentId);
+//            String res = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl, JSONObject.toJSONString(param));
+//            JSONObject jsonObject = JSON.parseObject(res);
+//            Integer code = jsonObject.getInteger("code");
+//            if (code == 0) {
+//                JSONObject data = jsonObject.getJSONObject("data");
+//                return data.getString("wxUrl");
+//            }
+//            return null;
+//        } catch (Exception e) {
+//            log.error("getAllLongArticleSystemPlan error", e);
+//        }
+//        return null;
     }
 }

+ 20 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/PlanAccountServiceImpl.java

@@ -0,0 +1,20 @@
+package com.tzld.piaoquan.longarticle.service.impl;
+
+import com.tzld.piaoquan.longarticle.dao.mapper.PlanAccountMapper;
+import com.tzld.piaoquan.longarticle.model.po.PlanAccount;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+@Service
+public class PlanAccountServiceImpl {
+
+    @Autowired
+    private PlanAccountMapper planAccountMapper;
+
+    public void updateStatus(Integer status, Long id){
+        PlanAccount updatePlanAccount = new PlanAccount();
+        updatePlanAccount.setId(id);
+        updatePlanAccount.setStatus(status);
+        planAccountMapper.updateByPrimaryKey(updatePlanAccount);
+    }
+}

+ 24 - 14
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/impl/PlanServiceImpl.java

@@ -39,18 +39,14 @@ public class PlanServiceImpl {
         return null;
     }
 
-    public List<LongArticleSystemContentItemVO> getContentItemList(LongArticleSystemGetContentsParam param) {
-        List<LongArticleSystemContentItemVO> contentItemList = new ArrayList<>();
+    public LongArticleSystemContentVO getContentItemList(LongArticleSystemGetContentsParam param) {
         int pageNum = 1;
         int pageSize = 500;
         param.setPageNum(pageNum);
         param.setPageSize(pageSize);
         LongArticleSystemContentVO longArticleSystemContentVO = listWaitingMatchMiniprogramContents(param);
         if (longArticleSystemContentVO == null) {
-            return new ArrayList<>();
-        }
-        if (!CollectionUtils.isEmpty(longArticleSystemContentVO.getContentItemList())) {
-            contentItemList.addAll(longArticleSystemContentVO.getContentItemList());
+            return null;
         }
         Long totalCount = longArticleSystemContentVO.getTotalCount();
         while ((long) pageNum * pageSize < totalCount) {
@@ -58,15 +54,15 @@ public class PlanServiceImpl {
             param.setPageNum(pageNum);
             LongArticleSystemContentVO longArticleSystemContentVO1 = listWaitingMatchMiniprogramContents(param);
             if (longArticleSystemContentVO1 != null && !CollectionUtils.isEmpty(longArticleSystemContentVO.getContentItemList())) {
-                contentItemList.addAll(longArticleSystemContentVO.getContentItemList());
+                longArticleSystemContentVO.getContentItemList().addAll(longArticleSystemContentVO.getContentItemList());
             }
         }
-        return contentItemList;
+        return longArticleSystemContentVO;
     }
 
     public LongArticleSystemContentVO listWaitingMatchMiniprogramContents(LongArticleSystemGetContentsParam param) {
-        String apiUrl = "http://aigc-api.cybertogether.net/publish/LongArticleSystem/listWaitingMatchMiniprogramContents";
-        List<LongArticleSystemContentItemVO> contentItemList = new ArrayList<>();
+        String apiUrl = "http://aigc-testapi.cybertogether.net/publish/LongArticleSystem/listWaitingMatchMiniprogramContents";
+        List<ContentItemVO> contentItemList = new ArrayList<>();
         try {
             String res = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl, JSON.toJSONString(param));
             JSONObject jsonObject = JSON.parseObject(res);
@@ -82,8 +78,7 @@ public class PlanServiceImpl {
     }
 
     public boolean createPushTask(LongArticleSystemCreatePushTaskParam param) {
-        String apiUrl = "http://aigc-api.cybertogether.net/publish/LongArticleSystem/uploadMiniprogramCover";
-        List<LongArticleSystemContentItemVO> contentItemList = new ArrayList<>();
+        String apiUrl = "http://aigc-testapi.cybertogether.net/publish/LongArticleSystem/uploadMiniprogramCover";
         try {
             String res = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl, JSON.toJSONString(param));
             JSONObject jsonObject = JSON.parseObject(res);
@@ -97,9 +92,24 @@ public class PlanServiceImpl {
         return false;
     }
 
+    public boolean updateMatchMiniprogramStatus(MatchMiniprogramStatusParam param){
+        String apiUrl = "http://aigc-testapi.cybertogether.net/publish/LongArticleSystem/updateMatchMiniprogramStatus";
+        try {
+            String res = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl, JSON.toJSONString(param));
+            JSONObject jsonObject = JSON.parseObject(res);
+            Integer code = jsonObject.getInteger("code");
+            if (code == 0) {
+                return true;
+            }
+        } catch (Exception e) {
+            log.error("updateMatchMiniprogramStatus error", e);
+        }
+        return false;
+    }
+
     public boolean filterSortContents(FilterSortParam param) {
-        String apiUrl = "http://aigc-api.cybertogether.net/publish/LongArticleSystem/filterSortContents";
-        List<LongArticleSystemContentItemVO> contentItemList = new ArrayList<>();
+        String apiUrl = "http://aigc-testapi.cybertogether.net/publish/LongArticleSystem/filterSortContents";
+        List<ContentItemVO> contentItemList = new ArrayList<>();
         try {
             String res = HTTP_POOL_CLIENT_UTIL_DEFAULT.post(apiUrl, JSON.toJSONString(param));
             JSONObject jsonObject = JSON.parseObject(res);

+ 16 - 0
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/DateUtil.java

@@ -0,0 +1,16 @@
+package com.tzld.piaoquan.longarticle.utils;
+
+import java.util.Calendar;
+import java.util.Date;
+
+public class DateUtil {
+
+    public static Date getThatDayDate() {
+        Calendar calendar = Calendar.getInstance();
+        calendar.setTime(new Date());
+        calendar.set(Calendar.HOUR_OF_DAY, 0);
+        calendar.set(Calendar.MINUTE, 0);
+        calendar.set(Calendar.SECOND, 0);
+        return calendar.getTime();
+    }
+}

+ 389 - 0
long-article-server/src/main/resources/mapper/PlanAccountMapper.xml

@@ -0,0 +1,389 @@
+<?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.longarticle.dao.mapper.PlanAccountMapper">
+  <resultMap id="BaseResultMap" type="com.tzld.piaoquan.longarticle.model.po.PlanAccount">
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="plan_id" jdbcType="VARCHAR" property="planId" />
+    <result column="plan_name" jdbcType="VARCHAR" property="planName" />
+    <result column="account_id" jdbcType="VARCHAR" property="accountId" />
+    <result column="account_name" jdbcType="VARCHAR" property="accountName" />
+    <result column="gh_id" jdbcType="VARCHAR" property="ghId" />
+    <result column="publish_num" jdbcType="INTEGER" property="publishNum" />
+    <result column="publish_pre_min_num" jdbcType="INTEGER" property="publishPreMinNum" />
+    <result column="publish_push_time" jdbcType="VARCHAR" property="publishPushTime" />
+    <result column="mini_strategy" jdbcType="VARCHAR" property="miniStrategy" />
+    <result column="miniprogram_use_type" jdbcType="INTEGER" property="miniprogramUseType" />
+    <result column="sort_strategy" jdbcType="VARCHAR" property="sortStrategy" />
+    <result column="push_type" jdbcType="INTEGER" property="pushType" />
+    <result column="status" jdbcType="INTEGER" property="status" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <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">
+    <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">
+    id, plan_id, plan_name, account_id, account_name, gh_id, publish_num, publish_pre_min_num, 
+    publish_push_time, mini_strategy, miniprogram_use_type, sort_strategy, push_type, 
+    `status`, create_time, update_time
+  </sql>
+  <select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccountExample" resultMap="BaseResultMap">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from long_articles_plan_account
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    <if test="page != null">
+      limit #{page.offset} , #{page.pageSize}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from long_articles_plan_account
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    delete from long_articles_plan_account
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccountExample">
+    delete from long_articles_plan_account
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccount">
+    insert into long_articles_plan_account (id, plan_id, plan_name, 
+      account_id, account_name, gh_id, 
+      publish_num, publish_pre_min_num, publish_push_time, 
+      mini_strategy, miniprogram_use_type, sort_strategy, 
+      push_type, `status`, create_time, 
+      update_time)
+    values (#{id,jdbcType=BIGINT}, #{planId,jdbcType=VARCHAR}, #{planName,jdbcType=VARCHAR}, 
+      #{accountId,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, #{ghId,jdbcType=VARCHAR}, 
+      #{publishNum,jdbcType=INTEGER}, #{publishPreMinNum,jdbcType=INTEGER}, #{publishPushTime,jdbcType=VARCHAR}, 
+      #{miniStrategy,jdbcType=VARCHAR}, #{miniprogramUseType,jdbcType=INTEGER}, #{sortStrategy,jdbcType=VARCHAR}, 
+      #{pushType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, 
+      #{updateTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.PlanAccount">
+    insert into long_articles_plan_account
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="planId != null">
+        plan_id,
+      </if>
+      <if test="planName != null">
+        plan_name,
+      </if>
+      <if test="accountId != null">
+        account_id,
+      </if>
+      <if test="accountName != null">
+        account_name,
+      </if>
+      <if test="ghId != null">
+        gh_id,
+      </if>
+      <if test="publishNum != null">
+        publish_num,
+      </if>
+      <if test="publishPreMinNum != null">
+        publish_pre_min_num,
+      </if>
+      <if test="publishPushTime != null">
+        publish_push_time,
+      </if>
+      <if test="miniStrategy != null">
+        mini_strategy,
+      </if>
+      <if test="miniprogramUseType != null">
+        miniprogram_use_type,
+      </if>
+      <if test="sortStrategy != null">
+        sort_strategy,
+      </if>
+      <if test="pushType != null">
+        push_type,
+      </if>
+      <if test="status != null">
+        `status`,
+      </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="planId != null">
+        #{planId,jdbcType=VARCHAR},
+      </if>
+      <if test="planName != null">
+        #{planName,jdbcType=VARCHAR},
+      </if>
+      <if test="accountId != null">
+        #{accountId,jdbcType=VARCHAR},
+      </if>
+      <if test="accountName != null">
+        #{accountName,jdbcType=VARCHAR},
+      </if>
+      <if test="ghId != null">
+        #{ghId,jdbcType=VARCHAR},
+      </if>
+      <if test="publishNum != null">
+        #{publishNum,jdbcType=INTEGER},
+      </if>
+      <if test="publishPreMinNum != null">
+        #{publishPreMinNum,jdbcType=INTEGER},
+      </if>
+      <if test="publishPushTime != null">
+        #{publishPushTime,jdbcType=VARCHAR},
+      </if>
+      <if test="miniStrategy != null">
+        #{miniStrategy,jdbcType=VARCHAR},
+      </if>
+      <if test="miniprogramUseType != null">
+        #{miniprogramUseType,jdbcType=INTEGER},
+      </if>
+      <if test="sortStrategy != null">
+        #{sortStrategy,jdbcType=VARCHAR},
+      </if>
+      <if test="pushType != null">
+        #{pushType,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        #{status,jdbcType=INTEGER},
+      </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.longarticle.model.po.PlanAccountExample" resultType="java.lang.Long">
+    select count(*) from long_articles_plan_account
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    update long_articles_plan_account
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=BIGINT},
+      </if>
+      <if test="record.planId != null">
+        plan_id = #{record.planId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.planName != null">
+        plan_name = #{record.planName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.accountId != null">
+        account_id = #{record.accountId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.accountName != null">
+        account_name = #{record.accountName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.ghId != null">
+        gh_id = #{record.ghId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.publishNum != null">
+        publish_num = #{record.publishNum,jdbcType=INTEGER},
+      </if>
+      <if test="record.publishPreMinNum != null">
+        publish_pre_min_num = #{record.publishPreMinNum,jdbcType=INTEGER},
+      </if>
+      <if test="record.publishPushTime != null">
+        publish_push_time = #{record.publishPushTime,jdbcType=VARCHAR},
+      </if>
+      <if test="record.miniStrategy != null">
+        mini_strategy = #{record.miniStrategy,jdbcType=VARCHAR},
+      </if>
+      <if test="record.miniprogramUseType != null">
+        miniprogram_use_type = #{record.miniprogramUseType,jdbcType=INTEGER},
+      </if>
+      <if test="record.sortStrategy != null">
+        sort_strategy = #{record.sortStrategy,jdbcType=VARCHAR},
+      </if>
+      <if test="record.pushType != null">
+        push_type = #{record.pushType,jdbcType=INTEGER},
+      </if>
+      <if test="record.status != null">
+        `status` = #{record.status,jdbcType=INTEGER},
+      </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">
+    update long_articles_plan_account
+    set id = #{record.id,jdbcType=BIGINT},
+      plan_id = #{record.planId,jdbcType=VARCHAR},
+      plan_name = #{record.planName,jdbcType=VARCHAR},
+      account_id = #{record.accountId,jdbcType=VARCHAR},
+      account_name = #{record.accountName,jdbcType=VARCHAR},
+      gh_id = #{record.ghId,jdbcType=VARCHAR},
+      publish_num = #{record.publishNum,jdbcType=INTEGER},
+      publish_pre_min_num = #{record.publishPreMinNum,jdbcType=INTEGER},
+      publish_push_time = #{record.publishPushTime,jdbcType=VARCHAR},
+      mini_strategy = #{record.miniStrategy,jdbcType=VARCHAR},
+      miniprogram_use_type = #{record.miniprogramUseType,jdbcType=INTEGER},
+      sort_strategy = #{record.sortStrategy,jdbcType=VARCHAR},
+      push_type = #{record.pushType,jdbcType=INTEGER},
+      `status` = #{record.status,jdbcType=INTEGER},
+      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.longarticle.model.po.PlanAccount">
+    update long_articles_plan_account
+    <set>
+      <if test="planId != null">
+        plan_id = #{planId,jdbcType=VARCHAR},
+      </if>
+      <if test="planName != null">
+        plan_name = #{planName,jdbcType=VARCHAR},
+      </if>
+      <if test="accountId != null">
+        account_id = #{accountId,jdbcType=VARCHAR},
+      </if>
+      <if test="accountName != null">
+        account_name = #{accountName,jdbcType=VARCHAR},
+      </if>
+      <if test="ghId != null">
+        gh_id = #{ghId,jdbcType=VARCHAR},
+      </if>
+      <if test="publishNum != null">
+        publish_num = #{publishNum,jdbcType=INTEGER},
+      </if>
+      <if test="publishPreMinNum != null">
+        publish_pre_min_num = #{publishPreMinNum,jdbcType=INTEGER},
+      </if>
+      <if test="publishPushTime != null">
+        publish_push_time = #{publishPushTime,jdbcType=VARCHAR},
+      </if>
+      <if test="miniStrategy != null">
+        mini_strategy = #{miniStrategy,jdbcType=VARCHAR},
+      </if>
+      <if test="miniprogramUseType != null">
+        miniprogram_use_type = #{miniprogramUseType,jdbcType=INTEGER},
+      </if>
+      <if test="sortStrategy != null">
+        sort_strategy = #{sortStrategy,jdbcType=VARCHAR},
+      </if>
+      <if test="pushType != null">
+        push_type = #{pushType,jdbcType=INTEGER},
+      </if>
+      <if test="status != null">
+        `status` = #{status,jdbcType=INTEGER},
+      </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.longarticle.model.po.PlanAccount">
+    update long_articles_plan_account
+    set plan_id = #{planId,jdbcType=VARCHAR},
+      plan_name = #{planName,jdbcType=VARCHAR},
+      account_id = #{accountId,jdbcType=VARCHAR},
+      account_name = #{accountName,jdbcType=VARCHAR},
+      gh_id = #{ghId,jdbcType=VARCHAR},
+      publish_num = #{publishNum,jdbcType=INTEGER},
+      publish_pre_min_num = #{publishPreMinNum,jdbcType=INTEGER},
+      publish_push_time = #{publishPushTime,jdbcType=VARCHAR},
+      mini_strategy = #{miniStrategy,jdbcType=VARCHAR},
+      miniprogram_use_type = #{miniprogramUseType,jdbcType=INTEGER},
+      sort_strategy = #{sortStrategy,jdbcType=VARCHAR},
+      push_type = #{pushType,jdbcType=INTEGER},
+      `status` = #{status,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_time = #{updateTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>

+ 451 - 0
long-article-server/src/main/resources/mapper/PublishMiniprogramMapper.xml

@@ -0,0 +1,451 @@
+<?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.longarticle.dao.mapper.PublishMiniprogramMapper">
+  <resultMap id="BaseResultMap" type="com.tzld.piaoquan.longarticle.model.po.PublishMiniprogram">
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="plan_account_id" jdbcType="BIGINT" property="planAccountId" />
+    <result column="publish_content_id" jdbcType="VARCHAR" property="publishContentId" />
+    <result column="app_id" jdbcType="VARCHAR" property="appId" />
+    <result column="app_name" jdbcType="VARCHAR" property="appName" />
+    <result column="avatar" jdbcType="VARCHAR" property="avatar" />
+    <result column="mini_id" jdbcType="INTEGER" property="miniId" />
+    <result column="mini_program_type" jdbcType="INTEGER" property="miniProgramType" />
+    <result column="video_id" jdbcType="BIGINT" property="videoId" />
+    <result column="source" jdbcType="VARCHAR" property="source" />
+    <result column="video_title" jdbcType="VARCHAR" property="videoTitle" />
+    <result column="video_cover" jdbcType="VARCHAR" property="videoCover" />
+    <result column="video_path" jdbcType="VARCHAR" property="videoPath" />
+    <result column="production_path" jdbcType="VARCHAR" property="productionPath" />
+    <result column="root_share_id" jdbcType="VARCHAR" property="rootShareId" />
+    <result column="index" jdbcType="INTEGER" property="index" />
+    <result column="trace_id" jdbcType="VARCHAR" property="traceId" />
+    <result column="is_delete" jdbcType="INTEGER" property="isDelete" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <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">
+    <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">
+    id, plan_account_id, publish_content_id, app_id, app_name, avatar, mini_id, mini_program_type, 
+    video_id, `source`, video_title, video_cover, video_path, production_path, root_share_id, 
+    `index`, trace_id, is_delete, create_time, update_time
+  </sql>
+  <select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.PublishMiniprogramExample" resultMap="BaseResultMap">
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from long_articles_publish_miniprogram
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    <if test="page != null">
+      limit #{page.offset} , #{page.pageSize}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from long_articles_publish_miniprogram
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    delete from long_articles_publish_miniprogram
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.PublishMiniprogramExample">
+    delete from long_articles_publish_miniprogram
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.tzld.piaoquan.longarticle.model.po.PublishMiniprogram">
+    insert into long_articles_publish_miniprogram (id, plan_account_id, publish_content_id, 
+      app_id, app_name, avatar, 
+      mini_id, mini_program_type, video_id, 
+      `source`, video_title, video_cover, 
+      video_path, production_path, root_share_id, 
+      `index`, trace_id, is_delete, 
+      create_time, update_time)
+    values (#{id,jdbcType=BIGINT}, #{planAccountId,jdbcType=BIGINT}, #{publishContentId,jdbcType=VARCHAR}, 
+      #{appId,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR}, 
+      #{miniId,jdbcType=INTEGER}, #{miniProgramType,jdbcType=INTEGER}, #{videoId,jdbcType=BIGINT}, 
+      #{source,jdbcType=VARCHAR}, #{videoTitle,jdbcType=VARCHAR}, #{videoCover,jdbcType=VARCHAR}, 
+      #{videoPath,jdbcType=VARCHAR}, #{productionPath,jdbcType=VARCHAR}, #{rootShareId,jdbcType=VARCHAR}, 
+      #{index,jdbcType=INTEGER}, #{traceId,jdbcType=VARCHAR}, #{isDelete,jdbcType=INTEGER}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.PublishMiniprogram">
+    insert into long_articles_publish_miniprogram
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="planAccountId != null">
+        plan_account_id,
+      </if>
+      <if test="publishContentId != null">
+        publish_content_id,
+      </if>
+      <if test="appId != null">
+        app_id,
+      </if>
+      <if test="appName != null">
+        app_name,
+      </if>
+      <if test="avatar != null">
+        avatar,
+      </if>
+      <if test="miniId != null">
+        mini_id,
+      </if>
+      <if test="miniProgramType != null">
+        mini_program_type,
+      </if>
+      <if test="videoId != null">
+        video_id,
+      </if>
+      <if test="source != null">
+        `source`,
+      </if>
+      <if test="videoTitle != null">
+        video_title,
+      </if>
+      <if test="videoCover != null">
+        video_cover,
+      </if>
+      <if test="videoPath != null">
+        video_path,
+      </if>
+      <if test="productionPath != null">
+        production_path,
+      </if>
+      <if test="rootShareId != null">
+        root_share_id,
+      </if>
+      <if test="index != null">
+        `index`,
+      </if>
+      <if test="traceId != null">
+        trace_id,
+      </if>
+      <if test="isDelete != null">
+        is_delete,
+      </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="planAccountId != null">
+        #{planAccountId,jdbcType=BIGINT},
+      </if>
+      <if test="publishContentId != null">
+        #{publishContentId,jdbcType=VARCHAR},
+      </if>
+      <if test="appId != null">
+        #{appId,jdbcType=VARCHAR},
+      </if>
+      <if test="appName != null">
+        #{appName,jdbcType=VARCHAR},
+      </if>
+      <if test="avatar != null">
+        #{avatar,jdbcType=VARCHAR},
+      </if>
+      <if test="miniId != null">
+        #{miniId,jdbcType=INTEGER},
+      </if>
+      <if test="miniProgramType != null">
+        #{miniProgramType,jdbcType=INTEGER},
+      </if>
+      <if test="videoId != null">
+        #{videoId,jdbcType=BIGINT},
+      </if>
+      <if test="source != null">
+        #{source,jdbcType=VARCHAR},
+      </if>
+      <if test="videoTitle != null">
+        #{videoTitle,jdbcType=VARCHAR},
+      </if>
+      <if test="videoCover != null">
+        #{videoCover,jdbcType=VARCHAR},
+      </if>
+      <if test="videoPath != null">
+        #{videoPath,jdbcType=VARCHAR},
+      </if>
+      <if test="productionPath != null">
+        #{productionPath,jdbcType=VARCHAR},
+      </if>
+      <if test="rootShareId != null">
+        #{rootShareId,jdbcType=VARCHAR},
+      </if>
+      <if test="index != null">
+        #{index,jdbcType=INTEGER},
+      </if>
+      <if test="traceId != null">
+        #{traceId,jdbcType=VARCHAR},
+      </if>
+      <if test="isDelete != null">
+        #{isDelete,jdbcType=INTEGER},
+      </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.longarticle.model.po.PublishMiniprogramExample" resultType="java.lang.Long">
+    select count(*) from long_articles_publish_miniprogram
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    update long_articles_publish_miniprogram
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=BIGINT},
+      </if>
+      <if test="record.planAccountId != null">
+        plan_account_id = #{record.planAccountId,jdbcType=BIGINT},
+      </if>
+      <if test="record.publishContentId != null">
+        publish_content_id = #{record.publishContentId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.appId != null">
+        app_id = #{record.appId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.appName != null">
+        app_name = #{record.appName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.avatar != null">
+        avatar = #{record.avatar,jdbcType=VARCHAR},
+      </if>
+      <if test="record.miniId != null">
+        mini_id = #{record.miniId,jdbcType=INTEGER},
+      </if>
+      <if test="record.miniProgramType != null">
+        mini_program_type = #{record.miniProgramType,jdbcType=INTEGER},
+      </if>
+      <if test="record.videoId != null">
+        video_id = #{record.videoId,jdbcType=BIGINT},
+      </if>
+      <if test="record.source != null">
+        `source` = #{record.source,jdbcType=VARCHAR},
+      </if>
+      <if test="record.videoTitle != null">
+        video_title = #{record.videoTitle,jdbcType=VARCHAR},
+      </if>
+      <if test="record.videoCover != null">
+        video_cover = #{record.videoCover,jdbcType=VARCHAR},
+      </if>
+      <if test="record.videoPath != null">
+        video_path = #{record.videoPath,jdbcType=VARCHAR},
+      </if>
+      <if test="record.productionPath != null">
+        production_path = #{record.productionPath,jdbcType=VARCHAR},
+      </if>
+      <if test="record.rootShareId != null">
+        root_share_id = #{record.rootShareId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.index != null">
+        `index` = #{record.index,jdbcType=INTEGER},
+      </if>
+      <if test="record.traceId != null">
+        trace_id = #{record.traceId,jdbcType=VARCHAR},
+      </if>
+      <if test="record.isDelete != null">
+        is_delete = #{record.isDelete,jdbcType=INTEGER},
+      </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">
+    update long_articles_publish_miniprogram
+    set id = #{record.id,jdbcType=BIGINT},
+      plan_account_id = #{record.planAccountId,jdbcType=BIGINT},
+      publish_content_id = #{record.publishContentId,jdbcType=VARCHAR},
+      app_id = #{record.appId,jdbcType=VARCHAR},
+      app_name = #{record.appName,jdbcType=VARCHAR},
+      avatar = #{record.avatar,jdbcType=VARCHAR},
+      mini_id = #{record.miniId,jdbcType=INTEGER},
+      mini_program_type = #{record.miniProgramType,jdbcType=INTEGER},
+      video_id = #{record.videoId,jdbcType=BIGINT},
+      `source` = #{record.source,jdbcType=VARCHAR},
+      video_title = #{record.videoTitle,jdbcType=VARCHAR},
+      video_cover = #{record.videoCover,jdbcType=VARCHAR},
+      video_path = #{record.videoPath,jdbcType=VARCHAR},
+      production_path = #{record.productionPath,jdbcType=VARCHAR},
+      root_share_id = #{record.rootShareId,jdbcType=VARCHAR},
+      `index` = #{record.index,jdbcType=INTEGER},
+      trace_id = #{record.traceId,jdbcType=VARCHAR},
+      is_delete = #{record.isDelete,jdbcType=INTEGER},
+      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.longarticle.model.po.PublishMiniprogram">
+    update long_articles_publish_miniprogram
+    <set>
+      <if test="planAccountId != null">
+        plan_account_id = #{planAccountId,jdbcType=BIGINT},
+      </if>
+      <if test="publishContentId != null">
+        publish_content_id = #{publishContentId,jdbcType=VARCHAR},
+      </if>
+      <if test="appId != null">
+        app_id = #{appId,jdbcType=VARCHAR},
+      </if>
+      <if test="appName != null">
+        app_name = #{appName,jdbcType=VARCHAR},
+      </if>
+      <if test="avatar != null">
+        avatar = #{avatar,jdbcType=VARCHAR},
+      </if>
+      <if test="miniId != null">
+        mini_id = #{miniId,jdbcType=INTEGER},
+      </if>
+      <if test="miniProgramType != null">
+        mini_program_type = #{miniProgramType,jdbcType=INTEGER},
+      </if>
+      <if test="videoId != null">
+        video_id = #{videoId,jdbcType=BIGINT},
+      </if>
+      <if test="source != null">
+        `source` = #{source,jdbcType=VARCHAR},
+      </if>
+      <if test="videoTitle != null">
+        video_title = #{videoTitle,jdbcType=VARCHAR},
+      </if>
+      <if test="videoCover != null">
+        video_cover = #{videoCover,jdbcType=VARCHAR},
+      </if>
+      <if test="videoPath != null">
+        video_path = #{videoPath,jdbcType=VARCHAR},
+      </if>
+      <if test="productionPath != null">
+        production_path = #{productionPath,jdbcType=VARCHAR},
+      </if>
+      <if test="rootShareId != null">
+        root_share_id = #{rootShareId,jdbcType=VARCHAR},
+      </if>
+      <if test="index != null">
+        `index` = #{index,jdbcType=INTEGER},
+      </if>
+      <if test="traceId != null">
+        trace_id = #{traceId,jdbcType=VARCHAR},
+      </if>
+      <if test="isDelete != null">
+        is_delete = #{isDelete,jdbcType=INTEGER},
+      </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.longarticle.model.po.PublishMiniprogram">
+    update long_articles_publish_miniprogram
+    set plan_account_id = #{planAccountId,jdbcType=BIGINT},
+      publish_content_id = #{publishContentId,jdbcType=VARCHAR},
+      app_id = #{appId,jdbcType=VARCHAR},
+      app_name = #{appName,jdbcType=VARCHAR},
+      avatar = #{avatar,jdbcType=VARCHAR},
+      mini_id = #{miniId,jdbcType=INTEGER},
+      mini_program_type = #{miniProgramType,jdbcType=INTEGER},
+      video_id = #{videoId,jdbcType=BIGINT},
+      `source` = #{source,jdbcType=VARCHAR},
+      video_title = #{videoTitle,jdbcType=VARCHAR},
+      video_cover = #{videoCover,jdbcType=VARCHAR},
+      video_path = #{videoPath,jdbcType=VARCHAR},
+      production_path = #{productionPath,jdbcType=VARCHAR},
+      root_share_id = #{rootShareId,jdbcType=VARCHAR},
+      `index` = #{index,jdbcType=INTEGER},
+      trace_id = #{traceId,jdbcType=VARCHAR},
+      is_delete = #{isDelete,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_time = #{updateTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>

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

@@ -27,8 +27,8 @@
         </commentGenerator>
 
         <jdbcConnection driverClass="com.mysql.jdbc.Driver"
-                        connectionURL="jdbc:mysql://rm-bp17q95335a99272b.mysql.rds.aliyuncs.com:3306/growth?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;useSSL=false"
-                        userId="crawler" password="crawler123456@">
+                        connectionURL="jdbc:mysql://rm-bp14529nwwcw75yr1ko.mysql.rds.aliyuncs.com:3306/long_articles?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;useSSL=false"
+                        userId="changwen_admin" password="changwen@123456">
         </jdbcConnection>
 
         <javaTypeResolver type="org.mybatis.generator.internal.types.JavaTypeResolverDefaultImpl">
@@ -49,18 +49,18 @@
                              targetProject="/Users/shimeng/Desktop/project/long-article-manage/long-article-server/src/main/java">
             <property name="enableSubPackages" value="true"/>
         </javaClientGenerator>
-        <table tableName="long_articles_match_videos" domainObjectName="MatchVideo" alias="">
-            <columnOverride column="response" javaType="java.lang.String" jdbcType="LONGVARCHAR" />
-        </table>
-        <table tableName="long_articles_text" domainObjectName="LongArticlesText" alias="">
-            <columnOverride column="article_text" javaType="java.lang.String" jdbcType="LONGVARCHAR" />
-        </table>
-        <table tableName="long_articles_crawler_videos" domainObjectName="CrawlerVideo" alias="">
-            <columnOverride column="video_url" javaType="java.lang.String" jdbcType="LONGVARCHAR" />
-            <columnOverride column="cover_url" javaType="java.lang.String" jdbcType="LONGVARCHAR" />
-        </table>
-        <table tableName="long_articles_root_source_id" domainObjectName="RootSource" alias=""/>
-        <table tableName="get_off_videos" domainObjectName="OffVideo" alias=""/>
+<!--        <table tableName="long_articles_match_videos" domainObjectName="MatchVideo" alias="">-->
+<!--            <columnOverride column="response" javaType="java.lang.String" jdbcType="LONGVARCHAR" />-->
+<!--        </table>-->
+<!--        <table tableName="long_articles_text" domainObjectName="LongArticlesText" alias="">-->
+<!--            <columnOverride column="article_text" javaType="java.lang.String" jdbcType="LONGVARCHAR" />-->
+<!--        </table>-->
+<!--        <table tableName="long_articles_crawler_videos" domainObjectName="CrawlerVideo" alias="">-->
+<!--            <columnOverride column="video_url" javaType="java.lang.String" jdbcType="LONGVARCHAR" />-->
+<!--            <columnOverride column="cover_url" javaType="java.lang.String" jdbcType="LONGVARCHAR" />-->
+<!--        </table>-->
+<!--        <table tableName="long_articles_root_source_id" domainObjectName="RootSource" alias=""/>-->
+        <table tableName="long_articles_publish_miniprogram" domainObjectName="PublishMiniprogram" alias=""/>
 
     </context>