Browse Source

新建实体类

tianyunperfect 3 years ago
parent
commit
7635ad0bcc

+ 380 - 0
book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticOrder.java

@@ -0,0 +1,380 @@
+package com.book.dao.polardb.entity;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Date;
+import lombok.Data;
+
+@Data
+public class SunStaticOrder implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order.id
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order.active_date
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private String activeDate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order.active_count
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private String activeCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order.recharge_user_count
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer rechargeUserCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order.recharge_sum
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer rechargeSum;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order.create_time
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Date createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public static SunStaticOrder.Builder builder() {
+        return new SunStaticOrder.Builder();
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public static class Builder {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private SunStaticOrder obj;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder() {
+            this.obj = new SunStaticOrder();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order.id
+         *
+         * @param id the value for sun_static_order.id
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder id(Integer id) {
+            obj.setId(id);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order.active_date
+         *
+         * @param activeDate the value for sun_static_order.active_date
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder activeDate(String activeDate) {
+            obj.setActiveDate(activeDate);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order.active_count
+         *
+         * @param activeCount the value for sun_static_order.active_count
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder activeCount(String activeCount) {
+            obj.setActiveCount(activeCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order.recharge_user_count
+         *
+         * @param rechargeUserCount the value for sun_static_order.recharge_user_count
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeUserCount(Integer rechargeUserCount) {
+            obj.setRechargeUserCount(rechargeUserCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order.recharge_sum
+         *
+         * @param rechargeSum the value for sun_static_order.recharge_sum
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeSum(Integer rechargeSum) {
+            obj.setRechargeSum(rechargeSum);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order.create_time
+         *
+         * @param createTime the value for sun_static_order.create_time
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder createTime(Date createTime) {
+            obj.setCreateTime(createTime);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public SunStaticOrder build() {
+            return this.obj;
+        }
+    }
+
+    /**
+     * This enum was generated by MyBatis Generator.
+     * This enum corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public enum Column {
+        id("id", "id", "INTEGER", false),
+        activeDate("active_date", "activeDate", "VARCHAR", false),
+        activeCount("active_count", "activeCount", "VARCHAR", false),
+        rechargeUserCount("recharge_user_count", "rechargeUserCount", "INTEGER", false),
+        rechargeSum("recharge_sum", "rechargeSum", "INTEGER", false),
+        createTime("create_time", "createTime", "TIMESTAMP", false);
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private static final String BEGINNING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private static final String ENDING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final String column;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final boolean isColumnNameDelimited;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final String javaProperty;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final String jdbcType;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String value() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getValue() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getJavaProperty() {
+            return this.javaProperty;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getJdbcType() {
+            return this.jdbcType;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
+            this.column = column;
+            this.javaProperty = javaProperty;
+            this.jdbcType = jdbcType;
+            this.isColumnNameDelimited = isColumnNameDelimited;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String desc() {
+            return this.getEscapedColumnName() + " DESC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String asc() {
+            return this.getEscapedColumnName() + " ASC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public static Column[] excludes(Column ... excludes) {
+            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
+            if (excludes != null && excludes.length > 0) {
+                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
+            }
+            return columns.toArray(new Column[]{});
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public static Column[] all() {
+            return Column.values();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getEscapedColumnName() {
+            if (this.isColumnNameDelimited) {
+                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
+            } else {
+                return this.column;
+            }
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getAliasedEscapedColumnName() {
+            return this.getEscapedColumnName();
+        }
+    }
+}

+ 426 - 0
book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticOrderDay.java

@@ -0,0 +1,426 @@
+package com.book.dao.polardb.entity;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Date;
+import lombok.Data;
+
+@Data
+public class SunStaticOrderDay implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day.id
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day.static_date
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private String staticDate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day.active_count
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer activeCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day.recharge_user_count
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer rechargeUserCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day.recharge_sum
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer rechargeSum;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day.recharge_count
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer rechargeCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day.recharge_avg
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private String rechargeAvg;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day.create_time
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Date createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public static SunStaticOrderDay.Builder builder() {
+        return new SunStaticOrderDay.Builder();
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public static class Builder {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private SunStaticOrderDay obj;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder() {
+            this.obj = new SunStaticOrderDay();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day.id
+         *
+         * @param id the value for sun_static_order_day.id
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder id(Integer id) {
+            obj.setId(id);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day.static_date
+         *
+         * @param staticDate the value for sun_static_order_day.static_date
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder staticDate(String staticDate) {
+            obj.setStaticDate(staticDate);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day.active_count
+         *
+         * @param activeCount the value for sun_static_order_day.active_count
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder activeCount(Integer activeCount) {
+            obj.setActiveCount(activeCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day.recharge_user_count
+         *
+         * @param rechargeUserCount the value for sun_static_order_day.recharge_user_count
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeUserCount(Integer rechargeUserCount) {
+            obj.setRechargeUserCount(rechargeUserCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day.recharge_sum
+         *
+         * @param rechargeSum the value for sun_static_order_day.recharge_sum
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeSum(Integer rechargeSum) {
+            obj.setRechargeSum(rechargeSum);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day.recharge_count
+         *
+         * @param rechargeCount the value for sun_static_order_day.recharge_count
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeCount(Integer rechargeCount) {
+            obj.setRechargeCount(rechargeCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day.recharge_avg
+         *
+         * @param rechargeAvg the value for sun_static_order_day.recharge_avg
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeAvg(String rechargeAvg) {
+            obj.setRechargeAvg(rechargeAvg);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day.create_time
+         *
+         * @param createTime the value for sun_static_order_day.create_time
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder createTime(Date createTime) {
+            obj.setCreateTime(createTime);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public SunStaticOrderDay build() {
+            return this.obj;
+        }
+    }
+
+    /**
+     * This enum was generated by MyBatis Generator.
+     * This enum corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public enum Column {
+        id("id", "id", "INTEGER", false),
+        staticDate("static_date", "staticDate", "VARCHAR", false),
+        activeCount("active_count", "activeCount", "INTEGER", false),
+        rechargeUserCount("recharge_user_count", "rechargeUserCount", "INTEGER", false),
+        rechargeSum("recharge_sum", "rechargeSum", "INTEGER", false),
+        rechargeCount("recharge_count", "rechargeCount", "INTEGER", false),
+        rechargeAvg("recharge_avg", "rechargeAvg", "VARCHAR", false),
+        createTime("create_time", "createTime", "TIMESTAMP", false);
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private static final String BEGINNING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private static final String ENDING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final String column;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final boolean isColumnNameDelimited;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final String javaProperty;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final String jdbcType;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String value() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getValue() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getJavaProperty() {
+            return this.javaProperty;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getJdbcType() {
+            return this.jdbcType;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
+            this.column = column;
+            this.javaProperty = javaProperty;
+            this.jdbcType = jdbcType;
+            this.isColumnNameDelimited = isColumnNameDelimited;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String desc() {
+            return this.getEscapedColumnName() + " DESC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String asc() {
+            return this.getEscapedColumnName() + " ASC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public static Column[] excludes(Column ... excludes) {
+            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
+            if (excludes != null && excludes.length > 0) {
+                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
+            }
+            return columns.toArray(new Column[]{});
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public static Column[] all() {
+            return Column.values();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getEscapedColumnName() {
+            if (this.isColumnNameDelimited) {
+                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
+            } else {
+                return this.column;
+            }
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getAliasedEscapedColumnName() {
+            return this.getEscapedColumnName();
+        }
+    }
+}

+ 472 - 0
book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticOrderDayChannel.java

@@ -0,0 +1,472 @@
+package com.book.dao.polardb.entity;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Date;
+import lombok.Data;
+
+@Data
+public class SunStaticOrderDayChannel implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.id
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.channel_id
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private String channelId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.channel_name
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private String channelName;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.static_date
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private String staticDate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.active_count
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer activeCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.recharge_user_count
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer rechargeUserCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.recharge_sum
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer rechargeSum;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.recharge_count
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Integer rechargeCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.recharge_avg
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private String rechargeAvg;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_order_day_channel.create_time
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private Date createTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public static SunStaticOrderDayChannel.Builder builder() {
+        return new SunStaticOrderDayChannel.Builder();
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public static class Builder {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private SunStaticOrderDayChannel obj;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder() {
+            this.obj = new SunStaticOrderDayChannel();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.id
+         *
+         * @param id the value for sun_static_order_day_channel.id
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder id(Integer id) {
+            obj.setId(id);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.channel_id
+         *
+         * @param channelId the value for sun_static_order_day_channel.channel_id
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder channelId(String channelId) {
+            obj.setChannelId(channelId);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.channel_name
+         *
+         * @param channelName the value for sun_static_order_day_channel.channel_name
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder channelName(String channelName) {
+            obj.setChannelName(channelName);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.static_date
+         *
+         * @param staticDate the value for sun_static_order_day_channel.static_date
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder staticDate(String staticDate) {
+            obj.setStaticDate(staticDate);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.active_count
+         *
+         * @param activeCount the value for sun_static_order_day_channel.active_count
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder activeCount(Integer activeCount) {
+            obj.setActiveCount(activeCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.recharge_user_count
+         *
+         * @param rechargeUserCount the value for sun_static_order_day_channel.recharge_user_count
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeUserCount(Integer rechargeUserCount) {
+            obj.setRechargeUserCount(rechargeUserCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.recharge_sum
+         *
+         * @param rechargeSum the value for sun_static_order_day_channel.recharge_sum
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeSum(Integer rechargeSum) {
+            obj.setRechargeSum(rechargeSum);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.recharge_count
+         *
+         * @param rechargeCount the value for sun_static_order_day_channel.recharge_count
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeCount(Integer rechargeCount) {
+            obj.setRechargeCount(rechargeCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.recharge_avg
+         *
+         * @param rechargeAvg the value for sun_static_order_day_channel.recharge_avg
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder rechargeAvg(String rechargeAvg) {
+            obj.setRechargeAvg(rechargeAvg);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_order_day_channel.create_time
+         *
+         * @param createTime the value for sun_static_order_day_channel.create_time
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Builder createTime(Date createTime) {
+            obj.setCreateTime(createTime);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public SunStaticOrderDayChannel build() {
+            return this.obj;
+        }
+    }
+
+    /**
+     * This enum was generated by MyBatis Generator.
+     * This enum corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public enum Column {
+        id("id", "id", "INTEGER", false),
+        channelId("channel_id", "channelId", "VARCHAR", false),
+        channelName("channel_name", "channelName", "VARCHAR", false),
+        staticDate("static_date", "staticDate", "VARCHAR", false),
+        activeCount("active_count", "activeCount", "INTEGER", false),
+        rechargeUserCount("recharge_user_count", "rechargeUserCount", "INTEGER", false),
+        rechargeSum("recharge_sum", "rechargeSum", "INTEGER", false),
+        rechargeCount("recharge_count", "rechargeCount", "INTEGER", false),
+        rechargeAvg("recharge_avg", "rechargeAvg", "VARCHAR", false),
+        createTime("create_time", "createTime", "TIMESTAMP", false);
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private static final String BEGINNING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private static final String ENDING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final String column;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final boolean isColumnNameDelimited;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final String javaProperty;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private final String jdbcType;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String value() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getValue() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getJavaProperty() {
+            return this.javaProperty;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getJdbcType() {
+            return this.jdbcType;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
+            this.column = column;
+            this.javaProperty = javaProperty;
+            this.jdbcType = jdbcType;
+            this.isColumnNameDelimited = isColumnNameDelimited;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String desc() {
+            return this.getEscapedColumnName() + " DESC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String asc() {
+            return this.getEscapedColumnName() + " ASC";
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public static Column[] excludes(Column ... excludes) {
+            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
+            if (excludes != null && excludes.length > 0) {
+                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
+            }
+            return columns.toArray(new Column[]{});
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public static Column[] all() {
+            return Column.values();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getEscapedColumnName() {
+            if (this.isColumnNameDelimited) {
+                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
+            } else {
+                return this.column;
+            }
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public String getAliasedEscapedColumnName() {
+            return this.getEscapedColumnName();
+        }
+    }
+}

+ 164 - 0
book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticOrderDayChannelMapper.java

@@ -0,0 +1,164 @@
+package com.book.dao.polardb.mapper;
+
+import com.book.dao.polardb.entity.SunStaticOrderDayChannel;
+import com.book.dao.polardb.pojo.example.SunStaticOrderDayChannelExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+@Mapper
+@Repository
+public interface SunStaticOrderDayChannelMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    long countByExample(SunStaticOrderDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int deleteByExample(SunStaticOrderDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int insert(SunStaticOrderDayChannel record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int insertSelective(@Param("record") SunStaticOrderDayChannel record, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrderDayChannel selectOneByExample(SunStaticOrderDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrderDayChannel selectOneByExampleSelective(@Param("example") SunStaticOrderDayChannelExample example, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    List<SunStaticOrderDayChannel> selectByExampleSelective(@Param("example") SunStaticOrderDayChannelExample example, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    List<SunStaticOrderDayChannel> selectByExample(SunStaticOrderDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrderDayChannel selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrderDayChannel selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByExampleSelective(@Param("record") SunStaticOrderDayChannel record, @Param("example") SunStaticOrderDayChannelExample example, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByExample(@Param("record") SunStaticOrderDayChannel record, @Param("example") SunStaticOrderDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByPrimaryKeySelective(@Param("record") SunStaticOrderDayChannel record, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByPrimaryKey(SunStaticOrderDayChannel record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int batchInsert(@Param("list") List<SunStaticOrderDayChannel> list);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int batchInsertSelective(@Param("list") List<SunStaticOrderDayChannel> list, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int upsert(SunStaticOrderDayChannel record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int upsertSelective(@Param("record") SunStaticOrderDayChannel record, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
+}

+ 164 - 0
book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticOrderDayMapper.java

@@ -0,0 +1,164 @@
+package com.book.dao.polardb.mapper;
+
+import com.book.dao.polardb.entity.SunStaticOrderDay;
+import com.book.dao.polardb.pojo.example.SunStaticOrderDayExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+@Mapper
+@Repository
+public interface SunStaticOrderDayMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    long countByExample(SunStaticOrderDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int deleteByExample(SunStaticOrderDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int insert(SunStaticOrderDay record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int insertSelective(@Param("record") SunStaticOrderDay record, @Param("selective") SunStaticOrderDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrderDay selectOneByExample(SunStaticOrderDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrderDay selectOneByExampleSelective(@Param("example") SunStaticOrderDayExample example, @Param("selective") SunStaticOrderDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    List<SunStaticOrderDay> selectByExampleSelective(@Param("example") SunStaticOrderDayExample example, @Param("selective") SunStaticOrderDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    List<SunStaticOrderDay> selectByExample(SunStaticOrderDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrderDay selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticOrderDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrderDay selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByExampleSelective(@Param("record") SunStaticOrderDay record, @Param("example") SunStaticOrderDayExample example, @Param("selective") SunStaticOrderDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByExample(@Param("record") SunStaticOrderDay record, @Param("example") SunStaticOrderDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByPrimaryKeySelective(@Param("record") SunStaticOrderDay record, @Param("selective") SunStaticOrderDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByPrimaryKey(SunStaticOrderDay record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int batchInsert(@Param("list") List<SunStaticOrderDay> list);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int batchInsertSelective(@Param("list") List<SunStaticOrderDay> list, @Param("selective") SunStaticOrderDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int upsert(SunStaticOrderDay record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int upsertSelective(@Param("record") SunStaticOrderDay record, @Param("selective") SunStaticOrderDay.Column ... selective);
+}

+ 164 - 0
book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticOrderMapper.java

@@ -0,0 +1,164 @@
+package com.book.dao.polardb.mapper;
+
+import com.book.dao.polardb.entity.SunStaticOrder;
+import com.book.dao.polardb.pojo.example.SunStaticOrderExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+@Mapper
+@Repository
+public interface SunStaticOrderMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    long countByExample(SunStaticOrderExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int deleteByExample(SunStaticOrderExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int insert(SunStaticOrder record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int insertSelective(@Param("record") SunStaticOrder record, @Param("selective") SunStaticOrder.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrder selectOneByExample(SunStaticOrderExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrder selectOneByExampleSelective(@Param("example") SunStaticOrderExample example, @Param("selective") SunStaticOrder.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    List<SunStaticOrder> selectByExampleSelective(@Param("example") SunStaticOrderExample example, @Param("selective") SunStaticOrder.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    List<SunStaticOrder> selectByExample(SunStaticOrderExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrder selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticOrder.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    SunStaticOrder selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByExampleSelective(@Param("record") SunStaticOrder record, @Param("example") SunStaticOrderExample example, @Param("selective") SunStaticOrder.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByExample(@Param("record") SunStaticOrder record, @Param("example") SunStaticOrderExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByPrimaryKeySelective(@Param("record") SunStaticOrder record, @Param("selective") SunStaticOrder.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int updateByPrimaryKey(SunStaticOrder record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int batchInsert(@Param("list") List<SunStaticOrder> list);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int batchInsertSelective(@Param("list") List<SunStaticOrder> list, @Param("selective") SunStaticOrder.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int upsert(SunStaticOrder record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    int upsertSelective(@Param("record") SunStaticOrder record, @Param("selective") SunStaticOrder.Column ... selective);
+}

+ 1502 - 0
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticOrderDayChannelExample.java

@@ -0,0 +1,1502 @@
+package com.book.dao.polardb.pojo.example;
+
+import com.book.dao.polardb.entity.SunStaticOrderDayChannel;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SunStaticOrderDayChannelExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected Integer offset;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected Integer rows;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayChannelExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayChannelExample orderBy(String orderByClause) {
+        this.setOrderByClause(orderByClause);
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayChannelExample orderBy(String ... orderByClauses) {
+        StringBuffer sb = new StringBuffer();
+        for (int i = 0; i < orderByClauses.length; i++) {
+            sb.append(orderByClauses[i]);
+            if (i < orderByClauses.length - 1) {
+                sb.append(" , ");
+            }
+        }
+        this.setOrderByClause(sb.toString());
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria(this);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+        rows = null;
+        offset = null;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Integer getOffset() {
+        return this.offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setRows(Integer rows) {
+        this.rows = rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Integer getRows() {
+        return this.rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayChannelExample limit(Integer rows) {
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayChannelExample limit(Integer offset, Integer rows) {
+        this.offset = offset;
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayChannelExample page(Integer page, Integer pageSize) {
+        this.offset = page * pageSize;
+        this.rows = pageSize;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public static Criteria newAndCreateCriteria() {
+        SunStaticOrderDayChannelExample example = new SunStaticOrderDayChannelExample();
+        return example.createCriteria();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayChannelExample when(boolean condition, IExampleWhen then) {
+        if (condition) {
+            then.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayChannelExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
+        if (condition) {
+            then.example(this);
+        } else {
+            otherwise.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    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(Integer value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdIsNull() {
+            addCriterion("channel_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdIsNotNull() {
+            addCriterion("channel_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdEqualTo(String value) {
+            addCriterion("channel_id =", value, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdNotEqualTo(String value) {
+            addCriterion("channel_id <>", value, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdGreaterThan(String value) {
+            addCriterion("channel_id >", value, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdGreaterThanOrEqualTo(String value) {
+            addCriterion("channel_id >=", value, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdLessThan(String value) {
+            addCriterion("channel_id <", value, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdLessThanOrEqualTo(String value) {
+            addCriterion("channel_id <=", value, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdLike(String value) {
+            addCriterion("channel_id like", value, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdNotLike(String value) {
+            addCriterion("channel_id not like", value, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdIn(List<String> values) {
+            addCriterion("channel_id in", values, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdNotIn(List<String> values) {
+            addCriterion("channel_id not in", values, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdBetween(String value1, String value2) {
+            addCriterion("channel_id between", value1, value2, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelIdNotBetween(String value1, String value2) {
+            addCriterion("channel_id not between", value1, value2, "channelId");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameIsNull() {
+            addCriterion("channel_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameIsNotNull() {
+            addCriterion("channel_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameEqualTo(String value) {
+            addCriterion("channel_name =", value, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_name = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameNotEqualTo(String value) {
+            addCriterion("channel_name <>", value, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_name <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameGreaterThan(String value) {
+            addCriterion("channel_name >", value, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_name > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameGreaterThanOrEqualTo(String value) {
+            addCriterion("channel_name >=", value, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_name >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameLessThan(String value) {
+            addCriterion("channel_name <", value, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_name < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameLessThanOrEqualTo(String value) {
+            addCriterion("channel_name <=", value, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("channel_name <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameLike(String value) {
+            addCriterion("channel_name like", value, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameNotLike(String value) {
+            addCriterion("channel_name not like", value, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameIn(List<String> values) {
+            addCriterion("channel_name in", values, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameNotIn(List<String> values) {
+            addCriterion("channel_name not in", values, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameBetween(String value1, String value2) {
+            addCriterion("channel_name between", value1, value2, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andChannelNameNotBetween(String value1, String value2) {
+            addCriterion("channel_name not between", value1, value2, "channelName");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateIsNull() {
+            addCriterion("static_date is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateIsNotNull() {
+            addCriterion("static_date is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateEqualTo(String value) {
+            addCriterion("static_date =", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("static_date = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotEqualTo(String value) {
+            addCriterion("static_date <>", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("static_date <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateGreaterThan(String value) {
+            addCriterion("static_date >", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("static_date > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateGreaterThanOrEqualTo(String value) {
+            addCriterion("static_date >=", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("static_date >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLessThan(String value) {
+            addCriterion("static_date <", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("static_date < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLessThanOrEqualTo(String value) {
+            addCriterion("static_date <=", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("static_date <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLike(String value) {
+            addCriterion("static_date like", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotLike(String value) {
+            addCriterion("static_date not like", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateIn(List<String> values) {
+            addCriterion("static_date in", values, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotIn(List<String> values) {
+            addCriterion("static_date not in", values, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateBetween(String value1, String value2) {
+            addCriterion("static_date between", value1, value2, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotBetween(String value1, String value2) {
+            addCriterion("static_date not between", value1, value2, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountIsNull() {
+            addCriterion("active_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountIsNotNull() {
+            addCriterion("active_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountEqualTo(Integer value) {
+            addCriterion("active_count =", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("active_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotEqualTo(Integer value) {
+            addCriterion("active_count <>", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("active_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThan(Integer value) {
+            addCriterion("active_count >", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("active_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("active_count >=", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("active_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThan(Integer value) {
+            addCriterion("active_count <", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("active_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThanOrEqualTo(Integer value) {
+            addCriterion("active_count <=", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("active_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountIn(List<Integer> values) {
+            addCriterion("active_count in", values, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotIn(List<Integer> values) {
+            addCriterion("active_count not in", values, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountBetween(Integer value1, Integer value2) {
+            addCriterion("active_count between", value1, value2, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("active_count not between", value1, value2, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountIsNull() {
+            addCriterion("recharge_user_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountIsNotNull() {
+            addCriterion("recharge_user_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountEqualTo(Integer value) {
+            addCriterion("recharge_user_count =", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotEqualTo(Integer value) {
+            addCriterion("recharge_user_count <>", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThan(Integer value) {
+            addCriterion("recharge_user_count >", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("recharge_user_count >=", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThan(Integer value) {
+            addCriterion("recharge_user_count <", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThanOrEqualTo(Integer value) {
+            addCriterion("recharge_user_count <=", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountIn(List<Integer> values) {
+            addCriterion("recharge_user_count in", values, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotIn(List<Integer> values) {
+            addCriterion("recharge_user_count not in", values, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_user_count between", value1, value2, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_user_count not between", value1, value2, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIsNull() {
+            addCriterion("recharge_sum is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIsNotNull() {
+            addCriterion("recharge_sum is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumEqualTo(Integer value) {
+            addCriterion("recharge_sum =", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotEqualTo(Integer value) {
+            addCriterion("recharge_sum <>", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThan(Integer value) {
+            addCriterion("recharge_sum >", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThanOrEqualTo(Integer value) {
+            addCriterion("recharge_sum >=", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThan(Integer value) {
+            addCriterion("recharge_sum <", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThanOrEqualTo(Integer value) {
+            addCriterion("recharge_sum <=", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIn(List<Integer> values) {
+            addCriterion("recharge_sum in", values, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotIn(List<Integer> values) {
+            addCriterion("recharge_sum not in", values, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_sum between", value1, value2, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_sum not between", value1, value2, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountIsNull() {
+            addCriterion("recharge_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountIsNotNull() {
+            addCriterion("recharge_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountEqualTo(Integer value) {
+            addCriterion("recharge_count =", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountNotEqualTo(Integer value) {
+            addCriterion("recharge_count <>", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountGreaterThan(Integer value) {
+            addCriterion("recharge_count >", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("recharge_count >=", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountLessThan(Integer value) {
+            addCriterion("recharge_count <", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountLessThanOrEqualTo(Integer value) {
+            addCriterion("recharge_count <=", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountIn(List<Integer> values) {
+            addCriterion("recharge_count in", values, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountNotIn(List<Integer> values) {
+            addCriterion("recharge_count not in", values, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_count between", value1, value2, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_count not between", value1, value2, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgIsNull() {
+            addCriterion("recharge_avg is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgIsNotNull() {
+            addCriterion("recharge_avg is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgEqualTo(String value) {
+            addCriterion("recharge_avg =", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_avg = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotEqualTo(String value) {
+            addCriterion("recharge_avg <>", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_avg <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgGreaterThan(String value) {
+            addCriterion("recharge_avg >", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_avg > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgGreaterThanOrEqualTo(String value) {
+            addCriterion("recharge_avg >=", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_avg >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLessThan(String value) {
+            addCriterion("recharge_avg <", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_avg < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLessThanOrEqualTo(String value) {
+            addCriterion("recharge_avg <=", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_avg <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLike(String value) {
+            addCriterion("recharge_avg like", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotLike(String value) {
+            addCriterion("recharge_avg not like", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgIn(List<String> values) {
+            addCriterion("recharge_avg in", values, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotIn(List<String> values) {
+            addCriterion("recharge_avg not in", values, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgBetween(String value1, String value2) {
+            addCriterion("recharge_avg between", value1, value2, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotBetween(String value1, String value2) {
+            addCriterion("recharge_avg not between", value1, value2, "rechargeAvg");
+            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 andCreateTimeEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("create_time = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("create_time <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("create_time > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("create_time >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("create_time < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualToColumn(SunStaticOrderDayChannel.Column column) {
+            addCriterion(new StringBuilder("create_time <= ").append(column.getEscapedColumnName()).toString());
+            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;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated do_not_delete_during_merge Sun Oct 10 12:25:38 CST 2021
+     */
+    public static class Criteria extends GeneratedCriteria {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private SunStaticOrderDayChannelExample example;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        protected Criteria(SunStaticOrderDayChannelExample example) {
+            super();
+            this.example = example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public SunStaticOrderDayChannelExample example() {
+            return this.example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        @Deprecated
+        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
+            if (ifAdd) {
+                add.add(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then) {
+            if (condition) {
+                then.criteria(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
+            if (condition) {
+                then.criteria(this);
+            } else {
+                otherwise.criteria(this);
+            }
+            return this;
+        }
+
+        @Deprecated
+        public interface ICriteriaAdd {
+            /**
+             * This method was generated by MyBatis Generator.
+             * This method corresponds to the database table sun_static_order_day_channel
+             *
+             * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+             */
+            Criteria add(Criteria add);
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order_day_channel
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    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);
+        }
+    }
+
+    public interface ICriteriaWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        void criteria(Criteria criteria);
+    }
+
+    public interface IExampleWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day_channel
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        void example(com.book.dao.polardb.pojo.example.SunStaticOrderDayChannelExample example);
+    }
+}

+ 1302 - 0
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticOrderDayExample.java

@@ -0,0 +1,1302 @@
+package com.book.dao.polardb.pojo.example;
+
+import com.book.dao.polardb.entity.SunStaticOrderDay;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SunStaticOrderDayExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected Integer offset;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected Integer rows;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayExample orderBy(String orderByClause) {
+        this.setOrderByClause(orderByClause);
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayExample orderBy(String ... orderByClauses) {
+        StringBuffer sb = new StringBuffer();
+        for (int i = 0; i < orderByClauses.length; i++) {
+            sb.append(orderByClauses[i]);
+            if (i < orderByClauses.length - 1) {
+                sb.append(" , ");
+            }
+        }
+        this.setOrderByClause(sb.toString());
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria(this);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+        rows = null;
+        offset = null;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Integer getOffset() {
+        return this.offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setRows(Integer rows) {
+        this.rows = rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Integer getRows() {
+        return this.rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayExample limit(Integer rows) {
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayExample limit(Integer offset, Integer rows) {
+        this.offset = offset;
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayExample page(Integer page, Integer pageSize) {
+        this.offset = page * pageSize;
+        this.rows = pageSize;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public static Criteria newAndCreateCriteria() {
+        SunStaticOrderDayExample example = new SunStaticOrderDayExample();
+        return example.createCriteria();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayExample when(boolean condition, IExampleWhen then) {
+        if (condition) {
+            then.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderDayExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
+        if (condition) {
+            then.example(this);
+        } else {
+            otherwise.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    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(Integer value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateIsNull() {
+            addCriterion("static_date is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateIsNotNull() {
+            addCriterion("static_date is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateEqualTo(String value) {
+            addCriterion("static_date =", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("static_date = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotEqualTo(String value) {
+            addCriterion("static_date <>", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("static_date <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateGreaterThan(String value) {
+            addCriterion("static_date >", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateGreaterThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("static_date > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateGreaterThanOrEqualTo(String value) {
+            addCriterion("static_date >=", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateGreaterThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("static_date >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLessThan(String value) {
+            addCriterion("static_date <", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLessThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("static_date < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLessThanOrEqualTo(String value) {
+            addCriterion("static_date <=", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLessThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("static_date <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateLike(String value) {
+            addCriterion("static_date like", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotLike(String value) {
+            addCriterion("static_date not like", value, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateIn(List<String> values) {
+            addCriterion("static_date in", values, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotIn(List<String> values) {
+            addCriterion("static_date not in", values, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateBetween(String value1, String value2) {
+            addCriterion("static_date between", value1, value2, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andStaticDateNotBetween(String value1, String value2) {
+            addCriterion("static_date not between", value1, value2, "staticDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountIsNull() {
+            addCriterion("active_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountIsNotNull() {
+            addCriterion("active_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountEqualTo(Integer value) {
+            addCriterion("active_count =", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("active_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotEqualTo(Integer value) {
+            addCriterion("active_count <>", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("active_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThan(Integer value) {
+            addCriterion("active_count >", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("active_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("active_count >=", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("active_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThan(Integer value) {
+            addCriterion("active_count <", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("active_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThanOrEqualTo(Integer value) {
+            addCriterion("active_count <=", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("active_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountIn(List<Integer> values) {
+            addCriterion("active_count in", values, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotIn(List<Integer> values) {
+            addCriterion("active_count not in", values, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountBetween(Integer value1, Integer value2) {
+            addCriterion("active_count between", value1, value2, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("active_count not between", value1, value2, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountIsNull() {
+            addCriterion("recharge_user_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountIsNotNull() {
+            addCriterion("recharge_user_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountEqualTo(Integer value) {
+            addCriterion("recharge_user_count =", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotEqualTo(Integer value) {
+            addCriterion("recharge_user_count <>", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThan(Integer value) {
+            addCriterion("recharge_user_count >", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("recharge_user_count >=", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThan(Integer value) {
+            addCriterion("recharge_user_count <", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThanOrEqualTo(Integer value) {
+            addCriterion("recharge_user_count <=", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountIn(List<Integer> values) {
+            addCriterion("recharge_user_count in", values, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotIn(List<Integer> values) {
+            addCriterion("recharge_user_count not in", values, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_user_count between", value1, value2, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_user_count not between", value1, value2, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIsNull() {
+            addCriterion("recharge_sum is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIsNotNull() {
+            addCriterion("recharge_sum is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumEqualTo(Integer value) {
+            addCriterion("recharge_sum =", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_sum = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotEqualTo(Integer value) {
+            addCriterion("recharge_sum <>", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThan(Integer value) {
+            addCriterion("recharge_sum >", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_sum > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThanOrEqualTo(Integer value) {
+            addCriterion("recharge_sum >=", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_sum >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThan(Integer value) {
+            addCriterion("recharge_sum <", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_sum < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThanOrEqualTo(Integer value) {
+            addCriterion("recharge_sum <=", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIn(List<Integer> values) {
+            addCriterion("recharge_sum in", values, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotIn(List<Integer> values) {
+            addCriterion("recharge_sum not in", values, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_sum between", value1, value2, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_sum not between", value1, value2, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountIsNull() {
+            addCriterion("recharge_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountIsNotNull() {
+            addCriterion("recharge_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountEqualTo(Integer value) {
+            addCriterion("recharge_count =", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountNotEqualTo(Integer value) {
+            addCriterion("recharge_count <>", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountNotEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountGreaterThan(Integer value) {
+            addCriterion("recharge_count >", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountGreaterThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("recharge_count >=", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountGreaterThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountLessThan(Integer value) {
+            addCriterion("recharge_count <", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountLessThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountLessThanOrEqualTo(Integer value) {
+            addCriterion("recharge_count <=", value, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountLessThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountIn(List<Integer> values) {
+            addCriterion("recharge_count in", values, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountNotIn(List<Integer> values) {
+            addCriterion("recharge_count not in", values, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_count between", value1, value2, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_count not between", value1, value2, "rechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgIsNull() {
+            addCriterion("recharge_avg is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgIsNotNull() {
+            addCriterion("recharge_avg is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgEqualTo(String value) {
+            addCriterion("recharge_avg =", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_avg = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotEqualTo(String value) {
+            addCriterion("recharge_avg <>", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_avg <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgGreaterThan(String value) {
+            addCriterion("recharge_avg >", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgGreaterThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_avg > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgGreaterThanOrEqualTo(String value) {
+            addCriterion("recharge_avg >=", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgGreaterThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_avg >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLessThan(String value) {
+            addCriterion("recharge_avg <", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLessThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_avg < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLessThanOrEqualTo(String value) {
+            addCriterion("recharge_avg <=", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLessThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("recharge_avg <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgLike(String value) {
+            addCriterion("recharge_avg like", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotLike(String value) {
+            addCriterion("recharge_avg not like", value, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgIn(List<String> values) {
+            addCriterion("recharge_avg in", values, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotIn(List<String> values) {
+            addCriterion("recharge_avg not in", values, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgBetween(String value1, String value2) {
+            addCriterion("recharge_avg between", value1, value2, "rechargeAvg");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeAvgNotBetween(String value1, String value2) {
+            addCriterion("recharge_avg not between", value1, value2, "rechargeAvg");
+            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 andCreateTimeEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("create_time = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("create_time <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("create_time > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("create_time >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("create_time < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualToColumn(SunStaticOrderDay.Column column) {
+            addCriterion(new StringBuilder("create_time <= ").append(column.getEscapedColumnName()).toString());
+            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;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated do_not_delete_during_merge Sun Oct 10 12:25:38 CST 2021
+     */
+    public static class Criteria extends GeneratedCriteria {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private SunStaticOrderDayExample example;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        protected Criteria(SunStaticOrderDayExample example) {
+            super();
+            this.example = example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public SunStaticOrderDayExample example() {
+            return this.example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        @Deprecated
+        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
+            if (ifAdd) {
+                add.add(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then) {
+            if (condition) {
+                then.criteria(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
+            if (condition) {
+                then.criteria(this);
+            } else {
+                otherwise.criteria(this);
+            }
+            return this;
+        }
+
+        @Deprecated
+        public interface ICriteriaAdd {
+            /**
+             * This method was generated by MyBatis Generator.
+             * This method corresponds to the database table sun_static_order_day
+             *
+             * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+             */
+            Criteria add(Criteria add);
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order_day
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    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);
+        }
+    }
+
+    public interface ICriteriaWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        void criteria(Criteria criteria);
+    }
+
+    public interface IExampleWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order_day
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        void example(com.book.dao.polardb.pojo.example.SunStaticOrderDayExample example);
+    }
+}

+ 1122 - 0
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticOrderExample.java

@@ -0,0 +1,1122 @@
+package com.book.dao.polardb.pojo.example;
+
+import com.book.dao.polardb.entity.SunStaticOrder;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SunStaticOrderExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected Integer offset;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected Integer rows;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderExample orderBy(String orderByClause) {
+        this.setOrderByClause(orderByClause);
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderExample orderBy(String ... orderByClauses) {
+        StringBuffer sb = new StringBuffer();
+        for (int i = 0; i < orderByClauses.length; i++) {
+            sb.append(orderByClauses[i]);
+            if (i < orderByClauses.length - 1) {
+                sb.append(" , ");
+            }
+        }
+        this.setOrderByClause(sb.toString());
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria(this);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+        rows = null;
+        offset = null;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setOffset(Integer offset) {
+        this.offset = offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Integer getOffset() {
+        return this.offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public void setRows(Integer rows) {
+        this.rows = rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public Integer getRows() {
+        return this.rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderExample limit(Integer rows) {
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderExample limit(Integer offset, Integer rows) {
+        this.offset = offset;
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderExample page(Integer page, Integer pageSize) {
+        this.offset = page * pageSize;
+        this.rows = pageSize;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public static Criteria newAndCreateCriteria() {
+        SunStaticOrderExample example = new SunStaticOrderExample();
+        return example.createCriteria();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderExample when(boolean condition, IExampleWhen then) {
+        if (condition) {
+            then.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    public SunStaticOrderExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
+        if (condition) {
+            then.example(this);
+        } else {
+            otherwise.example(this);
+        }
+        return this;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    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(Integer value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Integer value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Integer value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Integer value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Integer> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Integer> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Integer value1, Integer value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateIsNull() {
+            addCriterion("active_date is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateIsNotNull() {
+            addCriterion("active_date is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateEqualTo(String value) {
+            addCriterion("active_date =", value, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_date = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateNotEqualTo(String value) {
+            addCriterion("active_date <>", value, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateNotEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_date <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateGreaterThan(String value) {
+            addCriterion("active_date >", value, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateGreaterThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_date > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateGreaterThanOrEqualTo(String value) {
+            addCriterion("active_date >=", value, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateGreaterThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_date >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateLessThan(String value) {
+            addCriterion("active_date <", value, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateLessThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_date < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateLessThanOrEqualTo(String value) {
+            addCriterion("active_date <=", value, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateLessThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_date <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateLike(String value) {
+            addCriterion("active_date like", value, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateNotLike(String value) {
+            addCriterion("active_date not like", value, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateIn(List<String> values) {
+            addCriterion("active_date in", values, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateNotIn(List<String> values) {
+            addCriterion("active_date not in", values, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateBetween(String value1, String value2) {
+            addCriterion("active_date between", value1, value2, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveDateNotBetween(String value1, String value2) {
+            addCriterion("active_date not between", value1, value2, "activeDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountIsNull() {
+            addCriterion("active_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountIsNotNull() {
+            addCriterion("active_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountEqualTo(String value) {
+            addCriterion("active_count =", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotEqualTo(String value) {
+            addCriterion("active_count <>", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThan(String value) {
+            addCriterion("active_count >", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThanOrEqualTo(String value) {
+            addCriterion("active_count >=", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountGreaterThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThan(String value) {
+            addCriterion("active_count <", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThanOrEqualTo(String value) {
+            addCriterion("active_count <=", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLessThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("active_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountLike(String value) {
+            addCriterion("active_count like", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotLike(String value) {
+            addCriterion("active_count not like", value, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountIn(List<String> values) {
+            addCriterion("active_count in", values, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotIn(List<String> values) {
+            addCriterion("active_count not in", values, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountBetween(String value1, String value2) {
+            addCriterion("active_count between", value1, value2, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andActiveCountNotBetween(String value1, String value2) {
+            addCriterion("active_count not between", value1, value2, "activeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountIsNull() {
+            addCriterion("recharge_user_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountIsNotNull() {
+            addCriterion("recharge_user_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountEqualTo(Integer value) {
+            addCriterion("recharge_user_count =", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotEqualTo(Integer value) {
+            addCriterion("recharge_user_count <>", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThan(Integer value) {
+            addCriterion("recharge_user_count >", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("recharge_user_count >=", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountGreaterThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThan(Integer value) {
+            addCriterion("recharge_user_count <", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThanOrEqualTo(Integer value) {
+            addCriterion("recharge_user_count <=", value, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountLessThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_user_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountIn(List<Integer> values) {
+            addCriterion("recharge_user_count in", values, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotIn(List<Integer> values) {
+            addCriterion("recharge_user_count not in", values, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_user_count between", value1, value2, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeUserCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_user_count not between", value1, value2, "rechargeUserCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIsNull() {
+            addCriterion("recharge_sum is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIsNotNull() {
+            addCriterion("recharge_sum is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumEqualTo(Integer value) {
+            addCriterion("recharge_sum =", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_sum = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotEqualTo(Integer value) {
+            addCriterion("recharge_sum <>", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThan(Integer value) {
+            addCriterion("recharge_sum >", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_sum > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThanOrEqualTo(Integer value) {
+            addCriterion("recharge_sum >=", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumGreaterThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_sum >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThan(Integer value) {
+            addCriterion("recharge_sum <", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_sum < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThanOrEqualTo(Integer value) {
+            addCriterion("recharge_sum <=", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumLessThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIn(List<Integer> values) {
+            addCriterion("recharge_sum in", values, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotIn(List<Integer> values) {
+            addCriterion("recharge_sum not in", values, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_sum between", value1, value2, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotBetween(Integer value1, Integer value2) {
+            addCriterion("recharge_sum not between", value1, value2, "rechargeSum");
+            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 andCreateTimeEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("create_time = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("create_time <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("create_time > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("create_time >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("create_time < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualToColumn(SunStaticOrder.Column column) {
+            addCriterion(new StringBuilder("create_time <= ").append(column.getEscapedColumnName()).toString());
+            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;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order
+     *
+     * @mbg.generated do_not_delete_during_merge Sun Oct 10 12:25:38 CST 2021
+     */
+    public static class Criteria extends GeneratedCriteria {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        private SunStaticOrderExample example;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        protected Criteria(SunStaticOrderExample example) {
+            super();
+            this.example = example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public SunStaticOrderExample example() {
+            return this.example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        @Deprecated
+        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
+            if (ifAdd) {
+                add.add(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then) {
+            if (condition) {
+                then.criteria(this);
+            }
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
+            if (condition) {
+                then.criteria(this);
+            } else {
+                otherwise.criteria(this);
+            }
+            return this;
+        }
+
+        @Deprecated
+        public interface ICriteriaAdd {
+            /**
+             * This method was generated by MyBatis Generator.
+             * This method corresponds to the database table sun_static_order
+             *
+             * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+             */
+            Criteria add(Criteria add);
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_order
+     *
+     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     */
+    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);
+        }
+    }
+
+    public interface ICriteriaWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        void criteria(Criteria criteria);
+    }
+
+    public interface IExampleWhen {
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_order
+         *
+         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         */
+        void example(com.book.dao.polardb.pojo.example.SunStaticOrderExample example);
+    }
+}

+ 739 - 0
book-dao/src/main/resources/mapper/polar/SunStaticOrderDayChannelMapper.xml

@@ -0,0 +1,739 @@
+<?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.book.dao.polardb.mapper.SunStaticOrderDayChannelMapper">
+  <resultMap id="BaseResultMap" type="com.book.dao.polardb.entity.SunStaticOrderDayChannel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="channel_id" jdbcType="VARCHAR" property="channelId" />
+    <result column="channel_name" jdbcType="VARCHAR" property="channelName" />
+    <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
+    <result column="active_count" jdbcType="INTEGER" property="activeCount" />
+    <result column="recharge_user_count" jdbcType="INTEGER" property="rechargeUserCount" />
+    <result column="recharge_sum" jdbcType="INTEGER" property="rechargeSum" />
+    <result column="recharge_count" jdbcType="INTEGER" property="rechargeCount" />
+    <result column="recharge_avg" jdbcType="VARCHAR" property="rechargeAvg" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    id, channel_id, channel_name, static_date, active_count, recharge_user_count, recharge_sum, 
+    recharge_count, recharge_avg, create_time
+  </sql>
+  <select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderDayChannelExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from sun_static_order_day_channel
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    <if test="rows != null">
+      <if test="offset != null">
+        limit ${offset}, ${rows}
+      </if>
+      <if test="offset == null">
+        limit ${rows}
+      </if>
+    </if>
+  </select>
+  <select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <if test="example != null and example.distinct">
+      distinct
+    </if>
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from sun_static_order_day_channel
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    <if test="example != null and example.rows != null">
+      <if test="example.offset != null">
+        limit ${example.offset}, ${example.rows}
+      </if>
+      <if test="example.offset == null">
+        limit ${example.rows}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from sun_static_order_day_channel
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from sun_static_order_day_channel
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    delete from sun_static_order_day_channel
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderDayChannelExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    delete from sun_static_order_day_channel
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.book.dao.polardb.entity.SunStaticOrderDayChannel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day_channel (id, channel_id, channel_name, 
+      static_date, active_count, recharge_user_count, 
+      recharge_sum, recharge_count, recharge_avg, 
+      create_time)
+    values (#{id,jdbcType=INTEGER}, #{channelId,jdbcType=VARCHAR}, #{channelName,jdbcType=VARCHAR}, 
+      #{staticDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=INTEGER}, #{rechargeUserCount,jdbcType=INTEGER}, 
+      #{rechargeSum,jdbcType=INTEGER}, #{rechargeCount,jdbcType=INTEGER}, #{rechargeAvg,jdbcType=VARCHAR}, 
+      #{createTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day_channel
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.channelId != null">
+            channel_id,
+          </if>
+          <if test="record.channelName != null">
+            channel_name,
+          </if>
+          <if test="record.staticDate != null">
+            static_date,
+          </if>
+          <if test="record.activeCount != null">
+            active_count,
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count,
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum,
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count,
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg,
+          </if>
+          <if test="record.createTime != null">
+            create_time,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.channelId != null">
+            #{record.channelId,jdbcType=VARCHAR},
+          </if>
+          <if test="record.channelName != null">
+            #{record.channelName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.staticDate != null">
+            #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <select id="countByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderDayChannelExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select count(*) from sun_static_order_day_channel
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order_day_channel
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.channelId != null">
+            channel_id = #{record.channelId,jdbcType=VARCHAR},
+          </if>
+          <if test="record.channelName != null">
+            channel_name = #{record.channelName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.staticDate != null">
+            static_date = #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            active_count = #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            create_time = #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order_day_channel
+    set id = #{record.id,jdbcType=INTEGER},
+      channel_id = #{record.channelId,jdbcType=VARCHAR},
+      channel_name = #{record.channelName,jdbcType=VARCHAR},
+      static_date = #{record.staticDate,jdbcType=VARCHAR},
+      active_count = #{record.activeCount,jdbcType=INTEGER},
+      recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+      recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+      recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
+      recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order_day_channel
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.channelId != null">
+            channel_id = #{record.channelId,jdbcType=VARCHAR},
+          </if>
+          <if test="record.channelName != null">
+            channel_name = #{record.channelName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.staticDate != null">
+            static_date = #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            active_count = #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            create_time = #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    where id = #{record.id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.book.dao.polardb.entity.SunStaticOrderDayChannel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order_day_channel
+    set channel_id = #{channelId,jdbcType=VARCHAR},
+      channel_name = #{channelName,jdbcType=VARCHAR},
+      static_date = #{staticDate,jdbcType=VARCHAR},
+      active_count = #{activeCount,jdbcType=INTEGER},
+      recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER},
+      recharge_sum = #{rechargeSum,jdbcType=INTEGER},
+      recharge_count = #{rechargeCount,jdbcType=INTEGER},
+      recharge_avg = #{rechargeAvg,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <select id="selectOneByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderDayChannelExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <include refid="Base_Column_List" />
+    from sun_static_order_day_channel
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    limit 1
+  </select>
+  <select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from sun_static_order_day_channel
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    limit 1
+  </select>
+  <insert id="batchInsert" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day_channel
+    (id, channel_id, channel_name, static_date, active_count, recharge_user_count, recharge_sum, 
+      recharge_count, recharge_avg, create_time)
+    values
+    <foreach collection="list" item="item" separator=",">
+      (#{item.id,jdbcType=INTEGER}, #{item.channelId,jdbcType=VARCHAR}, #{item.channelName,jdbcType=VARCHAR}, 
+        #{item.staticDate,jdbcType=VARCHAR}, #{item.activeCount,jdbcType=INTEGER}, #{item.rechargeUserCount,jdbcType=INTEGER}, 
+        #{item.rechargeSum,jdbcType=INTEGER}, #{item.rechargeCount,jdbcType=INTEGER}, #{item.rechargeAvg,jdbcType=VARCHAR}, 
+        #{item.createTime,jdbcType=TIMESTAMP})
+    </foreach>
+  </insert>
+  <insert id="batchInsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day_channel (
+    <foreach collection="selective" item="column" separator=",">
+      ${column.escapedColumnName}
+    </foreach>
+    )
+    values
+    <foreach collection="list" item="item" separator=",">
+      (
+      <foreach collection="selective" item="column" separator=",">
+        <if test="'id'.toString() == column.value">
+          #{item.id,jdbcType=INTEGER}
+        </if>
+        <if test="'channel_id'.toString() == column.value">
+          #{item.channelId,jdbcType=VARCHAR}
+        </if>
+        <if test="'channel_name'.toString() == column.value">
+          #{item.channelName,jdbcType=VARCHAR}
+        </if>
+        <if test="'static_date'.toString() == column.value">
+          #{item.staticDate,jdbcType=VARCHAR}
+        </if>
+        <if test="'active_count'.toString() == column.value">
+          #{item.activeCount,jdbcType=INTEGER}
+        </if>
+        <if test="'recharge_user_count'.toString() == column.value">
+          #{item.rechargeUserCount,jdbcType=INTEGER}
+        </if>
+        <if test="'recharge_sum'.toString() == column.value">
+          #{item.rechargeSum,jdbcType=INTEGER}
+        </if>
+        <if test="'recharge_count'.toString() == column.value">
+          #{item.rechargeCount,jdbcType=INTEGER}
+        </if>
+        <if test="'recharge_avg'.toString() == column.value">
+          #{item.rechargeAvg,jdbcType=VARCHAR}
+        </if>
+        <if test="'create_time'.toString() == column.value">
+          #{item.createTime,jdbcType=TIMESTAMP}
+        </if>
+      </foreach>
+      )
+    </foreach>
+  </insert>
+  <insert id="upsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day_channel
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.channelId != null">
+            channel_id,
+          </if>
+          <if test="record.channelName != null">
+            channel_name,
+          </if>
+          <if test="record.staticDate != null">
+            static_date,
+          </if>
+          <if test="record.activeCount != null">
+            active_count,
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count,
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum,
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count,
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg,
+          </if>
+          <if test="record.createTime != null">
+            create_time,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.channelId != null">
+            #{record.channelId,jdbcType=VARCHAR},
+          </if>
+          <if test="record.channelName != null">
+            #{record.channelName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.staticDate != null">
+            #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    on duplicate key update 
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.channelId != null">
+            channel_id = #{record.channelId,jdbcType=VARCHAR},
+          </if>
+          <if test="record.channelName != null">
+            channel_name = #{record.channelName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.staticDate != null">
+            static_date = #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            active_count = #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            create_time = #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <insert id="upsert" parameterType="com.book.dao.polardb.entity.SunStaticOrderDayChannel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day_channel
+    (id, channel_id, channel_name, static_date, active_count, recharge_user_count, recharge_sum, 
+      recharge_count, recharge_avg, create_time)
+    values
+    (#{id,jdbcType=INTEGER}, #{channelId,jdbcType=VARCHAR}, #{channelName,jdbcType=VARCHAR}, 
+      #{staticDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=INTEGER}, #{rechargeUserCount,jdbcType=INTEGER}, 
+      #{rechargeSum,jdbcType=INTEGER}, #{rechargeCount,jdbcType=INTEGER}, #{rechargeAvg,jdbcType=VARCHAR}, 
+      #{createTime,jdbcType=TIMESTAMP})
+    on duplicate key update 
+    id = #{id,jdbcType=INTEGER}, 
+    channel_id = #{channelId,jdbcType=VARCHAR}, 
+    channel_name = #{channelName,jdbcType=VARCHAR}, 
+    static_date = #{staticDate,jdbcType=VARCHAR}, 
+    active_count = #{activeCount,jdbcType=INTEGER}, 
+    recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER}, 
+    recharge_sum = #{rechargeSum,jdbcType=INTEGER}, 
+    recharge_count = #{rechargeCount,jdbcType=INTEGER}, 
+    recharge_avg = #{rechargeAvg,jdbcType=VARCHAR}, 
+    create_time = #{createTime,jdbcType=TIMESTAMP}
+  </insert>
+</mapper>

+ 680 - 0
book-dao/src/main/resources/mapper/polar/SunStaticOrderDayMapper.xml

@@ -0,0 +1,680 @@
+<?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.book.dao.polardb.mapper.SunStaticOrderDayMapper">
+  <resultMap id="BaseResultMap" type="com.book.dao.polardb.entity.SunStaticOrderDay">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
+    <result column="active_count" jdbcType="INTEGER" property="activeCount" />
+    <result column="recharge_user_count" jdbcType="INTEGER" property="rechargeUserCount" />
+    <result column="recharge_sum" jdbcType="INTEGER" property="rechargeSum" />
+    <result column="recharge_count" jdbcType="INTEGER" property="rechargeCount" />
+    <result column="recharge_avg" jdbcType="VARCHAR" property="rechargeAvg" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    id, static_date, active_count, recharge_user_count, recharge_sum, recharge_count, 
+    recharge_avg, create_time
+  </sql>
+  <select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderDayExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from sun_static_order_day
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    <if test="rows != null">
+      <if test="offset != null">
+        limit ${offset}, ${rows}
+      </if>
+      <if test="offset == null">
+        limit ${rows}
+      </if>
+    </if>
+  </select>
+  <select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <if test="example != null and example.distinct">
+      distinct
+    </if>
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from sun_static_order_day
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    <if test="example != null and example.rows != null">
+      <if test="example.offset != null">
+        limit ${example.offset}, ${example.rows}
+      </if>
+      <if test="example.offset == null">
+        limit ${example.rows}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from sun_static_order_day
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from sun_static_order_day
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    delete from sun_static_order_day
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderDayExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    delete from sun_static_order_day
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.book.dao.polardb.entity.SunStaticOrderDay">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day (id, static_date, active_count, 
+      recharge_user_count, recharge_sum, recharge_count, 
+      recharge_avg, create_time)
+    values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=INTEGER}, 
+      #{rechargeUserCount,jdbcType=INTEGER}, #{rechargeSum,jdbcType=INTEGER}, #{rechargeCount,jdbcType=INTEGER}, 
+      #{rechargeAvg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.staticDate != null">
+            static_date,
+          </if>
+          <if test="record.activeCount != null">
+            active_count,
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count,
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum,
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count,
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg,
+          </if>
+          <if test="record.createTime != null">
+            create_time,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.staticDate != null">
+            #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <select id="countByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderDayExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select count(*) from sun_static_order_day
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order_day
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.staticDate != null">
+            static_date = #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            active_count = #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            create_time = #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order_day
+    set id = #{record.id,jdbcType=INTEGER},
+      static_date = #{record.staticDate,jdbcType=VARCHAR},
+      active_count = #{record.activeCount,jdbcType=INTEGER},
+      recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+      recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+      recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
+      recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order_day
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.staticDate != null">
+            static_date = #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            active_count = #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            create_time = #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    where id = #{record.id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.book.dao.polardb.entity.SunStaticOrderDay">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order_day
+    set static_date = #{staticDate,jdbcType=VARCHAR},
+      active_count = #{activeCount,jdbcType=INTEGER},
+      recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER},
+      recharge_sum = #{rechargeSum,jdbcType=INTEGER},
+      recharge_count = #{rechargeCount,jdbcType=INTEGER},
+      recharge_avg = #{rechargeAvg,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <select id="selectOneByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderDayExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <include refid="Base_Column_List" />
+    from sun_static_order_day
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    limit 1
+  </select>
+  <select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from sun_static_order_day
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    limit 1
+  </select>
+  <insert id="batchInsert" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day
+    (id, static_date, active_count, recharge_user_count, recharge_sum, recharge_count, 
+      recharge_avg, create_time)
+    values
+    <foreach collection="list" item="item" separator=",">
+      (#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.activeCount,jdbcType=INTEGER}, 
+        #{item.rechargeUserCount,jdbcType=INTEGER}, #{item.rechargeSum,jdbcType=INTEGER}, 
+        #{item.rechargeCount,jdbcType=INTEGER}, #{item.rechargeAvg,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}
+        )
+    </foreach>
+  </insert>
+  <insert id="batchInsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day (
+    <foreach collection="selective" item="column" separator=",">
+      ${column.escapedColumnName}
+    </foreach>
+    )
+    values
+    <foreach collection="list" item="item" separator=",">
+      (
+      <foreach collection="selective" item="column" separator=",">
+        <if test="'id'.toString() == column.value">
+          #{item.id,jdbcType=INTEGER}
+        </if>
+        <if test="'static_date'.toString() == column.value">
+          #{item.staticDate,jdbcType=VARCHAR}
+        </if>
+        <if test="'active_count'.toString() == column.value">
+          #{item.activeCount,jdbcType=INTEGER}
+        </if>
+        <if test="'recharge_user_count'.toString() == column.value">
+          #{item.rechargeUserCount,jdbcType=INTEGER}
+        </if>
+        <if test="'recharge_sum'.toString() == column.value">
+          #{item.rechargeSum,jdbcType=INTEGER}
+        </if>
+        <if test="'recharge_count'.toString() == column.value">
+          #{item.rechargeCount,jdbcType=INTEGER}
+        </if>
+        <if test="'recharge_avg'.toString() == column.value">
+          #{item.rechargeAvg,jdbcType=VARCHAR}
+        </if>
+        <if test="'create_time'.toString() == column.value">
+          #{item.createTime,jdbcType=TIMESTAMP}
+        </if>
+      </foreach>
+      )
+    </foreach>
+  </insert>
+  <insert id="upsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.staticDate != null">
+            static_date,
+          </if>
+          <if test="record.activeCount != null">
+            active_count,
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count,
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum,
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count,
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg,
+          </if>
+          <if test="record.createTime != null">
+            create_time,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.staticDate != null">
+            #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    on duplicate key update 
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.staticDate != null">
+            static_date = #{record.staticDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            active_count = #{record.activeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeCount != null">
+            recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeAvg != null">
+            recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
+          </if>
+          <if test="record.createTime != null">
+            create_time = #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <insert id="upsert" parameterType="com.book.dao.polardb.entity.SunStaticOrderDay">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order_day
+    (id, static_date, active_count, recharge_user_count, recharge_sum, recharge_count, 
+      recharge_avg, create_time)
+    values
+    (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=INTEGER}, 
+      #{rechargeUserCount,jdbcType=INTEGER}, #{rechargeSum,jdbcType=INTEGER}, #{rechargeCount,jdbcType=INTEGER}, 
+      #{rechargeAvg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
+    on duplicate key update 
+    id = #{id,jdbcType=INTEGER}, 
+    static_date = #{staticDate,jdbcType=VARCHAR}, 
+    active_count = #{activeCount,jdbcType=INTEGER}, 
+    recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER}, 
+    recharge_sum = #{rechargeSum,jdbcType=INTEGER}, 
+    recharge_count = #{rechargeCount,jdbcType=INTEGER}, 
+    recharge_avg = #{rechargeAvg,jdbcType=VARCHAR}, 
+    create_time = #{createTime,jdbcType=TIMESTAMP}
+  </insert>
+</mapper>

+ 620 - 0
book-dao/src/main/resources/mapper/polar/SunStaticOrderMapper.xml

@@ -0,0 +1,620 @@
+<?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.book.dao.polardb.mapper.SunStaticOrderMapper">
+  <resultMap id="BaseResultMap" type="com.book.dao.polardb.entity.SunStaticOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="active_date" jdbcType="VARCHAR" property="activeDate" />
+    <result column="active_count" jdbcType="VARCHAR" property="activeCount" />
+    <result column="recharge_user_count" jdbcType="INTEGER" property="rechargeUserCount" />
+    <result column="recharge_sum" jdbcType="INTEGER" property="rechargeSum" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    id, active_date, active_count, recharge_user_count, recharge_sum, create_time
+  </sql>
+  <select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from sun_static_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    <if test="rows != null">
+      <if test="offset != null">
+        limit ${offset}, ${rows}
+      </if>
+      <if test="offset == null">
+        limit ${rows}
+      </if>
+    </if>
+  </select>
+  <select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <if test="example != null and example.distinct">
+      distinct
+    </if>
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from sun_static_order
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    <if test="example != null and example.rows != null">
+      <if test="example.offset != null">
+        limit ${example.offset}, ${example.rows}
+      </if>
+      <if test="example.offset == null">
+        limit ${example.rows}
+      </if>
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from sun_static_order
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from sun_static_order
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    delete from sun_static_order
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    delete from sun_static_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.book.dao.polardb.entity.SunStaticOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order (id, active_date, active_count, 
+      recharge_user_count, recharge_sum, create_time
+      )
+    values (#{id,jdbcType=INTEGER}, #{activeDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=VARCHAR}, 
+      #{rechargeUserCount,jdbcType=INTEGER}, #{rechargeSum,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.activeDate != null">
+            active_date,
+          </if>
+          <if test="record.activeCount != null">
+            active_count,
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count,
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum,
+          </if>
+          <if test="record.createTime != null">
+            create_time,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.activeDate != null">
+            #{record.activeDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            #{record.activeCount,jdbcType=VARCHAR},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.createTime != null">
+            #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <select id="countByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select count(*) from sun_static_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.activeDate != null">
+            active_date = #{record.activeDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            active_count = #{record.activeCount,jdbcType=VARCHAR},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.createTime != null">
+            create_time = #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order
+    set id = #{record.id,jdbcType=INTEGER},
+      active_date = #{record.activeDate,jdbcType=VARCHAR},
+      active_count = #{record.activeCount,jdbcType=VARCHAR},
+      recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+      recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order
+    SET
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.activeDate != null">
+            active_date = #{record.activeDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            active_count = #{record.activeCount,jdbcType=VARCHAR},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.createTime != null">
+            create_time = #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    where id = #{record.id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.book.dao.polardb.entity.SunStaticOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    update sun_static_order
+    set active_date = #{activeDate,jdbcType=VARCHAR},
+      active_count = #{activeCount,jdbcType=VARCHAR},
+      recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER},
+      recharge_sum = #{rechargeSum,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <select id="selectOneByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticOrderExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <include refid="Base_Column_List" />
+    from sun_static_order
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+    limit 1
+  </select>
+  <select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    select
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.aliasedEscapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <include refid="Base_Column_List" />
+      </otherwise>
+    </choose>
+    from sun_static_order
+    <if test="example != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+    <if test="example != null and example.orderByClause != null">
+      order by ${example.orderByClause}
+    </if>
+    limit 1
+  </select>
+  <insert id="batchInsert" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order
+    (id, active_date, active_count, recharge_user_count, recharge_sum, create_time)
+    values
+    <foreach collection="list" item="item" separator=",">
+      (#{item.id,jdbcType=INTEGER}, #{item.activeDate,jdbcType=VARCHAR}, #{item.activeCount,jdbcType=VARCHAR}, 
+        #{item.rechargeUserCount,jdbcType=INTEGER}, #{item.rechargeSum,jdbcType=INTEGER}, 
+        #{item.createTime,jdbcType=TIMESTAMP})
+    </foreach>
+  </insert>
+  <insert id="batchInsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order (
+    <foreach collection="selective" item="column" separator=",">
+      ${column.escapedColumnName}
+    </foreach>
+    )
+    values
+    <foreach collection="list" item="item" separator=",">
+      (
+      <foreach collection="selective" item="column" separator=",">
+        <if test="'id'.toString() == column.value">
+          #{item.id,jdbcType=INTEGER}
+        </if>
+        <if test="'active_date'.toString() == column.value">
+          #{item.activeDate,jdbcType=VARCHAR}
+        </if>
+        <if test="'active_count'.toString() == column.value">
+          #{item.activeCount,jdbcType=VARCHAR}
+        </if>
+        <if test="'recharge_user_count'.toString() == column.value">
+          #{item.rechargeUserCount,jdbcType=INTEGER}
+        </if>
+        <if test="'recharge_sum'.toString() == column.value">
+          #{item.rechargeSum,jdbcType=INTEGER}
+        </if>
+        <if test="'create_time'.toString() == column.value">
+          #{item.createTime,jdbcType=TIMESTAMP}
+        </if>
+      </foreach>
+      )
+    </foreach>
+  </insert>
+  <insert id="upsertSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          ${column.escapedColumnName}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            id,
+          </if>
+          <if test="record.activeDate != null">
+            active_date,
+          </if>
+          <if test="record.activeCount != null">
+            active_count,
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count,
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum,
+          </if>
+          <if test="record.createTime != null">
+            create_time,
+          </if>
+        </trim>
+        <trim prefix="(" suffix=")" suffixOverrides="," />
+      </otherwise>
+    </choose>
+    values
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach close=")" collection="selective" item="column" open="(" separator=",">
+          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+          <if test="record.id != null">
+            #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.activeDate != null">
+            #{record.activeDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            #{record.activeCount,jdbcType=VARCHAR},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.createTime != null">
+            #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    on duplicate key update 
+    <choose>
+      <when test="selective != null and selective.length > 0">
+        <foreach collection="selective" item="column" separator=",">
+          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
+        </foreach>
+      </when>
+      <otherwise>
+        <trim suffixOverrides=",">
+          <if test="record.id != null">
+            id = #{record.id,jdbcType=INTEGER},
+          </if>
+          <if test="record.activeDate != null">
+            active_date = #{record.activeDate,jdbcType=VARCHAR},
+          </if>
+          <if test="record.activeCount != null">
+            active_count = #{record.activeCount,jdbcType=VARCHAR},
+          </if>
+          <if test="record.rechargeUserCount != null">
+            recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+          </if>
+          <if test="record.createTime != null">
+            create_time = #{record.createTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <insert id="upsert" parameterType="com.book.dao.polardb.entity.SunStaticOrder">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+    -->
+    insert into sun_static_order
+    (id, active_date, active_count, recharge_user_count, recharge_sum, create_time)
+    values
+    (#{id,jdbcType=INTEGER}, #{activeDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=VARCHAR}, 
+      #{rechargeUserCount,jdbcType=INTEGER}, #{rechargeSum,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}
+      )
+    on duplicate key update 
+    id = #{id,jdbcType=INTEGER}, 
+    active_date = #{activeDate,jdbcType=VARCHAR}, 
+    active_count = #{activeCount,jdbcType=VARCHAR}, 
+    recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER}, 
+    recharge_sum = #{rechargeSum,jdbcType=INTEGER}, 
+    create_time = #{createTime,jdbcType=TIMESTAMP}
+  </insert>
+</mapper>

+ 3 - 3
book-dao/src/main/resources/polar-mybatis-generator.xml

@@ -103,9 +103,9 @@
         <!--数据库连接配置 need to change-->
         <jdbcConnection
                 driverClass="com.mysql.cj.jdbc.Driver"
-                connectionURL="jdbc:mysql://rm-bp1978b18gyf7v7by.mysql.rds.aliyuncs.com:3306/polardb?nullCatalogMeansCurrent=true&amp;serverTimezone=UTC"
-                userId="test_cps"
-                password="oRt+rY(7x3&amp;kB#OQdit9"/>
+                connectionURL="jdbc:mysql://121.41.100.198:3306/polardb?nullCatalogMeansCurrent=true&amp;serverTimezone=UTC"
+                userId="root"
+                password="root"/>
 
         <!--指定自动生成的 POJO置于哪个包下 need to change -->
         <javaModelGenerator targetPackage="com.book.dao.polardb.entity"