Browse Source

增加例外设置字段

xueyiming 5 months ago
parent
commit
9653e4ac18

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

@@ -55,6 +55,8 @@ public class PlanAccount {
 
     private Integer publishOpenFlag;
 
+    private Integer isSpecialSetting;
+
     private Integer isDelete;
 
     private Date createTime;
@@ -269,6 +271,14 @@ public class PlanAccount {
         this.publishOpenFlag = publishOpenFlag;
     }
 
+    public Integer getIsSpecialSetting() {
+        return isSpecialSetting;
+    }
+
+    public void setIsSpecialSetting(Integer isSpecialSetting) {
+        this.isSpecialSetting = isSpecialSetting;
+    }
+
     public Integer getIsDelete() {
         return isDelete;
     }
@@ -325,6 +335,7 @@ public class PlanAccount {
         sb.append(", retryCount=").append(retryCount);
         sb.append(", sendCount=").append(sendCount);
         sb.append(", publishOpenFlag=").append(publishOpenFlag);
+        sb.append(", isSpecialSetting=").append(isSpecialSetting);
         sb.append(", isDelete=").append(isDelete);
         sb.append(", createTime=").append(createTime);
         sb.append(", updateTime=").append(updateTime);

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

@@ -1796,6 +1796,66 @@ public class PlanAccountExample {
             return (Criteria) this;
         }
 
+        public Criteria andIsSpecialSettingIsNull() {
+            addCriterion("is_special_setting is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingIsNotNull() {
+            addCriterion("is_special_setting is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingEqualTo(Integer value) {
+            addCriterion("is_special_setting =", value, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingNotEqualTo(Integer value) {
+            addCriterion("is_special_setting <>", value, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingGreaterThan(Integer value) {
+            addCriterion("is_special_setting >", value, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingGreaterThanOrEqualTo(Integer value) {
+            addCriterion("is_special_setting >=", value, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingLessThan(Integer value) {
+            addCriterion("is_special_setting <", value, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingLessThanOrEqualTo(Integer value) {
+            addCriterion("is_special_setting <=", value, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingIn(List<Integer> values) {
+            addCriterion("is_special_setting in", values, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingNotIn(List<Integer> values) {
+            addCriterion("is_special_setting not in", values, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingBetween(Integer value1, Integer value2) {
+            addCriterion("is_special_setting between", value1, value2, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
+        public Criteria andIsSpecialSettingNotBetween(Integer value1, Integer value2) {
+            addCriterion("is_special_setting not between", value1, value2, "isSpecialSetting");
+            return (Criteria) this;
+        }
+
         public Criteria andIsDeleteIsNull() {
             addCriterion("is_delete is null");
             return (Criteria) this;

+ 21 - 5
long-article-server/src/main/resources/mapper/longarticle/PlanAccountMapper.xml

@@ -28,6 +28,7 @@
     <result column="retry_count" jdbcType="INTEGER" property="retryCount" />
     <result column="send_count" jdbcType="INTEGER" property="sendCount" />
     <result column="publish_open_flag" jdbcType="INTEGER" property="publishOpenFlag" />
+    <result column="is_special_setting" jdbcType="INTEGER" property="isSpecialSetting" />
     <result column="is_delete" jdbcType="INTEGER" property="isDelete" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
     <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
@@ -95,7 +96,8 @@
     publish_window_start, publish_window_end, publish_time_interval, publish_num, publish_pre_num, 
     publish_pre_min_num, publish_push_time, push_type, miniprogram_insert_flag, mini_strategy, 
     miniprogram_use_type, sort_strategy, exclude_content_index, `status`, match_status, 
-    retry_count, send_count, publish_open_flag, is_delete, create_time, update_time
+    retry_count, send_count, publish_open_flag, is_special_setting, is_delete, create_time, 
+    update_time
   </sql>
   <select id="selectByExample" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.PlanAccountExample" resultMap="BaseResultMap">
     select
@@ -140,8 +142,8 @@
       mini_strategy, miniprogram_use_type, sort_strategy, 
       exclude_content_index, `status`, match_status, 
       retry_count, send_count, publish_open_flag, 
-      is_delete, create_time, update_time
-      )
+      is_special_setting, is_delete, create_time, 
+      update_time)
     values (#{id,jdbcType=BIGINT}, #{planId,jdbcType=VARCHAR}, #{planName,jdbcType=VARCHAR}, 
       #{accountId,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, #{ghId,jdbcType=VARCHAR}, 
       #{publishRate,jdbcType=INTEGER}, #{publishDate,jdbcType=VARCHAR}, #{publishWindowStart,jdbcType=VARCHAR}, 
@@ -151,8 +153,8 @@
       #{miniStrategy,jdbcType=VARCHAR}, #{miniprogramUseType,jdbcType=INTEGER}, #{sortStrategy,jdbcType=VARCHAR}, 
       #{excludeContentIndex,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{matchStatus,jdbcType=INTEGER}, 
       #{retryCount,jdbcType=INTEGER}, #{sendCount,jdbcType=INTEGER}, #{publishOpenFlag,jdbcType=INTEGER}, 
-      #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
-      )
+      #{isSpecialSetting,jdbcType=INTEGER}, #{isDelete,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, 
+      #{updateTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="com.tzld.piaoquan.longarticle.model.po.longarticle.PlanAccount">
     insert into long_articles_plan_account
@@ -235,6 +237,9 @@
       <if test="publishOpenFlag != null">
         publish_open_flag,
       </if>
+      <if test="isSpecialSetting != null">
+        is_special_setting,
+      </if>
       <if test="isDelete != null">
         is_delete,
       </if>
@@ -324,6 +329,9 @@
       <if test="publishOpenFlag != null">
         #{publishOpenFlag,jdbcType=INTEGER},
       </if>
+      <if test="isSpecialSetting != null">
+        #{isSpecialSetting,jdbcType=INTEGER},
+      </if>
       <if test="isDelete != null">
         #{isDelete,jdbcType=INTEGER},
       </if>
@@ -422,6 +430,9 @@
       <if test="record.publishOpenFlag != null">
         publish_open_flag = #{record.publishOpenFlag,jdbcType=INTEGER},
       </if>
+      <if test="record.isSpecialSetting != null">
+        is_special_setting = #{record.isSpecialSetting,jdbcType=INTEGER},
+      </if>
       <if test="record.isDelete != null">
         is_delete = #{record.isDelete,jdbcType=INTEGER},
       </if>
@@ -464,6 +475,7 @@
       retry_count = #{record.retryCount,jdbcType=INTEGER},
       send_count = #{record.sendCount,jdbcType=INTEGER},
       publish_open_flag = #{record.publishOpenFlag,jdbcType=INTEGER},
+      is_special_setting = #{record.isSpecialSetting,jdbcType=INTEGER},
       is_delete = #{record.isDelete,jdbcType=INTEGER},
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
       update_time = #{record.updateTime,jdbcType=TIMESTAMP}
@@ -549,6 +561,9 @@
       <if test="publishOpenFlag != null">
         publish_open_flag = #{publishOpenFlag,jdbcType=INTEGER},
       </if>
+      <if test="isSpecialSetting != null">
+        is_special_setting = #{isSpecialSetting,jdbcType=INTEGER},
+      </if>
       <if test="isDelete != null">
         is_delete = #{isDelete,jdbcType=INTEGER},
       </if>
@@ -588,6 +603,7 @@
       retry_count = #{retryCount,jdbcType=INTEGER},
       send_count = #{sendCount,jdbcType=INTEGER},
       publish_open_flag = #{publishOpenFlag,jdbcType=INTEGER},
+      is_special_setting = #{isSpecialSetting,jdbcType=INTEGER},
       is_delete = #{isDelete,jdbcType=INTEGER},
       create_time = #{createTime,jdbcType=TIMESTAMP},
       update_time = #{updateTime,jdbcType=TIMESTAMP}

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

@@ -60,7 +60,7 @@
 <!--            <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_title_audit" domainObjectName="TitleAudit" alias=""/>
+        <table tableName="long_articles_plan_account" domainObjectName="PlanAccount" alias=""/>
 <!--            <table tableName="long_articles_plan" domainObjectName="Plan" alias=""/>-->
 
 <!--                <table tableName="long_articles_publish_content" domainObjectName="PublishContent" alias=""/>-->