Explorar o código

订单统计定时任务

tianyunperfect %!s(int64=3) %!d(string=hai) anos
pai
achega
7559f0cf2b
Modificáronse 19 ficheiros con 998 adicións e 3056 borrados
  1. 0 380
      book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticOrder.java
  2. 43 43
      book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticOrderDay.java
  3. 47 47
      book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticOrderDayChannel.java
  4. 19 19
      book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticOrderDayChannelMapper.java
  5. 19 19
      book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticOrderDayMapper.java
  6. 0 164
      book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticOrderMapper.java
  7. 32 0
      book-dao/src/main/java/com/book/dao/polardb/mapper/SunUserActive2Mapper.java
  8. 60 50
      book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticOrderDayChannelExample.java
  9. 60 50
      book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticOrderDayExample.java
  10. 0 1122
      book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticOrderExample.java
  11. 365 341
      book-dao/src/main/java/com/book/dao/utils/TimeUtil.java
  12. 46 46
      book-dao/src/main/resources/mapper/polar/SunStaticOrderDayChannelMapper.xml
  13. 46 46
      book-dao/src/main/resources/mapper/polar/SunStaticOrderDayMapper.xml
  14. 0 620
      book-dao/src/main/resources/mapper/polar/SunStaticOrderMapper.xml
  15. 39 0
      book-dao/src/main/resources/mapper/polar/SunUserActive2Mapper.xml
  16. 11 0
      book-server/src/main/java/com/book/server/controller/SunDataController.java
  17. 6 0
      book-server/src/main/java/com/book/server/service/SunDataService.java
  18. 84 3
      book-server/src/main/java/com/book/server/service/impl/SunDataServiceImpl.java
  19. 121 106
      book-server/src/main/java/com/book/server/task/SunDataTask.java

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

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

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

@@ -13,7 +13,7 @@ public class SunStaticOrderDay implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day.id
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Integer id;
 
@@ -22,7 +22,7 @@ public class SunStaticOrderDay implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day.static_date
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private String staticDate;
 
@@ -31,7 +31,7 @@ public class SunStaticOrderDay implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day.active_count
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Integer activeCount;
 
@@ -40,7 +40,7 @@ public class SunStaticOrderDay implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day.recharge_user_count
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Integer rechargeUserCount;
 
@@ -49,16 +49,16 @@ public class SunStaticOrderDay implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day.recharge_sum
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
-    private Integer rechargeSum;
+    private String rechargeSum;
 
     /**
      *
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day.recharge_count
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Integer rechargeCount;
 
@@ -67,7 +67,7 @@ public class SunStaticOrderDay implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day.recharge_avg
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private String rechargeAvg;
 
@@ -76,7 +76,7 @@ public class SunStaticOrderDay implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day.create_time
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Date createTime;
 
@@ -84,7 +84,7 @@ public class SunStaticOrderDay implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private static final long serialVersionUID = 1L;
 
@@ -92,7 +92,7 @@ public class SunStaticOrderDay implements Serializable {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public static SunStaticOrderDay.Builder builder() {
         return new SunStaticOrderDay.Builder();
@@ -102,14 +102,14 @@ public class SunStaticOrderDay implements Serializable {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public static class Builder {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private SunStaticOrderDay obj;
 
@@ -117,7 +117,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder() {
             this.obj = new SunStaticOrderDay();
@@ -129,7 +129,7 @@ public class SunStaticOrderDay implements Serializable {
          *
          * @param id the value for sun_static_order_day.id
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder id(Integer id) {
             obj.setId(id);
@@ -142,7 +142,7 @@ public class SunStaticOrderDay implements Serializable {
          *
          * @param staticDate the value for sun_static_order_day.static_date
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder staticDate(String staticDate) {
             obj.setStaticDate(staticDate);
@@ -155,7 +155,7 @@ public class SunStaticOrderDay implements Serializable {
          *
          * @param activeCount the value for sun_static_order_day.active_count
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder activeCount(Integer activeCount) {
             obj.setActiveCount(activeCount);
@@ -168,7 +168,7 @@ public class SunStaticOrderDay implements Serializable {
          *
          * @param rechargeUserCount the value for sun_static_order_day.recharge_user_count
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder rechargeUserCount(Integer rechargeUserCount) {
             obj.setRechargeUserCount(rechargeUserCount);
@@ -181,9 +181,9 @@ public class SunStaticOrderDay implements Serializable {
          *
          * @param rechargeSum the value for sun_static_order_day.recharge_sum
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
-        public Builder rechargeSum(Integer rechargeSum) {
+        public Builder rechargeSum(String rechargeSum) {
             obj.setRechargeSum(rechargeSum);
             return this;
         }
@@ -194,7 +194,7 @@ public class SunStaticOrderDay implements Serializable {
          *
          * @param rechargeCount the value for sun_static_order_day.recharge_count
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder rechargeCount(Integer rechargeCount) {
             obj.setRechargeCount(rechargeCount);
@@ -207,7 +207,7 @@ public class SunStaticOrderDay implements Serializable {
          *
          * @param rechargeAvg the value for sun_static_order_day.recharge_avg
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder rechargeAvg(String rechargeAvg) {
             obj.setRechargeAvg(rechargeAvg);
@@ -220,7 +220,7 @@ public class SunStaticOrderDay implements Serializable {
          *
          * @param createTime the value for sun_static_order_day.create_time
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder createTime(Date createTime) {
             obj.setCreateTime(createTime);
@@ -231,7 +231,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public SunStaticOrderDay build() {
             return this.obj;
@@ -242,14 +242,14 @@ public class SunStaticOrderDay implements Serializable {
      * This enum was generated by MyBatis Generator.
      * This enum corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public enum Column {
         id("id", "id", "INTEGER", false),
         staticDate("static_date", "staticDate", "VARCHAR", false),
         activeCount("active_count", "activeCount", "INTEGER", false),
         rechargeUserCount("recharge_user_count", "rechargeUserCount", "INTEGER", false),
-        rechargeSum("recharge_sum", "rechargeSum", "INTEGER", false),
+        rechargeSum("recharge_sum", "rechargeSum", "VARCHAR", false),
         rechargeCount("recharge_count", "rechargeCount", "INTEGER", false),
         rechargeAvg("recharge_avg", "rechargeAvg", "VARCHAR", false),
         createTime("create_time", "createTime", "TIMESTAMP", false);
@@ -258,7 +258,7 @@ public class SunStaticOrderDay implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private static final String BEGINNING_DELIMITER = "\"";
 
@@ -266,7 +266,7 @@ public class SunStaticOrderDay implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private static final String ENDING_DELIMITER = "\"";
 
@@ -274,7 +274,7 @@ public class SunStaticOrderDay implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private final String column;
 
@@ -282,7 +282,7 @@ public class SunStaticOrderDay implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private final boolean isColumnNameDelimited;
 
@@ -290,7 +290,7 @@ public class SunStaticOrderDay implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private final String javaProperty;
 
@@ -298,7 +298,7 @@ public class SunStaticOrderDay implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private final String jdbcType;
 
@@ -306,7 +306,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String value() {
             return this.column;
@@ -316,7 +316,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getValue() {
             return this.column;
@@ -326,7 +326,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getJavaProperty() {
             return this.javaProperty;
@@ -336,7 +336,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getJdbcType() {
             return this.jdbcType;
@@ -346,7 +346,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
             this.column = column;
@@ -359,7 +359,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String desc() {
             return this.getEscapedColumnName() + " DESC";
@@ -369,7 +369,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String asc() {
             return this.getEscapedColumnName() + " ASC";
@@ -379,7 +379,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public static Column[] excludes(Column ... excludes) {
             ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
@@ -393,7 +393,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public static Column[] all() {
             return Column.values();
@@ -403,7 +403,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getEscapedColumnName() {
             if (this.isColumnNameDelimited) {
@@ -417,7 +417,7 @@ public class SunStaticOrderDay implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getAliasedEscapedColumnName() {
             return this.getEscapedColumnName();

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

@@ -13,7 +13,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.id
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Integer id;
 
@@ -22,7 +22,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.channel_id
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private String channelId;
 
@@ -31,7 +31,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.channel_name
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private String channelName;
 
@@ -40,7 +40,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.static_date
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private String staticDate;
 
@@ -49,7 +49,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.active_count
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Integer activeCount;
 
@@ -58,7 +58,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.recharge_user_count
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Integer rechargeUserCount;
 
@@ -67,16 +67,16 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.recharge_sum
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
-    private Integer rechargeSum;
+    private String rechargeSum;
 
     /**
      *
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.recharge_count
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Integer rechargeCount;
 
@@ -85,7 +85,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.recharge_avg
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private String rechargeAvg;
 
@@ -94,7 +94,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_order_day_channel.create_time
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private Date createTime;
 
@@ -102,7 +102,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     private static final long serialVersionUID = 1L;
 
@@ -110,7 +110,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public static SunStaticOrderDayChannel.Builder builder() {
         return new SunStaticOrderDayChannel.Builder();
@@ -120,14 +120,14 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public static class Builder {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private SunStaticOrderDayChannel obj;
 
@@ -135,7 +135,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder() {
             this.obj = new SunStaticOrderDayChannel();
@@ -147,7 +147,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param id the value for sun_static_order_day_channel.id
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder id(Integer id) {
             obj.setId(id);
@@ -160,7 +160,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param channelId the value for sun_static_order_day_channel.channel_id
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder channelId(String channelId) {
             obj.setChannelId(channelId);
@@ -173,7 +173,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param channelName the value for sun_static_order_day_channel.channel_name
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder channelName(String channelName) {
             obj.setChannelName(channelName);
@@ -186,7 +186,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param staticDate the value for sun_static_order_day_channel.static_date
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder staticDate(String staticDate) {
             obj.setStaticDate(staticDate);
@@ -199,7 +199,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param activeCount the value for sun_static_order_day_channel.active_count
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder activeCount(Integer activeCount) {
             obj.setActiveCount(activeCount);
@@ -212,7 +212,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param rechargeUserCount the value for sun_static_order_day_channel.recharge_user_count
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder rechargeUserCount(Integer rechargeUserCount) {
             obj.setRechargeUserCount(rechargeUserCount);
@@ -225,9 +225,9 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param rechargeSum the value for sun_static_order_day_channel.recharge_sum
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
-        public Builder rechargeSum(Integer rechargeSum) {
+        public Builder rechargeSum(String rechargeSum) {
             obj.setRechargeSum(rechargeSum);
             return this;
         }
@@ -238,7 +238,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param rechargeCount the value for sun_static_order_day_channel.recharge_count
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder rechargeCount(Integer rechargeCount) {
             obj.setRechargeCount(rechargeCount);
@@ -251,7 +251,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param rechargeAvg the value for sun_static_order_day_channel.recharge_avg
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder rechargeAvg(String rechargeAvg) {
             obj.setRechargeAvg(rechargeAvg);
@@ -264,7 +264,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          *
          * @param createTime the value for sun_static_order_day_channel.create_time
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Builder createTime(Date createTime) {
             obj.setCreateTime(createTime);
@@ -275,7 +275,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public SunStaticOrderDayChannel build() {
             return this.obj;
@@ -286,7 +286,7 @@ public class SunStaticOrderDayChannel implements Serializable {
      * This enum was generated by MyBatis Generator.
      * This enum corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public enum Column {
         id("id", "id", "INTEGER", false),
@@ -295,7 +295,7 @@ public class SunStaticOrderDayChannel implements Serializable {
         staticDate("static_date", "staticDate", "VARCHAR", false),
         activeCount("active_count", "activeCount", "INTEGER", false),
         rechargeUserCount("recharge_user_count", "rechargeUserCount", "INTEGER", false),
-        rechargeSum("recharge_sum", "rechargeSum", "INTEGER", false),
+        rechargeSum("recharge_sum", "rechargeSum", "VARCHAR", false),
         rechargeCount("recharge_count", "rechargeCount", "INTEGER", false),
         rechargeAvg("recharge_avg", "rechargeAvg", "VARCHAR", false),
         createTime("create_time", "createTime", "TIMESTAMP", false);
@@ -304,7 +304,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private static final String BEGINNING_DELIMITER = "\"";
 
@@ -312,7 +312,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private static final String ENDING_DELIMITER = "\"";
 
@@ -320,7 +320,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private final String column;
 
@@ -328,7 +328,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private final boolean isColumnNameDelimited;
 
@@ -336,7 +336,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private final String javaProperty;
 
@@ -344,7 +344,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private final String jdbcType;
 
@@ -352,7 +352,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String value() {
             return this.column;
@@ -362,7 +362,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getValue() {
             return this.column;
@@ -372,7 +372,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getJavaProperty() {
             return this.javaProperty;
@@ -382,7 +382,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getJdbcType() {
             return this.jdbcType;
@@ -392,7 +392,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
             this.column = column;
@@ -405,7 +405,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String desc() {
             return this.getEscapedColumnName() + " DESC";
@@ -415,7 +415,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String asc() {
             return this.getEscapedColumnName() + " ASC";
@@ -425,7 +425,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public static Column[] excludes(Column ... excludes) {
             ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
@@ -439,7 +439,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public static Column[] all() {
             return Column.values();
@@ -449,7 +449,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getEscapedColumnName() {
             if (this.isColumnNameDelimited) {
@@ -463,7 +463,7 @@ public class SunStaticOrderDayChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public String getAliasedEscapedColumnName() {
             return this.getEscapedColumnName();

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

@@ -14,7 +14,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     long countByExample(SunStaticOrderDayChannelExample example);
 
@@ -22,7 +22,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int deleteByExample(SunStaticOrderDayChannelExample example);
 
@@ -30,7 +30,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int deleteByPrimaryKey(Integer id);
 
@@ -38,7 +38,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int insert(SunStaticOrderDayChannel record);
 
@@ -46,7 +46,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int insertSelective(@Param("record") SunStaticOrderDayChannel record, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
 
@@ -54,7 +54,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     SunStaticOrderDayChannel selectOneByExample(SunStaticOrderDayChannelExample example);
 
@@ -62,7 +62,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     SunStaticOrderDayChannel selectOneByExampleSelective(@Param("example") SunStaticOrderDayChannelExample example, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
 
@@ -70,7 +70,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     List<SunStaticOrderDayChannel> selectByExampleSelective(@Param("example") SunStaticOrderDayChannelExample example, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
 
@@ -78,7 +78,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     List<SunStaticOrderDayChannel> selectByExample(SunStaticOrderDayChannelExample example);
 
@@ -86,7 +86,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     SunStaticOrderDayChannel selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
 
@@ -94,7 +94,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     SunStaticOrderDayChannel selectByPrimaryKey(Integer id);
 
@@ -102,7 +102,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int updateByExampleSelective(@Param("record") SunStaticOrderDayChannel record, @Param("example") SunStaticOrderDayChannelExample example, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
 
@@ -110,7 +110,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int updateByExample(@Param("record") SunStaticOrderDayChannel record, @Param("example") SunStaticOrderDayChannelExample example);
 
@@ -118,7 +118,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int updateByPrimaryKeySelective(@Param("record") SunStaticOrderDayChannel record, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
 
@@ -126,7 +126,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int updateByPrimaryKey(SunStaticOrderDayChannel record);
 
@@ -134,7 +134,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int batchInsert(@Param("list") List<SunStaticOrderDayChannel> list);
 
@@ -142,7 +142,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int batchInsertSelective(@Param("list") List<SunStaticOrderDayChannel> list, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
 
@@ -150,7 +150,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int upsert(SunStaticOrderDayChannel record);
 
@@ -158,7 +158,7 @@ public interface SunStaticOrderDayChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int upsertSelective(@Param("record") SunStaticOrderDayChannel record, @Param("selective") SunStaticOrderDayChannel.Column ... selective);
 }

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

@@ -14,7 +14,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     long countByExample(SunStaticOrderDayExample example);
 
@@ -22,7 +22,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int deleteByExample(SunStaticOrderDayExample example);
 
@@ -30,7 +30,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int deleteByPrimaryKey(Integer id);
 
@@ -38,7 +38,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int insert(SunStaticOrderDay record);
 
@@ -46,7 +46,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int insertSelective(@Param("record") SunStaticOrderDay record, @Param("selective") SunStaticOrderDay.Column ... selective);
 
@@ -54,7 +54,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     SunStaticOrderDay selectOneByExample(SunStaticOrderDayExample example);
 
@@ -62,7 +62,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     SunStaticOrderDay selectOneByExampleSelective(@Param("example") SunStaticOrderDayExample example, @Param("selective") SunStaticOrderDay.Column ... selective);
 
@@ -70,7 +70,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     List<SunStaticOrderDay> selectByExampleSelective(@Param("example") SunStaticOrderDayExample example, @Param("selective") SunStaticOrderDay.Column ... selective);
 
@@ -78,7 +78,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     List<SunStaticOrderDay> selectByExample(SunStaticOrderDayExample example);
 
@@ -86,7 +86,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     SunStaticOrderDay selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticOrderDay.Column ... selective);
 
@@ -94,7 +94,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     SunStaticOrderDay selectByPrimaryKey(Integer id);
 
@@ -102,7 +102,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int updateByExampleSelective(@Param("record") SunStaticOrderDay record, @Param("example") SunStaticOrderDayExample example, @Param("selective") SunStaticOrderDay.Column ... selective);
 
@@ -110,7 +110,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int updateByExample(@Param("record") SunStaticOrderDay record, @Param("example") SunStaticOrderDayExample example);
 
@@ -118,7 +118,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int updateByPrimaryKeySelective(@Param("record") SunStaticOrderDay record, @Param("selective") SunStaticOrderDay.Column ... selective);
 
@@ -126,7 +126,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int updateByPrimaryKey(SunStaticOrderDay record);
 
@@ -134,7 +134,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int batchInsert(@Param("list") List<SunStaticOrderDay> list);
 
@@ -142,7 +142,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int batchInsertSelective(@Param("list") List<SunStaticOrderDay> list, @Param("selective") SunStaticOrderDay.Column ... selective);
 
@@ -150,7 +150,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int upsert(SunStaticOrderDay record);
 
@@ -158,7 +158,7 @@ public interface SunStaticOrderDayMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     int upsertSelective(@Param("record") SunStaticOrderDay record, @Param("selective") SunStaticOrderDay.Column ... selective);
 }

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

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

+ 32 - 0
book-dao/src/main/java/com/book/dao/polardb/mapper/SunUserActive2Mapper.java

@@ -0,0 +1,32 @@
+package com.book.dao.polardb.mapper;
+
+import com.book.dao.polardb.entity.SunUserActive;
+import com.book.dao.polardb.pojo.example.SunUserActiveExample;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.HashMap;
+import java.util.List;
+
+@Mapper
+@Repository
+public interface SunUserActive2Mapper {
+    int selectActiveCountByDate(@Param("date") String date);
+
+    HashMap<String,String> selectRechargeByDate(@Param("date") String date);
+
+    /**
+     * 充值用户,分渠道统计
+     * @param date
+     * @return
+     */
+    List<HashMap<String, String>> selectRechargeByDateGroupByChannel(@Param("date") String date);
+
+    /**
+     * 活跃用户,分渠道统计
+     * @param date
+     * @return
+     */
+    List<HashMap<String, String>> selectActiveCountByDateGroupByChannel(@Param("date") String date);
+}

+ 60 - 50
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticOrderDayChannelExample.java

@@ -10,7 +10,7 @@ public class SunStaticOrderDayChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected String orderByClause;
 
@@ -18,7 +18,7 @@ public class SunStaticOrderDayChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected boolean distinct;
 
@@ -26,7 +26,7 @@ public class SunStaticOrderDayChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected List<Criteria> oredCriteria;
 
@@ -34,7 +34,7 @@ public class SunStaticOrderDayChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected Integer offset;
 
@@ -42,7 +42,7 @@ public class SunStaticOrderDayChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected Integer rows;
 
@@ -50,7 +50,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayChannelExample() {
         oredCriteria = new ArrayList<Criteria>();
@@ -60,7 +60,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void setOrderByClause(String orderByClause) {
         this.orderByClause = orderByClause;
@@ -70,7 +70,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public String getOrderByClause() {
         return orderByClause;
@@ -80,7 +80,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void setDistinct(boolean distinct) {
         this.distinct = distinct;
@@ -90,7 +90,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public boolean isDistinct() {
         return distinct;
@@ -100,7 +100,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public List<Criteria> getOredCriteria() {
         return oredCriteria;
@@ -110,7 +110,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void or(Criteria criteria) {
         oredCriteria.add(criteria);
@@ -120,7 +120,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public Criteria or() {
         Criteria criteria = createCriteriaInternal();
@@ -132,7 +132,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayChannelExample orderBy(String orderByClause) {
         this.setOrderByClause(orderByClause);
@@ -143,7 +143,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayChannelExample orderBy(String ... orderByClauses) {
         StringBuffer sb = new StringBuffer();
@@ -161,7 +161,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public Criteria createCriteria() {
         Criteria criteria = createCriteriaInternal();
@@ -175,7 +175,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected Criteria createCriteriaInternal() {
         Criteria criteria = new Criteria(this);
@@ -186,7 +186,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void clear() {
         oredCriteria.clear();
@@ -200,7 +200,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void setOffset(Integer offset) {
         this.offset = offset;
@@ -210,7 +210,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public Integer getOffset() {
         return this.offset;
@@ -220,7 +220,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void setRows(Integer rows) {
         this.rows = rows;
@@ -230,7 +230,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public Integer getRows() {
         return this.rows;
@@ -240,7 +240,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayChannelExample limit(Integer rows) {
         this.rows = rows;
@@ -251,7 +251,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayChannelExample limit(Integer offset, Integer rows) {
         this.offset = offset;
@@ -263,7 +263,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayChannelExample page(Integer page, Integer pageSize) {
         this.offset = page * pageSize;
@@ -275,7 +275,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public static Criteria newAndCreateCriteria() {
         SunStaticOrderDayChannelExample example = new SunStaticOrderDayChannelExample();
@@ -286,7 +286,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayChannelExample when(boolean condition, IExampleWhen then) {
         if (condition) {
@@ -299,7 +299,7 @@ public class SunStaticOrderDayChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayChannelExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
         if (condition) {
@@ -314,7 +314,7 @@ public class SunStaticOrderDayChannelExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected abstract static class GeneratedCriteria {
         protected List<Criterion> criteria;
@@ -937,7 +937,7 @@ public class SunStaticOrderDayChannelExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumEqualTo(Integer value) {
+        public Criteria andRechargeSumEqualTo(String value) {
             addCriterion("recharge_sum =", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -947,7 +947,7 @@ public class SunStaticOrderDayChannelExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumNotEqualTo(Integer value) {
+        public Criteria andRechargeSumNotEqualTo(String value) {
             addCriterion("recharge_sum <>", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -957,7 +957,7 @@ public class SunStaticOrderDayChannelExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumGreaterThan(Integer value) {
+        public Criteria andRechargeSumGreaterThan(String value) {
             addCriterion("recharge_sum >", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -967,7 +967,7 @@ public class SunStaticOrderDayChannelExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumGreaterThanOrEqualTo(Integer value) {
+        public Criteria andRechargeSumGreaterThanOrEqualTo(String value) {
             addCriterion("recharge_sum >=", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -977,7 +977,7 @@ public class SunStaticOrderDayChannelExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumLessThan(Integer value) {
+        public Criteria andRechargeSumLessThan(String value) {
             addCriterion("recharge_sum <", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -987,7 +987,7 @@ public class SunStaticOrderDayChannelExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumLessThanOrEqualTo(Integer value) {
+        public Criteria andRechargeSumLessThanOrEqualTo(String value) {
             addCriterion("recharge_sum <=", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -997,22 +997,32 @@ public class SunStaticOrderDayChannelExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumIn(List<Integer> values) {
+        public Criteria andRechargeSumLike(String value) {
+            addCriterion("recharge_sum like", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotLike(String value) {
+            addCriterion("recharge_sum not like", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIn(List<String> values) {
             addCriterion("recharge_sum in", values, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumNotIn(List<Integer> values) {
+        public Criteria andRechargeSumNotIn(List<String> values) {
             addCriterion("recharge_sum not in", values, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumBetween(Integer value1, Integer value2) {
+        public Criteria andRechargeSumBetween(String value1, String value2) {
             addCriterion("recharge_sum between", value1, value2, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumNotBetween(Integer value1, Integer value2) {
+        public Criteria andRechargeSumNotBetween(String value1, String value2) {
             addCriterion("recharge_sum not between", value1, value2, "rechargeSum");
             return (Criteria) this;
         }
@@ -1302,14 +1312,14 @@ public class SunStaticOrderDayChannelExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated do_not_delete_during_merge Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated do_not_delete_during_merge Sun Oct 10 14:33:44 CST 2021
      */
     public static class Criteria extends GeneratedCriteria {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private SunStaticOrderDayChannelExample example;
 
@@ -1317,7 +1327,7 @@ public class SunStaticOrderDayChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         protected Criteria(SunStaticOrderDayChannelExample example) {
             super();
@@ -1328,7 +1338,7 @@ public class SunStaticOrderDayChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public SunStaticOrderDayChannelExample example() {
             return this.example;
@@ -1338,7 +1348,7 @@ public class SunStaticOrderDayChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         @Deprecated
         public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
@@ -1352,7 +1362,7 @@ public class SunStaticOrderDayChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then) {
             if (condition) {
@@ -1365,7 +1375,7 @@ public class SunStaticOrderDayChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
             if (condition) {
@@ -1382,7 +1392,7 @@ public class SunStaticOrderDayChannelExample {
              * This method was generated by MyBatis Generator.
              * This method corresponds to the database table sun_static_order_day_channel
              *
-             * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+             * @mbg.generated Sun Oct 10 14:33:44 CST 2021
              */
             Criteria add(Criteria add);
         }
@@ -1392,7 +1402,7 @@ public class SunStaticOrderDayChannelExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_order_day_channel
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public static class Criterion {
         private String condition;
@@ -1485,7 +1495,7 @@ public class SunStaticOrderDayChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         void criteria(Criteria criteria);
     }
@@ -1495,7 +1505,7 @@ public class SunStaticOrderDayChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day_channel
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         void example(com.book.dao.polardb.pojo.example.SunStaticOrderDayChannelExample example);
     }

+ 60 - 50
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticOrderDayExample.java

@@ -10,7 +10,7 @@ public class SunStaticOrderDayExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected String orderByClause;
 
@@ -18,7 +18,7 @@ public class SunStaticOrderDayExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected boolean distinct;
 
@@ -26,7 +26,7 @@ public class SunStaticOrderDayExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected List<Criteria> oredCriteria;
 
@@ -34,7 +34,7 @@ public class SunStaticOrderDayExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected Integer offset;
 
@@ -42,7 +42,7 @@ public class SunStaticOrderDayExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected Integer rows;
 
@@ -50,7 +50,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayExample() {
         oredCriteria = new ArrayList<Criteria>();
@@ -60,7 +60,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void setOrderByClause(String orderByClause) {
         this.orderByClause = orderByClause;
@@ -70,7 +70,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public String getOrderByClause() {
         return orderByClause;
@@ -80,7 +80,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void setDistinct(boolean distinct) {
         this.distinct = distinct;
@@ -90,7 +90,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public boolean isDistinct() {
         return distinct;
@@ -100,7 +100,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public List<Criteria> getOredCriteria() {
         return oredCriteria;
@@ -110,7 +110,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void or(Criteria criteria) {
         oredCriteria.add(criteria);
@@ -120,7 +120,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public Criteria or() {
         Criteria criteria = createCriteriaInternal();
@@ -132,7 +132,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayExample orderBy(String orderByClause) {
         this.setOrderByClause(orderByClause);
@@ -143,7 +143,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayExample orderBy(String ... orderByClauses) {
         StringBuffer sb = new StringBuffer();
@@ -161,7 +161,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public Criteria createCriteria() {
         Criteria criteria = createCriteriaInternal();
@@ -175,7 +175,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected Criteria createCriteriaInternal() {
         Criteria criteria = new Criteria(this);
@@ -186,7 +186,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void clear() {
         oredCriteria.clear();
@@ -200,7 +200,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void setOffset(Integer offset) {
         this.offset = offset;
@@ -210,7 +210,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public Integer getOffset() {
         return this.offset;
@@ -220,7 +220,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public void setRows(Integer rows) {
         this.rows = rows;
@@ -230,7 +230,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public Integer getRows() {
         return this.rows;
@@ -240,7 +240,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayExample limit(Integer rows) {
         this.rows = rows;
@@ -251,7 +251,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayExample limit(Integer offset, Integer rows) {
         this.offset = offset;
@@ -263,7 +263,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayExample page(Integer page, Integer pageSize) {
         this.offset = page * pageSize;
@@ -275,7 +275,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public static Criteria newAndCreateCriteria() {
         SunStaticOrderDayExample example = new SunStaticOrderDayExample();
@@ -286,7 +286,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayExample when(boolean condition, IExampleWhen then) {
         if (condition) {
@@ -299,7 +299,7 @@ public class SunStaticOrderDayExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public SunStaticOrderDayExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
         if (condition) {
@@ -314,7 +314,7 @@ public class SunStaticOrderDayExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     protected abstract static class GeneratedCriteria {
         protected List<Criterion> criteria;
@@ -737,7 +737,7 @@ public class SunStaticOrderDayExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumEqualTo(Integer value) {
+        public Criteria andRechargeSumEqualTo(String value) {
             addCriterion("recharge_sum =", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -747,7 +747,7 @@ public class SunStaticOrderDayExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumNotEqualTo(Integer value) {
+        public Criteria andRechargeSumNotEqualTo(String value) {
             addCriterion("recharge_sum <>", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -757,7 +757,7 @@ public class SunStaticOrderDayExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumGreaterThan(Integer value) {
+        public Criteria andRechargeSumGreaterThan(String value) {
             addCriterion("recharge_sum >", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -767,7 +767,7 @@ public class SunStaticOrderDayExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumGreaterThanOrEqualTo(Integer value) {
+        public Criteria andRechargeSumGreaterThanOrEqualTo(String value) {
             addCriterion("recharge_sum >=", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -777,7 +777,7 @@ public class SunStaticOrderDayExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumLessThan(Integer value) {
+        public Criteria andRechargeSumLessThan(String value) {
             addCriterion("recharge_sum <", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -787,7 +787,7 @@ public class SunStaticOrderDayExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumLessThanOrEqualTo(Integer value) {
+        public Criteria andRechargeSumLessThanOrEqualTo(String value) {
             addCriterion("recharge_sum <=", value, "rechargeSum");
             return (Criteria) this;
         }
@@ -797,22 +797,32 @@ public class SunStaticOrderDayExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumIn(List<Integer> values) {
+        public Criteria andRechargeSumLike(String value) {
+            addCriterion("recharge_sum like", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumNotLike(String value) {
+            addCriterion("recharge_sum not like", value, "rechargeSum");
+            return (Criteria) this;
+        }
+
+        public Criteria andRechargeSumIn(List<String> values) {
             addCriterion("recharge_sum in", values, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumNotIn(List<Integer> values) {
+        public Criteria andRechargeSumNotIn(List<String> values) {
             addCriterion("recharge_sum not in", values, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumBetween(Integer value1, Integer value2) {
+        public Criteria andRechargeSumBetween(String value1, String value2) {
             addCriterion("recharge_sum between", value1, value2, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeSumNotBetween(Integer value1, Integer value2) {
+        public Criteria andRechargeSumNotBetween(String value1, String value2) {
             addCriterion("recharge_sum not between", value1, value2, "rechargeSum");
             return (Criteria) this;
         }
@@ -1102,14 +1112,14 @@ public class SunStaticOrderDayExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated do_not_delete_during_merge Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated do_not_delete_during_merge Sun Oct 10 14:33:44 CST 2021
      */
     public static class Criteria extends GeneratedCriteria {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         private SunStaticOrderDayExample example;
 
@@ -1117,7 +1127,7 @@ public class SunStaticOrderDayExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         protected Criteria(SunStaticOrderDayExample example) {
             super();
@@ -1128,7 +1138,7 @@ public class SunStaticOrderDayExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public SunStaticOrderDayExample example() {
             return this.example;
@@ -1138,7 +1148,7 @@ public class SunStaticOrderDayExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         @Deprecated
         public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
@@ -1152,7 +1162,7 @@ public class SunStaticOrderDayExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then) {
             if (condition) {
@@ -1165,7 +1175,7 @@ public class SunStaticOrderDayExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
             if (condition) {
@@ -1182,7 +1192,7 @@ public class SunStaticOrderDayExample {
              * This method was generated by MyBatis Generator.
              * This method corresponds to the database table sun_static_order_day
              *
-             * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+             * @mbg.generated Sun Oct 10 14:33:44 CST 2021
              */
             Criteria add(Criteria add);
         }
@@ -1192,7 +1202,7 @@ public class SunStaticOrderDayExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_order_day
      *
-     * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+     * @mbg.generated Sun Oct 10 14:33:44 CST 2021
      */
     public static class Criterion {
         private String condition;
@@ -1285,7 +1295,7 @@ public class SunStaticOrderDayExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         void criteria(Criteria criteria);
     }
@@ -1295,7 +1305,7 @@ public class SunStaticOrderDayExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_order_day
          *
-         * @mbg.generated Sun Oct 10 12:25:38 CST 2021
+         * @mbg.generated Sun Oct 10 14:33:44 CST 2021
          */
         void example(com.book.dao.polardb.pojo.example.SunStaticOrderDayExample example);
     }

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

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

+ 365 - 341
book-dao/src/main/java/com/book/dao/utils/TimeUtil.java

@@ -1,341 +1,365 @@
-package com.book.dao.utils;
-import java.sql.Timestamp;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.time.DayOfWeek;
-import java.time.LocalDate;
-import java.time.format.DateTimeFormatter;
-import java.time.temporal.ChronoField;
-import java.time.temporal.ChronoUnit;
-import java.time.temporal.TemporalAdjuster;
-import java.time.temporal.TemporalAdjusters;
-import java.util.Calendar;
-import java.util.Date;
-import java.util.TimeZone;
-
-/**
- * 时间工具类
- * @author caosongsong
- *
- */
-public class TimeUtil {
-	
-	public static final String YYYYMMDD1 = "yyyyMMdd";
-	
-	public static final String YYYY_MM = "yyyy-MM";
-	public static final String _YYYY_MM = "yyyy_MM";
-	public static final String YYYY = "yyyy";
-
-	public static final String YYYY_MM_DD = "yyyy-MM-dd";
-	
-	public static final String YYYYMMDD = "yyyy.mm.dd";
-	public static final String YYYYMMDD_N = "yyyyMMdd";
-
-	public static final String HH_MM_SS = "HH:mm:ss";
-	public static final String HHMMSS = "HHmmss";
-
-	public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
-	
-	public static final String YYYY_MM_DD_HH_MM = "yyyy-MM-dd HH:mm";
-
-    public static final String YYYYMMDDHHMMSS="yyyyMMddHHmmss";
-
-    public static final String YYYYMMDDHHMM="yyyyMMddHHmm";
-
-    public static final String YYYY_MM_DD_HH_MM_SS_Z = "yyyy-MM-dd HH:mm:ss z";
-    public static final String YYYYMMDDHHMMSSSSS = "yyyyMMddHHmmssSSS";
-
-    public static final String MMDDHHMMSS = "MMddHHmmss";
-    
-    public static final String YYYY_M_DD_HH_MM_SS = "yyyy-M-dd HH:mm:ss";
-    
-    
-	/**
-	 * @todo 获取当前时间的字符串格式
-	 * @param format
-	 *            String 格式化样式"yyyy-MM-dd HH:mm:ss"
-	 * @return String 时间字符串
-	 */
-	public static String getCurrentTimestamp(String format) {
-		SimpleDateFormat sdf = new SimpleDateFormat(format);
-		return sdf.format(new Date());
-	}
-	
-	/**
-	 * 获取昨天的日期或者固定前几日的或者未来几日的date
-	 * @param dateNo    数字 ,-1表示昨天;0今天;1明天;2后天
-	 * @return
-	 */
-	public static Date getYesterday(int dateNo){
-		Calendar   cal   =   Calendar.getInstance();
-		cal.add(Calendar.DATE, dateNo);
-		return cal.getTime();
-	}
-
-	/**
-	 * @todo 获取当前时间戳
-	 * @return Timestamp 当前时间
-	 */
-	public static Timestamp getCurrentTimestamp() {
-		return new Timestamp(new Date().getTime());
-	}
-
-	/**
-	 * @todo 获取当前日期字符串
-	 * @param format
-	 *            String yyyy-MM-dd
-	 * @return String
-	 */
-	public static String getCurrentDate(String format) {
-		SimpleDateFormat sdf = new SimpleDateFormat(format);
-		return sdf.format(new Date());
-	}
-	public static Integer getCurrentIntDate(String format) {
-		SimpleDateFormat sdf = new SimpleDateFormat(format);
-		return Integer.valueOf(sdf.format(new Date()));
-	}
-
-	/**
-	 * @todo 格式化时间日期
-	 * @param date
-	 * @param format
-	 * @return
-	 */
-	public static String dateToStr(Date date, String format) {
-		SimpleDateFormat sdf = new SimpleDateFormat(format);
-		return sdf.format(date);
-	}
-
-	/**
-	 * @todo 字符串转日期
-	 * @param date
-	 * @param format
-	 * @return
-	 * @throws Exception
-	 */
-	public static Date dateFromStr(String date, String format) throws ParseException{
-		SimpleDateFormat sdf = new SimpleDateFormat(format);
-		return sdf.parse(date);
-	}
-
-
-	/**
-	 * @todo 日期比较
-	 * @param date1
-	 * @param date2
-	 * @return {[ 0 - d1等于d2 ]/[ 1 - d1 大于 d2 ]/[ -1 - d1 小于 d2 ]}
-	 */
-	public static int compareDate(Date date1, Date date2) {
-		// 参数检查
-		if (date1 == null || date2 == null) {
-			throw new IllegalArgumentException("非法参数异常,参数不能为空!");
-		}
-
-		return date1.compareTo(date2);
-	}
-
-	/**
-	 * @todo 只比较时分秒
-	 * @param date1
-	 * @param date2
-	 * @return {[ 0 - d1等于d2 ]/[ 1 - d1 大于 d2 ]/[ -1 - d1 小于 d2 ]}
-	 */
-	public static int compareTime(Date date1, Date date2) {
-		// 参数检查
-		if (date1 == null || date2 == null) {
-			throw new IllegalArgumentException("非法参数异常,参数不能为空!");
-		}
-		Calendar cal1 = Calendar.getInstance();
-		cal1.setTime(date1);
-		int time1 = cal1.get(Calendar.HOUR_OF_DAY) * 60 * 60
-				+ cal1.get(Calendar.MINUTE) * 60 + cal1.get(Calendar.SECOND);
-
-		Calendar cal2 = Calendar.getInstance();
-		cal2.setTime(date2);
-		int time2 = cal2.get(Calendar.HOUR_OF_DAY) * 60 * 60
-				+ cal2.get(Calendar.MINUTE) * 60 + cal2.get(Calendar.SECOND);
-
-		int tmp = time1 - time2;
-		if (tmp > 0) {
-			return 1;
-		} else if (tmp == 0) {
-			return 0;
-		} else {
-			return -1;
-		}
-	}
-
-	/**
-	 * @todo 获取日期的星期几
-	 * @param date
-	 * @return int {1- 星期日 / 2 -星期一 / 7-星期六}
-	 */
-	public static int getDateOfWeek(Date date) {
-		// 参数检查
-		if (date == null) {
-			throw new IllegalArgumentException("非法参数异常,参数不能为空!");
-		}
-		Calendar calendar = Calendar.getInstance();
-		calendar.setTime(date);
-		return calendar.get(Calendar.DAY_OF_WEEK);
-	}
-
-	/**
-	 * 当前日期的星期
-	 * 
-	 * @return
-	 */
-	public static int currentDayInWeek() {
-		Calendar calendar = Calendar.getInstance();
-		calendar.setTime(new Date());
-		return calendar.get(Calendar.DAY_OF_WEEK);
-	}
-
-	public static Date firstTime(Date curDate) {
-		Calendar calendar = Calendar.getInstance();
-		calendar.setTime(curDate);
-		calendar.set(Calendar.HOUR_OF_DAY, 0);
-		calendar.set(Calendar.MINUTE, 0);
-		calendar.set(Calendar.SECOND, 0);
-		return calendar.getTime();
-	}
-
-	public static Date lastTime(Date curDate) {
-		Calendar calendar = Calendar.getInstance();
-		calendar.setTime(curDate);
-		calendar.set(Calendar.HOUR_OF_DAY, 23);
-		calendar.set(Calendar.MINUTE, 59);
-		calendar.set(Calendar.SECOND, 59);
-		return calendar.getTime();
-	}
-
-	/**
-	 * 日、时、分、秒的间距
-	 * @param valueDate
-	 * @param begin
-	 * @param end
-	 * @return
-	 */
-	public static int interval(Date valueDate,Date begin,Date end){
-		if(begin.getTime() > end.getTime()){
-			throw new IllegalArgumentException("begin or end is invalid");
-		}
-		if(valueDate.getTime() < begin.getTime()){
-			return -1;
-		}else if(valueDate.getTime()>= begin.getTime() && valueDate.getTime() <= end.getTime()){
-			return 0;
-		}else{
-			return 1;
-		}
-	}
-	
-	/**
-	 * 时、分、秒的间距
-	 * @param valueDate
-	 * @param begin
-	 * @param end
-	 * @return
-	 */
-	public static int intervalItime(Date valueDate,Date begin,Date end){
-		if(compareTime(end, begin) == -1){
-			throw new IllegalArgumentException("begin or end is invalid");
-		}
-		if(compareTime(valueDate, begin) == -1){
-			return -1;
-		}else if(compareTime(valueDate, begin) == 1 && compareTime(end, valueDate) == 1){
-			return 0;
-		}else{
-			return 1;
-		}
-	}
-
-	/**
-	 * 获取前一天的工作日
-	 * @param format 日期格式
-	 * @return
-	 */
-	public static String getBeforeWorkDay(String format) {
-		TemporalAdjuster temporalAdjuster = nextWorkingDay();
-		DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);
-		return  LocalDate.now().with(temporalAdjuster).format(formatter);
-	}
-
-	/**
-	 * 获取指定日期前一个工作日
-	 * @param year 年
-	 * @param month 月
-	 * @param dayOfMonth  日
-	 * @param format 日期格式
-	 * @return
-	 */
-	public static String getBeforeWorkDay(int year, int month, int dayOfMonth, String format) {
-		TemporalAdjuster temporalAdjuster = nextWorkingDay();
-		DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);
-		return  LocalDate.of(year,month,dayOfMonth).with(temporalAdjuster).format(formatter);
-	}
-
-	private static TemporalAdjuster nextWorkingDay() {
-		return TemporalAdjusters.ofDateAdjuster(
-
-				temporal -> {
-
-					DayOfWeek dow =
-
-							DayOfWeek.of(temporal.get(ChronoField.DAY_OF_WEEK));
-
-					int dayToAdd = -1;
-
-					if (dow ==DayOfWeek.MONDAY){
-
-						dayToAdd = -3;
-
-					}
-
-					if (dow ==DayOfWeek.SATURDAY){
-
-						dayToAdd = -1;
-
-					}
-					if (dow ==DayOfWeek.SUNDAY){
-
-						dayToAdd = -2;
-
-					}
-
-					return temporal.plus(dayToAdd, ChronoUnit.DAYS);
-
-				});
-	}
-	public static String getDateString(long time){
-        Date date = new Date(time);
-        return dateToStr(date,YYYY_MM_DD);
-    }
-    
-    public static String getPointDateString(long time){
-        Date date = new Date(time);
-        return dateToStr(date,YYYYMMDD);
-    }
-    
-    public static String getTimeString(long time){
-    	Date date = new Date(time);
-    	return dateToStr(date,HH_MM_SS);
-    }
-
-    public static Date dateFromStringWithTimezoneEtc_GMT(String datestr){
-        SimpleDateFormat sdf = new SimpleDateFormat(YYYY_MM_DD_HH_MM_SS);
-        try {
-            sdf.setTimeZone(TimeZone.getTimeZone("Etc/GMT"));
-            return sdf.parse(datestr);
-        } catch (ParseException e) {
-            return null;
-        }
-    }
-
-	public static String getDateStrAfter(Integer value, int field,String format) {
-		Calendar calendar = Calendar.getInstance();
-		calendar.add(field,value);
-		Date time = calendar.getTime();
-		return new SimpleDateFormat(format).format(time);
-
-	}
-}
+package com.book.dao.utils;
+
+import java.sql.Timestamp;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.time.DayOfWeek;
+import java.time.LocalDate;
+import java.time.format.DateTimeFormatter;
+import java.time.temporal.ChronoField;
+import java.time.temporal.ChronoUnit;
+import java.time.temporal.TemporalAdjuster;
+import java.time.temporal.TemporalAdjusters;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.TimeZone;
+
+/**
+ * 时间工具类
+ *
+ * @author caosongsong
+ */
+public class TimeUtil {
+
+    public static final String YYYYMMDD1 = "yyyyMMdd";
+
+    public static final String YYYY_MM = "yyyy-MM";
+    public static final String _YYYY_MM = "yyyy_MM";
+    public static final String YYYY = "yyyy";
+
+    public static final String YYYY_MM_DD = "yyyy-MM-dd";
+
+    public static final String YYYYMMDD = "yyyy.mm.dd";
+    public static final String YYYYMMDD_N = "yyyyMMdd";
+
+    public static final String HH_MM_SS = "HH:mm:ss";
+    public static final String HHMMSS = "HHmmss";
+
+    public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
+
+    public static final String YYYY_MM_DD_HH_MM = "yyyy-MM-dd HH:mm";
+
+    public static final String YYYYMMDDHHMMSS = "yyyyMMddHHmmss";
+
+    public static final String YYYYMMDDHHMM = "yyyyMMddHHmm";
+
+    public static final String YYYY_MM_DD_HH_MM_SS_Z = "yyyy-MM-dd HH:mm:ss z";
+    public static final String YYYYMMDDHHMMSSSSS = "yyyyMMddHHmmssSSS";
+
+    public static final String MMDDHHMMSS = "MMddHHmmss";
+
+    public static final String YYYY_M_DD_HH_MM_SS = "yyyy-M-dd HH:mm:ss";
+
+
+    /**
+     * @param format String 格式化样式"yyyy-MM-dd HH:mm:ss"
+     * @return String 时间字符串
+     * @todo 获取当前时间的字符串格式
+     */
+    public static String getCurrentTimestamp(String format) {
+        SimpleDateFormat sdf = new SimpleDateFormat(format);
+        return sdf.format(new Date());
+    }
+
+    /**
+     * 获取昨天的日期或者固定前几日的或者未来几日的date
+     *
+     * @param dateNo 数字 ,-1表示昨天;0今天;1明天;2后天
+     * @return
+     */
+    public static Date getYesterday(int dateNo) {
+        Calendar cal = Calendar.getInstance();
+        cal.add(Calendar.DATE, dateNo);
+        return cal.getTime();
+    }
+
+    /**
+     * @return Timestamp 当前时间
+     * @todo 获取当前时间戳
+     */
+    public static Timestamp getCurrentTimestamp() {
+        return new Timestamp(new Date().getTime());
+    }
+
+    /**
+     * @param format String yyyy-MM-dd
+     * @return String
+     * @todo 获取当前日期字符串
+     */
+    public static String getCurrentDate(String format) {
+        SimpleDateFormat sdf = new SimpleDateFormat(format);
+        return sdf.format(new Date());
+    }
+
+    /**
+     * 获取昨天日期字符串 yyyy-MM-dd
+     *
+     * @return
+     */
+    public static String getYesterdayStr() {
+        return dateToStr(getYesterday(-1), TimeUtil.YYYY_MM_DD);
+    }
+
+    /**
+     * 获取当天日期字符串 yyyy-MM-dd
+     *
+     * @return
+     */
+    public static String getTodayStr() {
+        return getCurrentDate(TimeUtil.YYYY_MM_DD);
+    }
+
+    public static Integer getCurrentIntDate(String format) {
+        SimpleDateFormat sdf = new SimpleDateFormat(format);
+        return Integer.valueOf(sdf.format(new Date()));
+    }
+
+    /**
+     * @param date
+     * @param format
+     * @return
+     * @todo 格式化时间日期
+     */
+    public static String dateToStr(Date date, String format) {
+        SimpleDateFormat sdf = new SimpleDateFormat(format);
+        return sdf.format(date);
+    }
+
+    /**
+     * @param date
+     * @param format
+     * @return
+     * @throws Exception
+     * @todo 字符串转日期
+     */
+    public static Date dateFromStr(String date, String format) throws ParseException {
+        SimpleDateFormat sdf = new SimpleDateFormat(format);
+        return sdf.parse(date);
+    }
+
+
+    /**
+     * @param date1
+     * @param date2
+     * @return {[ 0 - d1等于d2 ]/[ 1 - d1 大于 d2 ]/[ -1 - d1 小于 d2 ]}
+     * @todo 日期比较
+     */
+    public static int compareDate(Date date1, Date date2) {
+        // 参数检查
+        if (date1 == null || date2 == null) {
+            throw new IllegalArgumentException("非法参数异常,参数不能为空!");
+        }
+
+        return date1.compareTo(date2);
+    }
+
+    /**
+     * @param date1
+     * @param date2
+     * @return {[ 0 - d1等于d2 ]/[ 1 - d1 大于 d2 ]/[ -1 - d1 小于 d2 ]}
+     * @todo 只比较时分秒
+     */
+    public static int compareTime(Date date1, Date date2) {
+        // 参数检查
+        if (date1 == null || date2 == null) {
+            throw new IllegalArgumentException("非法参数异常,参数不能为空!");
+        }
+        Calendar cal1 = Calendar.getInstance();
+        cal1.setTime(date1);
+        int time1 = cal1.get(Calendar.HOUR_OF_DAY) * 60 * 60
+                + cal1.get(Calendar.MINUTE) * 60 + cal1.get(Calendar.SECOND);
+
+        Calendar cal2 = Calendar.getInstance();
+        cal2.setTime(date2);
+        int time2 = cal2.get(Calendar.HOUR_OF_DAY) * 60 * 60
+                + cal2.get(Calendar.MINUTE) * 60 + cal2.get(Calendar.SECOND);
+
+        int tmp = time1 - time2;
+        if (tmp > 0) {
+            return 1;
+        } else if (tmp == 0) {
+            return 0;
+        } else {
+            return -1;
+        }
+    }
+
+    /**
+     * @param date
+     * @return int {1- 星期日 / 2 -星期一 / 7-星期六}
+     * @todo 获取日期的星期几
+     */
+    public static int getDateOfWeek(Date date) {
+        // 参数检查
+        if (date == null) {
+            throw new IllegalArgumentException("非法参数异常,参数不能为空!");
+        }
+        Calendar calendar = Calendar.getInstance();
+        calendar.setTime(date);
+        return calendar.get(Calendar.DAY_OF_WEEK);
+    }
+
+    /**
+     * 当前日期的星期
+     *
+     * @return
+     */
+    public static int currentDayInWeek() {
+        Calendar calendar = Calendar.getInstance();
+        calendar.setTime(new Date());
+        return calendar.get(Calendar.DAY_OF_WEEK);
+    }
+
+    public static Date firstTime(Date curDate) {
+        Calendar calendar = Calendar.getInstance();
+        calendar.setTime(curDate);
+        calendar.set(Calendar.HOUR_OF_DAY, 0);
+        calendar.set(Calendar.MINUTE, 0);
+        calendar.set(Calendar.SECOND, 0);
+        return calendar.getTime();
+    }
+
+    public static Date lastTime(Date curDate) {
+        Calendar calendar = Calendar.getInstance();
+        calendar.setTime(curDate);
+        calendar.set(Calendar.HOUR_OF_DAY, 23);
+        calendar.set(Calendar.MINUTE, 59);
+        calendar.set(Calendar.SECOND, 59);
+        return calendar.getTime();
+    }
+
+    /**
+     * 日、时、分、秒的间距
+     *
+     * @param valueDate
+     * @param begin
+     * @param end
+     * @return
+     */
+    public static int interval(Date valueDate, Date begin, Date end) {
+        if (begin.getTime() > end.getTime()) {
+            throw new IllegalArgumentException("begin or end is invalid");
+        }
+        if (valueDate.getTime() < begin.getTime()) {
+            return -1;
+        } else if (valueDate.getTime() >= begin.getTime() && valueDate.getTime() <= end.getTime()) {
+            return 0;
+        } else {
+            return 1;
+        }
+    }
+
+    /**
+     * 时、分、秒的间距
+     *
+     * @param valueDate
+     * @param begin
+     * @param end
+     * @return
+     */
+    public static int intervalItime(Date valueDate, Date begin, Date end) {
+        if (compareTime(end, begin) == -1) {
+            throw new IllegalArgumentException("begin or end is invalid");
+        }
+        if (compareTime(valueDate, begin) == -1) {
+            return -1;
+        } else if (compareTime(valueDate, begin) == 1 && compareTime(end, valueDate) == 1) {
+            return 0;
+        } else {
+            return 1;
+        }
+    }
+
+    /**
+     * 获取前一天的工作日
+     *
+     * @param format 日期格式
+     * @return
+     */
+    public static String getBeforeWorkDay(String format) {
+        TemporalAdjuster temporalAdjuster = nextWorkingDay();
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);
+        return LocalDate.now().with(temporalAdjuster).format(formatter);
+    }
+
+    /**
+     * 获取指定日期前一个工作日
+     *
+     * @param year       年
+     * @param month      月
+     * @param dayOfMonth 日
+     * @param format     日期格式
+     * @return
+     */
+    public static String getBeforeWorkDay(int year, int month, int dayOfMonth, String format) {
+        TemporalAdjuster temporalAdjuster = nextWorkingDay();
+        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format);
+        return LocalDate.of(year, month, dayOfMonth).with(temporalAdjuster).format(formatter);
+    }
+
+    private static TemporalAdjuster nextWorkingDay() {
+        return TemporalAdjusters.ofDateAdjuster(
+
+                temporal -> {
+
+                    DayOfWeek dow =
+
+                            DayOfWeek.of(temporal.get(ChronoField.DAY_OF_WEEK));
+
+                    int dayToAdd = -1;
+
+                    if (dow == DayOfWeek.MONDAY) {
+
+                        dayToAdd = -3;
+
+                    }
+
+                    if (dow == DayOfWeek.SATURDAY) {
+
+                        dayToAdd = -1;
+
+                    }
+                    if (dow == DayOfWeek.SUNDAY) {
+
+                        dayToAdd = -2;
+
+                    }
+
+                    return temporal.plus(dayToAdd, ChronoUnit.DAYS);
+
+                });
+    }
+
+    public static String getDateString(long time) {
+        Date date = new Date(time);
+        return dateToStr(date, YYYY_MM_DD);
+    }
+
+    public static String getPointDateString(long time) {
+        Date date = new Date(time);
+        return dateToStr(date, YYYYMMDD);
+    }
+
+    public static String getTimeString(long time) {
+        Date date = new Date(time);
+        return dateToStr(date, HH_MM_SS);
+    }
+
+    public static Date dateFromStringWithTimezoneEtc_GMT(String datestr) {
+        SimpleDateFormat sdf = new SimpleDateFormat(YYYY_MM_DD_HH_MM_SS);
+        try {
+            sdf.setTimeZone(TimeZone.getTimeZone("Etc/GMT"));
+            return sdf.parse(datestr);
+        } catch (ParseException e) {
+            return null;
+        }
+    }
+
+    public static String getDateStrAfter(Integer value, int field, String format) {
+        Calendar calendar = Calendar.getInstance();
+        calendar.add(field, value);
+        Date time = calendar.getTime();
+        return new SimpleDateFormat(format).format(time);
+
+    }
+}

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

@@ -5,7 +5,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="channel_id" jdbcType="VARCHAR" property="channelId" />
@@ -13,7 +13,7 @@
     <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
     <result column="active_count" jdbcType="INTEGER" property="activeCount" />
     <result column="recharge_user_count" jdbcType="INTEGER" property="rechargeUserCount" />
-    <result column="recharge_sum" jdbcType="INTEGER" property="rechargeSum" />
+    <result column="recharge_sum" jdbcType="VARCHAR" property="rechargeSum" />
     <result column="recharge_count" jdbcType="INTEGER" property="rechargeCount" />
     <result column="recharge_avg" jdbcType="VARCHAR" property="rechargeAvg" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
@@ -22,7 +22,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -56,7 +56,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -90,7 +90,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     id, channel_id, channel_name, static_date, active_count, recharge_user_count, recharge_sum, 
     recharge_count, recharge_avg, create_time
@@ -99,7 +99,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <if test="distinct">
@@ -126,14 +126,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <if test="example != null and example.distinct">
       distinct
     </if>
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.aliasedEscapedColumnName}
         </foreach>
@@ -162,7 +162,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -173,11 +173,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.aliasedEscapedColumnName}
         </foreach>
@@ -193,7 +193,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     delete from sun_static_order_day_channel
     where id = #{id,jdbcType=INTEGER}
@@ -202,7 +202,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     delete from sun_static_order_day_channel
     <if test="_parameter != null">
@@ -213,7 +213,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day_channel (id, channel_id, channel_name, 
       static_date, active_count, recharge_user_count, 
@@ -221,18 +221,18 @@
       create_time)
     values (#{id,jdbcType=INTEGER}, #{channelId,jdbcType=VARCHAR}, #{channelName,jdbcType=VARCHAR}, 
       #{staticDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=INTEGER}, #{rechargeUserCount,jdbcType=INTEGER}, 
-      #{rechargeSum,jdbcType=INTEGER}, #{rechargeCount,jdbcType=INTEGER}, #{rechargeAvg,jdbcType=VARCHAR}, 
+      #{rechargeSum,jdbcType=VARCHAR}, #{rechargeCount,jdbcType=INTEGER}, #{rechargeAvg,jdbcType=VARCHAR}, 
       #{createTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="map">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day_channel
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach close=")" collection="selective" item="column" open="(" separator=",">
           ${column.escapedColumnName}
         </foreach>
@@ -275,7 +275,7 @@
     </choose>
     values
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach close=")" collection="selective" item="column" open="(" separator=",">
           #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -301,7 +301,7 @@
             #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            #{record.rechargeSum,jdbcType=INTEGER},
+            #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             #{record.rechargeCount,jdbcType=INTEGER},
@@ -320,7 +320,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select count(*) from sun_static_order_day_channel
     <if test="_parameter != null">
@@ -331,12 +331,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     update sun_static_order_day_channel
     SET
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -362,7 +362,7 @@
             recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
@@ -384,7 +384,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     update sun_static_order_day_channel
     set id = #{record.id,jdbcType=INTEGER},
@@ -393,7 +393,7 @@
       static_date = #{record.staticDate,jdbcType=VARCHAR},
       active_count = #{record.activeCount,jdbcType=INTEGER},
       recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
-      recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+      recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
       recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
       recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
       create_time = #{record.createTime,jdbcType=TIMESTAMP}
@@ -405,12 +405,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     update sun_static_order_day_channel
     SET
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -433,7 +433,7 @@
             recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
@@ -453,7 +453,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     update sun_static_order_day_channel
     set channel_id = #{channelId,jdbcType=VARCHAR},
@@ -461,7 +461,7 @@
       static_date = #{staticDate,jdbcType=VARCHAR},
       active_count = #{activeCount,jdbcType=INTEGER},
       recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER},
-      recharge_sum = #{rechargeSum,jdbcType=INTEGER},
+      recharge_sum = #{rechargeSum,jdbcType=VARCHAR},
       recharge_count = #{rechargeCount,jdbcType=INTEGER},
       recharge_avg = #{rechargeAvg,jdbcType=VARCHAR},
       create_time = #{createTime,jdbcType=TIMESTAMP}
@@ -471,7 +471,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <include refid="Base_Column_List" />
@@ -488,11 +488,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.aliasedEscapedColumnName}
         </foreach>
@@ -514,7 +514,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day_channel
     (id, channel_id, channel_name, static_date, active_count, recharge_user_count, recharge_sum, 
@@ -523,7 +523,7 @@
     <foreach collection="list" item="item" separator=",">
       (#{item.id,jdbcType=INTEGER}, #{item.channelId,jdbcType=VARCHAR}, #{item.channelName,jdbcType=VARCHAR}, 
         #{item.staticDate,jdbcType=VARCHAR}, #{item.activeCount,jdbcType=INTEGER}, #{item.rechargeUserCount,jdbcType=INTEGER}, 
-        #{item.rechargeSum,jdbcType=INTEGER}, #{item.rechargeCount,jdbcType=INTEGER}, #{item.rechargeAvg,jdbcType=VARCHAR}, 
+        #{item.rechargeSum,jdbcType=VARCHAR}, #{item.rechargeCount,jdbcType=INTEGER}, #{item.rechargeAvg,jdbcType=VARCHAR}, 
         #{item.createTime,jdbcType=TIMESTAMP})
     </foreach>
   </insert>
@@ -531,7 +531,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day_channel (
     <foreach collection="selective" item="column" separator=",">
@@ -561,7 +561,7 @@
           #{item.rechargeUserCount,jdbcType=INTEGER}
         </if>
         <if test="'recharge_sum'.toString() == column.value">
-          #{item.rechargeSum,jdbcType=INTEGER}
+          #{item.rechargeSum,jdbcType=VARCHAR}
         </if>
         <if test="'recharge_count'.toString() == column.value">
           #{item.rechargeCount,jdbcType=INTEGER}
@@ -580,11 +580,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day_channel
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach close=")" collection="selective" item="column" open="(" separator=",">
           ${column.escapedColumnName}
         </foreach>
@@ -627,7 +627,7 @@
     </choose>
     values
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach close=")" collection="selective" item="column" open="(" separator=",">
           #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -653,7 +653,7 @@
             #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            #{record.rechargeSum,jdbcType=INTEGER},
+            #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             #{record.rechargeCount,jdbcType=INTEGER},
@@ -669,7 +669,7 @@
     </choose>
     on duplicate key update 
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -695,7 +695,7 @@
             recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
@@ -714,7 +714,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day_channel
     (id, channel_id, channel_name, static_date, active_count, recharge_user_count, recharge_sum, 
@@ -722,7 +722,7 @@
     values
     (#{id,jdbcType=INTEGER}, #{channelId,jdbcType=VARCHAR}, #{channelName,jdbcType=VARCHAR}, 
       #{staticDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=INTEGER}, #{rechargeUserCount,jdbcType=INTEGER}, 
-      #{rechargeSum,jdbcType=INTEGER}, #{rechargeCount,jdbcType=INTEGER}, #{rechargeAvg,jdbcType=VARCHAR}, 
+      #{rechargeSum,jdbcType=VARCHAR}, #{rechargeCount,jdbcType=INTEGER}, #{rechargeAvg,jdbcType=VARCHAR}, 
       #{createTime,jdbcType=TIMESTAMP})
     on duplicate key update 
     id = #{id,jdbcType=INTEGER}, 
@@ -731,7 +731,7 @@
     static_date = #{staticDate,jdbcType=VARCHAR}, 
     active_count = #{activeCount,jdbcType=INTEGER}, 
     recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER}, 
-    recharge_sum = #{rechargeSum,jdbcType=INTEGER}, 
+    recharge_sum = #{rechargeSum,jdbcType=VARCHAR}, 
     recharge_count = #{rechargeCount,jdbcType=INTEGER}, 
     recharge_avg = #{rechargeAvg,jdbcType=VARCHAR}, 
     create_time = #{createTime,jdbcType=TIMESTAMP}

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

@@ -5,13 +5,13 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
     <result column="active_count" jdbcType="INTEGER" property="activeCount" />
     <result column="recharge_user_count" jdbcType="INTEGER" property="rechargeUserCount" />
-    <result column="recharge_sum" jdbcType="INTEGER" property="rechargeSum" />
+    <result column="recharge_sum" jdbcType="VARCHAR" property="rechargeSum" />
     <result column="recharge_count" jdbcType="INTEGER" property="rechargeCount" />
     <result column="recharge_avg" jdbcType="VARCHAR" property="rechargeAvg" />
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
@@ -20,7 +20,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -54,7 +54,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -88,7 +88,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     id, static_date, active_count, recharge_user_count, recharge_sum, recharge_count, 
     recharge_avg, create_time
@@ -97,7 +97,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <if test="distinct">
@@ -124,14 +124,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <if test="example != null and example.distinct">
       distinct
     </if>
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.aliasedEscapedColumnName}
         </foreach>
@@ -160,7 +160,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -171,11 +171,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.aliasedEscapedColumnName}
         </foreach>
@@ -191,7 +191,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     delete from sun_static_order_day
     where id = #{id,jdbcType=INTEGER}
@@ -200,7 +200,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     delete from sun_static_order_day
     <if test="_parameter != null">
@@ -211,24 +211,24 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day (id, static_date, active_count, 
       recharge_user_count, recharge_sum, recharge_count, 
       recharge_avg, create_time)
     values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=INTEGER}, 
-      #{rechargeUserCount,jdbcType=INTEGER}, #{rechargeSum,jdbcType=INTEGER}, #{rechargeCount,jdbcType=INTEGER}, 
+      #{rechargeUserCount,jdbcType=INTEGER}, #{rechargeSum,jdbcType=VARCHAR}, #{rechargeCount,jdbcType=INTEGER}, 
       #{rechargeAvg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
   </insert>
   <insert id="insertSelective" parameterType="map">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach close=")" collection="selective" item="column" open="(" separator=",">
           ${column.escapedColumnName}
         </foreach>
@@ -265,7 +265,7 @@
     </choose>
     values
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach close=")" collection="selective" item="column" open="(" separator=",">
           #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -285,7 +285,7 @@
             #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            #{record.rechargeSum,jdbcType=INTEGER},
+            #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             #{record.rechargeCount,jdbcType=INTEGER},
@@ -304,7 +304,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select count(*) from sun_static_order_day
     <if test="_parameter != null">
@@ -315,12 +315,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     update sun_static_order_day
     SET
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -340,7 +340,7 @@
             recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
@@ -362,14 +362,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     update sun_static_order_day
     set id = #{record.id,jdbcType=INTEGER},
       static_date = #{record.staticDate,jdbcType=VARCHAR},
       active_count = #{record.activeCount,jdbcType=INTEGER},
       recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
-      recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+      recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
       recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
       recharge_avg = #{record.rechargeAvg,jdbcType=VARCHAR},
       create_time = #{record.createTime,jdbcType=TIMESTAMP}
@@ -381,12 +381,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     update sun_static_order_day
     SET
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -403,7 +403,7 @@
             recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
@@ -423,13 +423,13 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     update sun_static_order_day
     set static_date = #{staticDate,jdbcType=VARCHAR},
       active_count = #{activeCount,jdbcType=INTEGER},
       recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER},
-      recharge_sum = #{rechargeSum,jdbcType=INTEGER},
+      recharge_sum = #{rechargeSum,jdbcType=VARCHAR},
       recharge_count = #{rechargeCount,jdbcType=INTEGER},
       recharge_avg = #{rechargeAvg,jdbcType=VARCHAR},
       create_time = #{createTime,jdbcType=TIMESTAMP}
@@ -439,7 +439,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <include refid="Base_Column_List" />
@@ -456,11 +456,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     select
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.aliasedEscapedColumnName}
         </foreach>
@@ -482,7 +482,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day
     (id, static_date, active_count, recharge_user_count, recharge_sum, recharge_count, 
@@ -490,7 +490,7 @@
     values
     <foreach collection="list" item="item" separator=",">
       (#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.activeCount,jdbcType=INTEGER}, 
-        #{item.rechargeUserCount,jdbcType=INTEGER}, #{item.rechargeSum,jdbcType=INTEGER}, 
+        #{item.rechargeUserCount,jdbcType=INTEGER}, #{item.rechargeSum,jdbcType=VARCHAR}, 
         #{item.rechargeCount,jdbcType=INTEGER}, #{item.rechargeAvg,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}
         )
     </foreach>
@@ -499,7 +499,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day (
     <foreach collection="selective" item="column" separator=",">
@@ -523,7 +523,7 @@
           #{item.rechargeUserCount,jdbcType=INTEGER}
         </if>
         <if test="'recharge_sum'.toString() == column.value">
-          #{item.rechargeSum,jdbcType=INTEGER}
+          #{item.rechargeSum,jdbcType=VARCHAR}
         </if>
         <if test="'recharge_count'.toString() == column.value">
           #{item.rechargeCount,jdbcType=INTEGER}
@@ -542,11 +542,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach close=")" collection="selective" item="column" open="(" separator=",">
           ${column.escapedColumnName}
         </foreach>
@@ -583,7 +583,7 @@
     </choose>
     values
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach close=")" collection="selective" item="column" open="(" separator=",">
           #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -603,7 +603,7 @@
             #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            #{record.rechargeSum,jdbcType=INTEGER},
+            #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             #{record.rechargeCount,jdbcType=INTEGER},
@@ -619,7 +619,7 @@
     </choose>
     on duplicate key update 
     <choose>
-      <when test="selective != null and selective.length > 0">
+      <when test="selective != null and selective.length &gt; 0">
         <foreach collection="selective" item="column" separator=",">
           ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
         </foreach>
@@ -639,7 +639,7 @@
             recharge_user_count = #{record.rechargeUserCount,jdbcType=INTEGER},
           </if>
           <if test="record.rechargeSum != null">
-            recharge_sum = #{record.rechargeSum,jdbcType=INTEGER},
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.rechargeCount != null">
             recharge_count = #{record.rechargeCount,jdbcType=INTEGER},
@@ -658,21 +658,21 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Sun Oct 10 12:25:38 CST 2021.
+      This element was generated on Sun Oct 10 14:33:44 CST 2021.
     -->
     insert into sun_static_order_day
     (id, static_date, active_count, recharge_user_count, recharge_sum, recharge_count, 
       recharge_avg, create_time)
     values
     (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{activeCount,jdbcType=INTEGER}, 
-      #{rechargeUserCount,jdbcType=INTEGER}, #{rechargeSum,jdbcType=INTEGER}, #{rechargeCount,jdbcType=INTEGER}, 
+      #{rechargeUserCount,jdbcType=INTEGER}, #{rechargeSum,jdbcType=VARCHAR}, #{rechargeCount,jdbcType=INTEGER}, 
       #{rechargeAvg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
     on duplicate key update 
     id = #{id,jdbcType=INTEGER}, 
     static_date = #{staticDate,jdbcType=VARCHAR}, 
     active_count = #{activeCount,jdbcType=INTEGER}, 
     recharge_user_count = #{rechargeUserCount,jdbcType=INTEGER}, 
-    recharge_sum = #{rechargeSum,jdbcType=INTEGER}, 
+    recharge_sum = #{rechargeSum,jdbcType=VARCHAR}, 
     recharge_count = #{rechargeCount,jdbcType=INTEGER}, 
     recharge_avg = #{rechargeAvg,jdbcType=VARCHAR}, 
     create_time = #{createTime,jdbcType=TIMESTAMP}

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

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

+ 39 - 0
book-dao/src/main/resources/mapper/polar/SunUserActive2Mapper.xml

@@ -0,0 +1,39 @@
+<?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.SunUserActive2Mapper">
+
+  <select id="selectActiveCountByDate" resultType="java.lang.Integer">
+    select count(DISTINCT(t.openid)) as active_count FROM sun_user_active t where t.collect_date = #{date}
+  </select>
+  <select id="selectRechargeByDate" resultType="java.util.HashMap">
+    select count(DISTINCT(t.openid)) as recharge_user_count,sum(t.recharge_amount) as recharge_sum,sum(t.recharge_num) as recharge_count FROM sun_user_active t where t.collect_date = #{date} and t.recharge_num>0;
+  </select>
+  <select id="selectRechargeByDateGroupByChannel" resultType="java.util.HashMap">
+    SELECT t1.*,t2.channel_name FROM
+      (
+        SELECT
+          t.channel_id,
+          count(DISTINCT ( t.openid )) AS recharge_user_count,
+          sum( t.recharge_amount ) AS recharge_sum,
+          sum( t.recharge_num ) AS recharge_count
+        FROM
+          sun_user_active t
+        WHERE
+          t.collect_date = #{date}
+          AND t.recharge_num > 0
+        GROUP BY
+          t.channel_id
+      ) t1 left JOIN sun_channel t2 on t2.channel_id=t1.channel_id;
+  </select>
+  <select id="selectActiveCountByDateGroupByChannel" resultType="java.util.HashMap">
+    SELECT
+      t.channel_id,
+      count(DISTINCT ( t.openid )) AS active_user_count
+    FROM
+      sun_user_active t
+    WHERE
+      t.collect_date = #{date}
+    GROUP BY
+      t.channel_id;
+  </select>
+</mapper>

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

@@ -104,6 +104,17 @@ public class SunDataController extends BaseController {
         return Result.success(sunDataService.pageUserCollect(sunVO));
     }
 
+    /**
+     * 统计某天的订单
+     * @param date
+     * @return
+     */
+    @GetMapping("/orderStaticByDate-F891088E-7A75-4F4B-AEB4-A9D1697F5AD3")
+    public Result<PageResult<SunUserCollect>> orderStaticByDate(String date) {
+        sunDataService.orderStaticDate(date);
+        return Result.success();
+    }
+
 
     public static void main(String[] args) {
         System.out.println(UUID.randomUUID().toString());

+ 6 - 0
book-server/src/main/java/com/book/server/service/SunDataService.java

@@ -32,4 +32,10 @@ public interface SunDataService {
 
     PageResult<SunUserCollect> pageUserCollect(SunVO sunVO);
 
+    /**
+     * 统计指定日期的订单
+     * @param date yyyy-MM-dd
+     */
+    void orderStaticDate(String date);
+
 }

+ 84 - 3
book-server/src/main/java/com/book/server/service/impl/SunDataServiceImpl.java

@@ -55,6 +55,8 @@ public class SunDataServiceImpl implements SunDataService {
     private SunUserMapper sunUserMapper;
     @Autowired
     private SunUserActiveMapper sunUserActiveMapper;
+    @Autowired
+    private SunUserActive2Mapper sunUserActive2Mapper;
 
     @Override
     public Result requestData(SunRequest request, SunTypeEnum sunTypeEnum) {
@@ -181,7 +183,7 @@ public class SunDataServiceImpl implements SunDataService {
                 Gson gson = gsonBuilder.setDateFormat("yyyy-MM-dd HH:mm:ss").create();
                 SunUserActive sunUserActive = gson.fromJson(line, SunUserActive.class);
                 sunUserActive.setInsertTime(new Date());
-                sunUserActive.setCollectDate(TimeUtil.dateFromStr(request.getSearch_date(),TimeUtil.YYYYMMDD1));
+                sunUserActive.setCollectDate(TimeUtil.dateFromStr(request.getSearch_date(), TimeUtil.YYYYMMDD1));
 
                 result.add(sunUserActive);
             } catch (Exception e) {
@@ -192,13 +194,13 @@ public class SunDataServiceImpl implements SunDataService {
 
         }
         try {
-            if (result.size()!=0){
+            if (result.size() != 0) {
                 SunUserActiveExample example = SunUserActiveExample.newAndCreateCriteria()
                         .andCollectDateEqualTo(TimeUtil.dateFromStr(request.getSearch_date(), TimeUtil.YYYYMMDD1)).example();
                 sunUserActiveMapper.deleteByExample(example);
                 sunUserActiveMapper.batchInsert(result);
             }
-        }catch (Exception e){
+        } catch (Exception e) {
             e.printStackTrace();
             log.error(e.getMessage());
         }
@@ -276,6 +278,85 @@ public class SunDataServiceImpl implements SunDataService {
         return new PageResult<>(l, sunUserCollectMapper.selectByExample(example));
     }
 
+    @Autowired
+    private SunStaticOrderDayMapper sunStaticOrderDayMapper;
+    @Autowired
+    private SunStaticOrderDayChannelMapper sunStaticOrderDayChannelMapper;
+
+    private int getIntFromDb(Object obj) {
+        return Integer.parseInt(String.valueOf(obj));
+    }
+    private float getFloatFromDb(Object obj) {
+        return Float.parseFloat(String.valueOf(obj));
+    }
+
+    @Override
+    public void orderStaticDate(String date) {
+        /*
+         * 清除指定日期的统计,因为可能重新计算
+         */
+        sunStaticOrderDayMapper.deleteByExample(SunStaticOrderDayExample.newAndCreateCriteria().andStaticDateEqualTo(date).example());
+        sunStaticOrderDayChannelMapper.deleteByExample(SunStaticOrderDayChannelExample.newAndCreateCriteria().andStaticDateEqualTo(date).example());
+
+        /*
+        开始统计
+         */
+        // 先不分渠道
+        int i = sunUserActive2Mapper.selectActiveCountByDate(date);
+        if (i <= 0) {
+            return;
+        }
+        HashMap<String, String> map = sunUserActive2Mapper.selectRechargeByDate(date);
+        int recharge_count = getIntFromDb(map.get("recharge_count"));
+        float recharge_sum = getFloatFromDb(map.get("recharge_sum"));
+        float avg = 0;
+        if (recharge_count > 0) {
+            avg = recharge_sum / recharge_count;
+        }
+        SunStaticOrderDay staticOrderDay = SunStaticOrderDay.builder()
+                .staticDate(date)
+                .activeCount(i)
+                .rechargeUserCount(getIntFromDb(map.get("recharge_user_count")))
+                .rechargeCount(recharge_count)
+                .rechargeSum(String.valueOf(recharge_sum))
+                .rechargeAvg(String.format("%.2f", avg))
+                .createTime(TimeUtil.getCurrentTimestamp())
+                .build();
+        sunStaticOrderDayMapper.insert(staticOrderDay);
+        /*
+        分渠道统计
+         */
+        HashMap<String, Integer> activeMap = new HashMap<>();
+        List<HashMap<String, String>> activeList = sunUserActive2Mapper.selectActiveCountByDateGroupByChannel(date);
+        for (HashMap<String, String> hashMap : activeList) {
+            activeMap.put(hashMap.get("channel_id"), getIntFromDb(hashMap.get("active_user_count")));
+        }
+
+        List<HashMap<String, String>> recharges = sunUserActive2Mapper.selectRechargeByDateGroupByChannel(date);
+        ArrayList<SunStaticOrderDayChannel> sunStaticOrderDayChannels = new ArrayList<>();
+        for (HashMap<String, String> recharge : recharges) {
+            int recharge_count1 = getIntFromDb(map.get("recharge_count"));
+            float recharge_sum1 = getFloatFromDb(map.get("recharge_sum"));
+            float avg1 = 0;
+            if (recharge_count > 0) {
+                avg1 = recharge_sum / recharge_count;
+            }
+            SunStaticOrderDayChannel dayChannel = SunStaticOrderDayChannel.builder()
+                    .staticDate(date)
+                    .channelId(recharge.get("channel_id"))
+                    .channelName(recharge.get("channel_name"))
+                    .activeCount(activeMap.getOrDefault(recharge.get("channel_id"),0))
+                    .rechargeUserCount(getIntFromDb(map.get("recharge_user_count")))
+                    .rechargeSum(String.valueOf(recharge_sum1))
+                    .rechargeCount(recharge_count1)
+                    .rechargeAvg(String.format("%.2f", avg1))
+                    .createTime(TimeUtil.getCurrentTimestamp())
+                    .build();
+            sunStaticOrderDayChannels.add(dayChannel);
+        }
+        sunStaticOrderDayChannelMapper.batchInsert(sunStaticOrderDayChannels);
+    }
+
     private void handleOrder(List<String> list, Integer taskId) {
         SunRequest request = taskMap.get(taskId);
         List<SunOrder> result = new ArrayList<>();

+ 121 - 106
book-server/src/main/java/com/book/server/task/SunDataTask.java

@@ -1,106 +1,121 @@
-package com.book.server.task;
-
-import com.book.dao.utils.TimeUtil;
-import com.book.server.config.SunTypeEnum;
-import com.book.server.service.SunDataService;
-import com.book.server.vo.SunRequest;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.scheduling.annotation.EnableScheduling;
-import org.springframework.scheduling.annotation.Scheduled;
-import org.springframework.stereotype.Component;
-
-import java.util.Calendar;
-import java.util.Date;
-
-/**
- * created in 2021/9/28
- * Project: book-store
- *
- * @author win7
- */
-@Component
-@EnableScheduling
-@Slf4j
-public class SunDataTask {
-    public static final Integer FIX_DELAY_HOUR = 1;
-
-    @Autowired
-    private SunDataService sunDataService;
-
-    @Scheduled(cron = "0 0 0/1 * * ?")
-    private void getData() {
-        log.info("定时拉取sun数据");
-        String timeFrom = TimeUtil.getDateStrAfter(-FIX_DELAY_HOUR, Calendar.HOUR_OF_DAY, TimeUtil.YYYY_M_DD_HH_MM_SS);
-        String timeNow = TimeUtil.getCurrentDate(TimeUtil.YYYY_M_DD_HH_MM_SS);
-        String dateNow = TimeUtil.getCurrentDate(TimeUtil.YYYYMMDD1);
-
-        String channelId = "";
-
-
-        for (SunTypeEnum sunTypeEnum : SunTypeEnum.values()) {
-            SunRequest request = new SunRequest();
-
-            switch (sunTypeEnum) {
-                case user_collect:
-
-                case user:
-                    request.setStart_time(timeFrom);
-                    request.setEnd_time(timeNow);
-                    sunDataService.requestData(request, sunTypeEnum);
-
-                    break;
-                case user_active:
-                    request.setSearch_date(dateNow);
-                    sunDataService.requestData(request, sunTypeEnum);
-
-                    break;
-
-                case order:
-                    request.setStart_time(timeFrom);
-                    request.setEnd_time(timeNow);
-                    request.setIs_finish("1");
-                    sunDataService.requestData(request, sunTypeEnum);
-                    break;
-
-                default:
-                    break;
-
-            }
-
-
-        }
-    }
-
-
-
-    @Scheduled(cron = "0 30 0 * * ?")
-    private void getYesterdayData() {
-        log.info("定时拉取sun昨日数据");
-
-        Date yesterday = TimeUtil.getYesterday(-1);
-        String date = TimeUtil.dateToStr(yesterday,TimeUtil.YYYYMMDD1);
-
-
-        for (SunTypeEnum sunTypeEnum : SunTypeEnum.values()) {
-            SunRequest request = new SunRequest();
-
-            switch (sunTypeEnum) {
-
-                case user_active:
-                    request.setSearch_date(date);
-                    sunDataService.requestData(request, sunTypeEnum);
-
-                    break;
-
-
-
-                default:
-                    break;
-
-            }
-
-
-        }
-    }
-}
+package com.book.server.task;
+
+import com.book.dao.utils.TimeUtil;
+import com.book.server.config.SunTypeEnum;
+import com.book.server.service.SunDataService;
+import com.book.server.vo.SunRequest;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.EnableScheduling;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+import java.util.Calendar;
+import java.util.Date;
+
+/**
+ * created in 2021/9/28
+ * Project: book-store
+ *
+ * @author win7
+ */
+@Component
+@EnableScheduling
+@Slf4j
+public class SunDataTask {
+    public static final Integer FIX_DELAY_HOUR = 1;
+
+    @Autowired
+    private SunDataService sunDataService;
+
+    @Scheduled(cron = "0 0 0/1 * * ?")
+    private void getData() {
+        log.info("定时拉取sun数据");
+        String timeFrom = TimeUtil.getDateStrAfter(-FIX_DELAY_HOUR, Calendar.HOUR_OF_DAY, TimeUtil.YYYY_M_DD_HH_MM_SS);
+        String timeNow = TimeUtil.getCurrentDate(TimeUtil.YYYY_M_DD_HH_MM_SS);
+        String dateNow = TimeUtil.getCurrentDate(TimeUtil.YYYYMMDD1);
+
+        String channelId = "";
+
+
+        for (SunTypeEnum sunTypeEnum : SunTypeEnum.values()) {
+            SunRequest request = new SunRequest();
+
+            switch (sunTypeEnum) {
+                case user_collect:
+
+                case user:
+                    request.setStart_time(timeFrom);
+                    request.setEnd_time(timeNow);
+                    sunDataService.requestData(request, sunTypeEnum);
+
+                    break;
+                case user_active:
+                    request.setSearch_date(dateNow);
+                    sunDataService.requestData(request, sunTypeEnum);
+
+                    break;
+
+                case order:
+                    request.setStart_time(timeFrom);
+                    request.setEnd_time(timeNow);
+                    request.setIs_finish("1");
+                    sunDataService.requestData(request, sunTypeEnum);
+                    break;
+
+                default:
+                    break;
+
+            }
+
+
+        }
+    }
+
+
+
+    @Scheduled(cron = "0 30 0 * * ?")
+    private void getYesterdayData() {
+        log.info("定时拉取sun昨日数据");
+
+        Date yesterday = TimeUtil.getYesterday(-1);
+        String date = TimeUtil.dateToStr(yesterday,TimeUtil.YYYYMMDD1);
+
+
+        for (SunTypeEnum sunTypeEnum : SunTypeEnum.values()) {
+            SunRequest request = new SunRequest();
+
+            switch (sunTypeEnum) {
+
+                case user_active:
+                    request.setSearch_date(date);
+                    sunDataService.requestData(request, sunTypeEnum);
+
+                    break;
+
+
+
+                default:
+                    break;
+
+            }
+
+
+        }
+    }
+
+    /**
+     * 订单昨日统计
+     * 凌晨 1 点 15 分
+     */
+    @Scheduled(cron = "1 15 0 * * ?")
+    public void OrderStaticYesterday() {
+        String yesterdayStr = TimeUtil.getYesterdayStr();
+        sunDataService.orderStaticDate(yesterdayStr);
+    }
+
+    public static void main(String[] args) {
+        System.out.println(TimeUtil.getTodayStr());
+        System.out.println(TimeUtil.getYesterdayStr());
+    }
+}