Parcourir la source

新增用户统计实体

tianyunperfect il y a 3 ans
Parent
commit
c9faa1ec7f

+ 403 - 0
book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticUserDay.java

@@ -0,0 +1,403 @@
+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 SunStaticUserDay implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day.id
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day.static_date
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private String staticDate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day.new_all_user
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Integer newAllUser;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day.new_recharge_user
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Integer newRechargeUser;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day.new_recharge_sum
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private String newRechargeSum;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day.new_recharge_count
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Integer newRechargeCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day.insert_time
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Date insertTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public static SunStaticUserDay.Builder builder() {
+        return new SunStaticUserDay.Builder();
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public static class Builder {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private SunStaticUserDay obj;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder() {
+            this.obj = new SunStaticUserDay();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day.id
+         *
+         * @param id the value for sun_static_user_day.id
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day.static_date
+         *
+         * @param staticDate the value for sun_static_user_day.static_date
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day.new_all_user
+         *
+         * @param newAllUser the value for sun_static_user_day.new_all_user
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder newAllUser(Integer newAllUser) {
+            obj.setNewAllUser(newAllUser);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day.new_recharge_user
+         *
+         * @param newRechargeUser the value for sun_static_user_day.new_recharge_user
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder newRechargeUser(Integer newRechargeUser) {
+            obj.setNewRechargeUser(newRechargeUser);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day.new_recharge_sum
+         *
+         * @param newRechargeSum the value for sun_static_user_day.new_recharge_sum
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder newRechargeSum(String newRechargeSum) {
+            obj.setNewRechargeSum(newRechargeSum);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day.new_recharge_count
+         *
+         * @param newRechargeCount the value for sun_static_user_day.new_recharge_count
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder newRechargeCount(Integer newRechargeCount) {
+            obj.setNewRechargeCount(newRechargeCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day.insert_time
+         *
+         * @param insertTime the value for sun_static_user_day.insert_time
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder insertTime(Date insertTime) {
+            obj.setInsertTime(insertTime);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public SunStaticUserDay build() {
+            return this.obj;
+        }
+    }
+
+    /**
+     * This enum was generated by MyBatis Generator.
+     * This enum corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public enum Column {
+        id("id", "id", "INTEGER", false),
+        staticDate("static_date", "staticDate", "VARCHAR", false),
+        newAllUser("new_all_user", "newAllUser", "INTEGER", false),
+        newRechargeUser("new_recharge_user", "newRechargeUser", "INTEGER", false),
+        newRechargeSum("new_recharge_sum", "newRechargeSum", "VARCHAR", false),
+        newRechargeCount("new_recharge_count", "newRechargeCount", "INTEGER", false),
+        insertTime("insert_time", "insertTime", "TIMESTAMP", false);
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private static final String BEGINNING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private static final String ENDING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private final String column;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private final boolean isColumnNameDelimited;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private final String javaProperty;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private final String jdbcType;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String value() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String getValue() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String getJavaProperty() {
+            return this.javaProperty;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String getJdbcType() {
+            return this.jdbcType;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String getAliasedEscapedColumnName() {
+            return this.getEscapedColumnName();
+        }
+    }
+}

+ 449 - 0
book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticUserDayChannel.java

@@ -0,0 +1,449 @@
+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 SunStaticUserDayChannel implements Serializable {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day_channel.id
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Integer id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day_channel.static_date
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private String staticDate;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day_channel.channel_id
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private String channelId;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day_channel.channel_name
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private String channelName;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day_channel.new_all_user
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Integer newAllUser;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day_channel.new_recharge_user
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Integer newRechargeUser;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day_channel.new_recharge_sum
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private String newRechargeSum;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day_channel.new_recharge_count
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Integer newRechargeCount;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_user_day_channel.insert_time
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private Date insertTime;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public static SunStaticUserDayChannel.Builder builder() {
+        return new SunStaticUserDayChannel.Builder();
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public static class Builder {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private SunStaticUserDayChannel obj;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder() {
+            this.obj = new SunStaticUserDayChannel();
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day_channel.id
+         *
+         * @param id the value for sun_static_user_day_channel.id
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel.static_date
+         *
+         * @param staticDate the value for sun_static_user_day_channel.static_date
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel.channel_id
+         *
+         * @param channelId the value for sun_static_user_day_channel.channel_id
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel.channel_name
+         *
+         * @param channelName the value for sun_static_user_day_channel.channel_name
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel.new_all_user
+         *
+         * @param newAllUser the value for sun_static_user_day_channel.new_all_user
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder newAllUser(Integer newAllUser) {
+            obj.setNewAllUser(newAllUser);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day_channel.new_recharge_user
+         *
+         * @param newRechargeUser the value for sun_static_user_day_channel.new_recharge_user
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder newRechargeUser(Integer newRechargeUser) {
+            obj.setNewRechargeUser(newRechargeUser);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day_channel.new_recharge_sum
+         *
+         * @param newRechargeSum the value for sun_static_user_day_channel.new_recharge_sum
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder newRechargeSum(String newRechargeSum) {
+            obj.setNewRechargeSum(newRechargeSum);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day_channel.new_recharge_count
+         *
+         * @param newRechargeCount the value for sun_static_user_day_channel.new_recharge_count
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder newRechargeCount(Integer newRechargeCount) {
+            obj.setNewRechargeCount(newRechargeCount);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_user_day_channel.insert_time
+         *
+         * @param insertTime the value for sun_static_user_day_channel.insert_time
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public Builder insertTime(Date insertTime) {
+            obj.setInsertTime(insertTime);
+            return this;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public SunStaticUserDayChannel build() {
+            return this.obj;
+        }
+    }
+
+    /**
+     * This enum was generated by MyBatis Generator.
+     * This enum corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public enum Column {
+        id("id", "id", "INTEGER", false),
+        staticDate("static_date", "staticDate", "VARCHAR", false),
+        channelId("channel_id", "channelId", "VARCHAR", false),
+        channelName("channel_name", "channelName", "VARCHAR", false),
+        newAllUser("new_all_user", "newAllUser", "INTEGER", false),
+        newRechargeUser("new_recharge_user", "newRechargeUser", "INTEGER", false),
+        newRechargeSum("new_recharge_sum", "newRechargeSum", "VARCHAR", false),
+        newRechargeCount("new_recharge_count", "newRechargeCount", "INTEGER", false),
+        insertTime("insert_time", "insertTime", "TIMESTAMP", false);
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private static final String BEGINNING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private static final String ENDING_DELIMITER = "\"";
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private final String column;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private final boolean isColumnNameDelimited;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private final String javaProperty;
+
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private final String jdbcType;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String value() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String getValue() {
+            return this.column;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String getJavaProperty() {
+            return this.javaProperty;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String getJdbcType() {
+            return this.jdbcType;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public String getAliasedEscapedColumnName() {
+            return this.getEscapedColumnName();
+        }
+    }
+}

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

@@ -0,0 +1,164 @@
+package com.book.dao.polardb.mapper;
+
+import com.book.dao.polardb.entity.SunStaticUserDayChannel;
+import com.book.dao.polardb.pojo.example.SunStaticUserDayChannelExample;
+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 SunStaticUserDayChannelMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    long countByExample(SunStaticUserDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int deleteByExample(SunStaticUserDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int insert(SunStaticUserDayChannel record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int insertSelective(@Param("record") SunStaticUserDayChannel record, @Param("selective") SunStaticUserDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    SunStaticUserDayChannel selectOneByExample(SunStaticUserDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    SunStaticUserDayChannel selectOneByExampleSelective(@Param("example") SunStaticUserDayChannelExample example, @Param("selective") SunStaticUserDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    List<SunStaticUserDayChannel> selectByExampleSelective(@Param("example") SunStaticUserDayChannelExample example, @Param("selective") SunStaticUserDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    List<SunStaticUserDayChannel> selectByExample(SunStaticUserDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    SunStaticUserDayChannel selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticUserDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    SunStaticUserDayChannel selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int updateByExampleSelective(@Param("record") SunStaticUserDayChannel record, @Param("example") SunStaticUserDayChannelExample example, @Param("selective") SunStaticUserDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int updateByExample(@Param("record") SunStaticUserDayChannel record, @Param("example") SunStaticUserDayChannelExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int updateByPrimaryKeySelective(@Param("record") SunStaticUserDayChannel record, @Param("selective") SunStaticUserDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int updateByPrimaryKey(SunStaticUserDayChannel record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int batchInsert(@Param("list") List<SunStaticUserDayChannel> list);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int batchInsertSelective(@Param("list") List<SunStaticUserDayChannel> list, @Param("selective") SunStaticUserDayChannel.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int upsert(SunStaticUserDayChannel record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int upsertSelective(@Param("record") SunStaticUserDayChannel record, @Param("selective") SunStaticUserDayChannel.Column ... selective);
+}

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

@@ -0,0 +1,164 @@
+package com.book.dao.polardb.mapper;
+
+import com.book.dao.polardb.entity.SunStaticUserDay;
+import com.book.dao.polardb.pojo.example.SunStaticUserDayExample;
+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 SunStaticUserDayMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    long countByExample(SunStaticUserDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int deleteByExample(SunStaticUserDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int deleteByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int insert(SunStaticUserDay record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int insertSelective(@Param("record") SunStaticUserDay record, @Param("selective") SunStaticUserDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    SunStaticUserDay selectOneByExample(SunStaticUserDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    SunStaticUserDay selectOneByExampleSelective(@Param("example") SunStaticUserDayExample example, @Param("selective") SunStaticUserDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    List<SunStaticUserDay> selectByExampleSelective(@Param("example") SunStaticUserDayExample example, @Param("selective") SunStaticUserDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    List<SunStaticUserDay> selectByExample(SunStaticUserDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    SunStaticUserDay selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticUserDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    SunStaticUserDay selectByPrimaryKey(Integer id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int updateByExampleSelective(@Param("record") SunStaticUserDay record, @Param("example") SunStaticUserDayExample example, @Param("selective") SunStaticUserDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int updateByExample(@Param("record") SunStaticUserDay record, @Param("example") SunStaticUserDayExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int updateByPrimaryKeySelective(@Param("record") SunStaticUserDay record, @Param("selective") SunStaticUserDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int updateByPrimaryKey(SunStaticUserDay record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int batchInsert(@Param("list") List<SunStaticUserDay> list);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int batchInsertSelective(@Param("list") List<SunStaticUserDay> list, @Param("selective") SunStaticUserDay.Column ... selective);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int upsert(SunStaticUserDay record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    int upsertSelective(@Param("record") SunStaticUserDay record, @Param("selective") SunStaticUserDay.Column ... selective);
+}

+ 1412 - 0
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticUserDayChannelExample.java

@@ -0,0 +1,1412 @@
+package com.book.dao.polardb.pojo.example;
+
+import com.book.dao.polardb.entity.SunStaticUserDayChannel;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SunStaticUserDayChannelExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected Integer offset;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected Integer rows;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayChannelExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayChannelExample orderBy(String orderByClause) {
+        this.setOrderByClause(orderByClause);
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayChannelExample 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public Integer getOffset() {
+        return this.offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public Integer getRows() {
+        return this.rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayChannelExample limit(Integer rows) {
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayChannelExample 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayChannelExample 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public static Criteria newAndCreateCriteria() {
+        SunStaticUserDayChannelExample example = new SunStaticUserDayChannelExample();
+        return example.createCriteria();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayChannelExample 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayChannelExample 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_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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 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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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(SunStaticUserDayChannel.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 andNewAllUserIsNull() {
+            addCriterion("new_all_user is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserIsNotNull() {
+            addCriterion("new_all_user is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserEqualTo(Integer value) {
+            addCriterion("new_all_user =", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_all_user = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserNotEqualTo(Integer value) {
+            addCriterion("new_all_user <>", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserNotEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_all_user <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserGreaterThan(Integer value) {
+            addCriterion("new_all_user >", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserGreaterThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_all_user > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserGreaterThanOrEqualTo(Integer value) {
+            addCriterion("new_all_user >=", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserGreaterThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_all_user >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserLessThan(Integer value) {
+            addCriterion("new_all_user <", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserLessThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_all_user < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserLessThanOrEqualTo(Integer value) {
+            addCriterion("new_all_user <=", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserLessThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_all_user <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserIn(List<Integer> values) {
+            addCriterion("new_all_user in", values, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserNotIn(List<Integer> values) {
+            addCriterion("new_all_user not in", values, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserBetween(Integer value1, Integer value2) {
+            addCriterion("new_all_user between", value1, value2, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserNotBetween(Integer value1, Integer value2) {
+            addCriterion("new_all_user not between", value1, value2, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserIsNull() {
+            addCriterion("new_recharge_user is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserIsNotNull() {
+            addCriterion("new_recharge_user is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserEqualTo(Integer value) {
+            addCriterion("new_recharge_user =", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserNotEqualTo(Integer value) {
+            addCriterion("new_recharge_user <>", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserNotEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserGreaterThan(Integer value) {
+            addCriterion("new_recharge_user >", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserGreaterThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserGreaterThanOrEqualTo(Integer value) {
+            addCriterion("new_recharge_user >=", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserGreaterThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserLessThan(Integer value) {
+            addCriterion("new_recharge_user <", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserLessThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserLessThanOrEqualTo(Integer value) {
+            addCriterion("new_recharge_user <=", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserLessThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserIn(List<Integer> values) {
+            addCriterion("new_recharge_user in", values, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserNotIn(List<Integer> values) {
+            addCriterion("new_recharge_user not in", values, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserBetween(Integer value1, Integer value2) {
+            addCriterion("new_recharge_user between", value1, value2, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserNotBetween(Integer value1, Integer value2) {
+            addCriterion("new_recharge_user not between", value1, value2, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumIsNull() {
+            addCriterion("new_recharge_sum is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumIsNotNull() {
+            addCriterion("new_recharge_sum is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumEqualTo(String value) {
+            addCriterion("new_recharge_sum =", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotEqualTo(String value) {
+            addCriterion("new_recharge_sum <>", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumGreaterThan(String value) {
+            addCriterion("new_recharge_sum >", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumGreaterThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumGreaterThanOrEqualTo(String value) {
+            addCriterion("new_recharge_sum >=", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumGreaterThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLessThan(String value) {
+            addCriterion("new_recharge_sum <", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLessThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLessThanOrEqualTo(String value) {
+            addCriterion("new_recharge_sum <=", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLessThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLike(String value) {
+            addCriterion("new_recharge_sum like", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotLike(String value) {
+            addCriterion("new_recharge_sum not like", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumIn(List<String> values) {
+            addCriterion("new_recharge_sum in", values, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotIn(List<String> values) {
+            addCriterion("new_recharge_sum not in", values, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumBetween(String value1, String value2) {
+            addCriterion("new_recharge_sum between", value1, value2, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotBetween(String value1, String value2) {
+            addCriterion("new_recharge_sum not between", value1, value2, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountIsNull() {
+            addCriterion("new_recharge_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountIsNotNull() {
+            addCriterion("new_recharge_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountEqualTo(Integer value) {
+            addCriterion("new_recharge_count =", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountNotEqualTo(Integer value) {
+            addCriterion("new_recharge_count <>", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountNotEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountGreaterThan(Integer value) {
+            addCriterion("new_recharge_count >", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountGreaterThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("new_recharge_count >=", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountGreaterThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountLessThan(Integer value) {
+            addCriterion("new_recharge_count <", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountLessThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountLessThanOrEqualTo(Integer value) {
+            addCriterion("new_recharge_count <=", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountLessThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountIn(List<Integer> values) {
+            addCriterion("new_recharge_count in", values, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountNotIn(List<Integer> values) {
+            addCriterion("new_recharge_count not in", values, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountBetween(Integer value1, Integer value2) {
+            addCriterion("new_recharge_count between", value1, value2, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("new_recharge_count not between", value1, value2, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeIsNull() {
+            addCriterion("insert_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeIsNotNull() {
+            addCriterion("insert_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeEqualTo(Date value) {
+            addCriterion("insert_time =", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("insert_time = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeNotEqualTo(Date value) {
+            addCriterion("insert_time <>", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeNotEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("insert_time <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeGreaterThan(Date value) {
+            addCriterion("insert_time >", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeGreaterThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("insert_time > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("insert_time >=", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeGreaterThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("insert_time >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeLessThan(Date value) {
+            addCriterion("insert_time <", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeLessThanColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("insert_time < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeLessThanOrEqualTo(Date value) {
+            addCriterion("insert_time <=", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeLessThanOrEqualToColumn(SunStaticUserDayChannel.Column column) {
+            addCriterion(new StringBuilder("insert_time <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeIn(List<Date> values) {
+            addCriterion("insert_time in", values, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeNotIn(List<Date> values) {
+            addCriterion("insert_time not in", values, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeBetween(Date value1, Date value2) {
+            addCriterion("insert_time between", value1, value2, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeNotBetween(Date value1, Date value2) {
+            addCriterion("insert_time not between", value1, value2, "insertTime");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated do_not_delete_during_merge Mon Oct 11 21:41:33 CST 2021
+     */
+    public static class Criteria extends GeneratedCriteria {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private SunStaticUserDayChannelExample example;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        protected Criteria(SunStaticUserDayChannelExample example) {
+            super();
+            this.example = example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public SunStaticUserDayChannelExample example() {
+            return this.example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+             *
+             * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+             */
+            Criteria add(Criteria add);
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_user_day_channel
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day_channel
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        void example(com.book.dao.polardb.pojo.example.SunStaticUserDayChannelExample example);
+    }
+}

+ 1212 - 0
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticUserDayExample.java

@@ -0,0 +1,1212 @@
+package com.book.dao.polardb.pojo.example;
+
+import com.book.dao.polardb.entity.SunStaticUserDay;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SunStaticUserDayExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected Integer offset;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    protected Integer rows;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayExample orderBy(String orderByClause) {
+        this.setOrderByClause(orderByClause);
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayExample 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public Integer getOffset() {
+        return this.offset;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public Integer getRows() {
+        return this.rows;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayExample limit(Integer rows) {
+        this.rows = rows;
+        return this;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayExample 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayExample 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public static Criteria newAndCreateCriteria() {
+        SunStaticUserDayExample example = new SunStaticUserDayExample();
+        return example.createCriteria();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayExample 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+     */
+    public SunStaticUserDayExample 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_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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(SunStaticUserDay.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 andNewAllUserIsNull() {
+            addCriterion("new_all_user is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserIsNotNull() {
+            addCriterion("new_all_user is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserEqualTo(Integer value) {
+            addCriterion("new_all_user =", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_all_user = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserNotEqualTo(Integer value) {
+            addCriterion("new_all_user <>", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserNotEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_all_user <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserGreaterThan(Integer value) {
+            addCriterion("new_all_user >", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserGreaterThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_all_user > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserGreaterThanOrEqualTo(Integer value) {
+            addCriterion("new_all_user >=", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserGreaterThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_all_user >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserLessThan(Integer value) {
+            addCriterion("new_all_user <", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserLessThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_all_user < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserLessThanOrEqualTo(Integer value) {
+            addCriterion("new_all_user <=", value, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserLessThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_all_user <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserIn(List<Integer> values) {
+            addCriterion("new_all_user in", values, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserNotIn(List<Integer> values) {
+            addCriterion("new_all_user not in", values, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserBetween(Integer value1, Integer value2) {
+            addCriterion("new_all_user between", value1, value2, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewAllUserNotBetween(Integer value1, Integer value2) {
+            addCriterion("new_all_user not between", value1, value2, "newAllUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserIsNull() {
+            addCriterion("new_recharge_user is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserIsNotNull() {
+            addCriterion("new_recharge_user is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserEqualTo(Integer value) {
+            addCriterion("new_recharge_user =", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserNotEqualTo(Integer value) {
+            addCriterion("new_recharge_user <>", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserNotEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserGreaterThan(Integer value) {
+            addCriterion("new_recharge_user >", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserGreaterThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserGreaterThanOrEqualTo(Integer value) {
+            addCriterion("new_recharge_user >=", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserGreaterThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserLessThan(Integer value) {
+            addCriterion("new_recharge_user <", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserLessThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserLessThanOrEqualTo(Integer value) {
+            addCriterion("new_recharge_user <=", value, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserLessThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_user <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserIn(List<Integer> values) {
+            addCriterion("new_recharge_user in", values, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserNotIn(List<Integer> values) {
+            addCriterion("new_recharge_user not in", values, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserBetween(Integer value1, Integer value2) {
+            addCriterion("new_recharge_user between", value1, value2, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeUserNotBetween(Integer value1, Integer value2) {
+            addCriterion("new_recharge_user not between", value1, value2, "newRechargeUser");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumIsNull() {
+            addCriterion("new_recharge_sum is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumIsNotNull() {
+            addCriterion("new_recharge_sum is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumEqualTo(String value) {
+            addCriterion("new_recharge_sum =", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotEqualTo(String value) {
+            addCriterion("new_recharge_sum <>", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumGreaterThan(String value) {
+            addCriterion("new_recharge_sum >", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumGreaterThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumGreaterThanOrEqualTo(String value) {
+            addCriterion("new_recharge_sum >=", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumGreaterThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLessThan(String value) {
+            addCriterion("new_recharge_sum <", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLessThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLessThanOrEqualTo(String value) {
+            addCriterion("new_recharge_sum <=", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLessThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumLike(String value) {
+            addCriterion("new_recharge_sum like", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotLike(String value) {
+            addCriterion("new_recharge_sum not like", value, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumIn(List<String> values) {
+            addCriterion("new_recharge_sum in", values, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotIn(List<String> values) {
+            addCriterion("new_recharge_sum not in", values, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumBetween(String value1, String value2) {
+            addCriterion("new_recharge_sum between", value1, value2, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeSumNotBetween(String value1, String value2) {
+            addCriterion("new_recharge_sum not between", value1, value2, "newRechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountIsNull() {
+            addCriterion("new_recharge_count is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountIsNotNull() {
+            addCriterion("new_recharge_count is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountEqualTo(Integer value) {
+            addCriterion("new_recharge_count =", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountNotEqualTo(Integer value) {
+            addCriterion("new_recharge_count <>", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountNotEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountGreaterThan(Integer value) {
+            addCriterion("new_recharge_count >", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountGreaterThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountGreaterThanOrEqualTo(Integer value) {
+            addCriterion("new_recharge_count >=", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountGreaterThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountLessThan(Integer value) {
+            addCriterion("new_recharge_count <", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountLessThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountLessThanOrEqualTo(Integer value) {
+            addCriterion("new_recharge_count <=", value, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountLessThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("new_recharge_count <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountIn(List<Integer> values) {
+            addCriterion("new_recharge_count in", values, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountNotIn(List<Integer> values) {
+            addCriterion("new_recharge_count not in", values, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountBetween(Integer value1, Integer value2) {
+            addCriterion("new_recharge_count between", value1, value2, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andNewRechargeCountNotBetween(Integer value1, Integer value2) {
+            addCriterion("new_recharge_count not between", value1, value2, "newRechargeCount");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeIsNull() {
+            addCriterion("insert_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeIsNotNull() {
+            addCriterion("insert_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeEqualTo(Date value) {
+            addCriterion("insert_time =", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("insert_time = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeNotEqualTo(Date value) {
+            addCriterion("insert_time <>", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeNotEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("insert_time <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeGreaterThan(Date value) {
+            addCriterion("insert_time >", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeGreaterThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("insert_time > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("insert_time >=", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeGreaterThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("insert_time >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeLessThan(Date value) {
+            addCriterion("insert_time <", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeLessThanColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("insert_time < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeLessThanOrEqualTo(Date value) {
+            addCriterion("insert_time <=", value, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeLessThanOrEqualToColumn(SunStaticUserDay.Column column) {
+            addCriterion(new StringBuilder("insert_time <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeIn(List<Date> values) {
+            addCriterion("insert_time in", values, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeNotIn(List<Date> values) {
+            addCriterion("insert_time not in", values, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeBetween(Date value1, Date value2) {
+            addCriterion("insert_time between", value1, value2, "insertTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertTimeNotBetween(Date value1, Date value2) {
+            addCriterion("insert_time not between", value1, value2, "insertTime");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated do_not_delete_during_merge Mon Oct 11 21:41:33 CST 2021
+     */
+    public static class Criteria extends GeneratedCriteria {
+        /**
+         * This field was generated by MyBatis Generator.
+         * This field corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        private SunStaticUserDayExample example;
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        protected Criteria(SunStaticUserDayExample example) {
+            super();
+            this.example = example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        public SunStaticUserDayExample example() {
+            return this.example;
+        }
+
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method corresponds to the database table sun_static_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+             *
+             * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+             */
+            Criteria add(Criteria add);
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table sun_static_user_day
+     *
+     * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 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_user_day
+         *
+         * @mbg.generated Mon Oct 11 21:41:33 CST 2021
+         */
+        void example(com.book.dao.polardb.pojo.example.SunStaticUserDayExample example);
+    }
+}

+ 711 - 0
book-dao/src/main/resources/mapper/polar/SunStaticUserDayChannelMapper.xml

@@ -0,0 +1,711 @@
+<?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.SunStaticUserDayChannelMapper">
+  <resultMap id="BaseResultMap" type="com.book.dao.polardb.entity.SunStaticUserDayChannel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
+    <result column="channel_id" jdbcType="VARCHAR" property="channelId" />
+    <result column="channel_name" jdbcType="VARCHAR" property="channelName" />
+    <result column="new_all_user" jdbcType="INTEGER" property="newAllUser" />
+    <result column="new_recharge_user" jdbcType="INTEGER" property="newRechargeUser" />
+    <result column="new_recharge_sum" jdbcType="VARCHAR" property="newRechargeSum" />
+    <result column="new_recharge_count" jdbcType="INTEGER" property="newRechargeCount" />
+    <result column="insert_time" jdbcType="TIMESTAMP" property="insertTime" />
+  </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 Mon Oct 11 21:41:33 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 Mon Oct 11 21:41:33 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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    id, static_date, channel_id, channel_name, new_all_user, new_recharge_user, new_recharge_sum, 
+    new_recharge_count, insert_time
+  </sql>
+  <select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticUserDayChannelExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from sun_static_user_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 Mon Oct 11 21:41:33 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_user_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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from sun_static_user_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 Mon Oct 11 21:41:33 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_user_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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    delete from sun_static_user_day_channel
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticUserDayChannelExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    delete from sun_static_user_day_channel
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.book.dao.polardb.entity.SunStaticUserDayChannel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_day_channel (id, static_date, channel_id, 
+      channel_name, new_all_user, new_recharge_user, 
+      new_recharge_sum, new_recharge_count, insert_time
+      )
+    values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR}, 
+      #{channelName,jdbcType=VARCHAR}, #{newAllUser,jdbcType=INTEGER}, #{newRechargeUser,jdbcType=INTEGER}, 
+      #{newRechargeSum,jdbcType=VARCHAR}, #{newRechargeCount,jdbcType=INTEGER}, #{insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_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.staticDate != null">
+            static_date,
+          </if>
+          <if test="record.channelId != null">
+            channel_id,
+          </if>
+          <if test="record.channelName != null">
+            channel_name,
+          </if>
+          <if test="record.newAllUser != null">
+            new_all_user,
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user,
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum,
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count,
+          </if>
+          <if test="record.insertTime != null">
+            insert_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.channelId != null">
+            #{record.channelId,jdbcType=VARCHAR},
+          </if>
+          <if test="record.channelName != null">
+            #{record.channelName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newAllUser != null">
+            #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            #{record.insertTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <select id="countByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticUserDayChannelExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    select count(*) from sun_static_user_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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    update sun_static_user_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.staticDate != null">
+            static_date = #{record.staticDate,jdbcType=VARCHAR},
+          </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.newAllUser != null">
+            new_all_user = #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            insert_time = #{record.insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    update sun_static_user_day_channel
+    set id = #{record.id,jdbcType=INTEGER},
+      static_date = #{record.staticDate,jdbcType=VARCHAR},
+      channel_id = #{record.channelId,jdbcType=VARCHAR},
+      channel_name = #{record.channelName,jdbcType=VARCHAR},
+      new_all_user = #{record.newAllUser,jdbcType=INTEGER},
+      new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
+      new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
+      new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
+      insert_time = #{record.insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    update sun_static_user_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.staticDate != null">
+            static_date = #{record.staticDate,jdbcType=VARCHAR},
+          </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.newAllUser != null">
+            new_all_user = #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    where id = #{record.id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.book.dao.polardb.entity.SunStaticUserDayChannel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    update sun_static_user_day_channel
+    set static_date = #{staticDate,jdbcType=VARCHAR},
+      channel_id = #{channelId,jdbcType=VARCHAR},
+      channel_name = #{channelName,jdbcType=VARCHAR},
+      new_all_user = #{newAllUser,jdbcType=INTEGER},
+      new_recharge_user = #{newRechargeUser,jdbcType=INTEGER},
+      new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR},
+      new_recharge_count = #{newRechargeCount,jdbcType=INTEGER},
+      insert_time = #{insertTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <select id="selectOneByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticUserDayChannelExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    select
+    <include refid="Base_Column_List" />
+    from sun_static_user_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 Mon Oct 11 21:41:33 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_user_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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_day_channel
+    (id, static_date, channel_id, channel_name, new_all_user, new_recharge_user, new_recharge_sum, 
+      new_recharge_count, insert_time)
+    values
+    <foreach collection="list" item="item" separator=",">
+      (#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.channelId,jdbcType=VARCHAR}, 
+        #{item.channelName,jdbcType=VARCHAR}, #{item.newAllUser,jdbcType=INTEGER}, #{item.newRechargeUser,jdbcType=INTEGER}, 
+        #{item.newRechargeSum,jdbcType=VARCHAR}, #{item.newRechargeCount,jdbcType=INTEGER}, 
+        #{item.insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_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="'static_date'.toString() == column.value">
+          #{item.staticDate,jdbcType=VARCHAR}
+        </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="'new_all_user'.toString() == column.value">
+          #{item.newAllUser,jdbcType=INTEGER}
+        </if>
+        <if test="'new_recharge_user'.toString() == column.value">
+          #{item.newRechargeUser,jdbcType=INTEGER}
+        </if>
+        <if test="'new_recharge_sum'.toString() == column.value">
+          #{item.newRechargeSum,jdbcType=VARCHAR}
+        </if>
+        <if test="'new_recharge_count'.toString() == column.value">
+          #{item.newRechargeCount,jdbcType=INTEGER}
+        </if>
+        <if test="'insert_time'.toString() == column.value">
+          #{item.insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_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.staticDate != null">
+            static_date,
+          </if>
+          <if test="record.channelId != null">
+            channel_id,
+          </if>
+          <if test="record.channelName != null">
+            channel_name,
+          </if>
+          <if test="record.newAllUser != null">
+            new_all_user,
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user,
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum,
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count,
+          </if>
+          <if test="record.insertTime != null">
+            insert_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.channelId != null">
+            #{record.channelId,jdbcType=VARCHAR},
+          </if>
+          <if test="record.channelName != null">
+            #{record.channelName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newAllUser != null">
+            #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            #{record.insertTime,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.channelId != null">
+            channel_id = #{record.channelId,jdbcType=VARCHAR},
+          </if>
+          <if test="record.channelName != null">
+            channel_name = #{record.channelName,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newAllUser != null">
+            new_all_user = #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <insert id="upsert" parameterType="com.book.dao.polardb.entity.SunStaticUserDayChannel">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_day_channel
+    (id, static_date, channel_id, channel_name, new_all_user, new_recharge_user, new_recharge_sum, 
+      new_recharge_count, insert_time)
+    values
+    (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR}, 
+      #{channelName,jdbcType=VARCHAR}, #{newAllUser,jdbcType=INTEGER}, #{newRechargeUser,jdbcType=INTEGER}, 
+      #{newRechargeSum,jdbcType=VARCHAR}, #{newRechargeCount,jdbcType=INTEGER}, #{insertTime,jdbcType=TIMESTAMP}
+      )
+    on duplicate key update 
+    id = #{id,jdbcType=INTEGER}, 
+    static_date = #{staticDate,jdbcType=VARCHAR}, 
+    channel_id = #{channelId,jdbcType=VARCHAR}, 
+    channel_name = #{channelName,jdbcType=VARCHAR}, 
+    new_all_user = #{newAllUser,jdbcType=INTEGER}, 
+    new_recharge_user = #{newRechargeUser,jdbcType=INTEGER}, 
+    new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR}, 
+    new_recharge_count = #{newRechargeCount,jdbcType=INTEGER}, 
+    insert_time = #{insertTime,jdbcType=TIMESTAMP}
+  </insert>
+</mapper>

+ 652 - 0
book-dao/src/main/resources/mapper/polar/SunStaticUserDayMapper.xml

@@ -0,0 +1,652 @@
+<?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.SunStaticUserDayMapper">
+  <resultMap id="BaseResultMap" type="com.book.dao.polardb.entity.SunStaticUserDay">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
+    <result column="new_all_user" jdbcType="INTEGER" property="newAllUser" />
+    <result column="new_recharge_user" jdbcType="INTEGER" property="newRechargeUser" />
+    <result column="new_recharge_sum" jdbcType="VARCHAR" property="newRechargeSum" />
+    <result column="new_recharge_count" jdbcType="INTEGER" property="newRechargeCount" />
+    <result column="insert_time" jdbcType="TIMESTAMP" property="insertTime" />
+  </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 Mon Oct 11 21:41:33 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 Mon Oct 11 21:41:33 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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    id, static_date, new_all_user, new_recharge_user, new_recharge_sum, new_recharge_count, 
+    insert_time
+  </sql>
+  <select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticUserDayExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from sun_static_user_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 Mon Oct 11 21:41:33 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_user_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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from sun_static_user_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 Mon Oct 11 21:41:33 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_user_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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    delete from sun_static_user_day
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticUserDayExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    delete from sun_static_user_day
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.book.dao.polardb.entity.SunStaticUserDay">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_day (id, static_date, new_all_user, 
+      new_recharge_user, new_recharge_sum, new_recharge_count, 
+      insert_time)
+    values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{newAllUser,jdbcType=INTEGER}, 
+      #{newRechargeUser,jdbcType=INTEGER}, #{newRechargeSum,jdbcType=VARCHAR}, #{newRechargeCount,jdbcType=INTEGER}, 
+      #{insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_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.newAllUser != null">
+            new_all_user,
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user,
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum,
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count,
+          </if>
+          <if test="record.insertTime != null">
+            insert_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.newAllUser != null">
+            #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            #{record.insertTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <select id="countByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticUserDayExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    select count(*) from sun_static_user_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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    update sun_static_user_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.newAllUser != null">
+            new_all_user = #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            insert_time = #{record.insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    update sun_static_user_day
+    set id = #{record.id,jdbcType=INTEGER},
+      static_date = #{record.staticDate,jdbcType=VARCHAR},
+      new_all_user = #{record.newAllUser,jdbcType=INTEGER},
+      new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
+      new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
+      new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
+      insert_time = #{record.insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    update sun_static_user_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.newAllUser != null">
+            new_all_user = #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+    where id = #{record.id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.book.dao.polardb.entity.SunStaticUserDay">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    update sun_static_user_day
+    set static_date = #{staticDate,jdbcType=VARCHAR},
+      new_all_user = #{newAllUser,jdbcType=INTEGER},
+      new_recharge_user = #{newRechargeUser,jdbcType=INTEGER},
+      new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR},
+      new_recharge_count = #{newRechargeCount,jdbcType=INTEGER},
+      insert_time = #{insertTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <select id="selectOneByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticUserDayExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    select
+    <include refid="Base_Column_List" />
+    from sun_static_user_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 Mon Oct 11 21:41:33 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_user_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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_day
+    (id, static_date, new_all_user, new_recharge_user, new_recharge_sum, new_recharge_count, 
+      insert_time)
+    values
+    <foreach collection="list" item="item" separator=",">
+      (#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.newAllUser,jdbcType=INTEGER}, 
+        #{item.newRechargeUser,jdbcType=INTEGER}, #{item.newRechargeSum,jdbcType=VARCHAR}, 
+        #{item.newRechargeCount,jdbcType=INTEGER}, #{item.insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_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="'new_all_user'.toString() == column.value">
+          #{item.newAllUser,jdbcType=INTEGER}
+        </if>
+        <if test="'new_recharge_user'.toString() == column.value">
+          #{item.newRechargeUser,jdbcType=INTEGER}
+        </if>
+        <if test="'new_recharge_sum'.toString() == column.value">
+          #{item.newRechargeSum,jdbcType=VARCHAR}
+        </if>
+        <if test="'new_recharge_count'.toString() == column.value">
+          #{item.newRechargeCount,jdbcType=INTEGER}
+        </if>
+        <if test="'insert_time'.toString() == column.value">
+          #{item.insertTime,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 Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_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.newAllUser != null">
+            new_all_user,
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user,
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum,
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count,
+          </if>
+          <if test="record.insertTime != null">
+            insert_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.newAllUser != null">
+            #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            #{record.insertTime,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.newAllUser != null">
+            new_all_user = #{record.newAllUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeUser != null">
+            new_recharge_user = #{record.newRechargeUser,jdbcType=INTEGER},
+          </if>
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
+          </if>
+          <if test="record.newRechargeCount != null">
+            new_recharge_count = #{record.newRechargeCount,jdbcType=INTEGER},
+          </if>
+          <if test="record.insertTime != null">
+            insert_time = #{record.insertTime,jdbcType=TIMESTAMP},
+          </if>
+        </trim>
+      </otherwise>
+    </choose>
+  </insert>
+  <insert id="upsert" parameterType="com.book.dao.polardb.entity.SunStaticUserDay">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Mon Oct 11 21:41:33 CST 2021.
+    -->
+    insert into sun_static_user_day
+    (id, static_date, new_all_user, new_recharge_user, new_recharge_sum, new_recharge_count, 
+      insert_time)
+    values
+    (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{newAllUser,jdbcType=INTEGER}, 
+      #{newRechargeUser,jdbcType=INTEGER}, #{newRechargeSum,jdbcType=VARCHAR}, #{newRechargeCount,jdbcType=INTEGER}, 
+      #{insertTime,jdbcType=TIMESTAMP})
+    on duplicate key update 
+    id = #{id,jdbcType=INTEGER}, 
+    static_date = #{staticDate,jdbcType=VARCHAR}, 
+    new_all_user = #{newAllUser,jdbcType=INTEGER}, 
+    new_recharge_user = #{newRechargeUser,jdbcType=INTEGER}, 
+    new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR}, 
+    new_recharge_count = #{newRechargeCount,jdbcType=INTEGER}, 
+    insert_time = #{insertTime,jdbcType=TIMESTAMP}
+  </insert>
+</mapper>

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

@@ -119,25 +119,27 @@
                              targetProject="src/main/java" type="XMLMAPPER"/>
 
         <!--指定数据表名,可以使用_和%通配符,可以配置generatedKey,会返回insert之后的id-->
-        <!--        <table tableName="book"></table>-->
-        <!--        <table tableName="manage_block"></table>-->
-        <!--        <table tableName="manage_block_resource"></table>-->
-        <!--        <table tableName="book_category"></table>-->
-        <!--        <table tableName="user"></table>-->
-        <!--        <table tableName="search_keyword"></table>-->
-        <!--        <table tableName="return_recommand"></table>-->
-        <!--        <table tableName="bookshelf_recommand"></table>-->
-        <!--        <table tableName="smart_recommand"></table>-->
-        <!--        <table tableName="ad_user_group_extend"></table>-->
-        <!--        <table tableName="ad_user_group_extend"/>-->
-        <!--        <table tableName="sun_user_collect"/>-->
-        <!--        <table tableName="sun_order"/>-->
-        <!--        <table tableName="sun_order_collect"/>-->
+        <!--<table tableName="book"></table>-->
+        <!--<table tableName="manage_block"></table>-->
+        <!--<table tableName="manage_block_resource"></table>-->
+        <!--<table tableName="book_category"></table>-->
+        <!--<table tableName="user"></table>-->
+        <!--<table tableName="search_keyword"></table>-->
+        <!--<table tableName="return_recommand"></table>-->
+        <!--<table tableName="bookshelf_recommand"></table>-->
+        <!--<table tableName="smart_recommand"></table>-->
+        <!--<table tableName="ad_user_group_extend"></table>-->
+        <!--<table tableName="ad_user_group_extend"/>-->
+        <!--<table tableName="sun_user_collect"/>-->
+        <!--<table tableName="sun_order"/>-->
+        <!--<table tableName="sun_order_collect"/>-->
         <!--<table tableName="sun_user"></table>-->
         <!--<table tableName="sun_user_active"></table>-->
-        <table tableName="sun_static_order"></table>
-        <table tableName="sun_static_order_day"></table>
-        <table tableName="sun_static_order_day_channel"></table>
+        <!--<table tableName="sun_static_order"></table>-->
+        <!--<table tableName="sun_static_order_day"></table>-->
+        <!--<table tableName="sun_static_order_day_channel"></table>-->
+        <table tableName="sun_static_user_day_channel"></table>
+        <table tableName="sun_static_user_day"></table>
     </context>
 
 </generatorConfiguration>

+ 8 - 8
book-server/src/main/java/com/book/server/controller/SunDataController.java

@@ -111,7 +111,7 @@ public class SunDataController extends BaseController {
     }
 
     /**
-     * 统计某天的订单
+     * 订单统计-重置某天
      *
      * @param date
      * @return
@@ -123,7 +123,7 @@ public class SunDataController extends BaseController {
     }
 
     /**
-     * 获取今天订单统计
+     * 订单统计-获取今天
      *
      * @return
      */
@@ -133,7 +133,7 @@ public class SunDataController extends BaseController {
     }
 
     /**
-     * 获取今天订单统计按渠道
+     * 订单统计-今天按渠道
      *
      * @return
      */
@@ -143,7 +143,7 @@ public class SunDataController extends BaseController {
     }
 
     /**
-     * 导出当天订单统计
+     * 订单统计-导出当天
      * @param response
      * @throws UnsupportedEncodingException
      */
@@ -193,7 +193,7 @@ public class SunDataController extends BaseController {
     }
 
     /**
-     * 导出历史订单统计
+     * 订单统计-导出历史
      * @param response
      * @throws UnsupportedEncodingException
      */
@@ -242,7 +242,7 @@ public class SunDataController extends BaseController {
     }
 
     /**
-     * 获取昨天订单统计
+     * 订单统计-昨天
      *
      * @return
      */
@@ -252,7 +252,7 @@ public class SunDataController extends BaseController {
     }
 
     /**
-     * 获取历史订单统计
+     * 订单统计-历史
      *
      * @return
      */
@@ -272,7 +272,7 @@ public class SunDataController extends BaseController {
     }
 
     /**
-     * 订单统计-按天查询
+     * 订单统计-按天查询不同渠道
      *
      * @return
      */