Explorar el Código

push dao ---> dao

lijilei hace 3 años
padre
commit
a536f7fd0f
Se han modificado 27 ficheros con 625 adiciones y 2886 borrados
  1. 2 2
      book-dao/src/main/java/com/book/dao/cps/mapper/AdminConfigMapper.java
  2. 2 2
      book-dao/src/main/java/com/book/dao/cps/mapper/ConfigMapper.java
  3. 3 2
      book-dao/src/main/java/com/book/dao/cps/mapper/CustomMapper.java
  4. 2 2
      book-dao/src/main/java/com/book/dao/cps/mapper/OphostMapper.java
  5. 2 2
      book-dao/src/main/java/com/book/dao/cps/mapper/PlatformMapper.java
  6. 4 3
      book-dao/src/main/java/com/book/dao/cps/mapper/PtokenMapper.java
  7. 24 164
      book-dao/src/main/java/com/book/dao/cps/mapper/UserMapper.java
  8. 3 2
      book-dao/src/main/java/com/book/dao/cps/pojo/AdminConfig.java
  9. 3 2
      book-dao/src/main/java/com/book/dao/cps/pojo/Config.java
  10. 3 2
      book-dao/src/main/java/com/book/dao/cps/pojo/Custom.java
  11. 3 2
      book-dao/src/main/java/com/book/dao/cps/pojo/Ophost.java
  12. 3 2
      book-dao/src/main/java/com/book/dao/cps/pojo/Platform.java
  13. 3 2
      book-dao/src/main/java/com/book/dao/cps/pojo/Ptoken.java
  14. 145 861
      book-dao/src/main/java/com/book/dao/cps/pojo/User.java
  15. 2 2
      book-dao/src/main/java/com/book/dao/polardb/mapper/UserSilentMapper.java
  16. 3 2
      book-dao/src/main/java/com/book/dao/polardb/pojo/UserSilent.java
  17. 8 8
      book-dao/src/main/resources/mapper/cps/AdminConfigMapper.xml
  18. 8 8
      book-dao/src/main/resources/mapper/cps/ConfigMapper.xml
  19. 7 7
      book-dao/src/main/resources/mapper/cps/CustomMapper.xml
  20. 6 6
      book-dao/src/main/resources/mapper/cps/OphostMapper.xml
  21. 7 7
      book-dao/src/main/resources/mapper/cps/PlatformMapper.xml
  22. 7 7
      book-dao/src/main/resources/mapper/cps/PtokenMapper.xml
  23. 368 1243
      book-dao/src/main/resources/mapper/cps/UserMapper.xml
  24. 7 7
      book-dao/src/main/resources/mapper/polar/UserSilentMapper.xml
  25. 0 25
      book-push/src/main/java/com/book/push/dao/mapper/UserMapper.java
  26. 0 145
      book-push/src/main/java/com/book/push/dao/pojo/User.java
  27. 0 369
      book-push/src/main/resources/mapper/UserMapper.xml

+ 2 - 2
book-push/src/main/java/com/book/push/dao/mapper/AdminConfigMapper.java → book-dao/src/main/java/com/book/dao/cps/mapper/AdminConfigMapper.java

@@ -1,6 +1,6 @@
-package com.book.push.dao.mapper;
+package com.book.dao.cps.mapper;
 
-import com.book.push.dao.pojo.AdminConfig;
+import com.book.dao.cps.pojo.AdminConfig;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;

+ 2 - 2
book-push/src/main/java/com/book/push/dao/mapper/ConfigMapper.java → book-dao/src/main/java/com/book/dao/cps/mapper/ConfigMapper.java

@@ -1,6 +1,6 @@
-package com.book.push.dao.mapper;
+package com.book.dao.cps.mapper;
 
-import com.book.push.dao.pojo.Config;
+import com.book.dao.cps.pojo.Config;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;

+ 3 - 2
book-push/src/main/java/com/book/push/dao/mapper/CustomMapper.java → book-dao/src/main/java/com/book/dao/cps/mapper/CustomMapper.java

@@ -1,10 +1,11 @@
-package com.book.push.dao.mapper;
+package com.book.dao.cps.mapper;
 
 
-import com.book.push.dao.pojo.Custom;
+import com.book.dao.cps.pojo.Custom;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
+
 @Repository
 public interface CustomMapper {
     int deleteByPrimaryKey(Integer id);

+ 2 - 2
book-push/src/main/java/com/book/push/dao/mapper/OphostMapper.java → book-dao/src/main/java/com/book/dao/cps/mapper/OphostMapper.java

@@ -1,6 +1,6 @@
-package com.book.push.dao.mapper;
+package com.book.dao.cps.mapper;
 
-import com.book.push.dao.pojo.Ophost;
+import com.book.dao.cps.pojo.Ophost;
 import org.springframework.stereotype.Repository;
 
 @Repository

+ 2 - 2
book-push/src/main/java/com/book/push/dao/mapper/PlatformMapper.java → book-dao/src/main/java/com/book/dao/cps/mapper/PlatformMapper.java

@@ -1,6 +1,6 @@
-package com.book.push.dao.mapper;
+package com.book.dao.cps.mapper;
 
-import com.book.push.dao.pojo.Platform;
+import com.book.dao.cps.pojo.Platform;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;

+ 4 - 3
book-push/src/main/java/com/book/push/dao/mapper/PtokenDao.java → book-dao/src/main/java/com/book/dao/cps/mapper/PtokenMapper.java

@@ -1,11 +1,12 @@
-package com.book.push.dao.mapper;
+package com.book.dao.cps.mapper;
 
-import com.book.push.dao.pojo.Ptoken;
+import com.book.dao.cps.pojo.Ptoken;
 import org.springframework.stereotype.Repository;
 
 import java.util.List;
+
 @Repository
-public interface PtokenDao {
+public interface PtokenMapper {
     int deleteByPrimaryKey(Integer id);
 
     int insert(Ptoken record);

+ 24 - 164
book-dao/src/main/java/com/book/dao/cps/mapper/UserMapper.java

@@ -1,165 +1,25 @@
-package com.book.dao.cps.mapper;
-
-
-import com.book.dao.cps.pojo.User;
-import com.book.dao.cps.pojo.example.UserExample;
-import java.util.List;
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Param;
-import org.springframework.stereotype.Repository;
-
-@Mapper
-@Repository
-public interface UserMapper {
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    long countByExample(UserExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int deleteByExample(UserExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int deleteByPrimaryKey(Long id);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int insert(User record);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int insertSelective(@Param("record") User record, @Param("selective") User.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    User selectOneByExample(UserExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    User selectOneByExampleSelective(@Param("example") UserExample example, @Param("selective") User.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    List<User> selectByExampleSelective(@Param("example") UserExample example, @Param("selective") User.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    List<User> selectByExample(UserExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    User selectByPrimaryKeySelective(@Param("id") Long id, @Param("selective") User.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    User selectByPrimaryKey(Long id);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example, @Param("selective") User.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int updateByExample(@Param("record") User record, @Param("example") UserExample example);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int updateByPrimaryKeySelective(@Param("record") User record, @Param("selective") User.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int updateByPrimaryKey(User record);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int batchInsert(@Param("list") List<User> list);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int batchInsertSelective(@Param("list") List<User> list, @Param("selective") User.Column ... selective);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int upsert(User record);
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    int upsertSelective(@Param("record") User record, @Param("selective") User.Column ... selective);
+package com.book.dao.cps.mapper;
+
+import com.book.dao.cps.pojo.User;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface UserMapper {
+
+    int deleteByPrimaryKey(@Param("id") Long id);
+
+    int insert(User record);
+
+    int insertSelective(User record);
+
+    User selectByPrimaryKey(@Param("id")Long id);
+
+    int updateByPrimaryKeySelective(User record);
+
+    int updateByPrimaryKey(User record);
+
+    User selectByUser(User user);
+
+    User selectByOpenId(@Param("openid") String openid);
 }

+ 3 - 2
book-push/src/main/java/com/book/push/dao/pojo/AdminConfig.java → book-dao/src/main/java/com/book/dao/cps/pojo/AdminConfig.java

@@ -1,8 +1,9 @@
-package com.book.push.dao.pojo;
+package com.book.dao.cps.pojo;
+
+import lombok.Data;
 
 import java.io.Serializable;
 import java.math.BigDecimal;
-import lombok.Data;
 
 /**
  * admin_config

+ 3 - 2
book-push/src/main/java/com/book/push/dao/pojo/Config.java → book-dao/src/main/java/com/book/dao/cps/pojo/Config.java

@@ -1,8 +1,9 @@
-package com.book.push.dao.pojo;
+package com.book.dao.cps.pojo;
 
-import java.io.Serializable;
 import lombok.Data;
 
+import java.io.Serializable;
+
 /**
  * config
  * @author 

+ 3 - 2
book-push/src/main/java/com/book/push/dao/pojo/Custom.java → book-dao/src/main/java/com/book/dao/cps/pojo/Custom.java

@@ -1,8 +1,9 @@
-package com.book.push.dao.pojo;
+package com.book.dao.cps.pojo;
 
-import java.io.Serializable;
 import lombok.Data;
 
+import java.io.Serializable;
+
 /**
  * custom
  * @author 

+ 3 - 2
book-push/src/main/java/com/book/push/dao/pojo/Ophost.java → book-dao/src/main/java/com/book/dao/cps/pojo/Ophost.java

@@ -1,8 +1,9 @@
-package com.book.push.dao.pojo;
+package com.book.dao.cps.pojo;
 
-import java.io.Serializable;
 import lombok.Data;
 
+import java.io.Serializable;
+
 /**
  * ophost
  * @author 

+ 3 - 2
book-push/src/main/java/com/book/push/dao/pojo/Platform.java → book-dao/src/main/java/com/book/dao/cps/pojo/Platform.java

@@ -1,8 +1,9 @@
-package com.book.push.dao.pojo;
+package com.book.dao.cps.pojo;
 
-import java.io.Serializable;
 import lombok.Data;
 
+import java.io.Serializable;
+
 /**
  * platform
  * @author 

+ 3 - 2
book-push/src/main/java/com/book/push/dao/pojo/Ptoken.java → book-dao/src/main/java/com/book/dao/cps/pojo/Ptoken.java

@@ -1,8 +1,9 @@
-package com.book.push.dao.pojo;
+package com.book.dao.cps.pojo;
 
-import java.io.Serializable;
 import lombok.Data;
 
+import java.io.Serializable;
+
 /**
  * ptoken
  * @author 

+ 145 - 861
book-dao/src/main/java/com/book/dao/cps/pojo/User.java

@@ -1,862 +1,146 @@
-package com.book.dao.cps.pojo;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Arrays;
-import lombok.Data;
-
-@Data
-public class User implements Serializable {
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.id
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private Long id;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.openid
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String openid;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.unionid
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String unionid;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.visitor
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String visitor;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.nickname
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String nickname;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.sex
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String sex;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.mobile
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String mobile;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.avatar
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String avatar;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.is_subscribe
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String isSubscribe;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.subscription_extend
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String subscriptionExtend;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.subscribe_time
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private Integer subscribeTime;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.book_category_ids
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String bookCategoryIds;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.operate_time
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private Integer operateTime;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.is_pay
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String isPay;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.kandian
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private Integer kandian;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.free_kandian
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private Integer freeKandian;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.vip_endtime
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private Integer vipEndtime;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.register_ip
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String registerIp;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.country
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String country;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.area
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String area;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.province
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String province;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.city
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String city;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.isp
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String isp;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.channel_id
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private Integer channelId;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.state
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private String state;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.createtime
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private Integer createtime;
-
-    /**
-     *
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database column user.updatetime
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private Integer updatetime;
-
-    /**
-     * This field was generated by MyBatis Generator.
-     * This field corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * This method was generated by MyBatis Generator.
-     * This method corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    public static User.Builder builder() {
-        return new User.Builder();
-    }
-
-    /**
-     * This class was generated by MyBatis Generator.
-     * This class corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    public static class Builder {
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        private User obj;
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder() {
-            this.obj = new User();
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.id
-         *
-         * @param id the value for user.id
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder id(Long id) {
-            obj.setId(id);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.openid
-         *
-         * @param openid the value for user.openid
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder openid(String openid) {
-            obj.setOpenid(openid);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.unionid
-         *
-         * @param unionid the value for user.unionid
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder unionid(String unionid) {
-            obj.setUnionid(unionid);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.visitor
-         *
-         * @param visitor the value for user.visitor
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder visitor(String visitor) {
-            obj.setVisitor(visitor);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.nickname
-         *
-         * @param nickname the value for user.nickname
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder nickname(String nickname) {
-            obj.setNickname(nickname);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.sex
-         *
-         * @param sex the value for user.sex
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder sex(String sex) {
-            obj.setSex(sex);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.mobile
-         *
-         * @param mobile the value for user.mobile
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder mobile(String mobile) {
-            obj.setMobile(mobile);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.avatar
-         *
-         * @param avatar the value for user.avatar
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder avatar(String avatar) {
-            obj.setAvatar(avatar);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.is_subscribe
-         *
-         * @param isSubscribe the value for user.is_subscribe
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder isSubscribe(String isSubscribe) {
-            obj.setIsSubscribe(isSubscribe);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.subscription_extend
-         *
-         * @param subscriptionExtend the value for user.subscription_extend
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder subscriptionExtend(String subscriptionExtend) {
-            obj.setSubscriptionExtend(subscriptionExtend);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.subscribe_time
-         *
-         * @param subscribeTime the value for user.subscribe_time
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder subscribeTime(Integer subscribeTime) {
-            obj.setSubscribeTime(subscribeTime);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.book_category_ids
-         *
-         * @param bookCategoryIds the value for user.book_category_ids
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder bookCategoryIds(String bookCategoryIds) {
-            obj.setBookCategoryIds(bookCategoryIds);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.operate_time
-         *
-         * @param operateTime the value for user.operate_time
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder operateTime(Integer operateTime) {
-            obj.setOperateTime(operateTime);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.is_pay
-         *
-         * @param isPay the value for user.is_pay
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder isPay(String isPay) {
-            obj.setIsPay(isPay);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.kandian
-         *
-         * @param kandian the value for user.kandian
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder kandian(Integer kandian) {
-            obj.setKandian(kandian);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.free_kandian
-         *
-         * @param freeKandian the value for user.free_kandian
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder freeKandian(Integer freeKandian) {
-            obj.setFreeKandian(freeKandian);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.vip_endtime
-         *
-         * @param vipEndtime the value for user.vip_endtime
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder vipEndtime(Integer vipEndtime) {
-            obj.setVipEndtime(vipEndtime);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.register_ip
-         *
-         * @param registerIp the value for user.register_ip
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder registerIp(String registerIp) {
-            obj.setRegisterIp(registerIp);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.country
-         *
-         * @param country the value for user.country
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder country(String country) {
-            obj.setCountry(country);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.area
-         *
-         * @param area the value for user.area
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder area(String area) {
-            obj.setArea(area);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.province
-         *
-         * @param province the value for user.province
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder province(String province) {
-            obj.setProvince(province);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.city
-         *
-         * @param city the value for user.city
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder city(String city) {
-            obj.setCity(city);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.isp
-         *
-         * @param isp the value for user.isp
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder isp(String isp) {
-            obj.setIsp(isp);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.channel_id
-         *
-         * @param channelId the value for user.channel_id
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder channelId(Integer channelId) {
-            obj.setChannelId(channelId);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.state
-         *
-         * @param state the value for user.state
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder state(String state) {
-            obj.setState(state);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.createtime
-         *
-         * @param createtime the value for user.createtime
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder createtime(Integer createtime) {
-            obj.setCreatetime(createtime);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method sets the value of the database column user.updatetime
-         *
-         * @param updatetime the value for user.updatetime
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public Builder updatetime(Integer updatetime) {
-            obj.setUpdatetime(updatetime);
-            return this;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public User build() {
-            return this.obj;
-        }
-    }
-
-    /**
-     * This enum was generated by MyBatis Generator.
-     * This enum corresponds to the database table user
-     *
-     * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-     */
-    public enum Column {
-        id("id", "id", "BIGINT", false),
-        openid("openid", "openid", "VARCHAR", false),
-        unionid("unionid", "unionid", "VARCHAR", false),
-        visitor("visitor", "visitor", "VARCHAR", false),
-        nickname("nickname", "nickname", "VARCHAR", false),
-        sex("sex", "sex", "CHAR", false),
-        mobile("mobile", "mobile", "CHAR", false),
-        avatar("avatar", "avatar", "VARCHAR", false),
-        isSubscribe("is_subscribe", "isSubscribe", "CHAR", false),
-        subscriptionExtend("subscription_extend", "subscriptionExtend", "CHAR", false),
-        subscribeTime("subscribe_time", "subscribeTime", "INTEGER", false),
-        bookCategoryIds("book_category_ids", "bookCategoryIds", "VARCHAR", false),
-        operateTime("operate_time", "operateTime", "INTEGER", false),
-        isPay("is_pay", "isPay", "CHAR", false),
-        kandian("kandian", "kandian", "INTEGER", false),
-        freeKandian("free_kandian", "freeKandian", "INTEGER", false),
-        vipEndtime("vip_endtime", "vipEndtime", "INTEGER", false),
-        registerIp("register_ip", "registerIp", "VARCHAR", false),
-        country("country", "country", "VARCHAR", false),
-        area("area", "area", "VARCHAR", false),
-        province("province", "province", "VARCHAR", false),
-        city("city", "city", "VARCHAR", false),
-        isp("isp", "isp", "VARCHAR", false),
-        channelId("channel_id", "channelId", "INTEGER", false),
-        state("state", "state", "CHAR", false),
-        createtime("createtime", "createtime", "INTEGER", false),
-        updatetime("updatetime", "updatetime", "INTEGER", false);
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        private static final String BEGINNING_DELIMITER = "\"";
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        private static final String ENDING_DELIMITER = "\"";
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        private final String column;
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        private final boolean isColumnNameDelimited;
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        private final String javaProperty;
-
-        /**
-         * This field was generated by MyBatis Generator.
-         * This field corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        private final String jdbcType;
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public String value() {
-            return this.column;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public String getValue() {
-            return this.column;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public String getJavaProperty() {
-            return this.javaProperty;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public String getJdbcType() {
-            return this.jdbcType;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
-            this.column = column;
-            this.javaProperty = javaProperty;
-            this.jdbcType = jdbcType;
-            this.isColumnNameDelimited = isColumnNameDelimited;
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public String desc() {
-            return this.getEscapedColumnName() + " DESC";
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public String asc() {
-            return this.getEscapedColumnName() + " ASC";
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public static Column[] excludes(Column ... excludes) {
-            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
-            if (excludes != null && excludes.length > 0) {
-                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
-            }
-            return columns.toArray(new Column[]{});
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public static Column[] all() {
-            return Column.values();
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public String getEscapedColumnName() {
-            if (this.isColumnNameDelimited) {
-                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
-            } else {
-                return this.column;
-            }
-        }
-
-        /**
-         * This method was generated by MyBatis Generator.
-         * This method corresponds to the database table user
-         *
-         * @mbg.generated Tue Aug 17 22:19:18 CST 2021
-         */
-        public String getAliasedEscapedColumnName() {
-            return this.getEscapedColumnName();
-        }
-    }
+package com.book.dao.cps.pojo;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * user
+ * @author 
+ */
+@Data
+public class User implements Serializable {
+    private Long id;
+
+    /**
+     * 微信openID
+     */
+    private String openid;
+
+    /**
+     * 微信unionid
+     */
+    private String unionid;
+
+    /**
+     * 访客id
+     */
+    private String visitor;
+
+    /**
+     * 昵称
+     */
+    private String nickname;
+
+    /**
+     * 状态值:0=未知,1=男性,2=女性
+     */
+    private Object sex;
+
+    /**
+     * 手机号
+     */
+    private String mobile;
+
+    /**
+     * 头像
+     */
+    private String avatar;
+
+    /**
+     * 关注公众号状态:1=已关注,0=未关注
+     */
+    private Object isSubscribe;
+
+    /**
+     * 关注引导公众号状态:1=已关注,0=未关注
+     */
+    private Object subscriptionExtend;
+
+    /**
+     * 关注时间
+     */
+    private Integer subscribeTime;
+
+    /**
+     * 喜好书籍分类
+     */
+    private String bookCategoryIds;
+
+    /**
+     * 微信交互时间戳
+     */
+    private Integer operateTime;
+
+    /**
+     * 首充状态:1=已充值,0=未充值
+     */
+    private Object isPay;
+
+    /**
+     * 充值看点数
+     */
+    private Integer kandian;
+
+    /**
+     * 赠送看点数
+     */
+    private Integer freeKandian;
+
+    /**
+     * VIP到期时间
+     */
+    private Integer vipEndtime;
+
+    /**
+     * 注册IP
+     */
+    private String registerIp;
+
+    /**
+     * 国家
+     */
+    private String country;
+
+    /**
+     * 区域
+     */
+    private String area;
+
+    /**
+     * 省份
+     */
+    private String province;
+
+    /**
+     * 城市
+     */
+    private String city;
+
+    /**
+     * isp服务商
+     */
+    private String isp;
+
+    /**
+     * 关联渠道商ID
+     */
+    private Integer channelId;
+
+    /**
+     * 状态值:0=禁用,1=正常
+     */
+    private Object state;
+
+    /**
+     * 创建时间
+     */
+    private Integer createtime;
+
+    /**
+     * 更新时间
+     */
+    private Integer updatetime;
+
+    private static final long serialVersionUID = 1L;
 }

+ 2 - 2
book-push/src/main/java/com/book/push/dao/mapper/UserSilentMapper.java → book-dao/src/main/java/com/book/dao/polardb/mapper/UserSilentMapper.java

@@ -1,6 +1,6 @@
-package com.book.push.dao.mapper;
+package com.book.dao.polardb.mapper;
 
-import com.book.push.dao.pojo.UserSilent;
+import com.book.dao.polardb.pojo.UserSilent;
 import org.springframework.stereotype.Repository;
 
 @Repository

+ 3 - 2
book-push/src/main/java/com/book/push/dao/pojo/UserSilent.java → book-dao/src/main/java/com/book/dao/polardb/pojo/UserSilent.java

@@ -1,8 +1,9 @@
-package com.book.push.dao.pojo;
+package com.book.dao.polardb.pojo;
 
-import java.io.Serializable;
 import lombok.Data;
 
+import java.io.Serializable;
+
 /**
  * user_silent
  * @author 

+ 8 - 8
book-push/src/main/resources/mapper/AdminConfigMapper.xml → book-dao/src/main/resources/mapper/cps/AdminConfigMapper.xml

@@ -1,7 +1,7 @@
 <?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.push.dao.mapper.AdminConfigMapper">
-    <resultMap id="BaseResultMap" type="com.book.push.dao.pojo.AdminConfig">
+<mapper namespace="com.book.dao.cps.mapper.AdminConfigMapper">
+    <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.AdminConfig">
         <id column="admin_id" jdbcType="INTEGER" property="adminId"/>
         <result column="is_fouce" jdbcType="OTHER" property="isFouce"/>
         <result column="entryhost_id" jdbcType="INTEGER" property="entryhostId"/>
@@ -112,12 +112,12 @@
         from admin_config
         where admin_id = #{adminId,jdbcType=INTEGER}
     </select>
-    <select id="selectAll" resultType="com.book.push.dao.pojo.AdminConfig">
+    <select id="selectAll" resultType="com.book.dao.cps.pojo.AdminConfig">
         SELECT *
         FROM admin_config WHERE agent_is_blacklist=1;
 
     </select>
-    <select id="selectByAppid" resultType="com.book.push.dao.pojo.AdminConfig" parameterType="string">
+    <select id="selectByAppid" resultType="com.book.dao.cps.pojo.AdminConfig" parameterType="string">
         select *
         from admin_config
         where appid = #{appid,jdbcType=VARCHAR}
@@ -128,7 +128,7 @@
         from admin_config
         where admin_id = #{adminId,jdbcType=INTEGER}
     </delete>
-    <insert id="insert" keyColumn="admin_id" keyProperty="adminId" parameterType="com.book.push.dao.pojo.AdminConfig"
+    <insert id="insert" keyColumn="admin_id" keyProperty="adminId" parameterType="com.book.dao.cps.pojo.AdminConfig"
             useGeneratedKeys="true">
         insert into admin_config (is_fouce, entryhost_id, platform_list,
                                   platform_id, menu_platform_id, ophost_id,
@@ -198,7 +198,7 @@
                 #{oppoCallback,jdbcType=TINYINT})
     </insert>
     <insert id="insertSelective" keyColumn="admin_id" keyProperty="adminId"
-            parameterType="com.book.push.dao.pojo.AdminConfig" useGeneratedKeys="true">
+            parameterType="com.book.dao.cps.pojo.AdminConfig" useGeneratedKeys="true">
         insert into admin_config
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="isFouce != null">
@@ -715,7 +715,7 @@
             </if>
         </trim>
     </insert>
-    <update id="updateByPrimaryKeySelective" parameterType="com.book.push.dao.pojo.AdminConfig">
+    <update id="updateByPrimaryKeySelective" parameterType="com.book.dao.cps.pojo.AdminConfig">
         update admin_config
         <set>
             <if test="isFouce != null">
@@ -976,7 +976,7 @@
         </set>
         where admin_id = #{adminId,jdbcType=INTEGER}
     </update>
-    <update id="updateByPrimaryKey" parameterType="com.book.push.dao.pojo.AdminConfig">
+    <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.AdminConfig">
         update admin_config
         set is_fouce                    = #{isFouce,jdbcType=OTHER},
             entryhost_id                = #{entryhostId,jdbcType=INTEGER},

+ 8 - 8
book-push/src/main/resources/mapper/ConfigMapper.xml → book-dao/src/main/resources/mapper/cps/ConfigMapper.xml

@@ -1,7 +1,7 @@
 <?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.push.dao.mapper.ConfigMapper">
-    <resultMap id="BaseResultMap" type="com.book.push.dao.pojo.Config">
+<mapper namespace="com.book.dao.cps.mapper.ConfigMapper">
+    <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.Config">
         <id column="id" jdbcType="INTEGER" property="id"/>
         <result column="name" jdbcType="VARCHAR" property="name"/>
         <result column="group" jdbcType="VARCHAR" property="group"/>
@@ -22,11 +22,11 @@
         from config
         where id = #{id,jdbcType=INTEGER}
     </select>
-    <select id="selectAll" resultType="com.book.push.dao.pojo.Config">
+    <select id="selectAll" resultType="com.book.dao.cps.pojo.Config">
         SELECT *
         FROM config;
     </select>
-    <select id="selectByName" resultType="com.book.push.dao.pojo.Config">
+    <select id="selectByName" resultType="com.book.dao.cps.pojo.Config">
         SELECT *
         FROM config
         WHERE name = #{name}
@@ -36,7 +36,7 @@
         from config
         where id = #{id,jdbcType=INTEGER}
     </delete>
-    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Config"
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Config"
             useGeneratedKeys="true">
         insert into config (`name`, `group`, title,
                             tip, `type`, `value`, content,
@@ -46,7 +46,7 @@
                 #{content,jdbcType=VARCHAR},
                 #{rule,jdbcType=VARCHAR}, #{extend,jdbcType=VARCHAR})
     </insert>
-    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Config"
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Config"
             useGeneratedKeys="true">
         insert into config
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -108,7 +108,7 @@
             </if>
         </trim>
     </insert>
-    <update id="updateByPrimaryKeySelective" parameterType="com.book.push.dao.pojo.Config">
+    <update id="updateByPrimaryKeySelective" parameterType="com.book.dao.cps.pojo.Config">
         update config
         <set>
             <if test="name != null">
@@ -141,7 +141,7 @@
         </set>
         where id = #{id,jdbcType=INTEGER}
     </update>
-    <update id="updateByPrimaryKey" parameterType="com.book.push.dao.pojo.Config">
+    <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.Config">
         update config
         set `name`  = #{name,jdbcType=VARCHAR},
             `group` = #{group,jdbcType=VARCHAR},

+ 7 - 7
book-push/src/main/resources/mapper/CustomMapper.xml → book-dao/src/main/resources/mapper/cps/CustomMapper.xml

@@ -1,7 +1,7 @@
 <?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.push.dao.mapper.CustomMapper">
-    <resultMap id="BaseResultMap" type="com.book.push.dao.pojo.Custom">
+<mapper namespace="com.book.dao.cps.mapper.CustomMapper">
+    <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.Custom">
         <id column="id" jdbcType="INTEGER" property="id"/>
         <result column="title" jdbcType="VARCHAR" property="title"/>
         <result column="admin_id" jdbcType="INTEGER" property="adminId"/>
@@ -33,7 +33,7 @@
         from custom
         where id = #{id,jdbcType=INTEGER}
     </select>
-    <select id="selectListBeforeSendTime" resultType="com.book.push.dao.pojo.Custom">
+    <select id="selectListBeforeSendTime" resultType="com.book.dao.cps.pojo.Custom">
         select *
         from custom
         where sendtime > UNIX_TIMESTAMP(NOW());
@@ -44,7 +44,7 @@
         from custom
         where id = #{id,jdbcType=INTEGER}
     </delete>
-    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Custom"
+    <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Custom"
             useGeneratedKeys="true">
         insert into custom (title, admin_id, message_json,
                             sendtime, user_json, send_num,
@@ -60,7 +60,7 @@
                 #{officialAccountId,jdbcType=INTEGER}, #{officialAccountType,jdbcType=OTHER},
                 #{createdFrom,jdbcType=OTHER})
     </insert>
-    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Custom"
+    <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Custom"
             useGeneratedKeys="true">
         insert into custom
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -176,7 +176,7 @@
             </if>
         </trim>
     </insert>
-    <update id="updateByPrimaryKeySelective" parameterType="com.book.push.dao.pojo.Custom">
+    <update id="updateByPrimaryKeySelective" parameterType="com.book.dao.cps.pojo.Custom">
         update custom
         <set>
             <if test="title != null">
@@ -236,7 +236,7 @@
         </set>
         where id = #{id,jdbcType=INTEGER}
     </update>
-    <update id="updateByPrimaryKey" parameterType="com.book.push.dao.pojo.Custom">
+    <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.Custom">
         update custom
         set title                 = #{title,jdbcType=VARCHAR},
             admin_id              = #{adminId,jdbcType=INTEGER},

+ 6 - 6
book-push/src/main/resources/mapper/OphostMapper.xml → book-dao/src/main/resources/mapper/cps/OphostMapper.xml

@@ -1,7 +1,7 @@
 <?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.push.dao.mapper.OphostMapper">
-  <resultMap id="BaseResultMap" type="com.book.push.dao.pojo.Ophost">
+<mapper namespace="com.book.dao.cps.mapper.OphostMapper">
+  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.Ophost">
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="platform_id" jdbcType="INTEGER" property="platformId" />
     <result column="host" jdbcType="VARCHAR" property="host" />
@@ -25,7 +25,7 @@
     delete from ophost
     where id = #{id,jdbcType=INTEGER}
   </delete>
-  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Ophost" useGeneratedKeys="true">
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Ophost" useGeneratedKeys="true">
     insert into ophost (platform_id, `host`, hostfile, 
       isdefault, `status`, p_desc, 
       sdfsdf, allow_changed)
@@ -33,7 +33,7 @@
       #{isdefault,jdbcType=OTHER}, #{status,jdbcType=OTHER}, #{pDesc,jdbcType=VARCHAR}, 
       #{sdfsdf,jdbcType=VARCHAR}, #{allowChanged,jdbcType=OTHER})
   </insert>
-  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Ophost" useGeneratedKeys="true">
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Ophost" useGeneratedKeys="true">
     insert into ophost
     <trim prefix="(" suffix=")" suffixOverrides=",">
       <if test="platformId != null">
@@ -88,7 +88,7 @@
       </if>
     </trim>
   </insert>
-  <update id="updateByPrimaryKeySelective" parameterType="com.book.push.dao.pojo.Ophost">
+  <update id="updateByPrimaryKeySelective" parameterType="com.book.dao.cps.pojo.Ophost">
     update ophost
     <set>
       <if test="platformId != null">
@@ -118,7 +118,7 @@
     </set>
     where id = #{id,jdbcType=INTEGER}
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.book.push.dao.pojo.Ophost">
+  <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.Ophost">
     update ophost
     set platform_id = #{platformId,jdbcType=INTEGER},
       `host` = #{host,jdbcType=VARCHAR},

+ 7 - 7
book-push/src/main/resources/mapper/PlatformMapper.xml → book-dao/src/main/resources/mapper/cps/PlatformMapper.xml

@@ -1,7 +1,7 @@
 <?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.push.dao.mapper.PlatformMapper">
-  <resultMap id="BaseResultMap" type="com.book.push.dao.pojo.Platform">
+<mapper namespace="com.book.dao.cps.mapper.PlatformMapper">
+  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.Platform">
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="name" jdbcType="VARCHAR" property="name" />
     <result column="appid" jdbcType="VARCHAR" property="appid" />
@@ -28,14 +28,14 @@
     from platform
     where id = #{id,jdbcType=INTEGER}
   </select>
-    <select id="selectAll" resultType="com.book.push.dao.pojo.Platform">
+    <select id="selectAll" resultType="com.book.dao.cps.pojo.Platform">
       SELECT * FROM platform;
     </select>
     <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
     delete from platform
     where id = #{id,jdbcType=INTEGER}
   </delete>
-  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Platform" useGeneratedKeys="true">
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Platform" useGeneratedKeys="true">
     insert into platform (`name`, appid, secret, 
       token, aes_key, platfile, 
       `status`, p_desc, isdefault, 
@@ -47,7 +47,7 @@
       #{createtime,jdbcType=INTEGER}, #{updatetime,jdbcType=INTEGER}, #{authhost,jdbcType=VARCHAR}, 
       #{proxyConfig,jdbcType=VARCHAR}, #{jobProxyConfig,jdbcType=VARCHAR})
   </insert>
-  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Platform" useGeneratedKeys="true">
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Platform" useGeneratedKeys="true">
     insert into platform
     <trim prefix="(" suffix=")" suffixOverrides=",">
       <if test="name != null">
@@ -138,7 +138,7 @@
       </if>
     </trim>
   </insert>
-  <update id="updateByPrimaryKeySelective" parameterType="com.book.push.dao.pojo.Platform">
+  <update id="updateByPrimaryKeySelective" parameterType="com.book.dao.cps.pojo.Platform">
     update platform
     <set>
       <if test="name != null">
@@ -186,7 +186,7 @@
     </set>
     where id = #{id,jdbcType=INTEGER}
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.book.push.dao.pojo.Platform">
+  <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.Platform">
     update platform
     set `name` = #{name,jdbcType=VARCHAR},
       appid = #{appid,jdbcType=VARCHAR},

+ 7 - 7
book-push/src/main/resources/mapper/PtokenDao.xml → book-dao/src/main/resources/mapper/cps/PtokenMapper.xml

@@ -1,7 +1,7 @@
 <?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.push.dao.mapper.PtokenDao">
-  <resultMap id="BaseResultMap" type="com.book.push.dao.pojo.Ptoken">
+<mapper namespace="com.book.dao.cps.mapper.PtokenMapper">
+  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.Ptoken">
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="platform_id" jdbcType="INTEGER" property="platformId" />
     <result column="refresh_token" jdbcType="VARCHAR" property="refreshToken" />
@@ -18,7 +18,7 @@
     from ptoken
     where id = #{id,jdbcType=INTEGER}
   </select>
-    <select id="selectAll" resultType="com.book.push.dao.pojo.Ptoken">
+    <select id="selectAll" resultType="com.book.dao.cps.pojo.Ptoken">
         select * from ptoken;
 
     </select>
@@ -26,13 +26,13 @@
     delete from ptoken
     where id = #{id,jdbcType=INTEGER}
   </delete>
-  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Ptoken" useGeneratedKeys="true">
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Ptoken" useGeneratedKeys="true">
     insert into ptoken (platform_id, refresh_token, admin_id, 
       createtime, updatetime)
     values (#{platformId,jdbcType=INTEGER}, #{refreshToken,jdbcType=VARCHAR}, #{adminId,jdbcType=VARCHAR}, 
       #{createtime,jdbcType=INTEGER}, #{updatetime,jdbcType=INTEGER})
   </insert>
-  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.Ptoken" useGeneratedKeys="true">
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.dao.cps.pojo.Ptoken" useGeneratedKeys="true">
     insert into ptoken
     <trim prefix="(" suffix=")" suffixOverrides=",">
       <if test="platformId != null">
@@ -69,7 +69,7 @@
       </if>
     </trim>
   </insert>
-  <update id="updateByPrimaryKeySelective" parameterType="com.book.push.dao.pojo.Ptoken">
+  <update id="updateByPrimaryKeySelective" parameterType="com.book.dao.cps.pojo.Ptoken">
     update ptoken
     <set>
       <if test="platformId != null">
@@ -90,7 +90,7 @@
     </set>
     where id = #{id,jdbcType=INTEGER}
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.book.push.dao.pojo.Ptoken">
+  <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.Ptoken">
     update ptoken
     set platform_id = #{platformId,jdbcType=INTEGER},
       refresh_token = #{refreshToken,jdbcType=VARCHAR},

+ 368 - 1243
book-dao/src/main/resources/mapper/cps/UserMapper.xml

@@ -1,1244 +1,369 @@
-<?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.cps.mapper.UserMapper">
-  <resultMap id="BaseResultMap" type="com.book.dao.cps.pojo.User">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    <id column="id" jdbcType="BIGINT" property="id" />
-    <result column="openid" jdbcType="VARCHAR" property="openid" />
-    <result column="unionid" jdbcType="VARCHAR" property="unionid" />
-    <result column="visitor" jdbcType="VARCHAR" property="visitor" />
-    <result column="nickname" jdbcType="VARCHAR" property="nickname" />
-    <result column="sex" jdbcType="CHAR" property="sex" />
-    <result column="mobile" jdbcType="CHAR" property="mobile" />
-    <result column="avatar" jdbcType="VARCHAR" property="avatar" />
-    <result column="is_subscribe" jdbcType="CHAR" property="isSubscribe" />
-    <result column="subscription_extend" jdbcType="CHAR" property="subscriptionExtend" />
-    <result column="subscribe_time" jdbcType="INTEGER" property="subscribeTime" />
-    <result column="book_category_ids" jdbcType="VARCHAR" property="bookCategoryIds" />
-    <result column="operate_time" jdbcType="INTEGER" property="operateTime" />
-    <result column="is_pay" jdbcType="CHAR" property="isPay" />
-    <result column="kandian" jdbcType="INTEGER" property="kandian" />
-    <result column="free_kandian" jdbcType="INTEGER" property="freeKandian" />
-    <result column="vip_endtime" jdbcType="INTEGER" property="vipEndtime" />
-    <result column="register_ip" jdbcType="VARCHAR" property="registerIp" />
-    <result column="country" jdbcType="VARCHAR" property="country" />
-    <result column="area" jdbcType="VARCHAR" property="area" />
-    <result column="province" jdbcType="VARCHAR" property="province" />
-    <result column="city" jdbcType="VARCHAR" property="city" />
-    <result column="isp" jdbcType="VARCHAR" property="isp" />
-    <result column="channel_id" jdbcType="INTEGER" property="channelId" />
-    <result column="state" jdbcType="CHAR" property="state" />
-    <result column="createtime" jdbcType="INTEGER" property="createtime" />
-    <result column="updatetime" jdbcType="INTEGER" property="updatetime" />
-  </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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    <where>
-      <foreach collection="oredCriteria" item="criteria" separator="or">
-        <if test="criteria.valid">
-          <trim prefix="(" prefixOverrides="and" suffix=")">
-            <foreach collection="criteria.criteria" item="criterion">
-              <choose>
-                <when test="criterion.noValue">
-                  and ${criterion.condition}
-                </when>
-                <when test="criterion.singleValue">
-                  and ${criterion.condition} #{criterion.value}
-                </when>
-                <when test="criterion.betweenValue">
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                </when>
-                <when test="criterion.listValue">
-                  and ${criterion.condition}
-                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                    #{listItem}
-                  </foreach>
-                </when>
-              </choose>
-            </foreach>
-          </trim>
-        </if>
-      </foreach>
-    </where>
-  </sql>
-  <sql id="Update_By_Example_Where_Clause">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    <where>
-      <foreach collection="example.oredCriteria" item="criteria" separator="or">
-        <if test="criteria.valid">
-          <trim prefix="(" prefixOverrides="and" suffix=")">
-            <foreach collection="criteria.criteria" item="criterion">
-              <choose>
-                <when test="criterion.noValue">
-                  and ${criterion.condition}
-                </when>
-                <when test="criterion.singleValue">
-                  and ${criterion.condition} #{criterion.value}
-                </when>
-                <when test="criterion.betweenValue">
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
-                </when>
-                <when test="criterion.listValue">
-                  and ${criterion.condition}
-                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
-                    #{listItem}
-                  </foreach>
-                </when>
-              </choose>
-            </foreach>
-          </trim>
-        </if>
-      </foreach>
-    </where>
-  </sql>
-  <sql id="Base_Column_List">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    id, openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend, 
-    subscribe_time, book_category_ids, operate_time, is_pay, kandian, free_kandian, vip_endtime, 
-    register_ip, country, area, province, city, isp, channel_id, state, createtime, updatetime
-  </sql>
-  <select id="selectByExample" parameterType="com.book.dao.cps.pojo.example.UserExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select
-    <if test="distinct">
-      distinct
-    </if>
-    <include refid="Base_Column_List" />
-    from user
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-    <if test="orderByClause != null">
-      order by ${orderByClause}
-    </if>
-    <if test="rows != null">
-      <if test="offset != null">
-        limit ${offset}, ${rows}
-      </if>
-      <if test="offset == null">
-        limit ${rows}
-      </if>
-    </if>
-  </select>
-  <select id="selectByExampleSelective" parameterType="map" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select
-    <if test="example != null and example.distinct">
-      distinct
-    </if>
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.aliasedEscapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <include refid="Base_Column_List" />
-      </otherwise>
-    </choose>
-    from user
-    <if test="example != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-    <if test="example != null and example.orderByClause != null">
-      order by ${example.orderByClause}
-    </if>
-    <if test="example != null and example.rows != null">
-      <if test="example.offset != null">
-        limit ${example.offset}, ${example.rows}
-      </if>
-      <if test="example.offset == null">
-        limit ${example.rows}
-      </if>
-    </if>
-  </select>
-  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select 
-    <include refid="Base_Column_List" />
-    from user
-    where id = #{id,jdbcType=BIGINT}
-  </select>
-  <select id="selectByPrimaryKeySelective" parameterType="map" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.aliasedEscapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <include refid="Base_Column_List" />
-      </otherwise>
-    </choose>
-    from user
-    where id = #{id,jdbcType=BIGINT}
-  </select>
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    delete from user
-    where id = #{id,jdbcType=BIGINT}
-  </delete>
-  <delete id="deleteByExample" parameterType="com.book.dao.cps.pojo.example.UserExample">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    delete from user
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.book.dao.cps.pojo.User">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user (id, openid, unionid, 
-      visitor, nickname, sex, 
-      mobile, avatar, is_subscribe, 
-      subscription_extend, subscribe_time, book_category_ids, 
-      operate_time, is_pay, kandian, 
-      free_kandian, vip_endtime, register_ip, 
-      country, area, province, 
-      city, isp, channel_id, 
-      state, createtime, updatetime
-      )
-    values (#{id,jdbcType=BIGINT}, #{openid,jdbcType=VARCHAR}, #{unionid,jdbcType=VARCHAR}, 
-      #{visitor,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{sex,jdbcType=CHAR}, 
-      #{mobile,jdbcType=CHAR}, #{avatar,jdbcType=VARCHAR}, #{isSubscribe,jdbcType=CHAR}, 
-      #{subscriptionExtend,jdbcType=CHAR}, #{subscribeTime,jdbcType=INTEGER}, #{bookCategoryIds,jdbcType=VARCHAR}, 
-      #{operateTime,jdbcType=INTEGER}, #{isPay,jdbcType=CHAR}, #{kandian,jdbcType=INTEGER}, 
-      #{freeKandian,jdbcType=INTEGER}, #{vipEndtime,jdbcType=INTEGER}, #{registerIp,jdbcType=VARCHAR}, 
-      #{country,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, 
-      #{city,jdbcType=VARCHAR}, #{isp,jdbcType=VARCHAR}, #{channelId,jdbcType=INTEGER}, 
-      #{state,jdbcType=CHAR}, #{createtime,jdbcType=INTEGER}, #{updatetime,jdbcType=INTEGER}
-      )
-  </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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          ${column.escapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            id,
-          </if>
-          <if test="record.openid != null">
-            openid,
-          </if>
-          <if test="record.unionid != null">
-            unionid,
-          </if>
-          <if test="record.visitor != null">
-            visitor,
-          </if>
-          <if test="record.nickname != null">
-            nickname,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.mobile != null">
-            mobile,
-          </if>
-          <if test="record.avatar != null">
-            avatar,
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe,
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend,
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time,
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids,
-          </if>
-          <if test="record.operateTime != null">
-            operate_time,
-          </if>
-          <if test="record.isPay != null">
-            is_pay,
-          </if>
-          <if test="record.kandian != null">
-            kandian,
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian,
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime,
-          </if>
-          <if test="record.registerIp != null">
-            register_ip,
-          </if>
-          <if test="record.country != null">
-            country,
-          </if>
-          <if test="record.area != null">
-            area,
-          </if>
-          <if test="record.province != null">
-            province,
-          </if>
-          <if test="record.city != null">
-            city,
-          </if>
-          <if test="record.isp != null">
-            isp,
-          </if>
-          <if test="record.channelId != null">
-            channel_id,
-          </if>
-          <if test="record.state != null">
-            state,
-          </if>
-          <if test="record.createtime != null">
-            createtime,
-          </if>
-          <if test="record.updatetime != null">
-            updatetime,
-          </if>
-        </trim>
-        <trim prefix="(" suffix=")" suffixOverrides="," />
-      </otherwise>
-    </choose>
-    values
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            #{record.id,jdbcType=BIGINT},
-          </if>
-          <if test="record.openid != null">
-            #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.createtime != null">
-            #{record.createtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.updatetime != null">
-            #{record.updatetime,jdbcType=INTEGER},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <select id="countByExample" parameterType="com.book.dao.cps.pojo.example.UserExample" resultType="java.lang.Long">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select count(*) from user
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-  </select>
-  <update id="updateByExampleSelective" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    update user
-    SET
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim suffixOverrides=",">
-          <if test="record.id != null">
-            id = #{record.id,jdbcType=BIGINT},
-          </if>
-          <if test="record.openid != null">
-            openid = #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            unionid = #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            visitor = #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            nickname = #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            mobile = #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            avatar = #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe = #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend = #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time = #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids = #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            operate_time = #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            is_pay = #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            kandian = #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian = #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime = #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            register_ip = #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            country = #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            area = #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            province = #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            city = #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            isp = #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            channel_id = #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            state = #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.createtime != null">
-            createtime = #{record.createtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.updatetime != null">
-            updatetime = #{record.updatetime,jdbcType=INTEGER},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByExample" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    update user
-    set id = #{record.id,jdbcType=BIGINT},
-      openid = #{record.openid,jdbcType=VARCHAR},
-      unionid = #{record.unionid,jdbcType=VARCHAR},
-      visitor = #{record.visitor,jdbcType=VARCHAR},
-      nickname = #{record.nickname,jdbcType=VARCHAR},
-      sex = #{record.sex,jdbcType=CHAR},
-      mobile = #{record.mobile,jdbcType=CHAR},
-      avatar = #{record.avatar,jdbcType=VARCHAR},
-      is_subscribe = #{record.isSubscribe,jdbcType=CHAR},
-      subscription_extend = #{record.subscriptionExtend,jdbcType=CHAR},
-      subscribe_time = #{record.subscribeTime,jdbcType=INTEGER},
-      book_category_ids = #{record.bookCategoryIds,jdbcType=VARCHAR},
-      operate_time = #{record.operateTime,jdbcType=INTEGER},
-      is_pay = #{record.isPay,jdbcType=CHAR},
-      kandian = #{record.kandian,jdbcType=INTEGER},
-      free_kandian = #{record.freeKandian,jdbcType=INTEGER},
-      vip_endtime = #{record.vipEndtime,jdbcType=INTEGER},
-      register_ip = #{record.registerIp,jdbcType=VARCHAR},
-      country = #{record.country,jdbcType=VARCHAR},
-      area = #{record.area,jdbcType=VARCHAR},
-      province = #{record.province,jdbcType=VARCHAR},
-      city = #{record.city,jdbcType=VARCHAR},
-      isp = #{record.isp,jdbcType=VARCHAR},
-      channel_id = #{record.channelId,jdbcType=INTEGER},
-      state = #{record.state,jdbcType=CHAR},
-      createtime = #{record.createtime,jdbcType=INTEGER},
-      updatetime = #{record.updatetime,jdbcType=INTEGER}
-    <if test="_parameter != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-  </update>
-  <update id="updateByPrimaryKeySelective" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    update user
-    SET
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim suffixOverrides=",">
-          <if test="record.openid != null">
-            openid = #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            unionid = #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            visitor = #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            nickname = #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            mobile = #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            avatar = #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe = #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend = #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time = #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids = #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            operate_time = #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            is_pay = #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            kandian = #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian = #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime = #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            register_ip = #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            country = #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            area = #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            province = #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            city = #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            isp = #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            channel_id = #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            state = #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.createtime != null">
-            createtime = #{record.createtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.updatetime != null">
-            updatetime = #{record.updatetime,jdbcType=INTEGER},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    where id = #{record.id,jdbcType=BIGINT}
-  </update>
-  <update id="updateByPrimaryKey" parameterType="com.book.dao.cps.pojo.User">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    update user
-    set openid = #{openid,jdbcType=VARCHAR},
-      unionid = #{unionid,jdbcType=VARCHAR},
-      visitor = #{visitor,jdbcType=VARCHAR},
-      nickname = #{nickname,jdbcType=VARCHAR},
-      sex = #{sex,jdbcType=CHAR},
-      mobile = #{mobile,jdbcType=CHAR},
-      avatar = #{avatar,jdbcType=VARCHAR},
-      is_subscribe = #{isSubscribe,jdbcType=CHAR},
-      subscription_extend = #{subscriptionExtend,jdbcType=CHAR},
-      subscribe_time = #{subscribeTime,jdbcType=INTEGER},
-      book_category_ids = #{bookCategoryIds,jdbcType=VARCHAR},
-      operate_time = #{operateTime,jdbcType=INTEGER},
-      is_pay = #{isPay,jdbcType=CHAR},
-      kandian = #{kandian,jdbcType=INTEGER},
-      free_kandian = #{freeKandian,jdbcType=INTEGER},
-      vip_endtime = #{vipEndtime,jdbcType=INTEGER},
-      register_ip = #{registerIp,jdbcType=VARCHAR},
-      country = #{country,jdbcType=VARCHAR},
-      area = #{area,jdbcType=VARCHAR},
-      province = #{province,jdbcType=VARCHAR},
-      city = #{city,jdbcType=VARCHAR},
-      isp = #{isp,jdbcType=VARCHAR},
-      channel_id = #{channelId,jdbcType=INTEGER},
-      state = #{state,jdbcType=CHAR},
-      createtime = #{createtime,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=INTEGER}
-    where id = #{id,jdbcType=BIGINT}
-  </update>
-  <select id="selectOneByExample" parameterType="com.book.dao.cps.pojo.example.UserExample" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select
-    <include refid="Base_Column_List" />
-    from user
-    <if test="_parameter != null">
-      <include refid="Example_Where_Clause" />
-    </if>
-    <if test="orderByClause != null">
-      order by ${orderByClause}
-    </if>
-    limit 1
-  </select>
-  <select id="selectOneByExampleSelective" parameterType="map" resultMap="BaseResultMap">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    select
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.aliasedEscapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <include refid="Base_Column_List" />
-      </otherwise>
-    </choose>
-    from user
-    <if test="example != null">
-      <include refid="Update_By_Example_Where_Clause" />
-    </if>
-    <if test="example != null and example.orderByClause != null">
-      order by ${example.orderByClause}
-    </if>
-    limit 1
-  </select>
-  <insert id="batchInsert" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user
-    (id, openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend, 
-      subscribe_time, book_category_ids, operate_time, is_pay, kandian, free_kandian, 
-      vip_endtime, register_ip, country, area, province, city, isp, channel_id, state, 
-      createtime, updatetime)
-    values
-    <foreach collection="list" item="item" separator=",">
-      (#{item.id,jdbcType=BIGINT}, #{item.openid,jdbcType=VARCHAR}, #{item.unionid,jdbcType=VARCHAR}, 
-        #{item.visitor,jdbcType=VARCHAR}, #{item.nickname,jdbcType=VARCHAR}, #{item.sex,jdbcType=CHAR}, 
-        #{item.mobile,jdbcType=CHAR}, #{item.avatar,jdbcType=VARCHAR}, #{item.isSubscribe,jdbcType=CHAR}, 
-        #{item.subscriptionExtend,jdbcType=CHAR}, #{item.subscribeTime,jdbcType=INTEGER}, 
-        #{item.bookCategoryIds,jdbcType=VARCHAR}, #{item.operateTime,jdbcType=INTEGER}, 
-        #{item.isPay,jdbcType=CHAR}, #{item.kandian,jdbcType=INTEGER}, #{item.freeKandian,jdbcType=INTEGER}, 
-        #{item.vipEndtime,jdbcType=INTEGER}, #{item.registerIp,jdbcType=VARCHAR}, #{item.country,jdbcType=VARCHAR}, 
-        #{item.area,jdbcType=VARCHAR}, #{item.province,jdbcType=VARCHAR}, #{item.city,jdbcType=VARCHAR}, 
-        #{item.isp,jdbcType=VARCHAR}, #{item.channelId,jdbcType=INTEGER}, #{item.state,jdbcType=CHAR}, 
-        #{item.createtime,jdbcType=INTEGER}, #{item.updatetime,jdbcType=INTEGER})
-    </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 Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user (
-    <foreach collection="selective" item="column" separator=",">
-      ${column.escapedColumnName}
-    </foreach>
-    )
-    values
-    <foreach collection="list" item="item" separator=",">
-      (
-      <foreach collection="selective" item="column" separator=",">
-        <if test="'id'.toString() == column.value">
-          #{item.id,jdbcType=BIGINT}
-        </if>
-        <if test="'openid'.toString() == column.value">
-          #{item.openid,jdbcType=VARCHAR}
-        </if>
-        <if test="'unionid'.toString() == column.value">
-          #{item.unionid,jdbcType=VARCHAR}
-        </if>
-        <if test="'visitor'.toString() == column.value">
-          #{item.visitor,jdbcType=VARCHAR}
-        </if>
-        <if test="'nickname'.toString() == column.value">
-          #{item.nickname,jdbcType=VARCHAR}
-        </if>
-        <if test="'sex'.toString() == column.value">
-          #{item.sex,jdbcType=CHAR}
-        </if>
-        <if test="'mobile'.toString() == column.value">
-          #{item.mobile,jdbcType=CHAR}
-        </if>
-        <if test="'avatar'.toString() == column.value">
-          #{item.avatar,jdbcType=VARCHAR}
-        </if>
-        <if test="'is_subscribe'.toString() == column.value">
-          #{item.isSubscribe,jdbcType=CHAR}
-        </if>
-        <if test="'subscription_extend'.toString() == column.value">
-          #{item.subscriptionExtend,jdbcType=CHAR}
-        </if>
-        <if test="'subscribe_time'.toString() == column.value">
-          #{item.subscribeTime,jdbcType=INTEGER}
-        </if>
-        <if test="'book_category_ids'.toString() == column.value">
-          #{item.bookCategoryIds,jdbcType=VARCHAR}
-        </if>
-        <if test="'operate_time'.toString() == column.value">
-          #{item.operateTime,jdbcType=INTEGER}
-        </if>
-        <if test="'is_pay'.toString() == column.value">
-          #{item.isPay,jdbcType=CHAR}
-        </if>
-        <if test="'kandian'.toString() == column.value">
-          #{item.kandian,jdbcType=INTEGER}
-        </if>
-        <if test="'free_kandian'.toString() == column.value">
-          #{item.freeKandian,jdbcType=INTEGER}
-        </if>
-        <if test="'vip_endtime'.toString() == column.value">
-          #{item.vipEndtime,jdbcType=INTEGER}
-        </if>
-        <if test="'register_ip'.toString() == column.value">
-          #{item.registerIp,jdbcType=VARCHAR}
-        </if>
-        <if test="'country'.toString() == column.value">
-          #{item.country,jdbcType=VARCHAR}
-        </if>
-        <if test="'area'.toString() == column.value">
-          #{item.area,jdbcType=VARCHAR}
-        </if>
-        <if test="'province'.toString() == column.value">
-          #{item.province,jdbcType=VARCHAR}
-        </if>
-        <if test="'city'.toString() == column.value">
-          #{item.city,jdbcType=VARCHAR}
-        </if>
-        <if test="'isp'.toString() == column.value">
-          #{item.isp,jdbcType=VARCHAR}
-        </if>
-        <if test="'channel_id'.toString() == column.value">
-          #{item.channelId,jdbcType=INTEGER}
-        </if>
-        <if test="'state'.toString() == column.value">
-          #{item.state,jdbcType=CHAR}
-        </if>
-        <if test="'createtime'.toString() == column.value">
-          #{item.createtime,jdbcType=INTEGER}
-        </if>
-        <if test="'updatetime'.toString() == column.value">
-          #{item.updatetime,jdbcType=INTEGER}
-        </if>
-      </foreach>
-      )
-    </foreach>
-  </insert>
-  <insert id="upsertSelective" parameterType="map">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          ${column.escapedColumnName}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            id,
-          </if>
-          <if test="record.openid != null">
-            openid,
-          </if>
-          <if test="record.unionid != null">
-            unionid,
-          </if>
-          <if test="record.visitor != null">
-            visitor,
-          </if>
-          <if test="record.nickname != null">
-            nickname,
-          </if>
-          <if test="record.sex != null">
-            sex,
-          </if>
-          <if test="record.mobile != null">
-            mobile,
-          </if>
-          <if test="record.avatar != null">
-            avatar,
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe,
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend,
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time,
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids,
-          </if>
-          <if test="record.operateTime != null">
-            operate_time,
-          </if>
-          <if test="record.isPay != null">
-            is_pay,
-          </if>
-          <if test="record.kandian != null">
-            kandian,
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian,
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime,
-          </if>
-          <if test="record.registerIp != null">
-            register_ip,
-          </if>
-          <if test="record.country != null">
-            country,
-          </if>
-          <if test="record.area != null">
-            area,
-          </if>
-          <if test="record.province != null">
-            province,
-          </if>
-          <if test="record.city != null">
-            city,
-          </if>
-          <if test="record.isp != null">
-            isp,
-          </if>
-          <if test="record.channelId != null">
-            channel_id,
-          </if>
-          <if test="record.state != null">
-            state,
-          </if>
-          <if test="record.createtime != null">
-            createtime,
-          </if>
-          <if test="record.updatetime != null">
-            updatetime,
-          </if>
-        </trim>
-        <trim prefix="(" suffix=")" suffixOverrides="," />
-      </otherwise>
-    </choose>
-    values
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach close=")" collection="selective" item="column" open="(" separator=",">
-          #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-          <if test="record.id != null">
-            #{record.id,jdbcType=BIGINT},
-          </if>
-          <if test="record.openid != null">
-            #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.createtime != null">
-            #{record.createtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.updatetime != null">
-            #{record.updatetime,jdbcType=INTEGER},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-    on duplicate key update 
-    <choose>
-      <when test="selective != null and selective.length > 0">
-        <foreach collection="selective" item="column" separator=",">
-          ${column.escapedColumnName} = #{record.${column.javaProperty},jdbcType=${column.jdbcType}}
-        </foreach>
-      </when>
-      <otherwise>
-        <trim suffixOverrides=",">
-          <if test="record.id != null">
-            id = #{record.id,jdbcType=BIGINT},
-          </if>
-          <if test="record.openid != null">
-            openid = #{record.openid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.unionid != null">
-            unionid = #{record.unionid,jdbcType=VARCHAR},
-          </if>
-          <if test="record.visitor != null">
-            visitor = #{record.visitor,jdbcType=VARCHAR},
-          </if>
-          <if test="record.nickname != null">
-            nickname = #{record.nickname,jdbcType=VARCHAR},
-          </if>
-          <if test="record.sex != null">
-            sex = #{record.sex,jdbcType=CHAR},
-          </if>
-          <if test="record.mobile != null">
-            mobile = #{record.mobile,jdbcType=CHAR},
-          </if>
-          <if test="record.avatar != null">
-            avatar = #{record.avatar,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isSubscribe != null">
-            is_subscribe = #{record.isSubscribe,jdbcType=CHAR},
-          </if>
-          <if test="record.subscriptionExtend != null">
-            subscription_extend = #{record.subscriptionExtend,jdbcType=CHAR},
-          </if>
-          <if test="record.subscribeTime != null">
-            subscribe_time = #{record.subscribeTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.bookCategoryIds != null">
-            book_category_ids = #{record.bookCategoryIds,jdbcType=VARCHAR},
-          </if>
-          <if test="record.operateTime != null">
-            operate_time = #{record.operateTime,jdbcType=INTEGER},
-          </if>
-          <if test="record.isPay != null">
-            is_pay = #{record.isPay,jdbcType=CHAR},
-          </if>
-          <if test="record.kandian != null">
-            kandian = #{record.kandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.freeKandian != null">
-            free_kandian = #{record.freeKandian,jdbcType=INTEGER},
-          </if>
-          <if test="record.vipEndtime != null">
-            vip_endtime = #{record.vipEndtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.registerIp != null">
-            register_ip = #{record.registerIp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.country != null">
-            country = #{record.country,jdbcType=VARCHAR},
-          </if>
-          <if test="record.area != null">
-            area = #{record.area,jdbcType=VARCHAR},
-          </if>
-          <if test="record.province != null">
-            province = #{record.province,jdbcType=VARCHAR},
-          </if>
-          <if test="record.city != null">
-            city = #{record.city,jdbcType=VARCHAR},
-          </if>
-          <if test="record.isp != null">
-            isp = #{record.isp,jdbcType=VARCHAR},
-          </if>
-          <if test="record.channelId != null">
-            channel_id = #{record.channelId,jdbcType=INTEGER},
-          </if>
-          <if test="record.state != null">
-            state = #{record.state,jdbcType=CHAR},
-          </if>
-          <if test="record.createtime != null">
-            createtime = #{record.createtime,jdbcType=INTEGER},
-          </if>
-          <if test="record.updatetime != null">
-            updatetime = #{record.updatetime,jdbcType=INTEGER},
-          </if>
-        </trim>
-      </otherwise>
-    </choose>
-  </insert>
-  <insert id="upsert" parameterType="com.book.dao.cps.pojo.User">
-    <!--
-      WARNING - @mbg.generated
-      This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Tue Aug 17 22:19:18 CST 2021.
-    -->
-    insert into user
-    (id, openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend, 
-      subscribe_time, book_category_ids, operate_time, is_pay, kandian, free_kandian, 
-      vip_endtime, register_ip, country, area, province, city, isp, channel_id, state, 
-      createtime, updatetime)
-    values
-    (#{id,jdbcType=BIGINT}, #{openid,jdbcType=VARCHAR}, #{unionid,jdbcType=VARCHAR}, 
-      #{visitor,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{sex,jdbcType=CHAR}, 
-      #{mobile,jdbcType=CHAR}, #{avatar,jdbcType=VARCHAR}, #{isSubscribe,jdbcType=CHAR}, 
-      #{subscriptionExtend,jdbcType=CHAR}, #{subscribeTime,jdbcType=INTEGER}, #{bookCategoryIds,jdbcType=VARCHAR}, 
-      #{operateTime,jdbcType=INTEGER}, #{isPay,jdbcType=CHAR}, #{kandian,jdbcType=INTEGER}, 
-      #{freeKandian,jdbcType=INTEGER}, #{vipEndtime,jdbcType=INTEGER}, #{registerIp,jdbcType=VARCHAR}, 
-      #{country,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, 
-      #{city,jdbcType=VARCHAR}, #{isp,jdbcType=VARCHAR}, #{channelId,jdbcType=INTEGER}, 
-      #{state,jdbcType=CHAR}, #{createtime,jdbcType=INTEGER}, #{updatetime,jdbcType=INTEGER}
-      )
-    on duplicate key update 
-    id = #{id,jdbcType=BIGINT}, 
-    openid = #{openid,jdbcType=VARCHAR}, 
-    unionid = #{unionid,jdbcType=VARCHAR}, 
-    visitor = #{visitor,jdbcType=VARCHAR}, 
-    nickname = #{nickname,jdbcType=VARCHAR}, 
-    sex = #{sex,jdbcType=CHAR}, 
-    mobile = #{mobile,jdbcType=CHAR}, 
-    avatar = #{avatar,jdbcType=VARCHAR}, 
-    is_subscribe = #{isSubscribe,jdbcType=CHAR}, 
-    subscription_extend = #{subscriptionExtend,jdbcType=CHAR}, 
-    subscribe_time = #{subscribeTime,jdbcType=INTEGER}, 
-    book_category_ids = #{bookCategoryIds,jdbcType=VARCHAR}, 
-    operate_time = #{operateTime,jdbcType=INTEGER}, 
-    is_pay = #{isPay,jdbcType=CHAR}, 
-    kandian = #{kandian,jdbcType=INTEGER}, 
-    free_kandian = #{freeKandian,jdbcType=INTEGER}, 
-    vip_endtime = #{vipEndtime,jdbcType=INTEGER}, 
-    register_ip = #{registerIp,jdbcType=VARCHAR}, 
-    country = #{country,jdbcType=VARCHAR}, 
-    area = #{area,jdbcType=VARCHAR}, 
-    province = #{province,jdbcType=VARCHAR}, 
-    city = #{city,jdbcType=VARCHAR}, 
-    isp = #{isp,jdbcType=VARCHAR}, 
-    channel_id = #{channelId,jdbcType=INTEGER}, 
-    state = #{state,jdbcType=CHAR}, 
-    createtime = #{createtime,jdbcType=INTEGER}, 
-    updatetime = #{updatetime,jdbcType=INTEGER}
-  </insert>
+<?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.push.dao.mapper.UserMapper">
+  <resultMap id="BaseResultMap" type="com.book.push.dao.pojo.User">
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="openid" jdbcType="VARCHAR" property="openid" />
+    <result column="unionid" jdbcType="VARCHAR" property="unionid" />
+    <result column="visitor" jdbcType="VARCHAR" property="visitor" />
+    <result column="nickname" jdbcType="VARCHAR" property="nickname" />
+    <result column="sex" jdbcType="OTHER" property="sex" />
+    <result column="mobile" jdbcType="CHAR" property="mobile" />
+    <result column="avatar" jdbcType="VARCHAR" property="avatar" />
+    <result column="is_subscribe" jdbcType="OTHER" property="isSubscribe" />
+    <result column="subscription_extend" jdbcType="OTHER" property="subscriptionExtend" />
+    <result column="subscribe_time" jdbcType="INTEGER" property="subscribeTime" />
+    <result column="book_category_ids" jdbcType="VARCHAR" property="bookCategoryIds" />
+    <result column="operate_time" jdbcType="INTEGER" property="operateTime" />
+    <result column="is_pay" jdbcType="OTHER" property="isPay" />
+    <result column="kandian" jdbcType="INTEGER" property="kandian" />
+    <result column="free_kandian" jdbcType="INTEGER" property="freeKandian" />
+    <result column="vip_endtime" jdbcType="INTEGER" property="vipEndtime" />
+    <result column="register_ip" jdbcType="VARCHAR" property="registerIp" />
+    <result column="country" jdbcType="VARCHAR" property="country" />
+    <result column="area" jdbcType="VARCHAR" property="area" />
+    <result column="province" jdbcType="VARCHAR" property="province" />
+    <result column="city" jdbcType="VARCHAR" property="city" />
+    <result column="isp" jdbcType="VARCHAR" property="isp" />
+    <result column="channel_id" jdbcType="INTEGER" property="channelId" />
+    <result column="state" jdbcType="OTHER" property="state" />
+    <result column="createtime" jdbcType="INTEGER" property="createtime" />
+    <result column="updatetime" jdbcType="INTEGER" property="updatetime" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    id, openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend, 
+    subscribe_time, book_category_ids, operate_time, is_pay, kandian, free_kandian, vip_endtime, 
+    register_ip, country, area, province, city, isp, channel_id, `state`, createtime, 
+    updatetime
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from user
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+    <select id="selectByUser" resultType="com.book.push.dao.pojo.User" parameterType="com.book.push.dao.pojo.User">
+
+        select id from user
+      <trim prefix="WHERE" prefixOverrides="AND | OR">
+        <if test="openid!=null and openid!=''">
+          and openid != #{openid}
+        </if>
+        <if test="mobile!=null and mobile!=''">
+          and mobile != #{mobile}
+        </if>
+        <if test="channel_id!=null and channel_id!=0">
+          and channel_id != #{channel_id}
+        </if>
+
+
+      </trim>
+
+
+
+    </select>
+    <select id="selectByOpenId" resultType="com.book.push.dao.pojo.User">
+      SELECT * from user WHERE openid = #{openid}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    delete from user
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.User" useGeneratedKeys="true">
+    insert into user (openid, unionid, visitor, 
+      nickname, sex, mobile, avatar, 
+      is_subscribe, subscription_extend, subscribe_time, 
+      book_category_ids, operate_time, is_pay, 
+      kandian, free_kandian, vip_endtime, 
+      register_ip, country, area, 
+      province, city, isp, 
+      channel_id, `state`, createtime, 
+      updatetime)
+    values (#{openid,jdbcType=VARCHAR}, #{unionid,jdbcType=VARCHAR}, #{visitor,jdbcType=VARCHAR}, 
+      #{nickname,jdbcType=VARCHAR}, #{sex,jdbcType=OTHER}, #{mobile,jdbcType=CHAR}, #{avatar,jdbcType=VARCHAR}, 
+      #{isSubscribe,jdbcType=OTHER}, #{subscriptionExtend,jdbcType=OTHER}, #{subscribeTime,jdbcType=INTEGER}, 
+      #{bookCategoryIds,jdbcType=VARCHAR}, #{operateTime,jdbcType=INTEGER}, #{isPay,jdbcType=OTHER}, 
+      #{kandian,jdbcType=INTEGER}, #{freeKandian,jdbcType=INTEGER}, #{vipEndtime,jdbcType=INTEGER}, 
+      #{registerIp,jdbcType=VARCHAR}, #{country,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, 
+      #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{isp,jdbcType=VARCHAR}, 
+      #{channelId,jdbcType=INTEGER}, #{state,jdbcType=OTHER}, #{createtime,jdbcType=INTEGER}, 
+      #{updatetime,jdbcType=INTEGER})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.User" useGeneratedKeys="true">
+    insert into user
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="openid != null">
+        openid,
+      </if>
+      <if test="unionid != null">
+        unionid,
+      </if>
+      <if test="visitor != null">
+        visitor,
+      </if>
+      <if test="nickname != null">
+        nickname,
+      </if>
+      <if test="sex != null">
+        sex,
+      </if>
+      <if test="mobile != null">
+        mobile,
+      </if>
+      <if test="avatar != null">
+        avatar,
+      </if>
+      <if test="isSubscribe != null">
+        is_subscribe,
+      </if>
+      <if test="subscriptionExtend != null">
+        subscription_extend,
+      </if>
+      <if test="subscribeTime != null">
+        subscribe_time,
+      </if>
+      <if test="bookCategoryIds != null">
+        book_category_ids,
+      </if>
+      <if test="operateTime != null">
+        operate_time,
+      </if>
+      <if test="isPay != null">
+        is_pay,
+      </if>
+      <if test="kandian != null">
+        kandian,
+      </if>
+      <if test="freeKandian != null">
+        free_kandian,
+      </if>
+      <if test="vipEndtime != null">
+        vip_endtime,
+      </if>
+      <if test="registerIp != null">
+        register_ip,
+      </if>
+      <if test="country != null">
+        country,
+      </if>
+      <if test="area != null">
+        area,
+      </if>
+      <if test="province != null">
+        province,
+      </if>
+      <if test="city != null">
+        city,
+      </if>
+      <if test="isp != null">
+        isp,
+      </if>
+      <if test="channelId != null">
+        channel_id,
+      </if>
+      <if test="state != null">
+        `state`,
+      </if>
+      <if test="createtime != null">
+        createtime,
+      </if>
+      <if test="updatetime != null">
+        updatetime,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="openid != null">
+        #{openid,jdbcType=VARCHAR},
+      </if>
+      <if test="unionid != null">
+        #{unionid,jdbcType=VARCHAR},
+      </if>
+      <if test="visitor != null">
+        #{visitor,jdbcType=VARCHAR},
+      </if>
+      <if test="nickname != null">
+        #{nickname,jdbcType=VARCHAR},
+      </if>
+      <if test="sex != null">
+        #{sex,jdbcType=OTHER},
+      </if>
+      <if test="mobile != null">
+        #{mobile,jdbcType=CHAR},
+      </if>
+      <if test="avatar != null">
+        #{avatar,jdbcType=VARCHAR},
+      </if>
+      <if test="isSubscribe != null">
+        #{isSubscribe,jdbcType=OTHER},
+      </if>
+      <if test="subscriptionExtend != null">
+        #{subscriptionExtend,jdbcType=OTHER},
+      </if>
+      <if test="subscribeTime != null">
+        #{subscribeTime,jdbcType=INTEGER},
+      </if>
+      <if test="bookCategoryIds != null">
+        #{bookCategoryIds,jdbcType=VARCHAR},
+      </if>
+      <if test="operateTime != null">
+        #{operateTime,jdbcType=INTEGER},
+      </if>
+      <if test="isPay != null">
+        #{isPay,jdbcType=OTHER},
+      </if>
+      <if test="kandian != null">
+        #{kandian,jdbcType=INTEGER},
+      </if>
+      <if test="freeKandian != null">
+        #{freeKandian,jdbcType=INTEGER},
+      </if>
+      <if test="vipEndtime != null">
+        #{vipEndtime,jdbcType=INTEGER},
+      </if>
+      <if test="registerIp != null">
+        #{registerIp,jdbcType=VARCHAR},
+      </if>
+      <if test="country != null">
+        #{country,jdbcType=VARCHAR},
+      </if>
+      <if test="area != null">
+        #{area,jdbcType=VARCHAR},
+      </if>
+      <if test="province != null">
+        #{province,jdbcType=VARCHAR},
+      </if>
+      <if test="city != null">
+        #{city,jdbcType=VARCHAR},
+      </if>
+      <if test="isp != null">
+        #{isp,jdbcType=VARCHAR},
+      </if>
+      <if test="channelId != null">
+        #{channelId,jdbcType=INTEGER},
+      </if>
+      <if test="state != null">
+        #{state,jdbcType=OTHER},
+      </if>
+      <if test="createtime != null">
+        #{createtime,jdbcType=INTEGER},
+      </if>
+      <if test="updatetime != null">
+        #{updatetime,jdbcType=INTEGER},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.book.push.dao.pojo.User">
+    update user
+    <set>
+      <if test="openid != null">
+        openid = #{openid,jdbcType=VARCHAR},
+      </if>
+      <if test="unionid != null">
+        unionid = #{unionid,jdbcType=VARCHAR},
+      </if>
+      <if test="visitor != null">
+        visitor = #{visitor,jdbcType=VARCHAR},
+      </if>
+      <if test="nickname != null">
+        nickname = #{nickname,jdbcType=VARCHAR},
+      </if>
+      <if test="sex != null">
+        sex = #{sex,jdbcType=OTHER},
+      </if>
+      <if test="mobile != null">
+        mobile = #{mobile,jdbcType=CHAR},
+      </if>
+      <if test="avatar != null">
+        avatar = #{avatar,jdbcType=VARCHAR},
+      </if>
+      <if test="isSubscribe != null">
+        is_subscribe = #{isSubscribe,jdbcType=OTHER},
+      </if>
+      <if test="subscriptionExtend != null">
+        subscription_extend = #{subscriptionExtend,jdbcType=OTHER},
+      </if>
+      <if test="subscribeTime != null">
+        subscribe_time = #{subscribeTime,jdbcType=INTEGER},
+      </if>
+      <if test="bookCategoryIds != null">
+        book_category_ids = #{bookCategoryIds,jdbcType=VARCHAR},
+      </if>
+      <if test="operateTime != null">
+        operate_time = #{operateTime,jdbcType=INTEGER},
+      </if>
+      <if test="isPay != null">
+        is_pay = #{isPay,jdbcType=OTHER},
+      </if>
+      <if test="kandian != null">
+        kandian = #{kandian,jdbcType=INTEGER},
+      </if>
+      <if test="freeKandian != null">
+        free_kandian = #{freeKandian,jdbcType=INTEGER},
+      </if>
+      <if test="vipEndtime != null">
+        vip_endtime = #{vipEndtime,jdbcType=INTEGER},
+      </if>
+      <if test="registerIp != null">
+        register_ip = #{registerIp,jdbcType=VARCHAR},
+      </if>
+      <if test="country != null">
+        country = #{country,jdbcType=VARCHAR},
+      </if>
+      <if test="area != null">
+        area = #{area,jdbcType=VARCHAR},
+      </if>
+      <if test="province != null">
+        province = #{province,jdbcType=VARCHAR},
+      </if>
+      <if test="city != null">
+        city = #{city,jdbcType=VARCHAR},
+      </if>
+      <if test="isp != null">
+        isp = #{isp,jdbcType=VARCHAR},
+      </if>
+      <if test="channelId != null">
+        channel_id = #{channelId,jdbcType=INTEGER},
+      </if>
+      <if test="state != null">
+        `state` = #{state,jdbcType=OTHER},
+      </if>
+      <if test="createtime != null">
+        createtime = #{createtime,jdbcType=INTEGER},
+      </if>
+      <if test="updatetime != null">
+        updatetime = #{updatetime,jdbcType=INTEGER},
+      </if>
+    </set>
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.book.push.dao.pojo.User">
+    update user
+    set openid = #{openid,jdbcType=VARCHAR},
+      unionid = #{unionid,jdbcType=VARCHAR},
+      visitor = #{visitor,jdbcType=VARCHAR},
+      nickname = #{nickname,jdbcType=VARCHAR},
+      sex = #{sex,jdbcType=OTHER},
+      mobile = #{mobile,jdbcType=CHAR},
+      avatar = #{avatar,jdbcType=VARCHAR},
+      is_subscribe = #{isSubscribe,jdbcType=OTHER},
+      subscription_extend = #{subscriptionExtend,jdbcType=OTHER},
+      subscribe_time = #{subscribeTime,jdbcType=INTEGER},
+      book_category_ids = #{bookCategoryIds,jdbcType=VARCHAR},
+      operate_time = #{operateTime,jdbcType=INTEGER},
+      is_pay = #{isPay,jdbcType=OTHER},
+      kandian = #{kandian,jdbcType=INTEGER},
+      free_kandian = #{freeKandian,jdbcType=INTEGER},
+      vip_endtime = #{vipEndtime,jdbcType=INTEGER},
+      register_ip = #{registerIp,jdbcType=VARCHAR},
+      country = #{country,jdbcType=VARCHAR},
+      area = #{area,jdbcType=VARCHAR},
+      province = #{province,jdbcType=VARCHAR},
+      city = #{city,jdbcType=VARCHAR},
+      isp = #{isp,jdbcType=VARCHAR},
+      channel_id = #{channelId,jdbcType=INTEGER},
+      `state` = #{state,jdbcType=OTHER},
+      createtime = #{createtime,jdbcType=INTEGER},
+      updatetime = #{updatetime,jdbcType=INTEGER}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
 </mapper>

+ 7 - 7
book-push/src/main/resources/mapper/UserSilentMapper.xml → book-dao/src/main/resources/mapper/polar/UserSilentMapper.xml

@@ -1,7 +1,7 @@
 <?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.push.dao.mapper.UserSilentMapper">
-  <resultMap id="BaseResultMap" type="com.book.push.dao.pojo.UserSilent">
+<mapper namespace="com.book.dao.polardb.mapper.UserSilentMapper">
+  <resultMap id="BaseResultMap" type="com.book.dao.polardb.pojo.UserSilent">
     <id column="id" jdbcType="BIGINT" property="id" />
     <result column="user_id" jdbcType="BIGINT" property="userId" />
     <result column="channel_id" jdbcType="INTEGER" property="channelId" />
@@ -22,7 +22,7 @@
     from user_silent
     where id = #{id,jdbcType=BIGINT}
   </select>
-    <select id="selectByUserSlient" resultType="com.book.push.dao.pojo.UserSilent">
+    <select id="selectByUserSlient" resultType="com.book.dao.polardb.pojo.UserSilent">
       select * from user_silent
       <trim prefix="WHERE" prefixOverrides="AND | OR">
         <if test="user_id!=null and user_id!=''">
@@ -49,7 +49,7 @@
     delete from user_silent
     where id = #{id,jdbcType=BIGINT}
   </delete>
-  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.UserSilent" useGeneratedKeys="true">
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.dao.polardb.pojo.UserSilent" useGeneratedKeys="true">
     insert into user_silent (user_id, channel_id, openid, 
       tri_channel_id, tri_openid, tri_appid, 
       updatetime, createtime)
@@ -57,7 +57,7 @@
       #{triChannelId,jdbcType=INTEGER}, #{triOpenid,jdbcType=VARCHAR}, #{triAppid,jdbcType=VARCHAR}, 
       #{updatetime,jdbcType=INTEGER}, #{createtime,jdbcType=INTEGER})
   </insert>
-  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.UserSilent" useGeneratedKeys="true">
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.dao.polardb.pojo.UserSilent" useGeneratedKeys="true">
     insert into user_silent
     <trim prefix="(" suffix=")" suffixOverrides=",">
       <if test="userId != null">
@@ -112,7 +112,7 @@
       </if>
     </trim>
   </insert>
-  <update id="updateByPrimaryKeySelective" parameterType="com.book.push.dao.pojo.UserSilent">
+  <update id="updateByPrimaryKeySelective" parameterType="com.book.dao.polardb.pojo.UserSilent">
     update user_silent
     <set>
       <if test="userId != null">
@@ -142,7 +142,7 @@
     </set>
     where id = #{id,jdbcType=BIGINT}
   </update>
-  <update id="updateByPrimaryKey" parameterType="com.book.push.dao.pojo.UserSilent">
+  <update id="updateByPrimaryKey" parameterType="com.book.dao.polardb.pojo.UserSilent">
     update user_silent
     set user_id = #{userId,jdbcType=BIGINT},
       channel_id = #{channelId,jdbcType=INTEGER},

+ 0 - 25
book-push/src/main/java/com/book/push/dao/mapper/UserMapper.java

@@ -1,25 +0,0 @@
-package com.book.push.dao.mapper;
-
-import com.book.push.dao.pojo.User;
-import org.apache.ibatis.annotations.Param;
-import org.springframework.stereotype.Repository;
-
-@Repository
-public interface UserMapper {
-
-    int deleteByPrimaryKey(Long id);
-
-    int insert(User record);
-
-    int insertSelective(User record);
-
-    User selectByPrimaryKey(Long id);
-
-    int updateByPrimaryKeySelective(User record);
-
-    int updateByPrimaryKey(User record);
-
-    User selectByUser(User user);
-
-    User selectByOpenId(@Param("openid") String openid);
-}

+ 0 - 145
book-push/src/main/java/com/book/push/dao/pojo/User.java

@@ -1,145 +0,0 @@
-package com.book.push.dao.pojo;
-
-import java.io.Serializable;
-import lombok.Data;
-
-/**
- * user
- * @author 
- */
-@Data
-public class User implements Serializable {
-    private Long id;
-
-    /**
-     * 微信openID
-     */
-    private String openid;
-
-    /**
-     * 微信unionid
-     */
-    private String unionid;
-
-    /**
-     * 访客id
-     */
-    private String visitor;
-
-    /**
-     * 昵称
-     */
-    private String nickname;
-
-    /**
-     * 状态值:0=未知,1=男性,2=女性
-     */
-    private Object sex;
-
-    /**
-     * 手机号
-     */
-    private String mobile;
-
-    /**
-     * 头像
-     */
-    private String avatar;
-
-    /**
-     * 关注公众号状态:1=已关注,0=未关注
-     */
-    private Object isSubscribe;
-
-    /**
-     * 关注引导公众号状态:1=已关注,0=未关注
-     */
-    private Object subscriptionExtend;
-
-    /**
-     * 关注时间
-     */
-    private Integer subscribeTime;
-
-    /**
-     * 喜好书籍分类
-     */
-    private String bookCategoryIds;
-
-    /**
-     * 微信交互时间戳
-     */
-    private Integer operateTime;
-
-    /**
-     * 首充状态:1=已充值,0=未充值
-     */
-    private Object isPay;
-
-    /**
-     * 充值看点数
-     */
-    private Integer kandian;
-
-    /**
-     * 赠送看点数
-     */
-    private Integer freeKandian;
-
-    /**
-     * VIP到期时间
-     */
-    private Integer vipEndtime;
-
-    /**
-     * 注册IP
-     */
-    private String registerIp;
-
-    /**
-     * 国家
-     */
-    private String country;
-
-    /**
-     * 区域
-     */
-    private String area;
-
-    /**
-     * 省份
-     */
-    private String province;
-
-    /**
-     * 城市
-     */
-    private String city;
-
-    /**
-     * isp服务商
-     */
-    private String isp;
-
-    /**
-     * 关联渠道商ID
-     */
-    private Integer channelId;
-
-    /**
-     * 状态值:0=禁用,1=正常
-     */
-    private Object state;
-
-    /**
-     * 创建时间
-     */
-    private Integer createtime;
-
-    /**
-     * 更新时间
-     */
-    private Integer updatetime;
-
-    private static final long serialVersionUID = 1L;
-}

+ 0 - 369
book-push/src/main/resources/mapper/UserMapper.xml

@@ -1,369 +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.push.dao.mapper.UserMapper">
-  <resultMap id="BaseResultMap" type="com.book.push.dao.pojo.User">
-    <id column="id" jdbcType="BIGINT" property="id" />
-    <result column="openid" jdbcType="VARCHAR" property="openid" />
-    <result column="unionid" jdbcType="VARCHAR" property="unionid" />
-    <result column="visitor" jdbcType="VARCHAR" property="visitor" />
-    <result column="nickname" jdbcType="VARCHAR" property="nickname" />
-    <result column="sex" jdbcType="OTHER" property="sex" />
-    <result column="mobile" jdbcType="CHAR" property="mobile" />
-    <result column="avatar" jdbcType="VARCHAR" property="avatar" />
-    <result column="is_subscribe" jdbcType="OTHER" property="isSubscribe" />
-    <result column="subscription_extend" jdbcType="OTHER" property="subscriptionExtend" />
-    <result column="subscribe_time" jdbcType="INTEGER" property="subscribeTime" />
-    <result column="book_category_ids" jdbcType="VARCHAR" property="bookCategoryIds" />
-    <result column="operate_time" jdbcType="INTEGER" property="operateTime" />
-    <result column="is_pay" jdbcType="OTHER" property="isPay" />
-    <result column="kandian" jdbcType="INTEGER" property="kandian" />
-    <result column="free_kandian" jdbcType="INTEGER" property="freeKandian" />
-    <result column="vip_endtime" jdbcType="INTEGER" property="vipEndtime" />
-    <result column="register_ip" jdbcType="VARCHAR" property="registerIp" />
-    <result column="country" jdbcType="VARCHAR" property="country" />
-    <result column="area" jdbcType="VARCHAR" property="area" />
-    <result column="province" jdbcType="VARCHAR" property="province" />
-    <result column="city" jdbcType="VARCHAR" property="city" />
-    <result column="isp" jdbcType="VARCHAR" property="isp" />
-    <result column="channel_id" jdbcType="INTEGER" property="channelId" />
-    <result column="state" jdbcType="OTHER" property="state" />
-    <result column="createtime" jdbcType="INTEGER" property="createtime" />
-    <result column="updatetime" jdbcType="INTEGER" property="updatetime" />
-  </resultMap>
-  <sql id="Base_Column_List">
-    id, openid, unionid, visitor, nickname, sex, mobile, avatar, is_subscribe, subscription_extend, 
-    subscribe_time, book_category_ids, operate_time, is_pay, kandian, free_kandian, vip_endtime, 
-    register_ip, country, area, province, city, isp, channel_id, `state`, createtime, 
-    updatetime
-  </sql>
-  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
-    select 
-    <include refid="Base_Column_List" />
-    from user
-    where id = #{id,jdbcType=BIGINT}
-  </select>
-    <select id="selectByUser" resultType="com.book.push.dao.pojo.User" parameterType="com.book.push.dao.pojo.User">
-
-        select id from user
-      <trim prefix="WHERE" prefixOverrides="AND | OR">
-        <if test="openid!=null and openid!=''">
-          and openid != #{openid}
-        </if>
-        <if test="mobile!=null and mobile!=''">
-          and mobile != #{mobile}
-        </if>
-        <if test="channel_id!=null and channel_id!=0">
-          and channel_id != #{channel_id}
-        </if>
-
-
-      </trim>
-
-
-
-    </select>
-    <select id="selectByOpenId" resultType="com.book.push.dao.pojo.User">
-      SELECT * from user WHERE openid = #{openid}
-    </select>
-    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
-    delete from user
-    where id = #{id,jdbcType=BIGINT}
-  </delete>
-  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.User" useGeneratedKeys="true">
-    insert into user (openid, unionid, visitor, 
-      nickname, sex, mobile, avatar, 
-      is_subscribe, subscription_extend, subscribe_time, 
-      book_category_ids, operate_time, is_pay, 
-      kandian, free_kandian, vip_endtime, 
-      register_ip, country, area, 
-      province, city, isp, 
-      channel_id, `state`, createtime, 
-      updatetime)
-    values (#{openid,jdbcType=VARCHAR}, #{unionid,jdbcType=VARCHAR}, #{visitor,jdbcType=VARCHAR}, 
-      #{nickname,jdbcType=VARCHAR}, #{sex,jdbcType=OTHER}, #{mobile,jdbcType=CHAR}, #{avatar,jdbcType=VARCHAR}, 
-      #{isSubscribe,jdbcType=OTHER}, #{subscriptionExtend,jdbcType=OTHER}, #{subscribeTime,jdbcType=INTEGER}, 
-      #{bookCategoryIds,jdbcType=VARCHAR}, #{operateTime,jdbcType=INTEGER}, #{isPay,jdbcType=OTHER}, 
-      #{kandian,jdbcType=INTEGER}, #{freeKandian,jdbcType=INTEGER}, #{vipEndtime,jdbcType=INTEGER}, 
-      #{registerIp,jdbcType=VARCHAR}, #{country,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, 
-      #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{isp,jdbcType=VARCHAR}, 
-      #{channelId,jdbcType=INTEGER}, #{state,jdbcType=OTHER}, #{createtime,jdbcType=INTEGER}, 
-      #{updatetime,jdbcType=INTEGER})
-  </insert>
-  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.book.push.dao.pojo.User" useGeneratedKeys="true">
-    insert into user
-    <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test="openid != null">
-        openid,
-      </if>
-      <if test="unionid != null">
-        unionid,
-      </if>
-      <if test="visitor != null">
-        visitor,
-      </if>
-      <if test="nickname != null">
-        nickname,
-      </if>
-      <if test="sex != null">
-        sex,
-      </if>
-      <if test="mobile != null">
-        mobile,
-      </if>
-      <if test="avatar != null">
-        avatar,
-      </if>
-      <if test="isSubscribe != null">
-        is_subscribe,
-      </if>
-      <if test="subscriptionExtend != null">
-        subscription_extend,
-      </if>
-      <if test="subscribeTime != null">
-        subscribe_time,
-      </if>
-      <if test="bookCategoryIds != null">
-        book_category_ids,
-      </if>
-      <if test="operateTime != null">
-        operate_time,
-      </if>
-      <if test="isPay != null">
-        is_pay,
-      </if>
-      <if test="kandian != null">
-        kandian,
-      </if>
-      <if test="freeKandian != null">
-        free_kandian,
-      </if>
-      <if test="vipEndtime != null">
-        vip_endtime,
-      </if>
-      <if test="registerIp != null">
-        register_ip,
-      </if>
-      <if test="country != null">
-        country,
-      </if>
-      <if test="area != null">
-        area,
-      </if>
-      <if test="province != null">
-        province,
-      </if>
-      <if test="city != null">
-        city,
-      </if>
-      <if test="isp != null">
-        isp,
-      </if>
-      <if test="channelId != null">
-        channel_id,
-      </if>
-      <if test="state != null">
-        `state`,
-      </if>
-      <if test="createtime != null">
-        createtime,
-      </if>
-      <if test="updatetime != null">
-        updatetime,
-      </if>
-    </trim>
-    <trim prefix="values (" suffix=")" suffixOverrides=",">
-      <if test="openid != null">
-        #{openid,jdbcType=VARCHAR},
-      </if>
-      <if test="unionid != null">
-        #{unionid,jdbcType=VARCHAR},
-      </if>
-      <if test="visitor != null">
-        #{visitor,jdbcType=VARCHAR},
-      </if>
-      <if test="nickname != null">
-        #{nickname,jdbcType=VARCHAR},
-      </if>
-      <if test="sex != null">
-        #{sex,jdbcType=OTHER},
-      </if>
-      <if test="mobile != null">
-        #{mobile,jdbcType=CHAR},
-      </if>
-      <if test="avatar != null">
-        #{avatar,jdbcType=VARCHAR},
-      </if>
-      <if test="isSubscribe != null">
-        #{isSubscribe,jdbcType=OTHER},
-      </if>
-      <if test="subscriptionExtend != null">
-        #{subscriptionExtend,jdbcType=OTHER},
-      </if>
-      <if test="subscribeTime != null">
-        #{subscribeTime,jdbcType=INTEGER},
-      </if>
-      <if test="bookCategoryIds != null">
-        #{bookCategoryIds,jdbcType=VARCHAR},
-      </if>
-      <if test="operateTime != null">
-        #{operateTime,jdbcType=INTEGER},
-      </if>
-      <if test="isPay != null">
-        #{isPay,jdbcType=OTHER},
-      </if>
-      <if test="kandian != null">
-        #{kandian,jdbcType=INTEGER},
-      </if>
-      <if test="freeKandian != null">
-        #{freeKandian,jdbcType=INTEGER},
-      </if>
-      <if test="vipEndtime != null">
-        #{vipEndtime,jdbcType=INTEGER},
-      </if>
-      <if test="registerIp != null">
-        #{registerIp,jdbcType=VARCHAR},
-      </if>
-      <if test="country != null">
-        #{country,jdbcType=VARCHAR},
-      </if>
-      <if test="area != null">
-        #{area,jdbcType=VARCHAR},
-      </if>
-      <if test="province != null">
-        #{province,jdbcType=VARCHAR},
-      </if>
-      <if test="city != null">
-        #{city,jdbcType=VARCHAR},
-      </if>
-      <if test="isp != null">
-        #{isp,jdbcType=VARCHAR},
-      </if>
-      <if test="channelId != null">
-        #{channelId,jdbcType=INTEGER},
-      </if>
-      <if test="state != null">
-        #{state,jdbcType=OTHER},
-      </if>
-      <if test="createtime != null">
-        #{createtime,jdbcType=INTEGER},
-      </if>
-      <if test="updatetime != null">
-        #{updatetime,jdbcType=INTEGER},
-      </if>
-    </trim>
-  </insert>
-  <update id="updateByPrimaryKeySelective" parameterType="com.book.push.dao.pojo.User">
-    update user
-    <set>
-      <if test="openid != null">
-        openid = #{openid,jdbcType=VARCHAR},
-      </if>
-      <if test="unionid != null">
-        unionid = #{unionid,jdbcType=VARCHAR},
-      </if>
-      <if test="visitor != null">
-        visitor = #{visitor,jdbcType=VARCHAR},
-      </if>
-      <if test="nickname != null">
-        nickname = #{nickname,jdbcType=VARCHAR},
-      </if>
-      <if test="sex != null">
-        sex = #{sex,jdbcType=OTHER},
-      </if>
-      <if test="mobile != null">
-        mobile = #{mobile,jdbcType=CHAR},
-      </if>
-      <if test="avatar != null">
-        avatar = #{avatar,jdbcType=VARCHAR},
-      </if>
-      <if test="isSubscribe != null">
-        is_subscribe = #{isSubscribe,jdbcType=OTHER},
-      </if>
-      <if test="subscriptionExtend != null">
-        subscription_extend = #{subscriptionExtend,jdbcType=OTHER},
-      </if>
-      <if test="subscribeTime != null">
-        subscribe_time = #{subscribeTime,jdbcType=INTEGER},
-      </if>
-      <if test="bookCategoryIds != null">
-        book_category_ids = #{bookCategoryIds,jdbcType=VARCHAR},
-      </if>
-      <if test="operateTime != null">
-        operate_time = #{operateTime,jdbcType=INTEGER},
-      </if>
-      <if test="isPay != null">
-        is_pay = #{isPay,jdbcType=OTHER},
-      </if>
-      <if test="kandian != null">
-        kandian = #{kandian,jdbcType=INTEGER},
-      </if>
-      <if test="freeKandian != null">
-        free_kandian = #{freeKandian,jdbcType=INTEGER},
-      </if>
-      <if test="vipEndtime != null">
-        vip_endtime = #{vipEndtime,jdbcType=INTEGER},
-      </if>
-      <if test="registerIp != null">
-        register_ip = #{registerIp,jdbcType=VARCHAR},
-      </if>
-      <if test="country != null">
-        country = #{country,jdbcType=VARCHAR},
-      </if>
-      <if test="area != null">
-        area = #{area,jdbcType=VARCHAR},
-      </if>
-      <if test="province != null">
-        province = #{province,jdbcType=VARCHAR},
-      </if>
-      <if test="city != null">
-        city = #{city,jdbcType=VARCHAR},
-      </if>
-      <if test="isp != null">
-        isp = #{isp,jdbcType=VARCHAR},
-      </if>
-      <if test="channelId != null">
-        channel_id = #{channelId,jdbcType=INTEGER},
-      </if>
-      <if test="state != null">
-        `state` = #{state,jdbcType=OTHER},
-      </if>
-      <if test="createtime != null">
-        createtime = #{createtime,jdbcType=INTEGER},
-      </if>
-      <if test="updatetime != null">
-        updatetime = #{updatetime,jdbcType=INTEGER},
-      </if>
-    </set>
-    where id = #{id,jdbcType=BIGINT}
-  </update>
-  <update id="updateByPrimaryKey" parameterType="com.book.push.dao.pojo.User">
-    update user
-    set openid = #{openid,jdbcType=VARCHAR},
-      unionid = #{unionid,jdbcType=VARCHAR},
-      visitor = #{visitor,jdbcType=VARCHAR},
-      nickname = #{nickname,jdbcType=VARCHAR},
-      sex = #{sex,jdbcType=OTHER},
-      mobile = #{mobile,jdbcType=CHAR},
-      avatar = #{avatar,jdbcType=VARCHAR},
-      is_subscribe = #{isSubscribe,jdbcType=OTHER},
-      subscription_extend = #{subscriptionExtend,jdbcType=OTHER},
-      subscribe_time = #{subscribeTime,jdbcType=INTEGER},
-      book_category_ids = #{bookCategoryIds,jdbcType=VARCHAR},
-      operate_time = #{operateTime,jdbcType=INTEGER},
-      is_pay = #{isPay,jdbcType=OTHER},
-      kandian = #{kandian,jdbcType=INTEGER},
-      free_kandian = #{freeKandian,jdbcType=INTEGER},
-      vip_endtime = #{vipEndtime,jdbcType=INTEGER},
-      register_ip = #{registerIp,jdbcType=VARCHAR},
-      country = #{country,jdbcType=VARCHAR},
-      area = #{area,jdbcType=VARCHAR},
-      province = #{province,jdbcType=VARCHAR},
-      city = #{city,jdbcType=VARCHAR},
-      isp = #{isp,jdbcType=VARCHAR},
-      channel_id = #{channelId,jdbcType=INTEGER},
-      `state` = #{state,jdbcType=OTHER},
-      createtime = #{createtime,jdbcType=INTEGER},
-      updatetime = #{updatetime,jdbcType=INTEGER}
-    where id = #{id,jdbcType=BIGINT}
-  </update>
-</mapper>