Browse Source

第一版,还没调试成功。

tianyunperfect 3 years ago
parent
commit
fc7edcbd33
25 changed files with 1692 additions and 913 deletions
  1. 53 53
      book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticIncome.java
  2. 59 59
      book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticIncomeChannel.java
  3. 63 40
      book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticIncomeHundred.java
  4. 65 42
      book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticIncomeHundredChannel.java
  5. 98 0
      book-dao/src/main/java/com/book/dao/polardb/mapper/Sun2Mapper.java
  6. 19 19
      book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticIncomeChannelMapper.java
  7. 19 19
      book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticIncomeHundredChannelMapper.java
  8. 19 19
      book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticIncomeHundredMapper.java
  9. 19 19
      book-dao/src/main/java/com/book/dao/polardb/mapper/SunStaticIncomeMapper.java
  10. 0 19
      book-dao/src/main/java/com/book/dao/polardb/mapper/SunUser2Mapper.java
  11. 80 80
      book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticIncomeChannelExample.java
  12. 80 80
      book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticIncomeExample.java
  13. 180 80
      book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticIncomeHundredChannelExample.java
  14. 180 80
      book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticIncomeHundredExample.java
  15. 35 1
      book-dao/src/main/java/com/book/dao/utils/TimeUtil.java
  16. 120 0
      book-dao/src/main/resources/mapper/polar/Sun2Mapper.xml
  17. 60 60
      book-dao/src/main/resources/mapper/polar/SunStaticIncomeChannelMapper.xml
  18. 95 63
      book-dao/src/main/resources/mapper/polar/SunStaticIncomeHundredChannelMapper.xml
  19. 95 67
      book-dao/src/main/resources/mapper/polar/SunStaticIncomeHundredMapper.xml
  20. 61 61
      book-dao/src/main/resources/mapper/polar/SunStaticIncomeMapper.xml
  21. 0 27
      book-dao/src/main/resources/mapper/polar/SunUser2Mapper.xml
  22. 43 1
      book-server/src/main/java/com/book/server/controller/SunDataController.java
  23. 23 0
      book-server/src/main/java/com/book/server/service/SunDataService.java
  24. 217 15
      book-server/src/main/java/com/book/server/service/impl/SunDataServiceImpl.java
  25. 9 9
      book-server/src/main/java/com/book/server/task/SunDataTask.java

+ 53 - 53
book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticIncome.java

@@ -13,7 +13,7 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.id
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer id;
 
@@ -22,7 +22,7 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.static_date
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String staticDate;
 
@@ -31,7 +31,7 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.new_user_count
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer newUserCount;
 
@@ -40,25 +40,25 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.new_follow_count
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer newFollowCount;
 
     /**
      *
      * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column sun_static_income.new_recharge_count
+     * This field corresponds to the database column sun_static_income.new_recharge_sum
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
-    private String newRechargeCount;
+    private String newRechargeSum;
 
     /**
      *
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.all_spend
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String allSpend;
 
@@ -67,7 +67,7 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.first_roi
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String firstRoi;
 
@@ -76,7 +76,7 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.all_recharge
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String allRecharge;
 
@@ -85,7 +85,7 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.all_roi
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String allRoi;
 
@@ -94,7 +94,7 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.insert_time
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Date insertTime;
 
@@ -103,7 +103,7 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income.update_time
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Date updateTime;
 
@@ -111,7 +111,7 @@ public class SunStaticIncome implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private static final long serialVersionUID = 1L;
 
@@ -119,7 +119,7 @@ public class SunStaticIncome implements Serializable {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static SunStaticIncome.Builder builder() {
         return new SunStaticIncome.Builder();
@@ -129,14 +129,14 @@ public class SunStaticIncome implements Serializable {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static class Builder {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private SunStaticIncome obj;
 
@@ -144,7 +144,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder() {
             this.obj = new SunStaticIncome();
@@ -156,7 +156,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param id the value for sun_static_income.id
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder id(Integer id) {
             obj.setId(id);
@@ -169,7 +169,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param staticDate the value for sun_static_income.static_date
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder staticDate(String staticDate) {
             obj.setStaticDate(staticDate);
@@ -182,7 +182,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param newUserCount the value for sun_static_income.new_user_count
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder newUserCount(Integer newUserCount) {
             obj.setNewUserCount(newUserCount);
@@ -195,7 +195,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param newFollowCount the value for sun_static_income.new_follow_count
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder newFollowCount(Integer newFollowCount) {
             obj.setNewFollowCount(newFollowCount);
@@ -204,14 +204,14 @@ public class SunStaticIncome implements Serializable {
 
         /**
          * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column sun_static_income.new_recharge_count
+         * This method sets the value of the database column sun_static_income.new_recharge_sum
          *
-         * @param newRechargeCount the value for sun_static_income.new_recharge_count
+         * @param newRechargeSum the value for sun_static_income.new_recharge_sum
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
-        public Builder newRechargeCount(String newRechargeCount) {
-            obj.setNewRechargeCount(newRechargeCount);
+        public Builder newRechargeSum(String newRechargeSum) {
+            obj.setNewRechargeSum(newRechargeSum);
             return this;
         }
 
@@ -221,7 +221,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param allSpend the value for sun_static_income.all_spend
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder allSpend(String allSpend) {
             obj.setAllSpend(allSpend);
@@ -234,7 +234,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param firstRoi the value for sun_static_income.first_roi
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder firstRoi(String firstRoi) {
             obj.setFirstRoi(firstRoi);
@@ -247,7 +247,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param allRecharge the value for sun_static_income.all_recharge
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder allRecharge(String allRecharge) {
             obj.setAllRecharge(allRecharge);
@@ -260,7 +260,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param allRoi the value for sun_static_income.all_roi
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder allRoi(String allRoi) {
             obj.setAllRoi(allRoi);
@@ -273,7 +273,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param insertTime the value for sun_static_income.insert_time
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder insertTime(Date insertTime) {
             obj.setInsertTime(insertTime);
@@ -286,7 +286,7 @@ public class SunStaticIncome implements Serializable {
          *
          * @param updateTime the value for sun_static_income.update_time
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder updateTime(Date updateTime) {
             obj.setUpdateTime(updateTime);
@@ -297,7 +297,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public SunStaticIncome build() {
             return this.obj;
@@ -308,14 +308,14 @@ public class SunStaticIncome implements Serializable {
      * This enum was generated by MyBatis Generator.
      * This enum corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public enum Column {
         id("id", "id", "INTEGER", false),
         staticDate("static_date", "staticDate", "VARCHAR", false),
         newUserCount("new_user_count", "newUserCount", "INTEGER", false),
         newFollowCount("new_follow_count", "newFollowCount", "INTEGER", false),
-        newRechargeCount("new_recharge_count", "newRechargeCount", "VARCHAR", false),
+        newRechargeSum("new_recharge_sum", "newRechargeSum", "VARCHAR", false),
         allSpend("all_spend", "allSpend", "VARCHAR", false),
         firstRoi("first_roi", "firstRoi", "VARCHAR", false),
         allRecharge("all_recharge", "allRecharge", "VARCHAR", false),
@@ -327,7 +327,7 @@ public class SunStaticIncome implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private static final String BEGINNING_DELIMITER = "\"";
 
@@ -335,7 +335,7 @@ public class SunStaticIncome implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private static final String ENDING_DELIMITER = "\"";
 
@@ -343,7 +343,7 @@ public class SunStaticIncome implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String column;
 
@@ -351,7 +351,7 @@ public class SunStaticIncome implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final boolean isColumnNameDelimited;
 
@@ -359,7 +359,7 @@ public class SunStaticIncome implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String javaProperty;
 
@@ -367,7 +367,7 @@ public class SunStaticIncome implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String jdbcType;
 
@@ -375,7 +375,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String value() {
             return this.column;
@@ -385,7 +385,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getValue() {
             return this.column;
@@ -395,7 +395,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getJavaProperty() {
             return this.javaProperty;
@@ -405,7 +405,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getJdbcType() {
             return this.jdbcType;
@@ -415,7 +415,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
             this.column = column;
@@ -428,7 +428,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String desc() {
             return this.getEscapedColumnName() + " DESC";
@@ -438,7 +438,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String asc() {
             return this.getEscapedColumnName() + " ASC";
@@ -448,7 +448,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public static Column[] excludes(Column ... excludes) {
             ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
@@ -462,7 +462,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public static Column[] all() {
             return Column.values();
@@ -472,7 +472,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getEscapedColumnName() {
             if (this.isColumnNameDelimited) {
@@ -486,7 +486,7 @@ public class SunStaticIncome implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getAliasedEscapedColumnName() {
             return this.getEscapedColumnName();

+ 59 - 59
book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticIncomeChannel.java

@@ -13,7 +13,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.id
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer id;
 
@@ -22,7 +22,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.static_date
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String staticDate;
 
@@ -31,7 +31,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.channel_id
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String channelId;
 
@@ -40,7 +40,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.channel_name
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String channelName;
 
@@ -49,7 +49,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.book_name
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String bookName;
 
@@ -58,7 +58,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.new_user_count
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer newUserCount;
 
@@ -67,25 +67,25 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.new_follow_count
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer newFollowCount;
 
     /**
      *
      * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column sun_static_income_channel.new_recharge_count
+     * This field corresponds to the database column sun_static_income_channel.new_recharge_sum
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
-    private String newRechargeCount;
+    private String newRechargeSum;
 
     /**
      *
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.all_spend
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String allSpend;
 
@@ -94,7 +94,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.first_roi
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String firstRoi;
 
@@ -103,7 +103,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.all_recharge
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String allRecharge;
 
@@ -112,7 +112,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.all_roi
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String allRoi;
 
@@ -121,7 +121,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.insert_time
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Date insertTime;
 
@@ -130,7 +130,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_channel.update_time
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Date updateTime;
 
@@ -138,7 +138,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private static final long serialVersionUID = 1L;
 
@@ -146,7 +146,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static SunStaticIncomeChannel.Builder builder() {
         return new SunStaticIncomeChannel.Builder();
@@ -156,14 +156,14 @@ public class SunStaticIncomeChannel implements Serializable {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static class Builder {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private SunStaticIncomeChannel obj;
 
@@ -171,7 +171,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder() {
             this.obj = new SunStaticIncomeChannel();
@@ -183,7 +183,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param id the value for sun_static_income_channel.id
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder id(Integer id) {
             obj.setId(id);
@@ -196,7 +196,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param staticDate the value for sun_static_income_channel.static_date
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder staticDate(String staticDate) {
             obj.setStaticDate(staticDate);
@@ -209,7 +209,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param channelId the value for sun_static_income_channel.channel_id
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder channelId(String channelId) {
             obj.setChannelId(channelId);
@@ -222,7 +222,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param channelName the value for sun_static_income_channel.channel_name
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder channelName(String channelName) {
             obj.setChannelName(channelName);
@@ -235,7 +235,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param bookName the value for sun_static_income_channel.book_name
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder bookName(String bookName) {
             obj.setBookName(bookName);
@@ -248,7 +248,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param newUserCount the value for sun_static_income_channel.new_user_count
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder newUserCount(Integer newUserCount) {
             obj.setNewUserCount(newUserCount);
@@ -261,7 +261,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param newFollowCount the value for sun_static_income_channel.new_follow_count
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder newFollowCount(Integer newFollowCount) {
             obj.setNewFollowCount(newFollowCount);
@@ -270,14 +270,14 @@ public class SunStaticIncomeChannel implements Serializable {
 
         /**
          * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column sun_static_income_channel.new_recharge_count
+         * This method sets the value of the database column sun_static_income_channel.new_recharge_sum
          *
-         * @param newRechargeCount the value for sun_static_income_channel.new_recharge_count
+         * @param newRechargeSum the value for sun_static_income_channel.new_recharge_sum
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
-        public Builder newRechargeCount(String newRechargeCount) {
-            obj.setNewRechargeCount(newRechargeCount);
+        public Builder newRechargeSum(String newRechargeSum) {
+            obj.setNewRechargeSum(newRechargeSum);
             return this;
         }
 
@@ -287,7 +287,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param allSpend the value for sun_static_income_channel.all_spend
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder allSpend(String allSpend) {
             obj.setAllSpend(allSpend);
@@ -300,7 +300,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param firstRoi the value for sun_static_income_channel.first_roi
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder firstRoi(String firstRoi) {
             obj.setFirstRoi(firstRoi);
@@ -313,7 +313,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param allRecharge the value for sun_static_income_channel.all_recharge
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder allRecharge(String allRecharge) {
             obj.setAllRecharge(allRecharge);
@@ -326,7 +326,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param allRoi the value for sun_static_income_channel.all_roi
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder allRoi(String allRoi) {
             obj.setAllRoi(allRoi);
@@ -339,7 +339,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param insertTime the value for sun_static_income_channel.insert_time
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder insertTime(Date insertTime) {
             obj.setInsertTime(insertTime);
@@ -352,7 +352,7 @@ public class SunStaticIncomeChannel implements Serializable {
          *
          * @param updateTime the value for sun_static_income_channel.update_time
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder updateTime(Date updateTime) {
             obj.setUpdateTime(updateTime);
@@ -363,7 +363,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public SunStaticIncomeChannel build() {
             return this.obj;
@@ -374,7 +374,7 @@ public class SunStaticIncomeChannel implements Serializable {
      * This enum was generated by MyBatis Generator.
      * This enum corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public enum Column {
         id("id", "id", "INTEGER", false),
@@ -384,7 +384,7 @@ public class SunStaticIncomeChannel implements Serializable {
         bookName("book_name", "bookName", "VARCHAR", false),
         newUserCount("new_user_count", "newUserCount", "INTEGER", false),
         newFollowCount("new_follow_count", "newFollowCount", "INTEGER", false),
-        newRechargeCount("new_recharge_count", "newRechargeCount", "VARCHAR", false),
+        newRechargeSum("new_recharge_sum", "newRechargeSum", "VARCHAR", false),
         allSpend("all_spend", "allSpend", "VARCHAR", false),
         firstRoi("first_roi", "firstRoi", "VARCHAR", false),
         allRecharge("all_recharge", "allRecharge", "VARCHAR", false),
@@ -396,7 +396,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private static final String BEGINNING_DELIMITER = "\"";
 
@@ -404,7 +404,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private static final String ENDING_DELIMITER = "\"";
 
@@ -412,7 +412,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String column;
 
@@ -420,7 +420,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final boolean isColumnNameDelimited;
 
@@ -428,7 +428,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String javaProperty;
 
@@ -436,7 +436,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String jdbcType;
 
@@ -444,7 +444,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String value() {
             return this.column;
@@ -454,7 +454,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getValue() {
             return this.column;
@@ -464,7 +464,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getJavaProperty() {
             return this.javaProperty;
@@ -474,7 +474,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getJdbcType() {
             return this.jdbcType;
@@ -484,7 +484,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
             this.column = column;
@@ -497,7 +497,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String desc() {
             return this.getEscapedColumnName() + " DESC";
@@ -507,7 +507,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String asc() {
             return this.getEscapedColumnName() + " ASC";
@@ -517,7 +517,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public static Column[] excludes(Column ... excludes) {
             ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
@@ -531,7 +531,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public static Column[] all() {
             return Column.values();
@@ -541,7 +541,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getEscapedColumnName() {
             if (this.isColumnNameDelimited) {
@@ -555,7 +555,7 @@ public class SunStaticIncomeChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getAliasedEscapedColumnName() {
             return this.getEscapedColumnName();

+ 63 - 40
book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticIncomeHundred.java

@@ -12,7 +12,7 @@ public class SunStaticIncomeHundred implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_hundred.id
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer id;
 
@@ -21,33 +21,42 @@ public class SunStaticIncomeHundred implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_hundred.static_date
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String staticDate;
 
     /**
      *
      * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column sun_static_income_hundred.recharge_count
+     * This field corresponds to the database column sun_static_income_hundred.recharge_sum
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
-    private String rechargeCount;
+    private String rechargeSum;
 
     /**
      *
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_hundred.day_num
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer dayNum;
 
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_income_hundred.insert_date
+     *
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
+     */
+    private String insertDate;
+
     /**
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private static final long serialVersionUID = 1L;
 
@@ -55,7 +64,7 @@ public class SunStaticIncomeHundred implements Serializable {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static SunStaticIncomeHundred.Builder builder() {
         return new SunStaticIncomeHundred.Builder();
@@ -65,14 +74,14 @@ public class SunStaticIncomeHundred implements Serializable {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static class Builder {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private SunStaticIncomeHundred obj;
 
@@ -80,7 +89,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder() {
             this.obj = new SunStaticIncomeHundred();
@@ -92,7 +101,7 @@ public class SunStaticIncomeHundred implements Serializable {
          *
          * @param id the value for sun_static_income_hundred.id
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder id(Integer id) {
             obj.setId(id);
@@ -105,7 +114,7 @@ public class SunStaticIncomeHundred implements Serializable {
          *
          * @param staticDate the value for sun_static_income_hundred.static_date
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder staticDate(String staticDate) {
             obj.setStaticDate(staticDate);
@@ -114,14 +123,14 @@ public class SunStaticIncomeHundred implements Serializable {
 
         /**
          * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column sun_static_income_hundred.recharge_count
+         * This method sets the value of the database column sun_static_income_hundred.recharge_sum
          *
-         * @param rechargeCount the value for sun_static_income_hundred.recharge_count
+         * @param rechargeSum the value for sun_static_income_hundred.recharge_sum
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
-        public Builder rechargeCount(String rechargeCount) {
-            obj.setRechargeCount(rechargeCount);
+        public Builder rechargeSum(String rechargeSum) {
+            obj.setRechargeSum(rechargeSum);
             return this;
         }
 
@@ -131,18 +140,31 @@ public class SunStaticIncomeHundred implements Serializable {
          *
          * @param dayNum the value for sun_static_income_hundred.day_num
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder dayNum(Integer dayNum) {
             obj.setDayNum(dayNum);
             return this;
         }
 
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_income_hundred.insert_date
+         *
+         * @param insertDate the value for sun_static_income_hundred.insert_date
+         *
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
+         */
+        public Builder insertDate(String insertDate) {
+            obj.setInsertDate(insertDate);
+            return this;
+        }
+
         /**
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public SunStaticIncomeHundred build() {
             return this.obj;
@@ -153,19 +175,20 @@ public class SunStaticIncomeHundred implements Serializable {
      * This enum was generated by MyBatis Generator.
      * This enum corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public enum Column {
         id("id", "id", "INTEGER", false),
         staticDate("static_date", "staticDate", "VARCHAR", false),
-        rechargeCount("recharge_count", "rechargeCount", "VARCHAR", false),
-        dayNum("day_num", "dayNum", "INTEGER", false);
+        rechargeSum("recharge_sum", "rechargeSum", "VARCHAR", false),
+        dayNum("day_num", "dayNum", "INTEGER", false),
+        insertDate("insert_date", "insertDate", "VARCHAR", false);
 
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private static final String BEGINNING_DELIMITER = "\"";
 
@@ -173,7 +196,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private static final String ENDING_DELIMITER = "\"";
 
@@ -181,7 +204,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String column;
 
@@ -189,7 +212,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final boolean isColumnNameDelimited;
 
@@ -197,7 +220,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String javaProperty;
 
@@ -205,7 +228,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String jdbcType;
 
@@ -213,7 +236,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String value() {
             return this.column;
@@ -223,7 +246,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getValue() {
             return this.column;
@@ -233,7 +256,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getJavaProperty() {
             return this.javaProperty;
@@ -243,7 +266,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getJdbcType() {
             return this.jdbcType;
@@ -253,7 +276,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
             this.column = column;
@@ -266,7 +289,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String desc() {
             return this.getEscapedColumnName() + " DESC";
@@ -276,7 +299,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String asc() {
             return this.getEscapedColumnName() + " ASC";
@@ -286,7 +309,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public static Column[] excludes(Column ... excludes) {
             ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
@@ -300,7 +323,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public static Column[] all() {
             return Column.values();
@@ -310,7 +333,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getEscapedColumnName() {
             if (this.isColumnNameDelimited) {
@@ -324,7 +347,7 @@ public class SunStaticIncomeHundred implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getAliasedEscapedColumnName() {
             return this.getEscapedColumnName();

+ 65 - 42
book-dao/src/main/java/com/book/dao/polardb/entity/SunStaticIncomeHundredChannel.java

@@ -12,7 +12,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_hundred_channel.id
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer id;
 
@@ -21,7 +21,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_hundred_channel.static_date
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String staticDate;
 
@@ -30,33 +30,42 @@ public class SunStaticIncomeHundredChannel implements Serializable {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_hundred_channel.channel_id
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private String channelId;
 
     /**
      *
      * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column sun_static_income_hundred_channel.recharge_count
+     * This field corresponds to the database column sun_static_income_hundred_channel.recharge_sum
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
-    private String rechargeCount;
+    private String rechargeSum;
 
     /**
      *
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database column sun_static_income_hundred_channel.day_num
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private Integer dayNum;
 
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column sun_static_income_hundred_channel.insert_date
+     *
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
+     */
+    private String insertDate;
+
     /**
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     private static final long serialVersionUID = 1L;
 
@@ -64,7 +73,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static SunStaticIncomeHundredChannel.Builder builder() {
         return new SunStaticIncomeHundredChannel.Builder();
@@ -74,14 +83,14 @@ public class SunStaticIncomeHundredChannel implements Serializable {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static class Builder {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private SunStaticIncomeHundredChannel obj;
 
@@ -89,7 +98,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder() {
             this.obj = new SunStaticIncomeHundredChannel();
@@ -101,7 +110,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          *
          * @param id the value for sun_static_income_hundred_channel.id
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder id(Integer id) {
             obj.setId(id);
@@ -114,7 +123,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          *
          * @param staticDate the value for sun_static_income_hundred_channel.static_date
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder staticDate(String staticDate) {
             obj.setStaticDate(staticDate);
@@ -127,7 +136,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          *
          * @param channelId the value for sun_static_income_hundred_channel.channel_id
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder channelId(String channelId) {
             obj.setChannelId(channelId);
@@ -136,14 +145,14 @@ public class SunStaticIncomeHundredChannel implements Serializable {
 
         /**
          * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column sun_static_income_hundred_channel.recharge_count
+         * This method sets the value of the database column sun_static_income_hundred_channel.recharge_sum
          *
-         * @param rechargeCount the value for sun_static_income_hundred_channel.recharge_count
+         * @param rechargeSum the value for sun_static_income_hundred_channel.recharge_sum
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
-        public Builder rechargeCount(String rechargeCount) {
-            obj.setRechargeCount(rechargeCount);
+        public Builder rechargeSum(String rechargeSum) {
+            obj.setRechargeSum(rechargeSum);
             return this;
         }
 
@@ -153,18 +162,31 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          *
          * @param dayNum the value for sun_static_income_hundred_channel.day_num
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Builder dayNum(Integer dayNum) {
             obj.setDayNum(dayNum);
             return this;
         }
 
+        /**
+         * This method was generated by MyBatis Generator.
+         * This method sets the value of the database column sun_static_income_hundred_channel.insert_date
+         *
+         * @param insertDate the value for sun_static_income_hundred_channel.insert_date
+         *
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
+         */
+        public Builder insertDate(String insertDate) {
+            obj.setInsertDate(insertDate);
+            return this;
+        }
+
         /**
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public SunStaticIncomeHundredChannel build() {
             return this.obj;
@@ -175,20 +197,21 @@ public class SunStaticIncomeHundredChannel implements Serializable {
      * This enum was generated by MyBatis Generator.
      * This enum corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public enum Column {
         id("id", "id", "INTEGER", false),
         staticDate("static_date", "staticDate", "VARCHAR", false),
         channelId("channel_id", "channelId", "VARCHAR", false),
-        rechargeCount("recharge_count", "rechargeCount", "VARCHAR", false),
-        dayNum("day_num", "dayNum", "INTEGER", false);
+        rechargeSum("recharge_sum", "rechargeSum", "VARCHAR", false),
+        dayNum("day_num", "dayNum", "INTEGER", false),
+        insertDate("insert_date", "insertDate", "VARCHAR", false);
 
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private static final String BEGINNING_DELIMITER = "\"";
 
@@ -196,7 +219,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private static final String ENDING_DELIMITER = "\"";
 
@@ -204,7 +227,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String column;
 
@@ -212,7 +235,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final boolean isColumnNameDelimited;
 
@@ -220,7 +243,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String javaProperty;
 
@@ -228,7 +251,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private final String jdbcType;
 
@@ -236,7 +259,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String value() {
             return this.column;
@@ -246,7 +269,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getValue() {
             return this.column;
@@ -256,7 +279,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getJavaProperty() {
             return this.javaProperty;
@@ -266,7 +289,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getJdbcType() {
             return this.jdbcType;
@@ -276,7 +299,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
             this.column = column;
@@ -289,7 +312,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String desc() {
             return this.getEscapedColumnName() + " DESC";
@@ -299,7 +322,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String asc() {
             return this.getEscapedColumnName() + " ASC";
@@ -309,7 +332,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public static Column[] excludes(Column ... excludes) {
             ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
@@ -323,7 +346,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public static Column[] all() {
             return Column.values();
@@ -333,7 +356,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getEscapedColumnName() {
             if (this.isColumnNameDelimited) {
@@ -347,7 +370,7 @@ public class SunStaticIncomeHundredChannel implements Serializable {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public String getAliasedEscapedColumnName() {
             return this.getEscapedColumnName();

+ 98 - 0
book-dao/src/main/java/com/book/dao/polardb/mapper/Sun2Mapper.java

@@ -0,0 +1,98 @@
+package com.book.dao.polardb.mapper;
+
+import com.book.dao.polardb.entity.SunUser;
+import com.book.dao.polardb.pojo.example.SunUserExample;
+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 Sun2Mapper {
+    int selectCountUserByDay(@Param("startDate") String startDate, @Param("endDate") String endDate);
+
+    HashMap<String, String> selectUserByDay(@Param("startDate") String startDate, @Param("endDate") String endDate);
+
+    List<HashMap<String, String>> selectNewUserByDayChannel(@Param("startDate") String startDate, @Param("endDate") String endDate);
+
+    List<HashMap<String, String>> selectCountByDayChannel(@Param("startDate") String startDate, @Param("endDate") String endDate);
+
+    /**
+     * 某天的新增订单,指定渠道,用户消费按用户的创建时间分组
+     * static_date  new_recharge_count
+     * 2021-10-01	76.00
+     * 2021-10-02	1236.00
+     *
+     * @param startDate 开始日期
+     * @param endDate   结束日期
+     * @param channelId 通道标识
+     * @return {@link List}<{@link HashMap}<{@link String}, {@link String}>>
+     */
+    List<HashMap<String, String>> selectIncomeNewUserRechargeByDayChannel(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("channelId") String channelId);
+
+
+    /**
+     * 某天新增用户,按照渠道分组
+     * channel_id new_user_count
+     * 36601	2864
+     * 36603	1302
+     * @param startDate 开始日期
+     * @param endDate   结束日期
+     * @return {@link List}<{@link HashMap}<{@link String}, {@link String}>>
+     */
+    List<HashMap<String, String>> selectIncomeNewUserCountByDayChannel(@Param("startDate") String startDate, @Param("endDate") String endDate);
+
+    /**
+     * 某天新增关注用户,按照渠道分组
+     *
+     * @param startDate 开始日期
+     * @param endDate   结束日期
+     * @return {@link List}<{@link HashMap}<{@link String}, {@link String}>>
+     */
+    List<HashMap<String, String>> selectIncomeNewUserRegisterCountByDayChannel(@Param("startDate") String startDate, @Param("endDate") String endDate);
+
+    /**
+     * 某天回收汇总
+     *
+     * @param dateStr str日期
+     * @return {@link HashMap}<{@link String}, {@link String}>
+     */
+    HashMap<String, String> selectIncomeCount(@Param("dateStr") String dateStr);
+
+    /**
+     * 某天新增用户回收汇总,历史天
+     *
+     * @param dateStr str日期
+     * @return {@link List}<{@link HashMap}<{@link String}, {@link String}>>
+     */
+    List<HashMap<String, String>> selectIncomeHistoryCount(@Param("dateStr") String dateStr);
+
+    /**
+     * 某天、新用户充值
+     *
+     * @param startDate 开始日期
+     * @param endDate   结束日期
+     * @return {@link String}
+     */
+    String selectTodayNewUserRecharge(@Param("startDate") String startDate, @Param("endDate") String endDate);
+
+    /**
+     * 指定渠道,汇总 recharge
+     *
+     * @param dateStr   str日期
+     * @param channelId 通道标识
+     * @return {@link String}
+     */
+    String selectIncomeRechargeByChannel(@Param("dateStr") String dateStr, @Param("channelId") String channelId);
+
+    /**
+     * 汇总 recharge
+     *
+     * @param dateStr   str日期
+     * @return {@link String}
+     */
+    String selectIncomeRecharge(@Param("dateStr") String dateStr);
+}

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

@@ -14,7 +14,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     long countByExample(SunStaticIncomeChannelExample example);
 
@@ -22,7 +22,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int deleteByExample(SunStaticIncomeChannelExample example);
 
@@ -30,7 +30,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int deleteByPrimaryKey(Integer id);
 
@@ -38,7 +38,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int insert(SunStaticIncomeChannel record);
 
@@ -46,7 +46,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int insertSelective(@Param("record") SunStaticIncomeChannel record, @Param("selective") SunStaticIncomeChannel.Column ... selective);
 
@@ -54,7 +54,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeChannel selectOneByExample(SunStaticIncomeChannelExample example);
 
@@ -62,7 +62,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeChannel selectOneByExampleSelective(@Param("example") SunStaticIncomeChannelExample example, @Param("selective") SunStaticIncomeChannel.Column ... selective);
 
@@ -70,7 +70,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     List<SunStaticIncomeChannel> selectByExampleSelective(@Param("example") SunStaticIncomeChannelExample example, @Param("selective") SunStaticIncomeChannel.Column ... selective);
 
@@ -78,7 +78,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     List<SunStaticIncomeChannel> selectByExample(SunStaticIncomeChannelExample example);
 
@@ -86,7 +86,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeChannel selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticIncomeChannel.Column ... selective);
 
@@ -94,7 +94,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeChannel selectByPrimaryKey(Integer id);
 
@@ -102,7 +102,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByExampleSelective(@Param("record") SunStaticIncomeChannel record, @Param("example") SunStaticIncomeChannelExample example, @Param("selective") SunStaticIncomeChannel.Column ... selective);
 
@@ -110,7 +110,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByExample(@Param("record") SunStaticIncomeChannel record, @Param("example") SunStaticIncomeChannelExample example);
 
@@ -118,7 +118,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByPrimaryKeySelective(@Param("record") SunStaticIncomeChannel record, @Param("selective") SunStaticIncomeChannel.Column ... selective);
 
@@ -126,7 +126,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByPrimaryKey(SunStaticIncomeChannel record);
 
@@ -134,7 +134,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int batchInsert(@Param("list") List<SunStaticIncomeChannel> list);
 
@@ -142,7 +142,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int batchInsertSelective(@Param("list") List<SunStaticIncomeChannel> list, @Param("selective") SunStaticIncomeChannel.Column ... selective);
 
@@ -150,7 +150,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int upsert(SunStaticIncomeChannel record);
 
@@ -158,7 +158,7 @@ public interface SunStaticIncomeChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int upsertSelective(@Param("record") SunStaticIncomeChannel record, @Param("selective") SunStaticIncomeChannel.Column ... selective);
 }

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

@@ -14,7 +14,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     long countByExample(SunStaticIncomeHundredChannelExample example);
 
@@ -22,7 +22,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int deleteByExample(SunStaticIncomeHundredChannelExample example);
 
@@ -30,7 +30,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int deleteByPrimaryKey(Integer id);
 
@@ -38,7 +38,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int insert(SunStaticIncomeHundredChannel record);
 
@@ -46,7 +46,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int insertSelective(@Param("record") SunStaticIncomeHundredChannel record, @Param("selective") SunStaticIncomeHundredChannel.Column ... selective);
 
@@ -54,7 +54,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeHundredChannel selectOneByExample(SunStaticIncomeHundredChannelExample example);
 
@@ -62,7 +62,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeHundredChannel selectOneByExampleSelective(@Param("example") SunStaticIncomeHundredChannelExample example, @Param("selective") SunStaticIncomeHundredChannel.Column ... selective);
 
@@ -70,7 +70,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     List<SunStaticIncomeHundredChannel> selectByExampleSelective(@Param("example") SunStaticIncomeHundredChannelExample example, @Param("selective") SunStaticIncomeHundredChannel.Column ... selective);
 
@@ -78,7 +78,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     List<SunStaticIncomeHundredChannel> selectByExample(SunStaticIncomeHundredChannelExample example);
 
@@ -86,7 +86,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeHundredChannel selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticIncomeHundredChannel.Column ... selective);
 
@@ -94,7 +94,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeHundredChannel selectByPrimaryKey(Integer id);
 
@@ -102,7 +102,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByExampleSelective(@Param("record") SunStaticIncomeHundredChannel record, @Param("example") SunStaticIncomeHundredChannelExample example, @Param("selective") SunStaticIncomeHundredChannel.Column ... selective);
 
@@ -110,7 +110,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByExample(@Param("record") SunStaticIncomeHundredChannel record, @Param("example") SunStaticIncomeHundredChannelExample example);
 
@@ -118,7 +118,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByPrimaryKeySelective(@Param("record") SunStaticIncomeHundredChannel record, @Param("selective") SunStaticIncomeHundredChannel.Column ... selective);
 
@@ -126,7 +126,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByPrimaryKey(SunStaticIncomeHundredChannel record);
 
@@ -134,7 +134,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int batchInsert(@Param("list") List<SunStaticIncomeHundredChannel> list);
 
@@ -142,7 +142,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int batchInsertSelective(@Param("list") List<SunStaticIncomeHundredChannel> list, @Param("selective") SunStaticIncomeHundredChannel.Column ... selective);
 
@@ -150,7 +150,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int upsert(SunStaticIncomeHundredChannel record);
 
@@ -158,7 +158,7 @@ public interface SunStaticIncomeHundredChannelMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int upsertSelective(@Param("record") SunStaticIncomeHundredChannel record, @Param("selective") SunStaticIncomeHundredChannel.Column ... selective);
 }

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

@@ -14,7 +14,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     long countByExample(SunStaticIncomeHundredExample example);
 
@@ -22,7 +22,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int deleteByExample(SunStaticIncomeHundredExample example);
 
@@ -30,7 +30,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int deleteByPrimaryKey(Integer id);
 
@@ -38,7 +38,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int insert(SunStaticIncomeHundred record);
 
@@ -46,7 +46,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int insertSelective(@Param("record") SunStaticIncomeHundred record, @Param("selective") SunStaticIncomeHundred.Column ... selective);
 
@@ -54,7 +54,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeHundred selectOneByExample(SunStaticIncomeHundredExample example);
 
@@ -62,7 +62,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeHundred selectOneByExampleSelective(@Param("example") SunStaticIncomeHundredExample example, @Param("selective") SunStaticIncomeHundred.Column ... selective);
 
@@ -70,7 +70,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     List<SunStaticIncomeHundred> selectByExampleSelective(@Param("example") SunStaticIncomeHundredExample example, @Param("selective") SunStaticIncomeHundred.Column ... selective);
 
@@ -78,7 +78,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     List<SunStaticIncomeHundred> selectByExample(SunStaticIncomeHundredExample example);
 
@@ -86,7 +86,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeHundred selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticIncomeHundred.Column ... selective);
 
@@ -94,7 +94,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncomeHundred selectByPrimaryKey(Integer id);
 
@@ -102,7 +102,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByExampleSelective(@Param("record") SunStaticIncomeHundred record, @Param("example") SunStaticIncomeHundredExample example, @Param("selective") SunStaticIncomeHundred.Column ... selective);
 
@@ -110,7 +110,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByExample(@Param("record") SunStaticIncomeHundred record, @Param("example") SunStaticIncomeHundredExample example);
 
@@ -118,7 +118,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByPrimaryKeySelective(@Param("record") SunStaticIncomeHundred record, @Param("selective") SunStaticIncomeHundred.Column ... selective);
 
@@ -126,7 +126,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByPrimaryKey(SunStaticIncomeHundred record);
 
@@ -134,7 +134,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int batchInsert(@Param("list") List<SunStaticIncomeHundred> list);
 
@@ -142,7 +142,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int batchInsertSelective(@Param("list") List<SunStaticIncomeHundred> list, @Param("selective") SunStaticIncomeHundred.Column ... selective);
 
@@ -150,7 +150,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int upsert(SunStaticIncomeHundred record);
 
@@ -158,7 +158,7 @@ public interface SunStaticIncomeHundredMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int upsertSelective(@Param("record") SunStaticIncomeHundred record, @Param("selective") SunStaticIncomeHundred.Column ... selective);
 }

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

@@ -14,7 +14,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     long countByExample(SunStaticIncomeExample example);
 
@@ -22,7 +22,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int deleteByExample(SunStaticIncomeExample example);
 
@@ -30,7 +30,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int deleteByPrimaryKey(Integer id);
 
@@ -38,7 +38,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int insert(SunStaticIncome record);
 
@@ -46,7 +46,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int insertSelective(@Param("record") SunStaticIncome record, @Param("selective") SunStaticIncome.Column ... selective);
 
@@ -54,7 +54,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncome selectOneByExample(SunStaticIncomeExample example);
 
@@ -62,7 +62,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncome selectOneByExampleSelective(@Param("example") SunStaticIncomeExample example, @Param("selective") SunStaticIncome.Column ... selective);
 
@@ -70,7 +70,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     List<SunStaticIncome> selectByExampleSelective(@Param("example") SunStaticIncomeExample example, @Param("selective") SunStaticIncome.Column ... selective);
 
@@ -78,7 +78,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     List<SunStaticIncome> selectByExample(SunStaticIncomeExample example);
 
@@ -86,7 +86,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncome selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") SunStaticIncome.Column ... selective);
 
@@ -94,7 +94,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     SunStaticIncome selectByPrimaryKey(Integer id);
 
@@ -102,7 +102,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByExampleSelective(@Param("record") SunStaticIncome record, @Param("example") SunStaticIncomeExample example, @Param("selective") SunStaticIncome.Column ... selective);
 
@@ -110,7 +110,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByExample(@Param("record") SunStaticIncome record, @Param("example") SunStaticIncomeExample example);
 
@@ -118,7 +118,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByPrimaryKeySelective(@Param("record") SunStaticIncome record, @Param("selective") SunStaticIncome.Column ... selective);
 
@@ -126,7 +126,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int updateByPrimaryKey(SunStaticIncome record);
 
@@ -134,7 +134,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int batchInsert(@Param("list") List<SunStaticIncome> list);
 
@@ -142,7 +142,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int batchInsertSelective(@Param("list") List<SunStaticIncome> list, @Param("selective") SunStaticIncome.Column ... selective);
 
@@ -150,7 +150,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int upsert(SunStaticIncome record);
 
@@ -158,7 +158,7 @@ public interface SunStaticIncomeMapper {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     int upsertSelective(@Param("record") SunStaticIncome record, @Param("selective") SunStaticIncome.Column ... selective);
 }

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

@@ -1,19 +0,0 @@
-package com.book.dao.polardb.mapper;
-
-import com.book.dao.polardb.entity.SunUser;
-import com.book.dao.polardb.pojo.example.SunUserExample;
-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 SunUser2Mapper {
-    int selectCountUserByDay(@Param("startDate") String startDate, @Param("endDate") String endDate);
-    HashMap<String, String> selectByDay(@Param("startDate") String startDate, @Param("endDate") String endDate);
-    List<HashMap<String, String>> selectByDayChannel(@Param("startDate") String startDate, @Param("endDate") String endDate);
-    List<HashMap<String, String>> selectCountByDayChannel(@Param("startDate") String startDate, @Param("endDate") String endDate);
-}

+ 80 - 80
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticIncomeChannelExample.java

@@ -10,7 +10,7 @@ public class SunStaticIncomeChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected String orderByClause;
 
@@ -18,7 +18,7 @@ public class SunStaticIncomeChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected boolean distinct;
 
@@ -26,7 +26,7 @@ public class SunStaticIncomeChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected List<Criteria> oredCriteria;
 
@@ -34,7 +34,7 @@ public class SunStaticIncomeChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Integer offset;
 
@@ -42,7 +42,7 @@ public class SunStaticIncomeChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Integer rows;
 
@@ -50,7 +50,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeChannelExample() {
         oredCriteria = new ArrayList<Criteria>();
@@ -60,7 +60,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setOrderByClause(String orderByClause) {
         this.orderByClause = orderByClause;
@@ -70,7 +70,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public String getOrderByClause() {
         return orderByClause;
@@ -80,7 +80,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setDistinct(boolean distinct) {
         this.distinct = distinct;
@@ -90,7 +90,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public boolean isDistinct() {
         return distinct;
@@ -100,7 +100,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public List<Criteria> getOredCriteria() {
         return oredCriteria;
@@ -110,7 +110,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void or(Criteria criteria) {
         oredCriteria.add(criteria);
@@ -120,7 +120,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Criteria or() {
         Criteria criteria = createCriteriaInternal();
@@ -132,7 +132,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeChannelExample orderBy(String orderByClause) {
         this.setOrderByClause(orderByClause);
@@ -143,7 +143,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeChannelExample orderBy(String ... orderByClauses) {
         StringBuffer sb = new StringBuffer();
@@ -161,7 +161,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Criteria createCriteria() {
         Criteria criteria = createCriteriaInternal();
@@ -175,7 +175,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Criteria createCriteriaInternal() {
         Criteria criteria = new Criteria(this);
@@ -186,7 +186,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void clear() {
         oredCriteria.clear();
@@ -200,7 +200,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setOffset(Integer offset) {
         this.offset = offset;
@@ -210,7 +210,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Integer getOffset() {
         return this.offset;
@@ -220,7 +220,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setRows(Integer rows) {
         this.rows = rows;
@@ -230,7 +230,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Integer getRows() {
         return this.rows;
@@ -240,7 +240,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeChannelExample limit(Integer rows) {
         this.rows = rows;
@@ -251,7 +251,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeChannelExample limit(Integer offset, Integer rows) {
         this.offset = offset;
@@ -263,7 +263,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeChannelExample page(Integer page, Integer pageSize) {
         this.offset = page * pageSize;
@@ -275,7 +275,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static Criteria newAndCreateCriteria() {
         SunStaticIncomeChannelExample example = new SunStaticIncomeChannelExample();
@@ -286,7 +286,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeChannelExample when(boolean condition, IExampleWhen then) {
         if (condition) {
@@ -299,7 +299,7 @@ public class SunStaticIncomeChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeChannelExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
         if (condition) {
@@ -314,7 +314,7 @@ public class SunStaticIncomeChannelExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected abstract static class GeneratedCriteria {
         protected List<Criterion> criteria;
@@ -1027,103 +1027,103 @@ public class SunStaticIncomeChannelExample {
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountIsNull() {
-            addCriterion("new_recharge_count is null");
+        public Criteria andNewRechargeSumIsNull() {
+            addCriterion("new_recharge_sum is null");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountIsNotNull() {
-            addCriterion("new_recharge_count is not null");
+        public Criteria andNewRechargeSumIsNotNull() {
+            addCriterion("new_recharge_sum is not null");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountEqualTo(String value) {
-            addCriterion("new_recharge_count =", value, "newRechargeCount");
+        public Criteria andNewRechargeSumEqualTo(String value) {
+            addCriterion("new_recharge_sum =", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountEqualToColumn(SunStaticIncomeChannel.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count = ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumEqualToColumn(SunStaticIncomeChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum = ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotEqualTo(String value) {
-            addCriterion("new_recharge_count <>", value, "newRechargeCount");
+        public Criteria andNewRechargeSumNotEqualTo(String value) {
+            addCriterion("new_recharge_sum <>", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotEqualToColumn(SunStaticIncomeChannel.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count <> ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumNotEqualToColumn(SunStaticIncomeChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum <> ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountGreaterThan(String value) {
-            addCriterion("new_recharge_count >", value, "newRechargeCount");
+        public Criteria andNewRechargeSumGreaterThan(String value) {
+            addCriterion("new_recharge_sum >", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountGreaterThanColumn(SunStaticIncomeChannel.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count > ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumGreaterThanColumn(SunStaticIncomeChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum > ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountGreaterThanOrEqualTo(String value) {
-            addCriterion("new_recharge_count >=", value, "newRechargeCount");
+        public Criteria andNewRechargeSumGreaterThanOrEqualTo(String value) {
+            addCriterion("new_recharge_sum >=", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountGreaterThanOrEqualToColumn(SunStaticIncomeChannel.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count >= ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumGreaterThanOrEqualToColumn(SunStaticIncomeChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum >= ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLessThan(String value) {
-            addCriterion("new_recharge_count <", value, "newRechargeCount");
+        public Criteria andNewRechargeSumLessThan(String value) {
+            addCriterion("new_recharge_sum <", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLessThanColumn(SunStaticIncomeChannel.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count < ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumLessThanColumn(SunStaticIncomeChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum < ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLessThanOrEqualTo(String value) {
-            addCriterion("new_recharge_count <=", value, "newRechargeCount");
+        public Criteria andNewRechargeSumLessThanOrEqualTo(String value) {
+            addCriterion("new_recharge_sum <=", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLessThanOrEqualToColumn(SunStaticIncomeChannel.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count <= ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumLessThanOrEqualToColumn(SunStaticIncomeChannel.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum <= ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLike(String value) {
-            addCriterion("new_recharge_count like", value, "newRechargeCount");
+        public Criteria andNewRechargeSumLike(String value) {
+            addCriterion("new_recharge_sum like", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotLike(String value) {
-            addCriterion("new_recharge_count not like", value, "newRechargeCount");
+        public Criteria andNewRechargeSumNotLike(String value) {
+            addCriterion("new_recharge_sum not like", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountIn(List<String> values) {
-            addCriterion("new_recharge_count in", values, "newRechargeCount");
+        public Criteria andNewRechargeSumIn(List<String> values) {
+            addCriterion("new_recharge_sum in", values, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotIn(List<String> values) {
-            addCriterion("new_recharge_count not in", values, "newRechargeCount");
+        public Criteria andNewRechargeSumNotIn(List<String> values) {
+            addCriterion("new_recharge_sum not in", values, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountBetween(String value1, String value2) {
-            addCriterion("new_recharge_count between", value1, value2, "newRechargeCount");
+        public Criteria andNewRechargeSumBetween(String value1, String value2) {
+            addCriterion("new_recharge_sum between", value1, value2, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotBetween(String value1, String value2) {
-            addCriterion("new_recharge_count not between", value1, value2, "newRechargeCount");
+        public Criteria andNewRechargeSumNotBetween(String value1, String value2) {
+            addCriterion("new_recharge_sum not between", value1, value2, "newRechargeSum");
             return (Criteria) this;
         }
 
@@ -1712,14 +1712,14 @@ public class SunStaticIncomeChannelExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated do_not_delete_during_merge Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated do_not_delete_during_merge Sat Oct 16 14:42:43 CST 2021
      */
     public static class Criteria extends GeneratedCriteria {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private SunStaticIncomeChannelExample example;
 
@@ -1727,7 +1727,7 @@ public class SunStaticIncomeChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         protected Criteria(SunStaticIncomeChannelExample example) {
             super();
@@ -1738,7 +1738,7 @@ public class SunStaticIncomeChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public SunStaticIncomeChannelExample example() {
             return this.example;
@@ -1748,7 +1748,7 @@ public class SunStaticIncomeChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         @Deprecated
         public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
@@ -1762,7 +1762,7 @@ public class SunStaticIncomeChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then) {
             if (condition) {
@@ -1775,7 +1775,7 @@ public class SunStaticIncomeChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
             if (condition) {
@@ -1792,7 +1792,7 @@ public class SunStaticIncomeChannelExample {
              * This method was generated by MyBatis Generator.
              * This method corresponds to the database table sun_static_income_channel
              *
-             * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+             * @mbg.generated Sat Oct 16 14:42:43 CST 2021
              */
             Criteria add(Criteria add);
         }
@@ -1802,7 +1802,7 @@ public class SunStaticIncomeChannelExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static class Criterion {
         private String condition;
@@ -1895,7 +1895,7 @@ public class SunStaticIncomeChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         void criteria(Criteria criteria);
     }
@@ -1905,7 +1905,7 @@ public class SunStaticIncomeChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         void example(com.book.dao.polardb.pojo.example.SunStaticIncomeChannelExample example);
     }

+ 80 - 80
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticIncomeExample.java

@@ -10,7 +10,7 @@ public class SunStaticIncomeExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected String orderByClause;
 
@@ -18,7 +18,7 @@ public class SunStaticIncomeExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected boolean distinct;
 
@@ -26,7 +26,7 @@ public class SunStaticIncomeExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected List<Criteria> oredCriteria;
 
@@ -34,7 +34,7 @@ public class SunStaticIncomeExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Integer offset;
 
@@ -42,7 +42,7 @@ public class SunStaticIncomeExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Integer rows;
 
@@ -50,7 +50,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeExample() {
         oredCriteria = new ArrayList<Criteria>();
@@ -60,7 +60,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setOrderByClause(String orderByClause) {
         this.orderByClause = orderByClause;
@@ -70,7 +70,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public String getOrderByClause() {
         return orderByClause;
@@ -80,7 +80,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setDistinct(boolean distinct) {
         this.distinct = distinct;
@@ -90,7 +90,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public boolean isDistinct() {
         return distinct;
@@ -100,7 +100,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public List<Criteria> getOredCriteria() {
         return oredCriteria;
@@ -110,7 +110,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void or(Criteria criteria) {
         oredCriteria.add(criteria);
@@ -120,7 +120,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Criteria or() {
         Criteria criteria = createCriteriaInternal();
@@ -132,7 +132,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeExample orderBy(String orderByClause) {
         this.setOrderByClause(orderByClause);
@@ -143,7 +143,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeExample orderBy(String ... orderByClauses) {
         StringBuffer sb = new StringBuffer();
@@ -161,7 +161,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Criteria createCriteria() {
         Criteria criteria = createCriteriaInternal();
@@ -175,7 +175,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Criteria createCriteriaInternal() {
         Criteria criteria = new Criteria(this);
@@ -186,7 +186,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void clear() {
         oredCriteria.clear();
@@ -200,7 +200,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setOffset(Integer offset) {
         this.offset = offset;
@@ -210,7 +210,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Integer getOffset() {
         return this.offset;
@@ -220,7 +220,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setRows(Integer rows) {
         this.rows = rows;
@@ -230,7 +230,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Integer getRows() {
         return this.rows;
@@ -240,7 +240,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeExample limit(Integer rows) {
         this.rows = rows;
@@ -251,7 +251,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeExample limit(Integer offset, Integer rows) {
         this.offset = offset;
@@ -263,7 +263,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeExample page(Integer page, Integer pageSize) {
         this.offset = page * pageSize;
@@ -275,7 +275,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static Criteria newAndCreateCriteria() {
         SunStaticIncomeExample example = new SunStaticIncomeExample();
@@ -286,7 +286,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeExample when(boolean condition, IExampleWhen then) {
         if (condition) {
@@ -299,7 +299,7 @@ public class SunStaticIncomeExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
         if (condition) {
@@ -314,7 +314,7 @@ public class SunStaticIncomeExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected abstract static class GeneratedCriteria {
         protected List<Criterion> criteria;
@@ -727,103 +727,103 @@ public class SunStaticIncomeExample {
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountIsNull() {
-            addCriterion("new_recharge_count is null");
+        public Criteria andNewRechargeSumIsNull() {
+            addCriterion("new_recharge_sum is null");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountIsNotNull() {
-            addCriterion("new_recharge_count is not null");
+        public Criteria andNewRechargeSumIsNotNull() {
+            addCriterion("new_recharge_sum is not null");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountEqualTo(String value) {
-            addCriterion("new_recharge_count =", value, "newRechargeCount");
+        public Criteria andNewRechargeSumEqualTo(String value) {
+            addCriterion("new_recharge_sum =", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountEqualToColumn(SunStaticIncome.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count = ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumEqualToColumn(SunStaticIncome.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum = ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotEqualTo(String value) {
-            addCriterion("new_recharge_count <>", value, "newRechargeCount");
+        public Criteria andNewRechargeSumNotEqualTo(String value) {
+            addCriterion("new_recharge_sum <>", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotEqualToColumn(SunStaticIncome.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count <> ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumNotEqualToColumn(SunStaticIncome.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum <> ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountGreaterThan(String value) {
-            addCriterion("new_recharge_count >", value, "newRechargeCount");
+        public Criteria andNewRechargeSumGreaterThan(String value) {
+            addCriterion("new_recharge_sum >", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountGreaterThanColumn(SunStaticIncome.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count > ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumGreaterThanColumn(SunStaticIncome.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum > ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountGreaterThanOrEqualTo(String value) {
-            addCriterion("new_recharge_count >=", value, "newRechargeCount");
+        public Criteria andNewRechargeSumGreaterThanOrEqualTo(String value) {
+            addCriterion("new_recharge_sum >=", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountGreaterThanOrEqualToColumn(SunStaticIncome.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count >= ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumGreaterThanOrEqualToColumn(SunStaticIncome.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum >= ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLessThan(String value) {
-            addCriterion("new_recharge_count <", value, "newRechargeCount");
+        public Criteria andNewRechargeSumLessThan(String value) {
+            addCriterion("new_recharge_sum <", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLessThanColumn(SunStaticIncome.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count < ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumLessThanColumn(SunStaticIncome.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum < ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLessThanOrEqualTo(String value) {
-            addCriterion("new_recharge_count <=", value, "newRechargeCount");
+        public Criteria andNewRechargeSumLessThanOrEqualTo(String value) {
+            addCriterion("new_recharge_sum <=", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLessThanOrEqualToColumn(SunStaticIncome.Column column) {
-            addCriterion(new StringBuilder("new_recharge_count <= ").append(column.getEscapedColumnName()).toString());
+        public Criteria andNewRechargeSumLessThanOrEqualToColumn(SunStaticIncome.Column column) {
+            addCriterion(new StringBuilder("new_recharge_sum <= ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountLike(String value) {
-            addCriterion("new_recharge_count like", value, "newRechargeCount");
+        public Criteria andNewRechargeSumLike(String value) {
+            addCriterion("new_recharge_sum like", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotLike(String value) {
-            addCriterion("new_recharge_count not like", value, "newRechargeCount");
+        public Criteria andNewRechargeSumNotLike(String value) {
+            addCriterion("new_recharge_sum not like", value, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountIn(List<String> values) {
-            addCriterion("new_recharge_count in", values, "newRechargeCount");
+        public Criteria andNewRechargeSumIn(List<String> values) {
+            addCriterion("new_recharge_sum in", values, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotIn(List<String> values) {
-            addCriterion("new_recharge_count not in", values, "newRechargeCount");
+        public Criteria andNewRechargeSumNotIn(List<String> values) {
+            addCriterion("new_recharge_sum not in", values, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountBetween(String value1, String value2) {
-            addCriterion("new_recharge_count between", value1, value2, "newRechargeCount");
+        public Criteria andNewRechargeSumBetween(String value1, String value2) {
+            addCriterion("new_recharge_sum between", value1, value2, "newRechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andNewRechargeCountNotBetween(String value1, String value2) {
-            addCriterion("new_recharge_count not between", value1, value2, "newRechargeCount");
+        public Criteria andNewRechargeSumNotBetween(String value1, String value2) {
+            addCriterion("new_recharge_sum not between", value1, value2, "newRechargeSum");
             return (Criteria) this;
         }
 
@@ -1412,14 +1412,14 @@ public class SunStaticIncomeExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income
      *
-     * @mbg.generated do_not_delete_during_merge Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated do_not_delete_during_merge Sat Oct 16 14:42:43 CST 2021
      */
     public static class Criteria extends GeneratedCriteria {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private SunStaticIncomeExample example;
 
@@ -1427,7 +1427,7 @@ public class SunStaticIncomeExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         protected Criteria(SunStaticIncomeExample example) {
             super();
@@ -1438,7 +1438,7 @@ public class SunStaticIncomeExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public SunStaticIncomeExample example() {
             return this.example;
@@ -1448,7 +1448,7 @@ public class SunStaticIncomeExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         @Deprecated
         public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
@@ -1462,7 +1462,7 @@ public class SunStaticIncomeExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then) {
             if (condition) {
@@ -1475,7 +1475,7 @@ public class SunStaticIncomeExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
             if (condition) {
@@ -1492,7 +1492,7 @@ public class SunStaticIncomeExample {
              * This method was generated by MyBatis Generator.
              * This method corresponds to the database table sun_static_income
              *
-             * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+             * @mbg.generated Sat Oct 16 14:42:43 CST 2021
              */
             Criteria add(Criteria add);
         }
@@ -1502,7 +1502,7 @@ public class SunStaticIncomeExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static class Criterion {
         private String condition;
@@ -1595,7 +1595,7 @@ public class SunStaticIncomeExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         void criteria(Criteria criteria);
     }
@@ -1605,7 +1605,7 @@ public class SunStaticIncomeExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         void example(com.book.dao.polardb.pojo.example.SunStaticIncomeExample example);
     }

+ 180 - 80
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticIncomeHundredChannelExample.java

@@ -9,7 +9,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected String orderByClause;
 
@@ -17,7 +17,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected boolean distinct;
 
@@ -25,7 +25,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected List<Criteria> oredCriteria;
 
@@ -33,7 +33,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Integer offset;
 
@@ -41,7 +41,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Integer rows;
 
@@ -49,7 +49,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredChannelExample() {
         oredCriteria = new ArrayList<Criteria>();
@@ -59,7 +59,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setOrderByClause(String orderByClause) {
         this.orderByClause = orderByClause;
@@ -69,7 +69,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public String getOrderByClause() {
         return orderByClause;
@@ -79,7 +79,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setDistinct(boolean distinct) {
         this.distinct = distinct;
@@ -89,7 +89,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public boolean isDistinct() {
         return distinct;
@@ -99,7 +99,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public List<Criteria> getOredCriteria() {
         return oredCriteria;
@@ -109,7 +109,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void or(Criteria criteria) {
         oredCriteria.add(criteria);
@@ -119,7 +119,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Criteria or() {
         Criteria criteria = createCriteriaInternal();
@@ -131,7 +131,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredChannelExample orderBy(String orderByClause) {
         this.setOrderByClause(orderByClause);
@@ -142,7 +142,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredChannelExample orderBy(String ... orderByClauses) {
         StringBuffer sb = new StringBuffer();
@@ -160,7 +160,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Criteria createCriteria() {
         Criteria criteria = createCriteriaInternal();
@@ -174,7 +174,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Criteria createCriteriaInternal() {
         Criteria criteria = new Criteria(this);
@@ -185,7 +185,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void clear() {
         oredCriteria.clear();
@@ -199,7 +199,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setOffset(Integer offset) {
         this.offset = offset;
@@ -209,7 +209,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Integer getOffset() {
         return this.offset;
@@ -219,7 +219,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setRows(Integer rows) {
         this.rows = rows;
@@ -229,7 +229,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Integer getRows() {
         return this.rows;
@@ -239,7 +239,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredChannelExample limit(Integer rows) {
         this.rows = rows;
@@ -250,7 +250,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredChannelExample limit(Integer offset, Integer rows) {
         this.offset = offset;
@@ -262,7 +262,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredChannelExample page(Integer page, Integer pageSize) {
         this.offset = page * pageSize;
@@ -274,7 +274,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static Criteria newAndCreateCriteria() {
         SunStaticIncomeHundredChannelExample example = new SunStaticIncomeHundredChannelExample();
@@ -285,7 +285,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredChannelExample when(boolean condition, IExampleWhen then) {
         if (condition) {
@@ -298,7 +298,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredChannelExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
         if (condition) {
@@ -313,7 +313,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected abstract static class GeneratedCriteria {
         protected List<Criterion> criteria;
@@ -646,103 +646,103 @@ public class SunStaticIncomeHundredChannelExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountIsNull() {
-            addCriterion("recharge_count is null");
+        public Criteria andRechargeSumIsNull() {
+            addCriterion("recharge_sum is null");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountIsNotNull() {
-            addCriterion("recharge_count is not null");
+        public Criteria andRechargeSumIsNotNull() {
+            addCriterion("recharge_sum is not null");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountEqualTo(String value) {
-            addCriterion("recharge_count =", value, "rechargeCount");
+        public Criteria andRechargeSumEqualTo(String value) {
+            addCriterion("recharge_sum =", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
-            addCriterion(new StringBuilder("recharge_count = ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum = ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotEqualTo(String value) {
-            addCriterion("recharge_count <>", value, "rechargeCount");
+        public Criteria andRechargeSumNotEqualTo(String value) {
+            addCriterion("recharge_sum <>", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
-            addCriterion(new StringBuilder("recharge_count <> ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumNotEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <> ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountGreaterThan(String value) {
-            addCriterion("recharge_count >", value, "rechargeCount");
+        public Criteria andRechargeSumGreaterThan(String value) {
+            addCriterion("recharge_sum >", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountGreaterThanColumn(SunStaticIncomeHundredChannel.Column column) {
-            addCriterion(new StringBuilder("recharge_count > ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumGreaterThanColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum > ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountGreaterThanOrEqualTo(String value) {
-            addCriterion("recharge_count >=", value, "rechargeCount");
+        public Criteria andRechargeSumGreaterThanOrEqualTo(String value) {
+            addCriterion("recharge_sum >=", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountGreaterThanOrEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
-            addCriterion(new StringBuilder("recharge_count >= ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumGreaterThanOrEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum >= ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLessThan(String value) {
-            addCriterion("recharge_count <", value, "rechargeCount");
+        public Criteria andRechargeSumLessThan(String value) {
+            addCriterion("recharge_sum <", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLessThanColumn(SunStaticIncomeHundredChannel.Column column) {
-            addCriterion(new StringBuilder("recharge_count < ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumLessThanColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum < ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLessThanOrEqualTo(String value) {
-            addCriterion("recharge_count <=", value, "rechargeCount");
+        public Criteria andRechargeSumLessThanOrEqualTo(String value) {
+            addCriterion("recharge_sum <=", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLessThanOrEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
-            addCriterion(new StringBuilder("recharge_count <= ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumLessThanOrEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <= ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLike(String value) {
-            addCriterion("recharge_count like", value, "rechargeCount");
+        public Criteria andRechargeSumLike(String value) {
+            addCriterion("recharge_sum like", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotLike(String value) {
-            addCriterion("recharge_count not like", value, "rechargeCount");
+        public Criteria andRechargeSumNotLike(String value) {
+            addCriterion("recharge_sum not like", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountIn(List<String> values) {
-            addCriterion("recharge_count in", values, "rechargeCount");
+        public Criteria andRechargeSumIn(List<String> values) {
+            addCriterion("recharge_sum in", values, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotIn(List<String> values) {
-            addCriterion("recharge_count not in", values, "rechargeCount");
+        public Criteria andRechargeSumNotIn(List<String> values) {
+            addCriterion("recharge_sum not in", values, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountBetween(String value1, String value2) {
-            addCriterion("recharge_count between", value1, value2, "rechargeCount");
+        public Criteria andRechargeSumBetween(String value1, String value2) {
+            addCriterion("recharge_sum between", value1, value2, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotBetween(String value1, String value2) {
-            addCriterion("recharge_count not between", value1, value2, "rechargeCount");
+        public Criteria andRechargeSumNotBetween(String value1, String value2) {
+            addCriterion("recharge_sum not between", value1, value2, "rechargeSum");
             return (Criteria) this;
         }
 
@@ -835,20 +835,120 @@ public class SunStaticIncomeHundredChannelExample {
             addCriterion("day_num not between", value1, value2, "dayNum");
             return (Criteria) this;
         }
+
+        public Criteria andInsertDateIsNull() {
+            addCriterion("insert_date is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateIsNotNull() {
+            addCriterion("insert_date is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateEqualTo(String value) {
+            addCriterion("insert_date =", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("insert_date = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotEqualTo(String value) {
+            addCriterion("insert_date <>", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("insert_date <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateGreaterThan(String value) {
+            addCriterion("insert_date >", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateGreaterThanColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("insert_date > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateGreaterThanOrEqualTo(String value) {
+            addCriterion("insert_date >=", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateGreaterThanOrEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("insert_date >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLessThan(String value) {
+            addCriterion("insert_date <", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLessThanColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("insert_date < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLessThanOrEqualTo(String value) {
+            addCriterion("insert_date <=", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLessThanOrEqualToColumn(SunStaticIncomeHundredChannel.Column column) {
+            addCriterion(new StringBuilder("insert_date <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLike(String value) {
+            addCriterion("insert_date like", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotLike(String value) {
+            addCriterion("insert_date not like", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateIn(List<String> values) {
+            addCriterion("insert_date in", values, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotIn(List<String> values) {
+            addCriterion("insert_date not in", values, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateBetween(String value1, String value2) {
+            addCriterion("insert_date between", value1, value2, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotBetween(String value1, String value2) {
+            addCriterion("insert_date not between", value1, value2, "insertDate");
+            return (Criteria) this;
+        }
     }
 
     /**
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated do_not_delete_during_merge Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated do_not_delete_during_merge Sat Oct 16 14:42:43 CST 2021
      */
     public static class Criteria extends GeneratedCriteria {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private SunStaticIncomeHundredChannelExample example;
 
@@ -856,7 +956,7 @@ public class SunStaticIncomeHundredChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         protected Criteria(SunStaticIncomeHundredChannelExample example) {
             super();
@@ -867,7 +967,7 @@ public class SunStaticIncomeHundredChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public SunStaticIncomeHundredChannelExample example() {
             return this.example;
@@ -877,7 +977,7 @@ public class SunStaticIncomeHundredChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         @Deprecated
         public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
@@ -891,7 +991,7 @@ public class SunStaticIncomeHundredChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then) {
             if (condition) {
@@ -904,7 +1004,7 @@ public class SunStaticIncomeHundredChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
             if (condition) {
@@ -921,7 +1021,7 @@ public class SunStaticIncomeHundredChannelExample {
              * This method was generated by MyBatis Generator.
              * This method corresponds to the database table sun_static_income_hundred_channel
              *
-             * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+             * @mbg.generated Sat Oct 16 14:42:43 CST 2021
              */
             Criteria add(Criteria add);
         }
@@ -931,7 +1031,7 @@ public class SunStaticIncomeHundredChannelExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_hundred_channel
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static class Criterion {
         private String condition;
@@ -1024,7 +1124,7 @@ public class SunStaticIncomeHundredChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         void criteria(Criteria criteria);
     }
@@ -1034,7 +1134,7 @@ public class SunStaticIncomeHundredChannelExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred_channel
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         void example(com.book.dao.polardb.pojo.example.SunStaticIncomeHundredChannelExample example);
     }

+ 180 - 80
book-dao/src/main/java/com/book/dao/polardb/pojo/example/SunStaticIncomeHundredExample.java

@@ -9,7 +9,7 @@ public class SunStaticIncomeHundredExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected String orderByClause;
 
@@ -17,7 +17,7 @@ public class SunStaticIncomeHundredExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected boolean distinct;
 
@@ -25,7 +25,7 @@ public class SunStaticIncomeHundredExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected List<Criteria> oredCriteria;
 
@@ -33,7 +33,7 @@ public class SunStaticIncomeHundredExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Integer offset;
 
@@ -41,7 +41,7 @@ public class SunStaticIncomeHundredExample {
      * This field was generated by MyBatis Generator.
      * This field corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Integer rows;
 
@@ -49,7 +49,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredExample() {
         oredCriteria = new ArrayList<Criteria>();
@@ -59,7 +59,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setOrderByClause(String orderByClause) {
         this.orderByClause = orderByClause;
@@ -69,7 +69,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public String getOrderByClause() {
         return orderByClause;
@@ -79,7 +79,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setDistinct(boolean distinct) {
         this.distinct = distinct;
@@ -89,7 +89,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public boolean isDistinct() {
         return distinct;
@@ -99,7 +99,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public List<Criteria> getOredCriteria() {
         return oredCriteria;
@@ -109,7 +109,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void or(Criteria criteria) {
         oredCriteria.add(criteria);
@@ -119,7 +119,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Criteria or() {
         Criteria criteria = createCriteriaInternal();
@@ -131,7 +131,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredExample orderBy(String orderByClause) {
         this.setOrderByClause(orderByClause);
@@ -142,7 +142,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredExample orderBy(String ... orderByClauses) {
         StringBuffer sb = new StringBuffer();
@@ -160,7 +160,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Criteria createCriteria() {
         Criteria criteria = createCriteriaInternal();
@@ -174,7 +174,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected Criteria createCriteriaInternal() {
         Criteria criteria = new Criteria(this);
@@ -185,7 +185,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void clear() {
         oredCriteria.clear();
@@ -199,7 +199,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setOffset(Integer offset) {
         this.offset = offset;
@@ -209,7 +209,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Integer getOffset() {
         return this.offset;
@@ -219,7 +219,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public void setRows(Integer rows) {
         this.rows = rows;
@@ -229,7 +229,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public Integer getRows() {
         return this.rows;
@@ -239,7 +239,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredExample limit(Integer rows) {
         this.rows = rows;
@@ -250,7 +250,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredExample limit(Integer offset, Integer rows) {
         this.offset = offset;
@@ -262,7 +262,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredExample page(Integer page, Integer pageSize) {
         this.offset = page * pageSize;
@@ -274,7 +274,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static Criteria newAndCreateCriteria() {
         SunStaticIncomeHundredExample example = new SunStaticIncomeHundredExample();
@@ -285,7 +285,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredExample when(boolean condition, IExampleWhen then) {
         if (condition) {
@@ -298,7 +298,7 @@ public class SunStaticIncomeHundredExample {
      * This method was generated by MyBatis Generator.
      * This method corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public SunStaticIncomeHundredExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
         if (condition) {
@@ -313,7 +313,7 @@ public class SunStaticIncomeHundredExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     protected abstract static class GeneratedCriteria {
         protected List<Criterion> criteria;
@@ -546,103 +546,103 @@ public class SunStaticIncomeHundredExample {
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountIsNull() {
-            addCriterion("recharge_count is null");
+        public Criteria andRechargeSumIsNull() {
+            addCriterion("recharge_sum is null");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountIsNotNull() {
-            addCriterion("recharge_count is not null");
+        public Criteria andRechargeSumIsNotNull() {
+            addCriterion("recharge_sum is not null");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountEqualTo(String value) {
-            addCriterion("recharge_count =", value, "rechargeCount");
+        public Criteria andRechargeSumEqualTo(String value) {
+            addCriterion("recharge_sum =", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountEqualToColumn(SunStaticIncomeHundred.Column column) {
-            addCriterion(new StringBuilder("recharge_count = ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumEqualToColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("recharge_sum = ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotEqualTo(String value) {
-            addCriterion("recharge_count <>", value, "rechargeCount");
+        public Criteria andRechargeSumNotEqualTo(String value) {
+            addCriterion("recharge_sum <>", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotEqualToColumn(SunStaticIncomeHundred.Column column) {
-            addCriterion(new StringBuilder("recharge_count <> ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumNotEqualToColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <> ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountGreaterThan(String value) {
-            addCriterion("recharge_count >", value, "rechargeCount");
+        public Criteria andRechargeSumGreaterThan(String value) {
+            addCriterion("recharge_sum >", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountGreaterThanColumn(SunStaticIncomeHundred.Column column) {
-            addCriterion(new StringBuilder("recharge_count > ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumGreaterThanColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("recharge_sum > ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountGreaterThanOrEqualTo(String value) {
-            addCriterion("recharge_count >=", value, "rechargeCount");
+        public Criteria andRechargeSumGreaterThanOrEqualTo(String value) {
+            addCriterion("recharge_sum >=", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountGreaterThanOrEqualToColumn(SunStaticIncomeHundred.Column column) {
-            addCriterion(new StringBuilder("recharge_count >= ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumGreaterThanOrEqualToColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("recharge_sum >= ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLessThan(String value) {
-            addCriterion("recharge_count <", value, "rechargeCount");
+        public Criteria andRechargeSumLessThan(String value) {
+            addCriterion("recharge_sum <", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLessThanColumn(SunStaticIncomeHundred.Column column) {
-            addCriterion(new StringBuilder("recharge_count < ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumLessThanColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("recharge_sum < ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLessThanOrEqualTo(String value) {
-            addCriterion("recharge_count <=", value, "rechargeCount");
+        public Criteria andRechargeSumLessThanOrEqualTo(String value) {
+            addCriterion("recharge_sum <=", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLessThanOrEqualToColumn(SunStaticIncomeHundred.Column column) {
-            addCriterion(new StringBuilder("recharge_count <= ").append(column.getEscapedColumnName()).toString());
+        public Criteria andRechargeSumLessThanOrEqualToColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("recharge_sum <= ").append(column.getEscapedColumnName()).toString());
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountLike(String value) {
-            addCriterion("recharge_count like", value, "rechargeCount");
+        public Criteria andRechargeSumLike(String value) {
+            addCriterion("recharge_sum like", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotLike(String value) {
-            addCriterion("recharge_count not like", value, "rechargeCount");
+        public Criteria andRechargeSumNotLike(String value) {
+            addCriterion("recharge_sum not like", value, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountIn(List<String> values) {
-            addCriterion("recharge_count in", values, "rechargeCount");
+        public Criteria andRechargeSumIn(List<String> values) {
+            addCriterion("recharge_sum in", values, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotIn(List<String> values) {
-            addCriterion("recharge_count not in", values, "rechargeCount");
+        public Criteria andRechargeSumNotIn(List<String> values) {
+            addCriterion("recharge_sum not in", values, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountBetween(String value1, String value2) {
-            addCriterion("recharge_count between", value1, value2, "rechargeCount");
+        public Criteria andRechargeSumBetween(String value1, String value2) {
+            addCriterion("recharge_sum between", value1, value2, "rechargeSum");
             return (Criteria) this;
         }
 
-        public Criteria andRechargeCountNotBetween(String value1, String value2) {
-            addCriterion("recharge_count not between", value1, value2, "rechargeCount");
+        public Criteria andRechargeSumNotBetween(String value1, String value2) {
+            addCriterion("recharge_sum not between", value1, value2, "rechargeSum");
             return (Criteria) this;
         }
 
@@ -735,20 +735,120 @@ public class SunStaticIncomeHundredExample {
             addCriterion("day_num not between", value1, value2, "dayNum");
             return (Criteria) this;
         }
+
+        public Criteria andInsertDateIsNull() {
+            addCriterion("insert_date is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateIsNotNull() {
+            addCriterion("insert_date is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateEqualTo(String value) {
+            addCriterion("insert_date =", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateEqualToColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("insert_date = ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotEqualTo(String value) {
+            addCriterion("insert_date <>", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotEqualToColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("insert_date <> ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateGreaterThan(String value) {
+            addCriterion("insert_date >", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateGreaterThanColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("insert_date > ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateGreaterThanOrEqualTo(String value) {
+            addCriterion("insert_date >=", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateGreaterThanOrEqualToColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("insert_date >= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLessThan(String value) {
+            addCriterion("insert_date <", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLessThanColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("insert_date < ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLessThanOrEqualTo(String value) {
+            addCriterion("insert_date <=", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLessThanOrEqualToColumn(SunStaticIncomeHundred.Column column) {
+            addCriterion(new StringBuilder("insert_date <= ").append(column.getEscapedColumnName()).toString());
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateLike(String value) {
+            addCriterion("insert_date like", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotLike(String value) {
+            addCriterion("insert_date not like", value, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateIn(List<String> values) {
+            addCriterion("insert_date in", values, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotIn(List<String> values) {
+            addCriterion("insert_date not in", values, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateBetween(String value1, String value2) {
+            addCriterion("insert_date between", value1, value2, "insertDate");
+            return (Criteria) this;
+        }
+
+        public Criteria andInsertDateNotBetween(String value1, String value2) {
+            addCriterion("insert_date not between", value1, value2, "insertDate");
+            return (Criteria) this;
+        }
     }
 
     /**
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated do_not_delete_during_merge Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated do_not_delete_during_merge Sat Oct 16 14:42:43 CST 2021
      */
     public static class Criteria extends GeneratedCriteria {
         /**
          * This field was generated by MyBatis Generator.
          * This field corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         private SunStaticIncomeHundredExample example;
 
@@ -756,7 +856,7 @@ public class SunStaticIncomeHundredExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         protected Criteria(SunStaticIncomeHundredExample example) {
             super();
@@ -767,7 +867,7 @@ public class SunStaticIncomeHundredExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public SunStaticIncomeHundredExample example() {
             return this.example;
@@ -777,7 +877,7 @@ public class SunStaticIncomeHundredExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         @Deprecated
         public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
@@ -791,7 +891,7 @@ public class SunStaticIncomeHundredExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then) {
             if (condition) {
@@ -804,7 +904,7 @@ public class SunStaticIncomeHundredExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
             if (condition) {
@@ -821,7 +921,7 @@ public class SunStaticIncomeHundredExample {
              * This method was generated by MyBatis Generator.
              * This method corresponds to the database table sun_static_income_hundred
              *
-             * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+             * @mbg.generated Sat Oct 16 14:42:43 CST 2021
              */
             Criteria add(Criteria add);
         }
@@ -831,7 +931,7 @@ public class SunStaticIncomeHundredExample {
      * This class was generated by MyBatis Generator.
      * This class corresponds to the database table sun_static_income_hundred
      *
-     * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+     * @mbg.generated Sat Oct 16 14:42:43 CST 2021
      */
     public static class Criterion {
         private String condition;
@@ -924,7 +1024,7 @@ public class SunStaticIncomeHundredExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         void criteria(Criteria criteria);
     }
@@ -934,7 +1034,7 @@ public class SunStaticIncomeHundredExample {
          * This method was generated by MyBatis Generator.
          * This method corresponds to the database table sun_static_income_hundred
          *
-         * @mbg.generated Fri Oct 15 21:30:01 CST 2021
+         * @mbg.generated Sat Oct 16 14:42:43 CST 2021
          */
         void example(com.book.dao.polardb.pojo.example.SunStaticIncomeHundredExample example);
     }

+ 35 - 1
book-dao/src/main/java/com/book/dao/utils/TimeUtil.java

@@ -388,7 +388,41 @@ public class TimeUtil {
         return sdf.format(rightNow.getTime());
     }
 
+    /**
+     * 获取前一天的日期字符串
+     * 2021-10-09
+     *
+     * @param dateStr str日期
+     * @return {@link String}
+     * @throws ParseException 解析异常
+     */
+    public static String getPreDay(String dateStr) throws ParseException {
+        SimpleDateFormat sdf = new SimpleDateFormat(YYYY_MM_DD);
+        Date dt = sdf.parse(dateStr);
+
+        Calendar rightNow = Calendar.getInstance();
+        rightNow.setTime(dt);
+        rightNow.add(Calendar.DAY_OF_YEAR, -1);
+        return sdf.format(rightNow.getTime());
+    }
+
+    /**
+     * 相差天数
+     * 注意:!!!日期相同视为相隔 1 天,情况比较特殊,算第几天
+     *
+     * @param dateStr1 日期str1
+     * @param dateStr2 日期str2
+     * @return int
+     */
+    public static int diffDays(String dateStr1,String dateStr2) throws ParseException {
+        SimpleDateFormat sdf = new SimpleDateFormat(YYYY_MM_DD);
+        Date dt1 = sdf.parse(dateStr1);
+        Date dt2 = sdf.parse(dateStr2);
+        int days = (int) ((dt1.getTime() - dt2.getTime()) / (1000*3600*24));
+        return days + 1;
+    }
+
     public static void main(String[] args) throws ParseException {
-        System.out.println(getTomorrowStr());
+        System.out.println(diffDays("2021-10-09","2021-09-08"));
     }
 }

+ 120 - 0
book-dao/src/main/resources/mapper/polar/Sun2Mapper.xml

@@ -0,0 +1,120 @@
+<?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.Sun2Mapper">
+    <select id="selectUserByDay" resultType="java.util.HashMap">
+    <![CDATA[
+        SELECT COUNT(DISTINCT (openid))        as new_recharge_user,
+               IFNULL(sum(recharge_amount), 0) as new_recharge_sum,
+               count(recharge_num)             as new_recharge_count
+        FROM sun_user
+        WHERE start_time >= #{startDate}
+          and end_time < #{endDate}
+          and recharge_num > 0;
+        ]]>
+</select>
+
+    <select id="selectNewUserByDayChannel" resultType="java.util.HashMap">
+    <![CDATA[
+        SELECT t.*, t2.channel_name
+        FROM (
+                 SELECT channel_id,
+                        COUNT(DISTINCT (openid))        as new_recharge_user,
+                        IFNULL(sum(recharge_amount), 0) as new_recharge_sum,
+                        count(recharge_num)             as new_recharge_count
+                 FROM sun_user
+                 WHERE start_time >= #{startDate}
+                   and end_time < #{endDate}
+                   and recharge_num > 0
+                 GROUP BY channel_id
+             ) t
+                 LEFT JOIN sun_channel t2 on t.channel_id = t2.channel_id;
+        ]]>
+  </select>
+
+    <select id="selectCountUserByDay" resultType="java.lang.Integer">
+    <![CDATA[
+        SELECT COUNT(1)
+        FROM sun_user
+        WHERE start_time >= #{startDate}
+          and end_time < #{endDate};
+        ]]>
+  </select>
+
+    <select id="selectCountByDayChannel" resultType="java.util.HashMap">
+      <![CDATA[
+        SELECT channel_id, COUNT(DISTINCT (openid)) as user_count
+        FROM sun_user
+        WHERE start_time >= #{startDate}
+          and end_time < #{endDate}
+        GROUP BY channel_id
+        ]]>
+    </select>
+
+    <select id="selectIncomeNewUserRechargeByDayChannel" resultType="java.util.HashMap">
+    <![CDATA[
+        SELECT DATE_FORMAT(t.user_createtime, "%Y-%m-%d") as static_date, SUM(money) as new_recharge_sum
+        FROM sun_order t
+        WHERE t.create_time >= #{startDate}
+          and t.create_time < #{endDate}
+          and channel_id = #{channelId}
+          and t.state = '完成'
+        GROUP BY DATE_FORMAT(t.user_createtime, "%Y-%m-%d");
+        ]]>
+</select>
+    <select id="selectIncomeNewUserCountByDayChannel" resultType="java.util.HashMap">
+        <![CDATA[
+        SELECT t.channel_id,
+               count(1) as new_user_count
+        FROM sun_user t
+        WHERE t.registertime >= #{startDate}
+          AND t.registertime < #{endDate}
+        GROUP BY t.channel_id;
+        ]]>
+    </select>
+    <select id="selectIncomeNewUserRegisterCountByDayChannel" resultType="java.util.HashMap">
+        <![CDATA[
+        SELECT t.channel_id,
+               count(1) as new_follow_count
+        FROM sun_user t
+        WHERE t.subscribe_time >= #{startDate}
+          AND t.subscribe_time < #{endDate}
+        GROUP BY t.channel_id;
+        ]]>
+    </select>
+    <select id="selectIncomeCount" resultType="java.util.HashMap">
+        SELECT sum(t.new_user_count)   AS new_user_count,
+               sum(t.new_follow_count) AS new_follow_count,
+               sum(t.new_recharge_sum) AS new_recharge_sum,
+               sum(t.all_spend)        AS all_spend,
+               sum(t.all_recharge)     AS all_recharge
+        FROM sun_static_income_channel t
+        WHERE t.static_date = #{dateStr};
+    </select>
+    <select id="selectIncomeHistoryCount" resultType="java.util.HashMap">
+        SELECT t.static_date,
+               t.day_num,
+               sum(t.recharge_sum) AS recharge_sum
+        FROM sun_static_income_hundred_channel t
+        WHERE insert_date = #{dateStr}
+        GROUP BY t.static_date,
+                 t.day_num;
+    </select>
+    <select id="selectTodayNewUserRecharge" resultType="java.lang.String">
+        <![CDATA[
+        SELECT sum(money)
+        FROM sun_order t
+        WHERE t.user_createtime >= #{startDate}
+          AND t.user_createtime < #{endDate}
+          AND t.state = '完成'
+          AND t.create_time >= #{startDate}
+          AND t.create_time < #{endDate}
+        ]]>
+    </select>
+    <select id="selectIncomeRechargeByChannel" resultType="java.lang.String">
+        SELECT sum(t.recharge_sum) from sun_static_income_hundred_channel t where t.channel_id=#{channelId} and t.static_date=#{dateStr};
+    </select>
+    <select id="selectIncomeRecharge" resultType="java.lang.String">
+        SELECT sum(t.recharge_sum) from sun_static_income_hundred t where t.static_date=#{dateStr};
+    </select>
+
+</mapper>

+ 60 - 60
book-dao/src/main/resources/mapper/polar/SunStaticIncomeChannelMapper.xml

@@ -5,7 +5,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
@@ -14,7 +14,7 @@
     <result column="book_name" jdbcType="VARCHAR" property="bookName" />
     <result column="new_user_count" jdbcType="INTEGER" property="newUserCount" />
     <result column="new_follow_count" jdbcType="INTEGER" property="newFollowCount" />
-    <result column="new_recharge_count" jdbcType="VARCHAR" property="newRechargeCount" />
+    <result column="new_recharge_sum" jdbcType="VARCHAR" property="newRechargeSum" />
     <result column="all_spend" jdbcType="VARCHAR" property="allSpend" />
     <result column="first_roi" jdbcType="VARCHAR" property="firstRoi" />
     <result column="all_recharge" jdbcType="VARCHAR" property="allRecharge" />
@@ -26,7 +26,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -60,7 +60,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -94,16 +94,16 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     id, static_date, channel_id, channel_name, book_name, new_user_count, new_follow_count, 
-    new_recharge_count, all_spend, first_roi, all_recharge, all_roi, insert_time, update_time
+    new_recharge_sum, all_spend, first_roi, all_recharge, all_roi, insert_time, update_time
   </sql>
   <select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticIncomeChannelExample" resultMap="BaseResultMap">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select
     <if test="distinct">
@@ -130,14 +130,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -166,7 +166,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -177,11 +177,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -197,7 +197,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     delete from sun_static_income_channel
     where id = #{id,jdbcType=INTEGER}
@@ -206,7 +206,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     delete from sun_static_income_channel
     <if test="_parameter != null">
@@ -217,16 +217,16 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_channel (id, static_date, channel_id, 
       channel_name, book_name, new_user_count, 
-      new_follow_count, new_recharge_count, all_spend, 
+      new_follow_count, new_recharge_sum, all_spend, 
       first_roi, all_recharge, all_roi, 
       insert_time, update_time)
     values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR}, 
       #{channelName,jdbcType=VARCHAR}, #{bookName,jdbcType=VARCHAR}, #{newUserCount,jdbcType=INTEGER}, 
-      #{newFollowCount,jdbcType=INTEGER}, #{newRechargeCount,jdbcType=VARCHAR}, #{allSpend,jdbcType=VARCHAR}, 
+      #{newFollowCount,jdbcType=INTEGER}, #{newRechargeSum,jdbcType=VARCHAR}, #{allSpend,jdbcType=VARCHAR}, 
       #{firstRoi,jdbcType=VARCHAR}, #{allRecharge,jdbcType=VARCHAR}, #{allRoi,jdbcType=VARCHAR}, 
       #{insertTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
   </insert>
@@ -234,11 +234,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_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>
@@ -266,8 +266,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count,
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count,
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum,
           </if>
           <if test="record.allSpend != null">
             all_spend,
@@ -293,7 +293,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>
@@ -321,8 +321,8 @@
           <if test="record.newFollowCount != null">
             #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             #{record.allSpend,jdbcType=VARCHAR},
@@ -350,7 +350,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select count(*) from sun_static_income_channel
     <if test="_parameter != null">
@@ -361,12 +361,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_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>
@@ -394,8 +394,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count = #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count = #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             all_spend = #{record.allSpend,jdbcType=VARCHAR},
@@ -426,7 +426,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_channel
     set id = #{record.id,jdbcType=INTEGER},
@@ -436,7 +436,7 @@
       book_name = #{record.bookName,jdbcType=VARCHAR},
       new_user_count = #{record.newUserCount,jdbcType=INTEGER},
       new_follow_count = #{record.newFollowCount,jdbcType=INTEGER},
-      new_recharge_count = #{record.newRechargeCount,jdbcType=VARCHAR},
+      new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
       all_spend = #{record.allSpend,jdbcType=VARCHAR},
       first_roi = #{record.firstRoi,jdbcType=VARCHAR},
       all_recharge = #{record.allRecharge,jdbcType=VARCHAR},
@@ -451,12 +451,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_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>
@@ -481,8 +481,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count = #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count = #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             all_spend = #{record.allSpend,jdbcType=VARCHAR},
@@ -511,7 +511,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_channel
     set static_date = #{staticDate,jdbcType=VARCHAR},
@@ -520,7 +520,7 @@
       book_name = #{bookName,jdbcType=VARCHAR},
       new_user_count = #{newUserCount,jdbcType=INTEGER},
       new_follow_count = #{newFollowCount,jdbcType=INTEGER},
-      new_recharge_count = #{newRechargeCount,jdbcType=VARCHAR},
+      new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR},
       all_spend = #{allSpend,jdbcType=VARCHAR},
       first_roi = #{firstRoi,jdbcType=VARCHAR},
       all_recharge = #{allRecharge,jdbcType=VARCHAR},
@@ -533,7 +533,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select
     <include refid="Base_Column_List" />
@@ -550,11 +550,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -576,17 +576,17 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_channel
     (id, static_date, channel_id, channel_name, book_name, new_user_count, new_follow_count, 
-      new_recharge_count, all_spend, first_roi, all_recharge, all_roi, insert_time, update_time
+      new_recharge_sum, all_spend, first_roi, all_recharge, all_roi, insert_time, update_time
       )
     values
     <foreach collection="list" item="item" separator=",">
       (#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.channelId,jdbcType=VARCHAR}, 
         #{item.channelName,jdbcType=VARCHAR}, #{item.bookName,jdbcType=VARCHAR}, #{item.newUserCount,jdbcType=INTEGER}, 
-        #{item.newFollowCount,jdbcType=INTEGER}, #{item.newRechargeCount,jdbcType=VARCHAR}, 
+        #{item.newFollowCount,jdbcType=INTEGER}, #{item.newRechargeSum,jdbcType=VARCHAR}, 
         #{item.allSpend,jdbcType=VARCHAR}, #{item.firstRoi,jdbcType=VARCHAR}, #{item.allRecharge,jdbcType=VARCHAR}, 
         #{item.allRoi,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}
         )
@@ -596,7 +596,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_channel (
     <foreach collection="selective" item="column" separator=",">
@@ -628,8 +628,8 @@
         <if test="'new_follow_count'.toString() == column.value">
           #{item.newFollowCount,jdbcType=INTEGER}
         </if>
-        <if test="'new_recharge_count'.toString() == column.value">
-          #{item.newRechargeCount,jdbcType=VARCHAR}
+        <if test="'new_recharge_sum'.toString() == column.value">
+          #{item.newRechargeSum,jdbcType=VARCHAR}
         </if>
         <if test="'all_spend'.toString() == column.value">
           #{item.allSpend,jdbcType=VARCHAR}
@@ -657,11 +657,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_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>
@@ -689,8 +689,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count,
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count,
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum,
           </if>
           <if test="record.allSpend != null">
             all_spend,
@@ -716,7 +716,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>
@@ -744,8 +744,8 @@
           <if test="record.newFollowCount != null">
             #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             #{record.allSpend,jdbcType=VARCHAR},
@@ -770,7 +770,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>
@@ -798,8 +798,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count = #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count = #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             all_spend = #{record.allSpend,jdbcType=VARCHAR},
@@ -827,16 +827,16 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_channel
     (id, static_date, channel_id, channel_name, book_name, new_user_count, new_follow_count, 
-      new_recharge_count, all_spend, first_roi, all_recharge, all_roi, insert_time, update_time
+      new_recharge_sum, all_spend, first_roi, all_recharge, all_roi, insert_time, update_time
       )
     values
     (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR}, 
       #{channelName,jdbcType=VARCHAR}, #{bookName,jdbcType=VARCHAR}, #{newUserCount,jdbcType=INTEGER}, 
-      #{newFollowCount,jdbcType=INTEGER}, #{newRechargeCount,jdbcType=VARCHAR}, #{allSpend,jdbcType=VARCHAR}, 
+      #{newFollowCount,jdbcType=INTEGER}, #{newRechargeSum,jdbcType=VARCHAR}, #{allSpend,jdbcType=VARCHAR}, 
       #{firstRoi,jdbcType=VARCHAR}, #{allRecharge,jdbcType=VARCHAR}, #{allRoi,jdbcType=VARCHAR}, 
       #{insertTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
     on duplicate key update 
@@ -847,7 +847,7 @@
     book_name = #{bookName,jdbcType=VARCHAR}, 
     new_user_count = #{newUserCount,jdbcType=INTEGER}, 
     new_follow_count = #{newFollowCount,jdbcType=INTEGER}, 
-    new_recharge_count = #{newRechargeCount,jdbcType=VARCHAR}, 
+    new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR}, 
     all_spend = #{allSpend,jdbcType=VARCHAR}, 
     first_roi = #{firstRoi,jdbcType=VARCHAR}, 
     all_recharge = #{allRecharge,jdbcType=VARCHAR}, 

+ 95 - 63
book-dao/src/main/resources/mapper/polar/SunStaticIncomeHundredChannelMapper.xml

@@ -5,19 +5,20 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
     <result column="channel_id" jdbcType="VARCHAR" property="channelId" />
-    <result column="recharge_count" jdbcType="VARCHAR" property="rechargeCount" />
+    <result column="recharge_sum" jdbcType="VARCHAR" property="rechargeSum" />
     <result column="day_num" jdbcType="INTEGER" property="dayNum" />
+    <result column="insert_date" jdbcType="VARCHAR" property="insertDate" />
   </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 Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -51,7 +52,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -85,15 +86,15 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
-    id, static_date, channel_id, recharge_count, day_num
+    id, static_date, channel_id, recharge_sum, day_num, insert_date
   </sql>
   <select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticIncomeHundredChannelExample" resultMap="BaseResultMap">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select
     <if test="distinct">
@@ -120,14 +121,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -156,7 +157,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -167,11 +168,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -187,7 +188,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     delete from sun_static_income_hundred_channel
     where id = #{id,jdbcType=INTEGER}
@@ -196,7 +197,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     delete from sun_static_income_hundred_channel
     <if test="_parameter != null">
@@ -207,22 +208,24 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred_channel (id, static_date, channel_id, 
-      recharge_count, day_num)
+      recharge_sum, day_num, insert_date
+      )
     values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR}, 
-      #{rechargeCount,jdbcType=VARCHAR}, #{dayNum,jdbcType=INTEGER})
+      #{rechargeSum,jdbcType=VARCHAR}, #{dayNum,jdbcType=INTEGER}, #{insertDate,jdbcType=VARCHAR}
+      )
   </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 Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred_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>
@@ -238,19 +241,22 @@
           <if test="record.channelId != null">
             channel_id,
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count,
+          <if test="record.rechargeSum != null">
+            recharge_sum,
           </if>
           <if test="record.dayNum != null">
             day_num,
           </if>
+          <if test="record.insertDate != null">
+            insert_date,
+          </if>
         </trim>
         <trim prefix="(" suffix=")" suffixOverrides="," />
       </otherwise>
     </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>
@@ -266,12 +272,15 @@
           <if test="record.channelId != null">
             #{record.channelId,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </choose>
@@ -280,7 +289,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select count(*) from sun_static_income_hundred_channel
     <if test="_parameter != null">
@@ -291,12 +300,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_hundred_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>
@@ -312,12 +321,15 @@
           <if test="record.channelId != null">
             channel_id = #{record.channelId,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count = #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             day_num = #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            insert_date = #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </choose>
@@ -329,14 +341,15 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_hundred_channel
     set id = #{record.id,jdbcType=INTEGER},
       static_date = #{record.staticDate,jdbcType=VARCHAR},
       channel_id = #{record.channelId,jdbcType=VARCHAR},
-      recharge_count = #{record.rechargeCount,jdbcType=VARCHAR},
-      day_num = #{record.dayNum,jdbcType=INTEGER}
+      recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
+      day_num = #{record.dayNum,jdbcType=INTEGER},
+      insert_date = #{record.insertDate,jdbcType=VARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -345,12 +358,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_hundred_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>
@@ -363,12 +376,15 @@
           <if test="record.channelId != null">
             channel_id = #{record.channelId,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count = #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             day_num = #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            insert_date = #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </choose>
@@ -378,20 +394,21 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_hundred_channel
     set static_date = #{staticDate,jdbcType=VARCHAR},
       channel_id = #{channelId,jdbcType=VARCHAR},
-      recharge_count = #{rechargeCount,jdbcType=VARCHAR},
-      day_num = #{dayNum,jdbcType=INTEGER}
+      recharge_sum = #{rechargeSum,jdbcType=VARCHAR},
+      day_num = #{dayNum,jdbcType=INTEGER},
+      insert_date = #{insertDate,jdbcType=VARCHAR}
     where id = #{id,jdbcType=INTEGER}
   </update>
   <select id="selectOneByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticIncomeHundredChannelExample" resultMap="BaseResultMap">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select
     <include refid="Base_Column_List" />
@@ -408,11 +425,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -434,21 +451,22 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred_channel
-    (id, static_date, channel_id, recharge_count, day_num)
+    (id, static_date, channel_id, recharge_sum, day_num, insert_date)
     values
     <foreach collection="list" item="item" separator=",">
       (#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.channelId,jdbcType=VARCHAR}, 
-        #{item.rechargeCount,jdbcType=VARCHAR}, #{item.dayNum,jdbcType=INTEGER})
+        #{item.rechargeSum,jdbcType=VARCHAR}, #{item.dayNum,jdbcType=INTEGER}, #{item.insertDate,jdbcType=VARCHAR}
+        )
     </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 Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred_channel (
     <foreach collection="selective" item="column" separator=",">
@@ -468,12 +486,15 @@
         <if test="'channel_id'.toString() == column.value">
           #{item.channelId,jdbcType=VARCHAR}
         </if>
-        <if test="'recharge_count'.toString() == column.value">
-          #{item.rechargeCount,jdbcType=VARCHAR}
+        <if test="'recharge_sum'.toString() == column.value">
+          #{item.rechargeSum,jdbcType=VARCHAR}
         </if>
         <if test="'day_num'.toString() == column.value">
           #{item.dayNum,jdbcType=INTEGER}
         </if>
+        <if test="'insert_date'.toString() == column.value">
+          #{item.insertDate,jdbcType=VARCHAR}
+        </if>
       </foreach>
       )
     </foreach>
@@ -482,11 +503,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred_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>
@@ -502,19 +523,22 @@
           <if test="record.channelId != null">
             channel_id,
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count,
+          <if test="record.rechargeSum != null">
+            recharge_sum,
           </if>
           <if test="record.dayNum != null">
             day_num,
           </if>
+          <if test="record.insertDate != null">
+            insert_date,
+          </if>
         </trim>
         <trim prefix="(" suffix=")" suffixOverrides="," />
       </otherwise>
     </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>
@@ -530,18 +554,21 @@
           <if test="record.channelId != null">
             #{record.channelId,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </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>
@@ -557,12 +584,15 @@
           <if test="record.channelId != null">
             channel_id = #{record.channelId,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count = #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             day_num = #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            insert_date = #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </choose>
@@ -571,18 +601,20 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred_channel
-    (id, static_date, channel_id, recharge_count, day_num)
+    (id, static_date, channel_id, recharge_sum, day_num, insert_date)
     values
     (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{channelId,jdbcType=VARCHAR}, 
-      #{rechargeCount,jdbcType=VARCHAR}, #{dayNum,jdbcType=INTEGER})
+      #{rechargeSum,jdbcType=VARCHAR}, #{dayNum,jdbcType=INTEGER}, #{insertDate,jdbcType=VARCHAR}
+      )
     on duplicate key update 
     id = #{id,jdbcType=INTEGER}, 
     static_date = #{staticDate,jdbcType=VARCHAR}, 
     channel_id = #{channelId,jdbcType=VARCHAR}, 
-    recharge_count = #{rechargeCount,jdbcType=VARCHAR}, 
-    day_num = #{dayNum,jdbcType=INTEGER}
+    recharge_sum = #{rechargeSum,jdbcType=VARCHAR}, 
+    day_num = #{dayNum,jdbcType=INTEGER}, 
+    insert_date = #{insertDate,jdbcType=VARCHAR}
   </insert>
 </mapper>

+ 95 - 67
book-dao/src/main/resources/mapper/polar/SunStaticIncomeHundredMapper.xml

@@ -5,18 +5,19 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
-    <result column="recharge_count" jdbcType="VARCHAR" property="rechargeCount" />
+    <result column="recharge_sum" jdbcType="VARCHAR" property="rechargeSum" />
     <result column="day_num" jdbcType="INTEGER" property="dayNum" />
+    <result column="insert_date" jdbcType="VARCHAR" property="insertDate" />
   </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 Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -50,7 +51,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -84,15 +85,15 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
-    id, static_date, recharge_count, day_num
+    id, static_date, recharge_sum, day_num, insert_date
   </sql>
   <select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticIncomeHundredExample" resultMap="BaseResultMap">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select
     <if test="distinct">
@@ -119,14 +120,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -155,7 +156,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -166,11 +167,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -186,7 +187,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     delete from sun_static_income_hundred
     where id = #{id,jdbcType=INTEGER}
@@ -195,7 +196,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     delete from sun_static_income_hundred
     <if test="_parameter != null">
@@ -206,22 +207,22 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
-    insert into sun_static_income_hundred (id, static_date, recharge_count, 
-      day_num)
-    values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{rechargeCount,jdbcType=VARCHAR}, 
-      #{dayNum,jdbcType=INTEGER})
+    insert into sun_static_income_hundred (id, static_date, recharge_sum, 
+      day_num, insert_date)
+    values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{rechargeSum,jdbcType=VARCHAR}, 
+      #{dayNum,jdbcType=INTEGER}, #{insertDate,jdbcType=VARCHAR})
   </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 Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred
     <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>
@@ -234,19 +235,22 @@
           <if test="record.staticDate != null">
             static_date,
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count,
+          <if test="record.rechargeSum != null">
+            recharge_sum,
           </if>
           <if test="record.dayNum != null">
             day_num,
           </if>
+          <if test="record.insertDate != null">
+            insert_date,
+          </if>
         </trim>
         <trim prefix="(" suffix=")" suffixOverrides="," />
       </otherwise>
     </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>
@@ -259,12 +263,15 @@
           <if test="record.staticDate != null">
             #{record.staticDate,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </choose>
@@ -273,7 +280,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select count(*) from sun_static_income_hundred
     <if test="_parameter != null">
@@ -284,12 +291,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_hundred
     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>
@@ -302,12 +309,15 @@
           <if test="record.staticDate != null">
             static_date = #{record.staticDate,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count = #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             day_num = #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            insert_date = #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </choose>
@@ -319,13 +329,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_hundred
     set id = #{record.id,jdbcType=INTEGER},
       static_date = #{record.staticDate,jdbcType=VARCHAR},
-      recharge_count = #{record.rechargeCount,jdbcType=VARCHAR},
-      day_num = #{record.dayNum,jdbcType=INTEGER}
+      recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
+      day_num = #{record.dayNum,jdbcType=INTEGER},
+      insert_date = #{record.insertDate,jdbcType=VARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -334,12 +345,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_hundred
     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>
@@ -349,12 +360,15 @@
           <if test="record.staticDate != null">
             static_date = #{record.staticDate,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count = #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             day_num = #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            insert_date = #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </choose>
@@ -364,19 +378,20 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income_hundred
     set static_date = #{staticDate,jdbcType=VARCHAR},
-      recharge_count = #{rechargeCount,jdbcType=VARCHAR},
-      day_num = #{dayNum,jdbcType=INTEGER}
+      recharge_sum = #{rechargeSum,jdbcType=VARCHAR},
+      day_num = #{dayNum,jdbcType=INTEGER},
+      insert_date = #{insertDate,jdbcType=VARCHAR}
     where id = #{id,jdbcType=INTEGER}
   </update>
   <select id="selectOneByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticIncomeHundredExample" resultMap="BaseResultMap">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select
     <include refid="Base_Column_List" />
@@ -393,11 +408,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -419,21 +434,21 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred
-    (id, static_date, recharge_count, day_num)
+    (id, static_date, recharge_sum, day_num, insert_date)
     values
     <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.rechargeCount,jdbcType=VARCHAR}, 
-        #{item.dayNum,jdbcType=INTEGER})
+      (#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.rechargeSum,jdbcType=VARCHAR}, 
+        #{item.dayNum,jdbcType=INTEGER}, #{item.insertDate,jdbcType=VARCHAR})
     </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 Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred (
     <foreach collection="selective" item="column" separator=",">
@@ -450,12 +465,15 @@
         <if test="'static_date'.toString() == column.value">
           #{item.staticDate,jdbcType=VARCHAR}
         </if>
-        <if test="'recharge_count'.toString() == column.value">
-          #{item.rechargeCount,jdbcType=VARCHAR}
+        <if test="'recharge_sum'.toString() == column.value">
+          #{item.rechargeSum,jdbcType=VARCHAR}
         </if>
         <if test="'day_num'.toString() == column.value">
           #{item.dayNum,jdbcType=INTEGER}
         </if>
+        <if test="'insert_date'.toString() == column.value">
+          #{item.insertDate,jdbcType=VARCHAR}
+        </if>
       </foreach>
       )
     </foreach>
@@ -464,11 +482,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred
     <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>
@@ -481,19 +499,22 @@
           <if test="record.staticDate != null">
             static_date,
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count,
+          <if test="record.rechargeSum != null">
+            recharge_sum,
           </if>
           <if test="record.dayNum != null">
             day_num,
           </if>
+          <if test="record.insertDate != null">
+            insert_date,
+          </if>
         </trim>
         <trim prefix="(" suffix=")" suffixOverrides="," />
       </otherwise>
     </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>
@@ -506,18 +527,21 @@
           <if test="record.staticDate != null">
             #{record.staticDate,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </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>
@@ -530,12 +554,15 @@
           <if test="record.staticDate != null">
             static_date = #{record.staticDate,jdbcType=VARCHAR},
           </if>
-          <if test="record.rechargeCount != null">
-            recharge_count = #{record.rechargeCount,jdbcType=VARCHAR},
+          <if test="record.rechargeSum != null">
+            recharge_sum = #{record.rechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.dayNum != null">
             day_num = #{record.dayNum,jdbcType=INTEGER},
           </if>
+          <if test="record.insertDate != null">
+            insert_date = #{record.insertDate,jdbcType=VARCHAR},
+          </if>
         </trim>
       </otherwise>
     </choose>
@@ -544,17 +571,18 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income_hundred
-    (id, static_date, recharge_count, day_num)
+    (id, static_date, recharge_sum, day_num, insert_date)
     values
-    (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{rechargeCount,jdbcType=VARCHAR}, 
-      #{dayNum,jdbcType=INTEGER})
+    (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{rechargeSum,jdbcType=VARCHAR}, 
+      #{dayNum,jdbcType=INTEGER}, #{insertDate,jdbcType=VARCHAR})
     on duplicate key update 
     id = #{id,jdbcType=INTEGER}, 
     static_date = #{staticDate,jdbcType=VARCHAR}, 
-    recharge_count = #{rechargeCount,jdbcType=VARCHAR}, 
-    day_num = #{dayNum,jdbcType=INTEGER}
+    recharge_sum = #{rechargeSum,jdbcType=VARCHAR}, 
+    day_num = #{dayNum,jdbcType=INTEGER}, 
+    insert_date = #{insertDate,jdbcType=VARCHAR}
   </insert>
 </mapper>

+ 61 - 61
book-dao/src/main/resources/mapper/polar/SunStaticIncomeMapper.xml

@@ -5,13 +5,13 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="static_date" jdbcType="VARCHAR" property="staticDate" />
     <result column="new_user_count" jdbcType="INTEGER" property="newUserCount" />
     <result column="new_follow_count" jdbcType="INTEGER" property="newFollowCount" />
-    <result column="new_recharge_count" jdbcType="VARCHAR" property="newRechargeCount" />
+    <result column="new_recharge_sum" jdbcType="VARCHAR" property="newRechargeSum" />
     <result column="all_spend" jdbcType="VARCHAR" property="allSpend" />
     <result column="first_roi" jdbcType="VARCHAR" property="firstRoi" />
     <result column="all_recharge" jdbcType="VARCHAR" property="allRecharge" />
@@ -23,7 +23,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -57,7 +57,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -91,16 +91,16 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
-    id, static_date, new_user_count, new_follow_count, new_recharge_count, all_spend, 
-    first_roi, all_recharge, all_roi, insert_time, update_time
+    id, static_date, new_user_count, new_follow_count, new_recharge_sum, all_spend, first_roi, 
+    all_recharge, all_roi, insert_time, update_time
   </sql>
   <select id="selectByExample" parameterType="com.book.dao.polardb.pojo.example.SunStaticIncomeExample" resultMap="BaseResultMap">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select
     <if test="distinct">
@@ -127,14 +127,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -163,7 +163,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -174,11 +174,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -194,7 +194,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     delete from sun_static_income
     where id = #{id,jdbcType=INTEGER}
@@ -203,7 +203,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     delete from sun_static_income
     <if test="_parameter != null">
@@ -214,14 +214,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income (id, static_date, new_user_count, 
-      new_follow_count, new_recharge_count, all_spend, 
+      new_follow_count, new_recharge_sum, all_spend, 
       first_roi, all_recharge, all_roi, 
       insert_time, update_time)
     values (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{newUserCount,jdbcType=INTEGER}, 
-      #{newFollowCount,jdbcType=INTEGER}, #{newRechargeCount,jdbcType=VARCHAR}, #{allSpend,jdbcType=VARCHAR}, 
+      #{newFollowCount,jdbcType=INTEGER}, #{newRechargeSum,jdbcType=VARCHAR}, #{allSpend,jdbcType=VARCHAR}, 
       #{firstRoi,jdbcType=VARCHAR}, #{allRecharge,jdbcType=VARCHAR}, #{allRoi,jdbcType=VARCHAR}, 
       #{insertTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
   </insert>
@@ -229,11 +229,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income
     <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>
@@ -252,8 +252,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count,
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count,
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum,
           </if>
           <if test="record.allSpend != null">
             all_spend,
@@ -279,7 +279,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>
@@ -298,8 +298,8 @@
           <if test="record.newFollowCount != null">
             #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             #{record.allSpend,jdbcType=VARCHAR},
@@ -327,7 +327,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select count(*) from sun_static_income
     <if test="_parameter != null">
@@ -338,12 +338,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income
     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,8 +362,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count = #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count = #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             all_spend = #{record.allSpend,jdbcType=VARCHAR},
@@ -394,14 +394,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income
     set id = #{record.id,jdbcType=INTEGER},
       static_date = #{record.staticDate,jdbcType=VARCHAR},
       new_user_count = #{record.newUserCount,jdbcType=INTEGER},
       new_follow_count = #{record.newFollowCount,jdbcType=INTEGER},
-      new_recharge_count = #{record.newRechargeCount,jdbcType=VARCHAR},
+      new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
       all_spend = #{record.allSpend,jdbcType=VARCHAR},
       first_roi = #{record.firstRoi,jdbcType=VARCHAR},
       all_recharge = #{record.allRecharge,jdbcType=VARCHAR},
@@ -416,12 +416,12 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income
     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>
@@ -437,8 +437,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count = #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count = #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             all_spend = #{record.allSpend,jdbcType=VARCHAR},
@@ -467,13 +467,13 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     update sun_static_income
     set static_date = #{staticDate,jdbcType=VARCHAR},
       new_user_count = #{newUserCount,jdbcType=INTEGER},
       new_follow_count = #{newFollowCount,jdbcType=INTEGER},
-      new_recharge_count = #{newRechargeCount,jdbcType=VARCHAR},
+      new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR},
       all_spend = #{allSpend,jdbcType=VARCHAR},
       first_roi = #{firstRoi,jdbcType=VARCHAR},
       all_recharge = #{allRecharge,jdbcType=VARCHAR},
@@ -486,7 +486,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     select
     <include refid="Base_Column_List" />
@@ -503,11 +503,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 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>
@@ -529,15 +529,15 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income
-    (id, static_date, new_user_count, new_follow_count, new_recharge_count, all_spend, 
+    (id, static_date, new_user_count, new_follow_count, new_recharge_sum, all_spend, 
       first_roi, all_recharge, all_roi, insert_time, update_time)
     values
     <foreach collection="list" item="item" separator=",">
       (#{item.id,jdbcType=INTEGER}, #{item.staticDate,jdbcType=VARCHAR}, #{item.newUserCount,jdbcType=INTEGER}, 
-        #{item.newFollowCount,jdbcType=INTEGER}, #{item.newRechargeCount,jdbcType=VARCHAR}, 
+        #{item.newFollowCount,jdbcType=INTEGER}, #{item.newRechargeSum,jdbcType=VARCHAR}, 
         #{item.allSpend,jdbcType=VARCHAR}, #{item.firstRoi,jdbcType=VARCHAR}, #{item.allRecharge,jdbcType=VARCHAR}, 
         #{item.allRoi,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}
         )
@@ -547,7 +547,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income (
     <foreach collection="selective" item="column" separator=",">
@@ -570,8 +570,8 @@
         <if test="'new_follow_count'.toString() == column.value">
           #{item.newFollowCount,jdbcType=INTEGER}
         </if>
-        <if test="'new_recharge_count'.toString() == column.value">
-          #{item.newRechargeCount,jdbcType=VARCHAR}
+        <if test="'new_recharge_sum'.toString() == column.value">
+          #{item.newRechargeSum,jdbcType=VARCHAR}
         </if>
         <if test="'all_spend'.toString() == column.value">
           #{item.allSpend,jdbcType=VARCHAR}
@@ -599,11 +599,11 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income
     <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>
@@ -622,8 +622,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count,
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count,
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum,
           </if>
           <if test="record.allSpend != null">
             all_spend,
@@ -649,7 +649,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>
@@ -668,8 +668,8 @@
           <if test="record.newFollowCount != null">
             #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             #{record.allSpend,jdbcType=VARCHAR},
@@ -694,7 +694,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>
@@ -713,8 +713,8 @@
           <if test="record.newFollowCount != null">
             new_follow_count = #{record.newFollowCount,jdbcType=INTEGER},
           </if>
-          <if test="record.newRechargeCount != null">
-            new_recharge_count = #{record.newRechargeCount,jdbcType=VARCHAR},
+          <if test="record.newRechargeSum != null">
+            new_recharge_sum = #{record.newRechargeSum,jdbcType=VARCHAR},
           </if>
           <if test="record.allSpend != null">
             all_spend = #{record.allSpend,jdbcType=VARCHAR},
@@ -742,14 +742,14 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Fri Oct 15 21:30:01 CST 2021.
+      This element was generated on Sat Oct 16 14:42:43 CST 2021.
     -->
     insert into sun_static_income
-    (id, static_date, new_user_count, new_follow_count, new_recharge_count, all_spend, 
+    (id, static_date, new_user_count, new_follow_count, new_recharge_sum, all_spend, 
       first_roi, all_recharge, all_roi, insert_time, update_time)
     values
     (#{id,jdbcType=INTEGER}, #{staticDate,jdbcType=VARCHAR}, #{newUserCount,jdbcType=INTEGER}, 
-      #{newFollowCount,jdbcType=INTEGER}, #{newRechargeCount,jdbcType=VARCHAR}, #{allSpend,jdbcType=VARCHAR}, 
+      #{newFollowCount,jdbcType=INTEGER}, #{newRechargeSum,jdbcType=VARCHAR}, #{allSpend,jdbcType=VARCHAR}, 
       #{firstRoi,jdbcType=VARCHAR}, #{allRecharge,jdbcType=VARCHAR}, #{allRoi,jdbcType=VARCHAR}, 
       #{insertTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
     on duplicate key update 
@@ -757,7 +757,7 @@
     static_date = #{staticDate,jdbcType=VARCHAR}, 
     new_user_count = #{newUserCount,jdbcType=INTEGER}, 
     new_follow_count = #{newFollowCount,jdbcType=INTEGER}, 
-    new_recharge_count = #{newRechargeCount,jdbcType=VARCHAR}, 
+    new_recharge_sum = #{newRechargeSum,jdbcType=VARCHAR}, 
     all_spend = #{allSpend,jdbcType=VARCHAR}, 
     first_roi = #{firstRoi,jdbcType=VARCHAR}, 
     all_recharge = #{allRecharge,jdbcType=VARCHAR}, 

+ 0 - 27
book-dao/src/main/resources/mapper/polar/SunUser2Mapper.xml

@@ -1,27 +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.SunUser2Mapper">
-  <select id="selectByDay" resultType="java.util.HashMap">
-    <![CDATA[
-    SELECT COUNT(DISTINCT(openid)) as new_recharge_user,IFNULL(sum(recharge_amount),0) as new_recharge_sum,count(recharge_num) as new_recharge_count FROM sun_user WHERE start_time>=#{startDate} and end_time < #{endDate} and recharge_num>0;
-    ]]>
-</select>
-  <select id="selectByDayChannel" resultType="java.util.HashMap">
-    <![CDATA[
-    SELECT t.*,t2.channel_name FROM
-      (
-        SELECT channel_id,COUNT(DISTINCT(openid)) as new_recharge_user,IFNULL(sum(recharge_amount),0) as new_recharge_sum,count(recharge_num) as new_recharge_count  FROM sun_user WHERE start_time>=#{startDate} and end_time<#{endDate} and recharge_num>0 GROUP BY channel_id
-      ) t LEFT JOIN sun_channel t2 on t.channel_id=t2.channel_id;
-    ]]>
-  </select>
-  <select id="selectCountUserByDay" resultType="java.lang.Integer">
-    <![CDATA[
-    SELECT COUNT(1) FROM sun_user WHERE start_time >= #{startDate} and end_time < #{endDate};
-    ]]>
-  </select>
-    <select id="selectCountByDayChannel" resultType="java.util.HashMap">
-      <![CDATA[
-    SELECT channel_id,COUNT(DISTINCT(openid)) as user_count FROM sun_user WHERE start_time>=#{startDate} and end_time<#{endDate} GROUP BY channel_id
-      ]]>
-    </select>
-</mapper>

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

@@ -118,11 +118,23 @@ public class SunDataController extends BaseController {
      */
     @GetMapping("/staticByDate-F891088E-7A75-4F4B-AEB4-A9D1697F5AD3")
     public Result orderStaticByDate(String dateStr) throws ParseException {
-        sunDataService.orderStaticDate(dateStr,TimeUtil.getNextDay(dateStr));
+        sunDataService.orderStaticDate(dateStr, TimeUtil.getNextDay(dateStr));
         sunDataService.userStaticYesterday(dateStr, TimeUtil.getNextDay(dateStr));
         return Result.success();
     }
 
+    /**
+     * 统计-回收重置某天
+     *
+     * @param dateStr
+     * @return
+     */
+    @GetMapping("/incomeStaticByDate-F891088E-7A75-4F4B-AEB4-A9D1697F5AD3")
+    public Result incomeStaticByDate(String dateStr) throws ParseException {
+        sunDataService.incomeStaticDate(dateStr);
+        return Result.success();
+    }
+
 
     /**
      * 订单统计-获取今天
@@ -144,6 +156,16 @@ public class SunDataController extends BaseController {
         return Result.success(sunDataService.getTodayUserStatic());
     }
 
+    /**
+     * 回收统计-获取今天
+     *
+     * @return
+     */
+    @GetMapping("/getTodayIncomeStatic")
+    public Result getTodayIncomeStatic() {
+        return Result.success(sunDataService.getTodayIncomeStatic());
+    }
+
     /**
      * 订单统计-今天按渠道
      *
@@ -311,6 +333,16 @@ public class SunDataController extends BaseController {
         return Result.success(sunDataService.getYesterdayUserStatic());
     }
 
+    /**
+     * 回收统计-昨天
+     *
+     * @return
+     */
+    @GetMapping("/getYesterdayIncomeStatic")
+    public Result getYesterdayIncomeStatic() {
+        return Result.success(sunDataService.getYesterdayIncomeStatic());
+    }
+
     /**
      * 订单统计-历史
      *
@@ -331,6 +363,16 @@ public class SunDataController extends BaseController {
         return Result.success(sunDataService.getHistoryUserStatic());
     }
 
+    /**
+     * 回收统计-历史
+     *
+     * @return
+     */
+    @GetMapping("/getHistoryIncomeStatic")
+    public Result getHistoryIncomeStatic() {
+        return Result.success(sunDataService.getHistoryIncomeStatic());
+    }
+
     /**
      * 订单统计-按天排序
      *

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

@@ -8,6 +8,7 @@ import com.book.server.config.SunTypeEnum;
 import com.book.server.vo.SunNotifyRequest;
 import com.book.server.vo.SunRequest;
 
+import java.text.ParseException;
 import java.util.List;
 import java.util.Map;
 
@@ -67,4 +68,26 @@ public interface SunDataService {
     List<SunStaticUserDayChannel> getUserStaticByDateAndChannel(String date);
 
     List<SunStaticUserDay> getUserStaticsAll();
+
+
+    /**
+     * 回收统计
+     *
+     * @param dateStr str日期
+     */
+    void incomeStatic(String dateStr) throws ParseException;
+
+
+    /**
+     * 重置回收
+     *
+     * @param dateStr str日期
+     */
+    void incomeStaticDate(String dateStr) throws ParseException;
+
+    SunStaticIncome getTodayIncomeStatic();
+
+    SunStaticIncome getYesterdayIncomeStatic();
+
+    SunStaticIncome getHistoryIncomeStatic();
 }

+ 217 - 15
book-server/src/main/java/com/book/server/service/impl/SunDataServiceImpl.java

@@ -1,5 +1,7 @@
 package com.book.server.service.impl;
 
+import java.util.Date;
+
 import com.book.dao.VO.SunVO;
 import com.book.dao.polardb.entity.*;
 import com.book.dao.polardb.mapper.*;
@@ -26,6 +28,7 @@ import org.springframework.stereotype.Service;
 
 import java.math.BigDecimal;
 import java.nio.charset.StandardCharsets;
+import java.text.ParseException;
 import java.util.*;
 import java.util.concurrent.ConcurrentHashMap;
 
@@ -76,7 +79,7 @@ public class SunDataServiceImpl implements SunDataService {
             String s = DataUtil.map2form(map);
 
             String result = HttpUtils.sendPost(url, s.getBytes(StandardCharsets.UTF_8));
-            log.info("请求" + url+":"+sunTypeEnum.getName() + ":" + JsonUtils.toJsonStr(request));
+            log.info("请求" + url + ":" + sunTypeEnum.getName() + ":" + JsonUtils.toJsonStr(request));
             log.info("响应" + sunTypeEnum.getName() + ":" + JsonUtils.toJsonStr(result));
             SunResult object = JsonUtils.getObject(result, SunResult.class);
             if (object != null && 0 == object.getError_code()) {
@@ -171,7 +174,7 @@ public class SunDataServiceImpl implements SunDataService {
             e.printStackTrace();
             log.error("sun解析数据出错:", e.getMessage());
         }
-        log.info("pullData-over--"+JsonUtils.toJsonStr(taskMap));
+        log.info("pullData-over--" + JsonUtils.toJsonStr(taskMap));
     }
 
     private void handleUserActive(List<String> list, Integer taskId) {
@@ -223,16 +226,15 @@ public class SunDataServiceImpl implements SunDataService {
                 gsonBuilder.setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES);
                 Gson gson = gsonBuilder.setDateFormat("yyyy-MM-dd HH:mm:ss").create();
                 SunUser sunUser = gson.fromJson(line, SunUser.class);
-                if (sunUser.getRegistertime() .equals(request.getStart_time())){
+                if (sunUser.getRegistertime().equals(request.getStart_time())) {
                     SunUserExample sunUserExample = SunUserExample.newAndCreateCriteria().andUserIdEqualTo(sunUser.getUserId()).example();
                     List<SunUser> sunUsers = sunUserMapper.selectByExample(sunUserExample);
-                    if (sunUsers!=null && sunUsers.size() >0){
+                    if (sunUsers != null && sunUsers.size() > 0) {
                         continue;
                     }
                 }
 
 
-
                 sunUser.setInsertTime(new Date());
                 sunUser.setStartTime(TimeUtil.dateFromStr(request.getStart_time(), TimeUtil.YYYY_MM_DD_HH_MM_SS));
                 sunUser.setEndTime(TimeUtil.dateFromStr(request.getEnd_time(), TimeUtil.YYYY_MM_DD_HH_MM_SS));
@@ -456,7 +458,7 @@ public class SunDataServiceImpl implements SunDataService {
     @Autowired
     private SunStaticUserDayChannelMapper sunStaticUserDayChannelMapper;
     @Autowired
-    private SunUser2Mapper sunUser2Mapper;
+    private Sun2Mapper sun2Mapper;
 
     @Override
     public void userStaticYesterday(String yesterdayStr, String todayStr) {
@@ -526,12 +528,213 @@ public class SunDataServiceImpl implements SunDataService {
         return sunStaticUserDayMapper.selectByExample(example);
     }
 
+    @Autowired
+    private SunStaticIncomeMapper sunStaticIncomeMapper;
+    @Autowired
+    private SunStaticIncomeChannelMapper sunStaticIncomeChannelMapper;
+    @Autowired
+    private SunStaticIncomeHundredMapper sunStaticIncomeHundredMapper;
+    @Autowired
+    private SunStaticIncomeHundredChannelMapper sunStaticIncomeHundredChannelMapper;
+
+    @Override
+    public void incomeStatic(String dateStr) throws ParseException {
+        String nextDay = TimeUtil.getNextDay(dateStr);
+        // 新增用户数,按渠道汇总
+        List<HashMap<String, String>> countMap = sun2Mapper.selectIncomeNewUserCountByDayChannel(dateStr, nextDay);
+        // 新增充值金额(元),按渠道汇总
+        List<HashMap<String, String>> registerMap = sun2Mapper.selectIncomeNewUserRegisterCountByDayChannel(dateStr, nextDay);
+        //所有渠道信息
+        List<SunChannel> sunChannels = sunChannelMapper.selectByExample(SunChannelExample.newAndCreateCriteria().example());
+        HashSet<String> resetChargeDates = new HashSet<>();
+        for (SunChannel sunChannel : sunChannels) {
+            //当天所有充值,按照用户创建日期 汇总
+            List<HashMap<String, String>> hashMaps = sun2Mapper.selectIncomeNewUserRechargeByDayChannel(dateStr, nextDay, sunChannel.getChannelId());
+            String todayRechargeSum = "0";
+
+            for (HashMap<String, String> hashMap : hashMaps) {
+                String static_date = hashMap.get("static_date");
+                String new_recharge_sum = String.format("%.2f", getFloatFromDb(hashMap.get("new_recharge_sum")));
+                if (dateStr.equals(static_date)) {
+                    todayRechargeSum = new_recharge_sum;
+                }
+                // 第几天
+                int day = TimeUtil.diffDays(dateStr, static_date);
+                if (day > 365) {
+                    continue;
+                }
+                resetChargeDates.add(static_date);
+                //插入历史用户充值统计
+                sunStaticIncomeHundredChannelMapper.insert(SunStaticIncomeHundredChannel.builder()
+                        .staticDate(static_date)
+                        .channelId(sunChannel.getChannelId())
+                        .rechargeSum(new_recharge_sum)
+                        .dayNum(day)
+                        .insertDate(dateStr)
+                        .build());
+                //重新 渠道-日期 历史天的累计
+                computerChanelDateRecharge(sunChannel, static_date);
+            }
+
+            SunStaticIncomeChannel sunStaticIncomeChannel = new SunStaticIncomeChannel();
+            sunStaticIncomeChannel.setStaticDate(dateStr);
+            sunStaticIncomeChannel.setChannelId(sunChannel.getChannelId());
+            sunStaticIncomeChannel.setChannelName(sunChannel.getChannelName());
+            sunStaticIncomeChannel.setBookName(getChannelBookName(sunChannel.getChannelId()));
+            sunStaticIncomeChannel.setNewUserCount(Integer.valueOf(getNumValueFromListMap(countMap, "channel_id", sunChannel.getChannelId(), "new_user_count")));
+            sunStaticIncomeChannel.setNewFollowCount(Integer.valueOf(getNumValueFromListMap(registerMap, "channel_id", sunChannel.getChannelId(), "new_follow_count")));
+            sunStaticIncomeChannel.setNewRechargeSum(todayRechargeSum);
+            sunStaticIncomeChannel.setFirstRoi("");
+            //当天的消耗
+            sunStaticIncomeChannel.setAllSpend("");
+            // 整体 ROI,会变动
+            sunStaticIncomeChannel.setAllRoi("");
+            //累计充值总额,会变动
+            sunStaticIncomeChannel.setAllRecharge(todayRechargeSum);
+            sunStaticIncomeChannel.setInsertTime(new Date());
+            sunStaticIncomeChannel.setUpdateTime(new Date());
+
+            sunStaticIncomeChannelMapper.insert(sunStaticIncomeChannel);
+        }
+
+
+
+        //再统计当天,group 渠道即可
+        HashMap<String, String> incomeMap = sun2Mapper.selectIncomeCount(dateStr);
+        if (incomeMap != null) {
+            SunStaticIncome sunStaticIncome = new SunStaticIncome();
+            sunStaticIncome.setStaticDate(dateStr);
+            sunStaticIncome.setNewUserCount(getIntFromDb(incomeMap.get("new_user_count")));
+            sunStaticIncome.setNewFollowCount(getIntFromDb(incomeMap.get("new_follow_count")));
+            sunStaticIncome.setNewRechargeSum(String.format("%.2f", getFloatFromDb(incomeMap.get("new_recharge_sum"))));
+            sunStaticIncome.setAllSpend(String.format("%.2f", getFloatFromDb(incomeMap.get("all_spend"))));
+            sunStaticIncome.setFirstRoi("");
+            sunStaticIncome.setAllRecharge(String.format("%.2f", getFloatFromDb(incomeMap.get("all_recharge"))));
+            sunStaticIncome.setAllRoi("");
+            sunStaticIncome.setInsertTime(new Date());
+            sunStaticIncome.setUpdateTime(new Date());
+            sunStaticIncomeMapper.insert(sunStaticIncome);
+        }
+
+        //对于今天新增的数据,插入指定日期和天数
+        List<HashMap<String, String>> historyMaps = sun2Mapper.selectIncomeHistoryCount(dateStr);
+        ArrayList<SunStaticIncomeHundred> sunStaticIncomeHundreds = new ArrayList<>();
+        for (HashMap<String, String> map : historyMaps) {
+            SunStaticIncomeHundred incomeHundred = new SunStaticIncomeHundred();
+            incomeHundred.setStaticDate(map.get("static_date"));
+            incomeHundred.setRechargeSum(String.format("%.2f", getFloatFromDb(map.get("recharge_sum"))));
+            incomeHundred.setDayNum(getIntFromDb(map.get("day_num")));
+            incomeHundred.setInsertDate(dateStr);
+            sunStaticIncomeHundreds.add(incomeHundred);
+        }
+        sunStaticIncomeHundredMapper.batchInsert(sunStaticIncomeHundreds);
+
+
+        //重新统计指定天的累计数据
+        for (String resetChargeDate : resetChargeDates) {
+            computerDateRecharge(resetChargeDate);
+        }
+
+
+    }
+
+    /**
+     * 重新统计 指定渠道-指定天的 充值积累情况
+     *
+     * @param sunChannel  太阳频道
+     * @param static_date 静态的日期
+     */
+    private void computerChanelDateRecharge(SunChannel sunChannel, String static_date) {
+        SunStaticIncomeChannel sunStaticIncomeChannel = sunStaticIncomeChannelMapper.selectOneByExample(SunStaticIncomeChannelExample.newAndCreateCriteria().andStaticDateEqualTo(static_date).andChannelIdEqualTo(sunChannel.getChannelId()).example());
+        if (sunStaticIncomeChannel == null) {
+            return;
+        }
+        sunStaticIncomeChannel.setAllRecharge(sun2Mapper.selectIncomeRechargeByChannel(static_date, sunChannel.getChannelId()));
+        // todo 需要更新ROI
+        sunStaticIncomeChannelMapper.updateByPrimaryKeySelective(sunStaticIncomeChannel, SunStaticIncomeChannel.Column.allRecharge);
+    }
+
+    /**
+     * 重新统计 指定指定天的 充值积累情况
+     *
+     * @param static_date 静态的日期
+     */
+    private void computerDateRecharge(String static_date) {
+        SunStaticIncome sunStaticIncome = sunStaticIncomeMapper.selectOneByExample(SunStaticIncomeExample.newAndCreateCriteria().andStaticDateEqualTo(static_date).example());
+        if (sunStaticIncome == null) {
+            return;
+        }
+        sunStaticIncome.setAllRecharge(sun2Mapper.selectIncomeRecharge(static_date));
+        // todo 需要更新ROI
+        sunStaticIncomeMapper.updateByPrimaryKeySelective(sunStaticIncome, SunStaticIncome.Column.allRecharge);
+    }
+
+    /**
+     * 获取渠道推广书的名字
+     *
+     * @param channelId 通道标识
+     * @return {@link String}
+     * @throws ParseException 解析异常
+     */
+    private String getChannelBookName(String channelId) throws ParseException {
+        SunStaticIncomeChannelExample example = SunStaticIncomeChannelExample.newAndCreateCriteria()
+                .andChannelIdEqualTo(channelId)
+                .example();
+        example.orderBy(SunStaticIncomeChannel.Column.staticDate.desc());
+        SunStaticIncomeChannel preDayChannel = sunStaticIncomeChannelMapper.selectOneByExample(example);
+        String bookName = "";
+        if (preDayChannel != null) {
+            bookName = preDayChannel.getBookName();
+        }
+        return bookName;
+    }
+
+    private String getNumValueFromListMap(List<HashMap<String, String>> list, String k1, String v1, String k2) {
+        for (HashMap<String, String> map : list) {
+            if (v1.equals(map.get(k1))) {
+                return String.valueOf(map.get(k2));
+            }
+        }
+        return "0";
+    }
+
+    @Override
+    public void incomeStaticDate(String dateStr) throws ParseException {
+        sunStaticIncomeHundredChannelMapper.deleteByExample(SunStaticIncomeHundredChannelExample.newAndCreateCriteria().andInsertDateEqualTo(dateStr).example());
+        sunStaticIncomeChannelMapper.deleteByExample(SunStaticIncomeChannelExample.newAndCreateCriteria().andStaticDateEqualTo(dateStr).example());
+        sunStaticIncomeMapper.deleteByExample(SunStaticIncomeExample.newAndCreateCriteria().andStaticDateEqualTo(dateStr).example());
+        sunStaticIncomeHundredMapper.deleteByExample(SunStaticIncomeHundredExample.newAndCreateCriteria().andInsertDateEqualTo(dateStr).example());
+        incomeStatic(dateStr);
+
+    }
+
+    @Override
+    public SunStaticIncome getTodayIncomeStatic() {
+        String aLong = String.valueOf(sun2Mapper.selectTodayNewUserRecharge(TimeUtil.getYesterdayStr(), TimeUtil.getTodayStr()));
+        SunStaticIncome sunStaticIncome = new SunStaticIncome();
+        sunStaticIncome.setNewRechargeSum(String.valueOf(aLong));
+        sunStaticIncome.setAllSpend("");
+        sunStaticIncome.setFirstRoi("");
+        return sunStaticIncome;
+    }
+
+    @Override
+    public SunStaticIncome getYesterdayIncomeStatic() {
+        return sunStaticIncomeMapper.selectOneByExample(SunStaticIncomeExample.newAndCreateCriteria().andStaticDateEqualTo(TimeUtil.getYesterdayStr()).example());
+    }
+
+    @Override
+    public SunStaticIncome getHistoryIncomeStatic() {
+
+        return null;
+    }
+
     private SunStaticUserDay getSunUserByDate(String startDate, String endDate) {
-        int i = sunUser2Mapper.selectCountUserByDay(startDate, endDate);
+        int i = sun2Mapper.selectCountUserByDay(startDate, endDate);
         if (i <= 0) {
             return null;
         }
-        HashMap<String, String> recharge = sunUser2Mapper.selectByDay(startDate, endDate);
+        HashMap<String, String> recharge = sun2Mapper.selectUserByDay(startDate, endDate);
         int new_recharge_user = getIntFromDb(recharge.get("new_recharge_user"));
         float new_recharge_sum = getFloatFromDb(recharge.get("new_recharge_sum"));
         float avg = 0;
@@ -556,8 +759,8 @@ public class SunDataServiceImpl implements SunDataService {
     }
 
     private List<SunStaticUserDayChannel> getSunUserByDateChannels(String startDate, String endDate) {
-        List<HashMap<String, String>> list = sunUser2Mapper.selectCountByDayChannel(startDate, endDate);
-        List<HashMap<String, String>> recharges = sunUser2Mapper.selectByDayChannel(startDate, endDate);
+        List<HashMap<String, String>> list = sun2Mapper.selectCountByDayChannel(startDate, endDate);
+        List<HashMap<String, String>> recharges = sun2Mapper.selectNewUserByDayChannel(startDate, endDate);
         ArrayList<SunStaticUserDayChannel> sunStaticDayChannels = new ArrayList<>();
 
         for (HashMap<String, String> hashMap : list) {
@@ -631,16 +834,15 @@ public class SunDataServiceImpl implements SunDataService {
                 gsonBuilder.setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES);
                 Gson gson = gsonBuilder.setDateFormat("yyyy-MM-dd HH:mm:ss").create();
                 SunOrder sunOrder = gson.fromJson(line, SunOrder.class);
-                if (TimeUtil.dateToStr(sunOrder.getCreateTime(),TimeUtil.YYYY_MM_DD_HH_MM_SS ).equals(request.getStart_time())){
+                if (TimeUtil.dateToStr(sunOrder.getCreateTime(), TimeUtil.YYYY_MM_DD_HH_MM_SS).equals(request.getStart_time())) {
                     SunOrderExample sunOrderExample = SunOrderExample.newAndCreateCriteria().andMerchantIdEqualTo(sunOrder.getMerchantId()).example();
                     List<SunOrder> sunOrders = sunOrderMapper.selectByExample(sunOrderExample);
-                    if (sunOrder!=null && sunOrders.size() >0){
+                    if (sunOrder != null && sunOrders.size() > 0) {
                         continue;
                     }
                 }
 
 
-
                 sunOrder.setInsertTime(new Date());
                 SunOrderCollect sunOrderCollect = collectMap.get(sunOrder.getChannelId());
                 if (sunOrderCollect == null) {
@@ -748,8 +950,8 @@ public class SunDataServiceImpl implements SunDataService {
         Gson gson = gsonBuilder.setDateFormat("yyyy-MM-dd HH:mm:ss").create();
         SunOrder sunOrder = gson.fromJson(line, SunOrder.class);
         System.out.println(sunOrder);*/
-        Map map= new HashMap();
-        map.put(new Integer(1),"sss");
+        Map map = new HashMap();
+        map.put(new Integer(1), "sss");
         System.out.println(map.containsKey(new Integer(1)));
     }
 }

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

@@ -10,6 +10,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
 import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Component;
 
+import java.text.ParseException;
 import java.util.Calendar;
 import java.util.Date;
 
@@ -106,23 +107,22 @@ public class SunDataTask {
     }
 
     /**
-     * 订单昨日统计
+     * 昨日统计
      * 凌晨 1 点 15 分
      */
     @Scheduled(cron = "1 15 0 * * ?")
-    public void OrderStaticYesterday() {
+    public void OrderStaticYesterday() throws ParseException {
+
+        // 订单统计
         String yesterdayStr = TimeUtil.getYesterdayStr();
         sunDataService.orderStaticDate(yesterdayStr,TimeUtil.getTodayStr());
-    }
-    /**
-     * 用户昨日统计
-     * 凌晨 1 点 20 分
-     */
-    @Scheduled(cron = "1 20 0 * * ?")
-    public void userStaticYesterday() {
+        // 用户统计
         sunDataService.userStaticYesterday(TimeUtil.getYesterdayStr(),TimeUtil.getTodayStr());
+        // 回收统计
+        sunDataService.incomeStatic(TimeUtil.getYesterdayStr());
     }
 
+
     public static void main(String[] args) {
         System.out.println(TimeUtil.getTodayStr());
         System.out.println(TimeUtil.getYesterdayStr());