From 707a06ffb0edb5d3f1b0b76c0cd20c485ec1825f Mon Sep 17 00:00:00 2001
From: zhizhi wu <2377881365@qq.com>
Date: Thu, 5 Mar 2020 20:14:20 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E6=8E=88?=
=?UTF-8?q?=E6=9D=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
health/pom.xml | 6 +-
.../ccsens/health/api/WeixinController.java | 118 +-
.../java/com/ccsens/health/api/WxTest.java | 24 +-
.../com/ccsens/health/bean/po/Employee.java | 8 +-
.../health/bean/po/EmployeeExample.java | 30 +-
.../com/ccsens/health/bean/po/HealthAuth.java | 337 +++
.../health/bean/po/HealthAuthAgent.java | 205 ++
.../bean/po/HealthAuthAgentExample.java | 1331 ++++++++++
.../health/bean/po/HealthAuthExample.java | 2141 +++++++++++++++++
.../persist/mapper/HealthAuthAgentMapper.java | 30 +
.../persist/mapper/HealthAuthMapper.java | 30 +
.../health/service/ConstantService.java | 60 +
.../health/service/IConstantService.java | 18 +
.../ccsens/health/service/IWeiXinService.java | 30 +
.../ccsens/health/service/WeiXinService.java | 204 ++
health/src/main/resources/logback-spring.xml | 2 +-
.../resources/mapper_raw/EmployeeMapper.xml | 14 +-
.../mapper_raw/HealthAuthAgentMapper.xml | 401 +++
.../resources/mapper_raw/HealthAuthMapper.xml | 593 +++++
pom.xml | 5 +
.../com/ccsens/util/RestTemplateUtil.java | 123 +
.../util/enterprisewx/WeiXinConstant.java | 72 +-
.../ccsens/util/enterprisewx/XMLParse.java | 2 +-
.../util/enterprisewx/dto/MessageDto.java | 35 +-
24 files changed, 5725 insertions(+), 94 deletions(-)
create mode 100644 health/src/main/java/com/ccsens/health/bean/po/HealthAuth.java
create mode 100644 health/src/main/java/com/ccsens/health/bean/po/HealthAuthAgent.java
create mode 100644 health/src/main/java/com/ccsens/health/bean/po/HealthAuthAgentExample.java
create mode 100644 health/src/main/java/com/ccsens/health/bean/po/HealthAuthExample.java
create mode 100644 health/src/main/java/com/ccsens/health/persist/mapper/HealthAuthAgentMapper.java
create mode 100644 health/src/main/java/com/ccsens/health/persist/mapper/HealthAuthMapper.java
create mode 100644 health/src/main/java/com/ccsens/health/service/ConstantService.java
create mode 100644 health/src/main/java/com/ccsens/health/service/IConstantService.java
create mode 100644 health/src/main/java/com/ccsens/health/service/IWeiXinService.java
create mode 100644 health/src/main/java/com/ccsens/health/service/WeiXinService.java
create mode 100644 health/src/main/resources/mapper_raw/HealthAuthAgentMapper.xml
create mode 100644 health/src/main/resources/mapper_raw/HealthAuthMapper.xml
create mode 100644 util/src/main/java/com/ccsens/util/RestTemplateUtil.java
diff --git a/health/pom.xml b/health/pom.xml
index 2d8ab720..9713f9bf 100644
--- a/health/pom.xml
+++ b/health/pom.xml
@@ -28,11 +28,7 @@
1.0-SNAPSHOT
-
- com.alibaba
- fastjson
- 1.2.62
-
+
diff --git a/health/src/main/java/com/ccsens/health/api/WeixinController.java b/health/src/main/java/com/ccsens/health/api/WeixinController.java
index 5d128a91..094e7356 100644
--- a/health/src/main/java/com/ccsens/health/api/WeixinController.java
+++ b/health/src/main/java/com/ccsens/health/api/WeixinController.java
@@ -1,15 +1,26 @@
package com.ccsens.health.api;
+import cn.hutool.http.HttpUtil;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.ccsens.health.service.IConstantService;
+import com.ccsens.health.service.IWeiXinService;
+import com.ccsens.util.HttpsUtil;
+import com.ccsens.util.JacksonUtil;
+import com.ccsens.util.RestTemplateUtil;
import com.ccsens.util.enterprisewx.AesException;
import com.ccsens.util.enterprisewx.WXBizMsgCrypt;
+import com.ccsens.util.enterprisewx.WeiXinConstant;
import com.ccsens.util.enterprisewx.dto.MessageDto;
import lombok.extern.slf4j.Slf4j;
-import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.Async;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.client.RestTemplate;
-import javax.annotation.PostConstruct;
-import javax.servlet.http.HttpServletRequest;
-import java.net.URLDecoder;
+import java.util.HashMap;
import java.util.Map;
/**
@@ -18,58 +29,87 @@ import java.util.Map;
@Slf4j
@RestController
public class WeixinController {
-
-
-
+ @Autowired
+ private IWeiXinService weiXinService;
+ @Autowired
+ private IConstantService constantService;
/**
* 业务设置URL
*/
- public void settings(){
+ public void settings(MessageDto dto) throws Exception{
+ log.info("业务设置接收参数:{}", dto);
+ WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(WeiXinConstant.token, WeiXinConstant.encodingAESKey, WeiXinConstant.corpID);
+ String verifyURL = wxcpt.VerifyURL(dto.getMsg_signature(), dto.getTimestamp(), dto.getNonce(), dto.getEchostr());
+ log.info("业务设置解析结果:{}", verifyURL);
+ String jsonStr = JacksonUtil.xmlToJson(verifyURL);
+
+
}
/**
* 数据回调URL
*/
- public void userChangeNotice(){
-
+ @PostMapping("userChangeNotice")
+ public String userChangeNotice(MessageDto dto) throws Exception{
+ log.info("数据回调请求参数:{}", dto);
+ WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(WeiXinConstant.token, WeiXinConstant.encodingAESKey, WeiXinConstant.corpID);
+ String verifyURL = wxcpt.VerifyURL(dto.getMsg_signature(), dto.getTimestamp(), dto.getNonce(), dto.getEchostr());
+ log.info("数据回调解析结果:{}", verifyURL);
+ return verifyURL;
}
/**
* 指令回调URL
*/
- public void authorizationChangeNotice(){
-
+ @PostMapping("authorizationChangeNotice")
+ public String authorizationChangeNotice(MessageDto dto) throws Exception{
+ log.info("请求参数:{}", dto);
+ WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(WeiXinConstant.token, WeiXinConstant.encodingAESKey, WeiXinConstant.corpID);
+ String verifyURL = wxcpt.VerifyURL(dto.getMsg_signature(), dto.getTimestamp(), dto.getNonce(), dto.getEchostr());
+ log.info("解析结果:{}", verifyURL);
+
+ String jsonStr = JacksonUtil.xmlToJson(verifyURL);
+ JSONObject json = JSONObject.parseObject(jsonStr);
+ switch (json.getString("InfoType")){
+ case "suite_ticket" :
+ MessageDto.Ticket ticket = JSONObject.parseObject(jsonStr, MessageDto.Ticket.class);
+ constantService.saveConstant(WeiXinConstant.getSuiteTicket(ticket.getSuiteId()), ticket.getSuiteTicket());
+
+ break;
+ case "create_auth" :
+ MessageDto.Grant grant = JSONObject.parseObject(jsonStr, MessageDto.Grant.class);
+ constantService.saveConstant(WeiXinConstant.getTempAuthCodeKey(grant.getSuiteId()), grant.getAuthCode());
+ getPermanentCode(grant.getAuthCode());
+ break;
+ case "change_auth" :
+ //TODO 变更授权通知
+ break;
+ case "cancel_auth" :
+ //TODO 取消授权通知
+ break;
+ //TODO 成员变更和部门变更通知
+ }
+ return "success";
}
/**
- * 获取临时授权码
- * msg_signature=3a7b08bb8e6dbce3c9671d6fdb69d15066227608
- * ×tamp=1403610513
- * &nonce=380320359
+ * 获取永久授权码
+ * @param authCode
*/
- @RequestMapping("reciveSysMsg")
- public String reciveSysMsg(MessageDto dto){
-
- String token = "4CxIpRDBWHMiePP3x6muNe4hRj";
- String corpID = "ww86f65c2e95cd8b4c";
- String encodingAESKey = "NInifq246LLoF5wyCq4fRJNJOvKI7XIkgdUqOpWoP3G";
- String providerSecret = "fr8OXt4iMqIxe3QMUVkHCK_j9oj0qllZciOgw5CdGldDksv5yMoxFduPbZGmIlfj";
- String verifyURL = null;
- try {
- log.info("请求参数:{}", dto);
-
- WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(token, encodingAESKey, corpID);
-
- verifyURL = wxcpt.VerifyURL(dto.getMsg_signature(), dto.getTimestamp(), dto.getNonce(), dto.getEchostr());
- log.info("解析路径:{}", verifyURL);
- } catch (Exception e) {
- e.printStackTrace();
- log.error("解密异常", e);
- }
- return verifyURL;
+ @Async
+ public void getPermanentCode(String authCode){
+ weiXinService.savePermanentCode(authCode);
+ // TODO 读取部门信息和成员信息
}
-
- public void getAuthCode(MessageDto dto){
-
+ /**
+ * 系统验证
+ */
+ @GetMapping("reciveSysMsg")
+ public String reciveSysMsg(MessageDto dto) throws Exception{
+ log.info("请求参数:{}", dto);
+ WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(WeiXinConstant.token, WeiXinConstant.encodingAESKey, WeiXinConstant.corpID);
+ String verifyURL = wxcpt.VerifyURL(dto.getMsg_signature(), dto.getTimestamp(), dto.getNonce(), dto.getEchostr());
+ log.info("解析结果:{}", verifyURL);
+ return verifyURL;
}
}
diff --git a/health/src/main/java/com/ccsens/health/api/WxTest.java b/health/src/main/java/com/ccsens/health/api/WxTest.java
index 889982c3..9fafe3f0 100644
--- a/health/src/main/java/com/ccsens/health/api/WxTest.java
+++ b/health/src/main/java/com/ccsens/health/api/WxTest.java
@@ -1,8 +1,10 @@
package com.ccsens.health.api;
+import cn.hutool.json.JSONObject;
+import cn.hutool.json.JSONUtil;
+import com.ccsens.util.JacksonUtil;
import com.ccsens.util.enterprisewx.AesException;
import com.ccsens.util.enterprisewx.WXBizMsgCrypt;
-import com.ccsens.util.enterprisewx.XMLParse;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
@@ -21,15 +23,17 @@ public class WxTest {
WXBizMsgCrypt wxcpt = new WXBizMsgCrypt(sToken, sEncodingAESKey, sCorpID);
- encryptMsg(wxcpt);
-
-// String sVerifyEchoStr = "iDALk2Ey5gNLx9QzQvATu314lxZWNQVuarffoLlVkX0rVbPHn8Erjtaq6BPNZ/L435Rs5Ezo0DSYJWio5EXM9giZ7daAACkEjz4q0UUuZMOKqlisRBrOUXXTolN7hAh6J8D4wbtktDFHnqxo3wdI7d4KK9gR7gGpZYIlcJbcTT1liQFDOZs74+eor1bCr8dnausBAnTJ/warNWkNc1ats6s93iLx6MqrhZujXlsCCMhSC7GN4hIcqczpPObwiYJqMLAJx1c1I0gZuz10dbKNuo4ox5ZcCHxQQH0QJl2It3KfUTOFyL3d4/TavlKc3Be9m+zBqQnzvmtsYl/7aH+mjbLL7Qqi1akZXnZfu1F7FwtR9vlLQZkBCMHyY+VnvZKHlaKUrFZRQBp60vCDy3ZNOuII+gPhwAws+0PnBozoUO4zhzgdTpPHBdEUcEDGzsRceZkxU6woJshzuvXWYbowTg==";
-// String sVerifyMsgSig = "b9c452eb36c076b4dbce9f4aaaee79daa90f126a";
-// String sVerifyTimeStamp = "1583330437232";
-// String sVerifyNonce = "1";
-// String sEchoStr = wxcpt.VerifyURL(sVerifyMsgSig, sVerifyTimeStamp,
-// sVerifyNonce, sVerifyEchoStr);
-// System.out.println("verifyurl echostr: " + sEchoStr);
+// encryptMsg(wxcpt);
+
+ String sVerifyEchoStr = "iDALk2Ey5gNLx9QzQvATu314lxZWNQVuarffoLlVkX0rVbPHn8Erjtaq6BPNZ/L435Rs5Ezo0DSYJWio5EXM9giZ7daAACkEjz4q0UUuZMOKqlisRBrOUXXTolN7hAh6J8D4wbtktDFHnqxo3wdI7d4KK9gR7gGpZYIlcJbcTT1liQFDOZs74+eor1bCr8dnausBAnTJ/warNWkNc1ats6s93iLx6MqrhZujXlsCCMhSC7GN4hIcqczpPObwiYJqMLAJx1c1I0gZuz10dbKNuo4ox5ZcCHxQQH0QJl2It3KfUTOFyL3d4/TavlKc3Be9m+zBqQnzvmtsYl/7aH+mjbLL7Qqi1akZXnZfu1F7FwtR9vlLQZkBCMHyY+VnvZKHlaKUrFZRQBp60vCDy3ZNOuII+gPhwAws+0PnBozoUO4zhzgdTpPHBdEUcEDGzsRceZkxU6woJshzuvXWYbowTg==";
+ String sVerifyMsgSig = "b9c452eb36c076b4dbce9f4aaaee79daa90f126a";
+ String sVerifyTimeStamp = "1583330437232";
+ String sVerifyNonce = "1";
+ String sEchoStr = wxcpt.VerifyURL(sVerifyMsgSig, sVerifyTimeStamp,
+ sVerifyNonce, sVerifyEchoStr);
+ System.out.println("verifyurl echostr: " + sEchoStr);
+ String s = JacksonUtil.xmlToJson(sEchoStr);
+ System.out.println("s:"+s);
}
diff --git a/health/src/main/java/com/ccsens/health/bean/po/Employee.java b/health/src/main/java/com/ccsens/health/bean/po/Employee.java
index ff7253f7..45017ca8 100644
--- a/health/src/main/java/com/ccsens/health/bean/po/Employee.java
+++ b/health/src/main/java/com/ccsens/health/bean/po/Employee.java
@@ -20,7 +20,7 @@ public class Employee implements Serializable {
private String englishName;
- private String tallUserId;
+ private Long tallUserId;
private Date createdAt;
@@ -94,12 +94,12 @@ public class Employee implements Serializable {
this.englishName = englishName == null ? null : englishName.trim();
}
- public String getTallUserId() {
+ public Long getTallUserId() {
return tallUserId;
}
- public void setTallUserId(String tallUserId) {
- this.tallUserId = tallUserId == null ? null : tallUserId.trim();
+ public void setTallUserId(Long tallUserId) {
+ this.tallUserId = tallUserId;
}
public Date getCreatedAt() {
diff --git a/health/src/main/java/com/ccsens/health/bean/po/EmployeeExample.java b/health/src/main/java/com/ccsens/health/bean/po/EmployeeExample.java
index 70cc696d..ebd440b9 100644
--- a/health/src/main/java/com/ccsens/health/bean/po/EmployeeExample.java
+++ b/health/src/main/java/com/ccsens/health/bean/po/EmployeeExample.java
@@ -635,62 +635,52 @@ public class EmployeeExample {
return (Criteria) this;
}
- public Criteria andTallUserIdEqualTo(String value) {
+ public Criteria andTallUserIdEqualTo(Long value) {
addCriterion("tall_user_id =", value, "tallUserId");
return (Criteria) this;
}
- public Criteria andTallUserIdNotEqualTo(String value) {
+ public Criteria andTallUserIdNotEqualTo(Long value) {
addCriterion("tall_user_id <>", value, "tallUserId");
return (Criteria) this;
}
- public Criteria andTallUserIdGreaterThan(String value) {
+ public Criteria andTallUserIdGreaterThan(Long value) {
addCriterion("tall_user_id >", value, "tallUserId");
return (Criteria) this;
}
- public Criteria andTallUserIdGreaterThanOrEqualTo(String value) {
+ public Criteria andTallUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("tall_user_id >=", value, "tallUserId");
return (Criteria) this;
}
- public Criteria andTallUserIdLessThan(String value) {
+ public Criteria andTallUserIdLessThan(Long value) {
addCriterion("tall_user_id <", value, "tallUserId");
return (Criteria) this;
}
- public Criteria andTallUserIdLessThanOrEqualTo(String value) {
+ public Criteria andTallUserIdLessThanOrEqualTo(Long value) {
addCriterion("tall_user_id <=", value, "tallUserId");
return (Criteria) this;
}
- public Criteria andTallUserIdLike(String value) {
- addCriterion("tall_user_id like", value, "tallUserId");
- return (Criteria) this;
- }
-
- public Criteria andTallUserIdNotLike(String value) {
- addCriterion("tall_user_id not like", value, "tallUserId");
- return (Criteria) this;
- }
-
- public Criteria andTallUserIdIn(List values) {
+ public Criteria andTallUserIdIn(List values) {
addCriterion("tall_user_id in", values, "tallUserId");
return (Criteria) this;
}
- public Criteria andTallUserIdNotIn(List values) {
+ public Criteria andTallUserIdNotIn(List values) {
addCriterion("tall_user_id not in", values, "tallUserId");
return (Criteria) this;
}
- public Criteria andTallUserIdBetween(String value1, String value2) {
+ public Criteria andTallUserIdBetween(Long value1, Long value2) {
addCriterion("tall_user_id between", value1, value2, "tallUserId");
return (Criteria) this;
}
- public Criteria andTallUserIdNotBetween(String value1, String value2) {
+ public Criteria andTallUserIdNotBetween(Long value1, Long value2) {
addCriterion("tall_user_id not between", value1, value2, "tallUserId");
return (Criteria) this;
}
diff --git a/health/src/main/java/com/ccsens/health/bean/po/HealthAuth.java b/health/src/main/java/com/ccsens/health/bean/po/HealthAuth.java
new file mode 100644
index 00000000..76e40f93
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/bean/po/HealthAuth.java
@@ -0,0 +1,337 @@
+package com.ccsens.health.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class HealthAuth implements Serializable {
+ private Long id;
+
+ private String accessToken;
+
+ private Integer expiresIn;
+
+ private String permanentCode;
+
+ private String corpid;
+
+ private String corpName;
+
+ private String corpType;
+
+ private String corpSquareLogoUrl;
+
+ private Integer corpUserMax;
+
+ private Long corpAgentMax;
+
+ private String corpFullName;
+
+ private Byte subjectType;
+
+ private Long verifiedEndTime;
+
+ private String corpWxqrcode;
+
+ private String corpScale;
+
+ private String corpIndustry;
+
+ private String corpSubIndustry;
+
+ private String location;
+
+ private String authUserid;
+
+ private String authName;
+
+ private String authAvatar;
+
+ private String dealerCorpInfoCorpid;
+
+ private String dealerCorpInfoCorpName;
+
+ private String registerCode;
+
+ private String templateId;
+
+ private String state;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public String getAccessToken() {
+ return accessToken;
+ }
+
+ public void setAccessToken(String accessToken) {
+ this.accessToken = accessToken == null ? null : accessToken.trim();
+ }
+
+ public Integer getExpiresIn() {
+ return expiresIn;
+ }
+
+ public void setExpiresIn(Integer expiresIn) {
+ this.expiresIn = expiresIn;
+ }
+
+ public String getPermanentCode() {
+ return permanentCode;
+ }
+
+ public void setPermanentCode(String permanentCode) {
+ this.permanentCode = permanentCode == null ? null : permanentCode.trim();
+ }
+
+ public String getCorpid() {
+ return corpid;
+ }
+
+ public void setCorpid(String corpid) {
+ this.corpid = corpid == null ? null : corpid.trim();
+ }
+
+ public String getCorpName() {
+ return corpName;
+ }
+
+ public void setCorpName(String corpName) {
+ this.corpName = corpName == null ? null : corpName.trim();
+ }
+
+ public String getCorpType() {
+ return corpType;
+ }
+
+ public void setCorpType(String corpType) {
+ this.corpType = corpType == null ? null : corpType.trim();
+ }
+
+ public String getCorpSquareLogoUrl() {
+ return corpSquareLogoUrl;
+ }
+
+ public void setCorpSquareLogoUrl(String corpSquareLogoUrl) {
+ this.corpSquareLogoUrl = corpSquareLogoUrl == null ? null : corpSquareLogoUrl.trim();
+ }
+
+ public Integer getCorpUserMax() {
+ return corpUserMax;
+ }
+
+ public void setCorpUserMax(Integer corpUserMax) {
+ this.corpUserMax = corpUserMax;
+ }
+
+ public Long getCorpAgentMax() {
+ return corpAgentMax;
+ }
+
+ public void setCorpAgentMax(Long corpAgentMax) {
+ this.corpAgentMax = corpAgentMax;
+ }
+
+ public String getCorpFullName() {
+ return corpFullName;
+ }
+
+ public void setCorpFullName(String corpFullName) {
+ this.corpFullName = corpFullName == null ? null : corpFullName.trim();
+ }
+
+ public Byte getSubjectType() {
+ return subjectType;
+ }
+
+ public void setSubjectType(Byte subjectType) {
+ this.subjectType = subjectType;
+ }
+
+ public Long getVerifiedEndTime() {
+ return verifiedEndTime;
+ }
+
+ public void setVerifiedEndTime(Long verifiedEndTime) {
+ this.verifiedEndTime = verifiedEndTime;
+ }
+
+ public String getCorpWxqrcode() {
+ return corpWxqrcode;
+ }
+
+ public void setCorpWxqrcode(String corpWxqrcode) {
+ this.corpWxqrcode = corpWxqrcode == null ? null : corpWxqrcode.trim();
+ }
+
+ public String getCorpScale() {
+ return corpScale;
+ }
+
+ public void setCorpScale(String corpScale) {
+ this.corpScale = corpScale == null ? null : corpScale.trim();
+ }
+
+ public String getCorpIndustry() {
+ return corpIndustry;
+ }
+
+ public void setCorpIndustry(String corpIndustry) {
+ this.corpIndustry = corpIndustry == null ? null : corpIndustry.trim();
+ }
+
+ public String getCorpSubIndustry() {
+ return corpSubIndustry;
+ }
+
+ public void setCorpSubIndustry(String corpSubIndustry) {
+ this.corpSubIndustry = corpSubIndustry == null ? null : corpSubIndustry.trim();
+ }
+
+ public String getLocation() {
+ return location;
+ }
+
+ public void setLocation(String location) {
+ this.location = location == null ? null : location.trim();
+ }
+
+ public String getAuthUserid() {
+ return authUserid;
+ }
+
+ public void setAuthUserid(String authUserid) {
+ this.authUserid = authUserid == null ? null : authUserid.trim();
+ }
+
+ public String getAuthName() {
+ return authName;
+ }
+
+ public void setAuthName(String authName) {
+ this.authName = authName == null ? null : authName.trim();
+ }
+
+ public String getAuthAvatar() {
+ return authAvatar;
+ }
+
+ public void setAuthAvatar(String authAvatar) {
+ this.authAvatar = authAvatar == null ? null : authAvatar.trim();
+ }
+
+ public String getDealerCorpInfoCorpid() {
+ return dealerCorpInfoCorpid;
+ }
+
+ public void setDealerCorpInfoCorpid(String dealerCorpInfoCorpid) {
+ this.dealerCorpInfoCorpid = dealerCorpInfoCorpid == null ? null : dealerCorpInfoCorpid.trim();
+ }
+
+ public String getDealerCorpInfoCorpName() {
+ return dealerCorpInfoCorpName;
+ }
+
+ public void setDealerCorpInfoCorpName(String dealerCorpInfoCorpName) {
+ this.dealerCorpInfoCorpName = dealerCorpInfoCorpName == null ? null : dealerCorpInfoCorpName.trim();
+ }
+
+ public String getRegisterCode() {
+ return registerCode;
+ }
+
+ public void setRegisterCode(String registerCode) {
+ this.registerCode = registerCode == null ? null : registerCode.trim();
+ }
+
+ public String getTemplateId() {
+ return templateId;
+ }
+
+ public void setTemplateId(String templateId) {
+ this.templateId = templateId == null ? null : templateId.trim();
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state == null ? null : state.trim();
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", accessToken=").append(accessToken);
+ sb.append(", expiresIn=").append(expiresIn);
+ sb.append(", permanentCode=").append(permanentCode);
+ sb.append(", corpid=").append(corpid);
+ sb.append(", corpName=").append(corpName);
+ sb.append(", corpType=").append(corpType);
+ sb.append(", corpSquareLogoUrl=").append(corpSquareLogoUrl);
+ sb.append(", corpUserMax=").append(corpUserMax);
+ sb.append(", corpAgentMax=").append(corpAgentMax);
+ sb.append(", corpFullName=").append(corpFullName);
+ sb.append(", subjectType=").append(subjectType);
+ sb.append(", verifiedEndTime=").append(verifiedEndTime);
+ sb.append(", corpWxqrcode=").append(corpWxqrcode);
+ sb.append(", corpScale=").append(corpScale);
+ sb.append(", corpIndustry=").append(corpIndustry);
+ sb.append(", corpSubIndustry=").append(corpSubIndustry);
+ sb.append(", location=").append(location);
+ sb.append(", authUserid=").append(authUserid);
+ sb.append(", authName=").append(authName);
+ sb.append(", authAvatar=").append(authAvatar);
+ sb.append(", dealerCorpInfoCorpid=").append(dealerCorpInfoCorpid);
+ sb.append(", dealerCorpInfoCorpName=").append(dealerCorpInfoCorpName);
+ sb.append(", registerCode=").append(registerCode);
+ sb.append(", templateId=").append(templateId);
+ sb.append(", state=").append(state);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/health/src/main/java/com/ccsens/health/bean/po/HealthAuthAgent.java b/health/src/main/java/com/ccsens/health/bean/po/HealthAuthAgent.java
new file mode 100644
index 00000000..03eb7290
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/bean/po/HealthAuthAgent.java
@@ -0,0 +1,205 @@
+package com.ccsens.health.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class HealthAuthAgent implements Serializable {
+ private Long id;
+
+ private Long authId;
+
+ private Long agentid;
+
+ private String name;
+
+ private String squareLogoUrl;
+
+ private String roundLogoUrl;
+
+ private String privilege;
+
+ private String allowParty;
+
+ private String allowTag;
+
+ private String allowUser;
+
+ private String extraParty;
+
+ private String extraUser;
+
+ private String extraTag;
+
+ private String level;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getAuthId() {
+ return authId;
+ }
+
+ public void setAuthId(Long authId) {
+ this.authId = authId;
+ }
+
+ public Long getAgentid() {
+ return agentid;
+ }
+
+ public void setAgentid(Long agentid) {
+ this.agentid = agentid;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public String getSquareLogoUrl() {
+ return squareLogoUrl;
+ }
+
+ public void setSquareLogoUrl(String squareLogoUrl) {
+ this.squareLogoUrl = squareLogoUrl == null ? null : squareLogoUrl.trim();
+ }
+
+ public String getRoundLogoUrl() {
+ return roundLogoUrl;
+ }
+
+ public void setRoundLogoUrl(String roundLogoUrl) {
+ this.roundLogoUrl = roundLogoUrl == null ? null : roundLogoUrl.trim();
+ }
+
+ public String getPrivilege() {
+ return privilege;
+ }
+
+ public void setPrivilege(String privilege) {
+ this.privilege = privilege == null ? null : privilege.trim();
+ }
+
+ public String getAllowParty() {
+ return allowParty;
+ }
+
+ public void setAllowParty(String allowParty) {
+ this.allowParty = allowParty == null ? null : allowParty.trim();
+ }
+
+ public String getAllowTag() {
+ return allowTag;
+ }
+
+ public void setAllowTag(String allowTag) {
+ this.allowTag = allowTag == null ? null : allowTag.trim();
+ }
+
+ public String getAllowUser() {
+ return allowUser;
+ }
+
+ public void setAllowUser(String allowUser) {
+ this.allowUser = allowUser == null ? null : allowUser.trim();
+ }
+
+ public String getExtraParty() {
+ return extraParty;
+ }
+
+ public void setExtraParty(String extraParty) {
+ this.extraParty = extraParty == null ? null : extraParty.trim();
+ }
+
+ public String getExtraUser() {
+ return extraUser;
+ }
+
+ public void setExtraUser(String extraUser) {
+ this.extraUser = extraUser == null ? null : extraUser.trim();
+ }
+
+ public String getExtraTag() {
+ return extraTag;
+ }
+
+ public void setExtraTag(String extraTag) {
+ this.extraTag = extraTag == null ? null : extraTag.trim();
+ }
+
+ public String getLevel() {
+ return level;
+ }
+
+ public void setLevel(String level) {
+ this.level = level == null ? null : level.trim();
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", authId=").append(authId);
+ sb.append(", agentid=").append(agentid);
+ sb.append(", name=").append(name);
+ sb.append(", squareLogoUrl=").append(squareLogoUrl);
+ sb.append(", roundLogoUrl=").append(roundLogoUrl);
+ sb.append(", privilege=").append(privilege);
+ sb.append(", allowParty=").append(allowParty);
+ sb.append(", allowTag=").append(allowTag);
+ sb.append(", allowUser=").append(allowUser);
+ sb.append(", extraParty=").append(extraParty);
+ sb.append(", extraUser=").append(extraUser);
+ sb.append(", extraTag=").append(extraTag);
+ sb.append(", level=").append(level);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/health/src/main/java/com/ccsens/health/bean/po/HealthAuthAgentExample.java b/health/src/main/java/com/ccsens/health/bean/po/HealthAuthAgentExample.java
new file mode 100644
index 00000000..ba3e4169
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/bean/po/HealthAuthAgentExample.java
@@ -0,0 +1,1331 @@
+package com.ccsens.health.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class HealthAuthAgentExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public HealthAuthAgentExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdIsNull() {
+ addCriterion("auth_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdIsNotNull() {
+ addCriterion("auth_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdEqualTo(Long value) {
+ addCriterion("auth_id =", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdNotEqualTo(Long value) {
+ addCriterion("auth_id <>", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdGreaterThan(Long value) {
+ addCriterion("auth_id >", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("auth_id >=", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdLessThan(Long value) {
+ addCriterion("auth_id <", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdLessThanOrEqualTo(Long value) {
+ addCriterion("auth_id <=", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdIn(List values) {
+ addCriterion("auth_id in", values, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdNotIn(List values) {
+ addCriterion("auth_id not in", values, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdBetween(Long value1, Long value2) {
+ addCriterion("auth_id between", value1, value2, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdNotBetween(Long value1, Long value2) {
+ addCriterion("auth_id not between", value1, value2, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidIsNull() {
+ addCriterion("agentid is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidIsNotNull() {
+ addCriterion("agentid is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidEqualTo(Long value) {
+ addCriterion("agentid =", value, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidNotEqualTo(Long value) {
+ addCriterion("agentid <>", value, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidGreaterThan(Long value) {
+ addCriterion("agentid >", value, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidGreaterThanOrEqualTo(Long value) {
+ addCriterion("agentid >=", value, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidLessThan(Long value) {
+ addCriterion("agentid <", value, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidLessThanOrEqualTo(Long value) {
+ addCriterion("agentid <=", value, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidIn(List values) {
+ addCriterion("agentid in", values, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidNotIn(List values) {
+ addCriterion("agentid not in", values, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidBetween(Long value1, Long value2) {
+ addCriterion("agentid between", value1, value2, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAgentidNotBetween(Long value1, Long value2) {
+ addCriterion("agentid not between", value1, value2, "agentid");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIsNull() {
+ addCriterion("name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIsNotNull() {
+ addCriterion("name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameEqualTo(String value) {
+ addCriterion("name =", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotEqualTo(String value) {
+ addCriterion("name <>", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameGreaterThan(String value) {
+ addCriterion("name >", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameGreaterThanOrEqualTo(String value) {
+ addCriterion("name >=", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLessThan(String value) {
+ addCriterion("name <", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLessThanOrEqualTo(String value) {
+ addCriterion("name <=", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameLike(String value) {
+ addCriterion("name like", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotLike(String value) {
+ addCriterion("name not like", value, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameIn(List values) {
+ addCriterion("name in", values, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotIn(List values) {
+ addCriterion("name not in", values, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameBetween(String value1, String value2) {
+ addCriterion("name between", value1, value2, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andNameNotBetween(String value1, String value2) {
+ addCriterion("name not between", value1, value2, "name");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlIsNull() {
+ addCriterion("square_logo_url is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlIsNotNull() {
+ addCriterion("square_logo_url is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlEqualTo(String value) {
+ addCriterion("square_logo_url =", value, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlNotEqualTo(String value) {
+ addCriterion("square_logo_url <>", value, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlGreaterThan(String value) {
+ addCriterion("square_logo_url >", value, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlGreaterThanOrEqualTo(String value) {
+ addCriterion("square_logo_url >=", value, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlLessThan(String value) {
+ addCriterion("square_logo_url <", value, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlLessThanOrEqualTo(String value) {
+ addCriterion("square_logo_url <=", value, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlLike(String value) {
+ addCriterion("square_logo_url like", value, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlNotLike(String value) {
+ addCriterion("square_logo_url not like", value, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlIn(List values) {
+ addCriterion("square_logo_url in", values, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlNotIn(List values) {
+ addCriterion("square_logo_url not in", values, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlBetween(String value1, String value2) {
+ addCriterion("square_logo_url between", value1, value2, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andSquareLogoUrlNotBetween(String value1, String value2) {
+ addCriterion("square_logo_url not between", value1, value2, "squareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlIsNull() {
+ addCriterion("round_logo_url is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlIsNotNull() {
+ addCriterion("round_logo_url is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlEqualTo(String value) {
+ addCriterion("round_logo_url =", value, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlNotEqualTo(String value) {
+ addCriterion("round_logo_url <>", value, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlGreaterThan(String value) {
+ addCriterion("round_logo_url >", value, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlGreaterThanOrEqualTo(String value) {
+ addCriterion("round_logo_url >=", value, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlLessThan(String value) {
+ addCriterion("round_logo_url <", value, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlLessThanOrEqualTo(String value) {
+ addCriterion("round_logo_url <=", value, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlLike(String value) {
+ addCriterion("round_logo_url like", value, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlNotLike(String value) {
+ addCriterion("round_logo_url not like", value, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlIn(List values) {
+ addCriterion("round_logo_url in", values, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlNotIn(List values) {
+ addCriterion("round_logo_url not in", values, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlBetween(String value1, String value2) {
+ addCriterion("round_logo_url between", value1, value2, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andRoundLogoUrlNotBetween(String value1, String value2) {
+ addCriterion("round_logo_url not between", value1, value2, "roundLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeIsNull() {
+ addCriterion("privilege is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeIsNotNull() {
+ addCriterion("privilege is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeEqualTo(String value) {
+ addCriterion("privilege =", value, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeNotEqualTo(String value) {
+ addCriterion("privilege <>", value, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeGreaterThan(String value) {
+ addCriterion("privilege >", value, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeGreaterThanOrEqualTo(String value) {
+ addCriterion("privilege >=", value, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeLessThan(String value) {
+ addCriterion("privilege <", value, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeLessThanOrEqualTo(String value) {
+ addCriterion("privilege <=", value, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeLike(String value) {
+ addCriterion("privilege like", value, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeNotLike(String value) {
+ addCriterion("privilege not like", value, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeIn(List values) {
+ addCriterion("privilege in", values, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeNotIn(List values) {
+ addCriterion("privilege not in", values, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeBetween(String value1, String value2) {
+ addCriterion("privilege between", value1, value2, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andPrivilegeNotBetween(String value1, String value2) {
+ addCriterion("privilege not between", value1, value2, "privilege");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyIsNull() {
+ addCriterion("allow_party is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyIsNotNull() {
+ addCriterion("allow_party is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyEqualTo(String value) {
+ addCriterion("allow_party =", value, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyNotEqualTo(String value) {
+ addCriterion("allow_party <>", value, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyGreaterThan(String value) {
+ addCriterion("allow_party >", value, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyGreaterThanOrEqualTo(String value) {
+ addCriterion("allow_party >=", value, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyLessThan(String value) {
+ addCriterion("allow_party <", value, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyLessThanOrEqualTo(String value) {
+ addCriterion("allow_party <=", value, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyLike(String value) {
+ addCriterion("allow_party like", value, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyNotLike(String value) {
+ addCriterion("allow_party not like", value, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyIn(List values) {
+ addCriterion("allow_party in", values, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyNotIn(List values) {
+ addCriterion("allow_party not in", values, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyBetween(String value1, String value2) {
+ addCriterion("allow_party between", value1, value2, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowPartyNotBetween(String value1, String value2) {
+ addCriterion("allow_party not between", value1, value2, "allowParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagIsNull() {
+ addCriterion("allow_tag is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagIsNotNull() {
+ addCriterion("allow_tag is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagEqualTo(String value) {
+ addCriterion("allow_tag =", value, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagNotEqualTo(String value) {
+ addCriterion("allow_tag <>", value, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagGreaterThan(String value) {
+ addCriterion("allow_tag >", value, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagGreaterThanOrEqualTo(String value) {
+ addCriterion("allow_tag >=", value, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagLessThan(String value) {
+ addCriterion("allow_tag <", value, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagLessThanOrEqualTo(String value) {
+ addCriterion("allow_tag <=", value, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagLike(String value) {
+ addCriterion("allow_tag like", value, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagNotLike(String value) {
+ addCriterion("allow_tag not like", value, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagIn(List values) {
+ addCriterion("allow_tag in", values, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagNotIn(List values) {
+ addCriterion("allow_tag not in", values, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagBetween(String value1, String value2) {
+ addCriterion("allow_tag between", value1, value2, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowTagNotBetween(String value1, String value2) {
+ addCriterion("allow_tag not between", value1, value2, "allowTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserIsNull() {
+ addCriterion("allow_user is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserIsNotNull() {
+ addCriterion("allow_user is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserEqualTo(String value) {
+ addCriterion("allow_user =", value, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserNotEqualTo(String value) {
+ addCriterion("allow_user <>", value, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserGreaterThan(String value) {
+ addCriterion("allow_user >", value, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserGreaterThanOrEqualTo(String value) {
+ addCriterion("allow_user >=", value, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserLessThan(String value) {
+ addCriterion("allow_user <", value, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserLessThanOrEqualTo(String value) {
+ addCriterion("allow_user <=", value, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserLike(String value) {
+ addCriterion("allow_user like", value, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserNotLike(String value) {
+ addCriterion("allow_user not like", value, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserIn(List values) {
+ addCriterion("allow_user in", values, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserNotIn(List values) {
+ addCriterion("allow_user not in", values, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserBetween(String value1, String value2) {
+ addCriterion("allow_user between", value1, value2, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andAllowUserNotBetween(String value1, String value2) {
+ addCriterion("allow_user not between", value1, value2, "allowUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyIsNull() {
+ addCriterion("extra_party is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyIsNotNull() {
+ addCriterion("extra_party is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyEqualTo(String value) {
+ addCriterion("extra_party =", value, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyNotEqualTo(String value) {
+ addCriterion("extra_party <>", value, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyGreaterThan(String value) {
+ addCriterion("extra_party >", value, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyGreaterThanOrEqualTo(String value) {
+ addCriterion("extra_party >=", value, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyLessThan(String value) {
+ addCriterion("extra_party <", value, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyLessThanOrEqualTo(String value) {
+ addCriterion("extra_party <=", value, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyLike(String value) {
+ addCriterion("extra_party like", value, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyNotLike(String value) {
+ addCriterion("extra_party not like", value, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyIn(List values) {
+ addCriterion("extra_party in", values, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyNotIn(List values) {
+ addCriterion("extra_party not in", values, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyBetween(String value1, String value2) {
+ addCriterion("extra_party between", value1, value2, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraPartyNotBetween(String value1, String value2) {
+ addCriterion("extra_party not between", value1, value2, "extraParty");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserIsNull() {
+ addCriterion("extra_user is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserIsNotNull() {
+ addCriterion("extra_user is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserEqualTo(String value) {
+ addCriterion("extra_user =", value, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserNotEqualTo(String value) {
+ addCriterion("extra_user <>", value, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserGreaterThan(String value) {
+ addCriterion("extra_user >", value, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserGreaterThanOrEqualTo(String value) {
+ addCriterion("extra_user >=", value, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserLessThan(String value) {
+ addCriterion("extra_user <", value, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserLessThanOrEqualTo(String value) {
+ addCriterion("extra_user <=", value, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserLike(String value) {
+ addCriterion("extra_user like", value, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserNotLike(String value) {
+ addCriterion("extra_user not like", value, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserIn(List values) {
+ addCriterion("extra_user in", values, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserNotIn(List values) {
+ addCriterion("extra_user not in", values, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserBetween(String value1, String value2) {
+ addCriterion("extra_user between", value1, value2, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraUserNotBetween(String value1, String value2) {
+ addCriterion("extra_user not between", value1, value2, "extraUser");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagIsNull() {
+ addCriterion("extra_tag is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagIsNotNull() {
+ addCriterion("extra_tag is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagEqualTo(String value) {
+ addCriterion("extra_tag =", value, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagNotEqualTo(String value) {
+ addCriterion("extra_tag <>", value, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagGreaterThan(String value) {
+ addCriterion("extra_tag >", value, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagGreaterThanOrEqualTo(String value) {
+ addCriterion("extra_tag >=", value, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagLessThan(String value) {
+ addCriterion("extra_tag <", value, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagLessThanOrEqualTo(String value) {
+ addCriterion("extra_tag <=", value, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagLike(String value) {
+ addCriterion("extra_tag like", value, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagNotLike(String value) {
+ addCriterion("extra_tag not like", value, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagIn(List values) {
+ addCriterion("extra_tag in", values, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagNotIn(List values) {
+ addCriterion("extra_tag not in", values, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagBetween(String value1, String value2) {
+ addCriterion("extra_tag between", value1, value2, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtraTagNotBetween(String value1, String value2) {
+ addCriterion("extra_tag not between", value1, value2, "extraTag");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNull() {
+ addCriterion("level is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIsNotNull() {
+ addCriterion("level is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelEqualTo(String value) {
+ addCriterion("level =", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotEqualTo(String value) {
+ addCriterion("level <>", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThan(String value) {
+ addCriterion("level >", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelGreaterThanOrEqualTo(String value) {
+ addCriterion("level >=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThan(String value) {
+ addCriterion("level <", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLessThanOrEqualTo(String value) {
+ addCriterion("level <=", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelLike(String value) {
+ addCriterion("level like", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotLike(String value) {
+ addCriterion("level not like", value, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelIn(List values) {
+ addCriterion("level in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotIn(List values) {
+ addCriterion("level not in", values, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelBetween(String value1, String value2) {
+ addCriterion("level between", value1, value2, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andLevelNotBetween(String value1, String value2) {
+ addCriterion("level not between", value1, value2, "level");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List values) {
+ addCriterion("created_at in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotIn(List values) {
+ addCriterion("created_at not in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtBetween(Date value1, Date value2) {
+ addCriterion("created_at between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("created_at not between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNull() {
+ addCriterion("updated_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNotNull() {
+ addCriterion("updated_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtEqualTo(Date value) {
+ addCriterion("updated_at =", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotEqualTo(Date value) {
+ addCriterion("updated_at <>", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThan(Date value) {
+ addCriterion("updated_at >", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("updated_at >=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThan(Date value) {
+ addCriterion("updated_at <", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("updated_at <=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIn(List values) {
+ addCriterion("updated_at in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotIn(List values) {
+ addCriterion("updated_at not in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtBetween(Date value1, Date value2) {
+ addCriterion("updated_at between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("updated_at not between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNull() {
+ addCriterion("rec_status is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNotNull() {
+ addCriterion("rec_status is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusEqualTo(Byte value) {
+ addCriterion("rec_status =", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotEqualTo(Byte value) {
+ addCriterion("rec_status <>", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThan(Byte value) {
+ addCriterion("rec_status >", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
+ addCriterion("rec_status >=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThan(Byte value) {
+ addCriterion("rec_status <", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
+ addCriterion("rec_status <=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIn(List values) {
+ addCriterion("rec_status in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotIn(List values) {
+ addCriterion("rec_status not in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status not between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/health/src/main/java/com/ccsens/health/bean/po/HealthAuthExample.java b/health/src/main/java/com/ccsens/health/bean/po/HealthAuthExample.java
new file mode 100644
index 00000000..143c6516
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/bean/po/HealthAuthExample.java
@@ -0,0 +1,2141 @@
+package com.ccsens.health.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class HealthAuthExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public HealthAuthExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenIsNull() {
+ addCriterion("access_token is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenIsNotNull() {
+ addCriterion("access_token is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenEqualTo(String value) {
+ addCriterion("access_token =", value, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenNotEqualTo(String value) {
+ addCriterion("access_token <>", value, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenGreaterThan(String value) {
+ addCriterion("access_token >", value, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenGreaterThanOrEqualTo(String value) {
+ addCriterion("access_token >=", value, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenLessThan(String value) {
+ addCriterion("access_token <", value, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenLessThanOrEqualTo(String value) {
+ addCriterion("access_token <=", value, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenLike(String value) {
+ addCriterion("access_token like", value, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenNotLike(String value) {
+ addCriterion("access_token not like", value, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenIn(List values) {
+ addCriterion("access_token in", values, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenNotIn(List values) {
+ addCriterion("access_token not in", values, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenBetween(String value1, String value2) {
+ addCriterion("access_token between", value1, value2, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andAccessTokenNotBetween(String value1, String value2) {
+ addCriterion("access_token not between", value1, value2, "accessToken");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInIsNull() {
+ addCriterion("expires_in is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInIsNotNull() {
+ addCriterion("expires_in is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInEqualTo(Integer value) {
+ addCriterion("expires_in =", value, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInNotEqualTo(Integer value) {
+ addCriterion("expires_in <>", value, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInGreaterThan(Integer value) {
+ addCriterion("expires_in >", value, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInGreaterThanOrEqualTo(Integer value) {
+ addCriterion("expires_in >=", value, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInLessThan(Integer value) {
+ addCriterion("expires_in <", value, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInLessThanOrEqualTo(Integer value) {
+ addCriterion("expires_in <=", value, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInIn(List values) {
+ addCriterion("expires_in in", values, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInNotIn(List values) {
+ addCriterion("expires_in not in", values, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInBetween(Integer value1, Integer value2) {
+ addCriterion("expires_in between", value1, value2, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andExpiresInNotBetween(Integer value1, Integer value2) {
+ addCriterion("expires_in not between", value1, value2, "expiresIn");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeIsNull() {
+ addCriterion("permanent_code is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeIsNotNull() {
+ addCriterion("permanent_code is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeEqualTo(String value) {
+ addCriterion("permanent_code =", value, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeNotEqualTo(String value) {
+ addCriterion("permanent_code <>", value, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeGreaterThan(String value) {
+ addCriterion("permanent_code >", value, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeGreaterThanOrEqualTo(String value) {
+ addCriterion("permanent_code >=", value, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeLessThan(String value) {
+ addCriterion("permanent_code <", value, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeLessThanOrEqualTo(String value) {
+ addCriterion("permanent_code <=", value, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeLike(String value) {
+ addCriterion("permanent_code like", value, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeNotLike(String value) {
+ addCriterion("permanent_code not like", value, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeIn(List values) {
+ addCriterion("permanent_code in", values, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeNotIn(List values) {
+ addCriterion("permanent_code not in", values, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeBetween(String value1, String value2) {
+ addCriterion("permanent_code between", value1, value2, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andPermanentCodeNotBetween(String value1, String value2) {
+ addCriterion("permanent_code not between", value1, value2, "permanentCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidIsNull() {
+ addCriterion("corpid is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidIsNotNull() {
+ addCriterion("corpid is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidEqualTo(String value) {
+ addCriterion("corpid =", value, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidNotEqualTo(String value) {
+ addCriterion("corpid <>", value, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidGreaterThan(String value) {
+ addCriterion("corpid >", value, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidGreaterThanOrEqualTo(String value) {
+ addCriterion("corpid >=", value, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidLessThan(String value) {
+ addCriterion("corpid <", value, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidLessThanOrEqualTo(String value) {
+ addCriterion("corpid <=", value, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidLike(String value) {
+ addCriterion("corpid like", value, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidNotLike(String value) {
+ addCriterion("corpid not like", value, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidIn(List values) {
+ addCriterion("corpid in", values, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidNotIn(List values) {
+ addCriterion("corpid not in", values, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidBetween(String value1, String value2) {
+ addCriterion("corpid between", value1, value2, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpidNotBetween(String value1, String value2) {
+ addCriterion("corpid not between", value1, value2, "corpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameIsNull() {
+ addCriterion("corp_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameIsNotNull() {
+ addCriterion("corp_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameEqualTo(String value) {
+ addCriterion("corp_name =", value, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameNotEqualTo(String value) {
+ addCriterion("corp_name <>", value, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameGreaterThan(String value) {
+ addCriterion("corp_name >", value, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameGreaterThanOrEqualTo(String value) {
+ addCriterion("corp_name >=", value, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameLessThan(String value) {
+ addCriterion("corp_name <", value, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameLessThanOrEqualTo(String value) {
+ addCriterion("corp_name <=", value, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameLike(String value) {
+ addCriterion("corp_name like", value, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameNotLike(String value) {
+ addCriterion("corp_name not like", value, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameIn(List values) {
+ addCriterion("corp_name in", values, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameNotIn(List values) {
+ addCriterion("corp_name not in", values, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameBetween(String value1, String value2) {
+ addCriterion("corp_name between", value1, value2, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpNameNotBetween(String value1, String value2) {
+ addCriterion("corp_name not between", value1, value2, "corpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeIsNull() {
+ addCriterion("corp_type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeIsNotNull() {
+ addCriterion("corp_type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeEqualTo(String value) {
+ addCriterion("corp_type =", value, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeNotEqualTo(String value) {
+ addCriterion("corp_type <>", value, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeGreaterThan(String value) {
+ addCriterion("corp_type >", value, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeGreaterThanOrEqualTo(String value) {
+ addCriterion("corp_type >=", value, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeLessThan(String value) {
+ addCriterion("corp_type <", value, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeLessThanOrEqualTo(String value) {
+ addCriterion("corp_type <=", value, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeLike(String value) {
+ addCriterion("corp_type like", value, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeNotLike(String value) {
+ addCriterion("corp_type not like", value, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeIn(List values) {
+ addCriterion("corp_type in", values, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeNotIn(List values) {
+ addCriterion("corp_type not in", values, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeBetween(String value1, String value2) {
+ addCriterion("corp_type between", value1, value2, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpTypeNotBetween(String value1, String value2) {
+ addCriterion("corp_type not between", value1, value2, "corpType");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlIsNull() {
+ addCriterion("corp_square_logo_url is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlIsNotNull() {
+ addCriterion("corp_square_logo_url is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlEqualTo(String value) {
+ addCriterion("corp_square_logo_url =", value, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlNotEqualTo(String value) {
+ addCriterion("corp_square_logo_url <>", value, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlGreaterThan(String value) {
+ addCriterion("corp_square_logo_url >", value, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlGreaterThanOrEqualTo(String value) {
+ addCriterion("corp_square_logo_url >=", value, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlLessThan(String value) {
+ addCriterion("corp_square_logo_url <", value, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlLessThanOrEqualTo(String value) {
+ addCriterion("corp_square_logo_url <=", value, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlLike(String value) {
+ addCriterion("corp_square_logo_url like", value, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlNotLike(String value) {
+ addCriterion("corp_square_logo_url not like", value, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlIn(List values) {
+ addCriterion("corp_square_logo_url in", values, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlNotIn(List values) {
+ addCriterion("corp_square_logo_url not in", values, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlBetween(String value1, String value2) {
+ addCriterion("corp_square_logo_url between", value1, value2, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSquareLogoUrlNotBetween(String value1, String value2) {
+ addCriterion("corp_square_logo_url not between", value1, value2, "corpSquareLogoUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxIsNull() {
+ addCriterion("corp_user_max is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxIsNotNull() {
+ addCriterion("corp_user_max is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxEqualTo(Integer value) {
+ addCriterion("corp_user_max =", value, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxNotEqualTo(Integer value) {
+ addCriterion("corp_user_max <>", value, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxGreaterThan(Integer value) {
+ addCriterion("corp_user_max >", value, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxGreaterThanOrEqualTo(Integer value) {
+ addCriterion("corp_user_max >=", value, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxLessThan(Integer value) {
+ addCriterion("corp_user_max <", value, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxLessThanOrEqualTo(Integer value) {
+ addCriterion("corp_user_max <=", value, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxIn(List values) {
+ addCriterion("corp_user_max in", values, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxNotIn(List values) {
+ addCriterion("corp_user_max not in", values, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxBetween(Integer value1, Integer value2) {
+ addCriterion("corp_user_max between", value1, value2, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpUserMaxNotBetween(Integer value1, Integer value2) {
+ addCriterion("corp_user_max not between", value1, value2, "corpUserMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxIsNull() {
+ addCriterion("corp_agent_max is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxIsNotNull() {
+ addCriterion("corp_agent_max is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxEqualTo(Long value) {
+ addCriterion("corp_agent_max =", value, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxNotEqualTo(Long value) {
+ addCriterion("corp_agent_max <>", value, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxGreaterThan(Long value) {
+ addCriterion("corp_agent_max >", value, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxGreaterThanOrEqualTo(Long value) {
+ addCriterion("corp_agent_max >=", value, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxLessThan(Long value) {
+ addCriterion("corp_agent_max <", value, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxLessThanOrEqualTo(Long value) {
+ addCriterion("corp_agent_max <=", value, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxIn(List values) {
+ addCriterion("corp_agent_max in", values, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxNotIn(List values) {
+ addCriterion("corp_agent_max not in", values, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxBetween(Long value1, Long value2) {
+ addCriterion("corp_agent_max between", value1, value2, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpAgentMaxNotBetween(Long value1, Long value2) {
+ addCriterion("corp_agent_max not between", value1, value2, "corpAgentMax");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameIsNull() {
+ addCriterion("corp_full_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameIsNotNull() {
+ addCriterion("corp_full_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameEqualTo(String value) {
+ addCriterion("corp_full_name =", value, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameNotEqualTo(String value) {
+ addCriterion("corp_full_name <>", value, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameGreaterThan(String value) {
+ addCriterion("corp_full_name >", value, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameGreaterThanOrEqualTo(String value) {
+ addCriterion("corp_full_name >=", value, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameLessThan(String value) {
+ addCriterion("corp_full_name <", value, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameLessThanOrEqualTo(String value) {
+ addCriterion("corp_full_name <=", value, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameLike(String value) {
+ addCriterion("corp_full_name like", value, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameNotLike(String value) {
+ addCriterion("corp_full_name not like", value, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameIn(List values) {
+ addCriterion("corp_full_name in", values, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameNotIn(List values) {
+ addCriterion("corp_full_name not in", values, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameBetween(String value1, String value2) {
+ addCriterion("corp_full_name between", value1, value2, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpFullNameNotBetween(String value1, String value2) {
+ addCriterion("corp_full_name not between", value1, value2, "corpFullName");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeIsNull() {
+ addCriterion("subject_type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeIsNotNull() {
+ addCriterion("subject_type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeEqualTo(Byte value) {
+ addCriterion("subject_type =", value, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeNotEqualTo(Byte value) {
+ addCriterion("subject_type <>", value, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeGreaterThan(Byte value) {
+ addCriterion("subject_type >", value, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeGreaterThanOrEqualTo(Byte value) {
+ addCriterion("subject_type >=", value, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeLessThan(Byte value) {
+ addCriterion("subject_type <", value, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeLessThanOrEqualTo(Byte value) {
+ addCriterion("subject_type <=", value, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeIn(List values) {
+ addCriterion("subject_type in", values, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeNotIn(List values) {
+ addCriterion("subject_type not in", values, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeBetween(Byte value1, Byte value2) {
+ addCriterion("subject_type between", value1, value2, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andSubjectTypeNotBetween(Byte value1, Byte value2) {
+ addCriterion("subject_type not between", value1, value2, "subjectType");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeIsNull() {
+ addCriterion("verified_end_time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeIsNotNull() {
+ addCriterion("verified_end_time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeEqualTo(Long value) {
+ addCriterion("verified_end_time =", value, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeNotEqualTo(Long value) {
+ addCriterion("verified_end_time <>", value, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeGreaterThan(Long value) {
+ addCriterion("verified_end_time >", value, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("verified_end_time >=", value, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeLessThan(Long value) {
+ addCriterion("verified_end_time <", value, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeLessThanOrEqualTo(Long value) {
+ addCriterion("verified_end_time <=", value, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeIn(List values) {
+ addCriterion("verified_end_time in", values, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeNotIn(List values) {
+ addCriterion("verified_end_time not in", values, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeBetween(Long value1, Long value2) {
+ addCriterion("verified_end_time between", value1, value2, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerifiedEndTimeNotBetween(Long value1, Long value2) {
+ addCriterion("verified_end_time not between", value1, value2, "verifiedEndTime");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeIsNull() {
+ addCriterion("corp_wxqrcode is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeIsNotNull() {
+ addCriterion("corp_wxqrcode is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeEqualTo(String value) {
+ addCriterion("corp_wxqrcode =", value, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeNotEqualTo(String value) {
+ addCriterion("corp_wxqrcode <>", value, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeGreaterThan(String value) {
+ addCriterion("corp_wxqrcode >", value, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeGreaterThanOrEqualTo(String value) {
+ addCriterion("corp_wxqrcode >=", value, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeLessThan(String value) {
+ addCriterion("corp_wxqrcode <", value, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeLessThanOrEqualTo(String value) {
+ addCriterion("corp_wxqrcode <=", value, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeLike(String value) {
+ addCriterion("corp_wxqrcode like", value, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeNotLike(String value) {
+ addCriterion("corp_wxqrcode not like", value, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeIn(List values) {
+ addCriterion("corp_wxqrcode in", values, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeNotIn(List values) {
+ addCriterion("corp_wxqrcode not in", values, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeBetween(String value1, String value2) {
+ addCriterion("corp_wxqrcode between", value1, value2, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpWxqrcodeNotBetween(String value1, String value2) {
+ addCriterion("corp_wxqrcode not between", value1, value2, "corpWxqrcode");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleIsNull() {
+ addCriterion("corp_scale is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleIsNotNull() {
+ addCriterion("corp_scale is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleEqualTo(String value) {
+ addCriterion("corp_scale =", value, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleNotEqualTo(String value) {
+ addCriterion("corp_scale <>", value, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleGreaterThan(String value) {
+ addCriterion("corp_scale >", value, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleGreaterThanOrEqualTo(String value) {
+ addCriterion("corp_scale >=", value, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleLessThan(String value) {
+ addCriterion("corp_scale <", value, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleLessThanOrEqualTo(String value) {
+ addCriterion("corp_scale <=", value, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleLike(String value) {
+ addCriterion("corp_scale like", value, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleNotLike(String value) {
+ addCriterion("corp_scale not like", value, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleIn(List values) {
+ addCriterion("corp_scale in", values, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleNotIn(List values) {
+ addCriterion("corp_scale not in", values, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleBetween(String value1, String value2) {
+ addCriterion("corp_scale between", value1, value2, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpScaleNotBetween(String value1, String value2) {
+ addCriterion("corp_scale not between", value1, value2, "corpScale");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryIsNull() {
+ addCriterion("corp_industry is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryIsNotNull() {
+ addCriterion("corp_industry is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryEqualTo(String value) {
+ addCriterion("corp_industry =", value, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryNotEqualTo(String value) {
+ addCriterion("corp_industry <>", value, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryGreaterThan(String value) {
+ addCriterion("corp_industry >", value, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryGreaterThanOrEqualTo(String value) {
+ addCriterion("corp_industry >=", value, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryLessThan(String value) {
+ addCriterion("corp_industry <", value, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryLessThanOrEqualTo(String value) {
+ addCriterion("corp_industry <=", value, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryLike(String value) {
+ addCriterion("corp_industry like", value, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryNotLike(String value) {
+ addCriterion("corp_industry not like", value, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryIn(List values) {
+ addCriterion("corp_industry in", values, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryNotIn(List values) {
+ addCriterion("corp_industry not in", values, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryBetween(String value1, String value2) {
+ addCriterion("corp_industry between", value1, value2, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpIndustryNotBetween(String value1, String value2) {
+ addCriterion("corp_industry not between", value1, value2, "corpIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryIsNull() {
+ addCriterion("corp_sub_industry is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryIsNotNull() {
+ addCriterion("corp_sub_industry is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryEqualTo(String value) {
+ addCriterion("corp_sub_industry =", value, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryNotEqualTo(String value) {
+ addCriterion("corp_sub_industry <>", value, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryGreaterThan(String value) {
+ addCriterion("corp_sub_industry >", value, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryGreaterThanOrEqualTo(String value) {
+ addCriterion("corp_sub_industry >=", value, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryLessThan(String value) {
+ addCriterion("corp_sub_industry <", value, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryLessThanOrEqualTo(String value) {
+ addCriterion("corp_sub_industry <=", value, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryLike(String value) {
+ addCriterion("corp_sub_industry like", value, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryNotLike(String value) {
+ addCriterion("corp_sub_industry not like", value, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryIn(List values) {
+ addCriterion("corp_sub_industry in", values, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryNotIn(List values) {
+ addCriterion("corp_sub_industry not in", values, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryBetween(String value1, String value2) {
+ addCriterion("corp_sub_industry between", value1, value2, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andCorpSubIndustryNotBetween(String value1, String value2) {
+ addCriterion("corp_sub_industry not between", value1, value2, "corpSubIndustry");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationIsNull() {
+ addCriterion("location is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationIsNotNull() {
+ addCriterion("location is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationEqualTo(String value) {
+ addCriterion("location =", value, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationNotEqualTo(String value) {
+ addCriterion("location <>", value, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationGreaterThan(String value) {
+ addCriterion("location >", value, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationGreaterThanOrEqualTo(String value) {
+ addCriterion("location >=", value, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationLessThan(String value) {
+ addCriterion("location <", value, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationLessThanOrEqualTo(String value) {
+ addCriterion("location <=", value, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationLike(String value) {
+ addCriterion("location like", value, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationNotLike(String value) {
+ addCriterion("location not like", value, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationIn(List values) {
+ addCriterion("location in", values, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationNotIn(List values) {
+ addCriterion("location not in", values, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationBetween(String value1, String value2) {
+ addCriterion("location between", value1, value2, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andLocationNotBetween(String value1, String value2) {
+ addCriterion("location not between", value1, value2, "location");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridIsNull() {
+ addCriterion("auth_userid is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridIsNotNull() {
+ addCriterion("auth_userid is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridEqualTo(String value) {
+ addCriterion("auth_userid =", value, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridNotEqualTo(String value) {
+ addCriterion("auth_userid <>", value, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridGreaterThan(String value) {
+ addCriterion("auth_userid >", value, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridGreaterThanOrEqualTo(String value) {
+ addCriterion("auth_userid >=", value, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridLessThan(String value) {
+ addCriterion("auth_userid <", value, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridLessThanOrEqualTo(String value) {
+ addCriterion("auth_userid <=", value, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridLike(String value) {
+ addCriterion("auth_userid like", value, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridNotLike(String value) {
+ addCriterion("auth_userid not like", value, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridIn(List values) {
+ addCriterion("auth_userid in", values, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridNotIn(List values) {
+ addCriterion("auth_userid not in", values, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridBetween(String value1, String value2) {
+ addCriterion("auth_userid between", value1, value2, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthUseridNotBetween(String value1, String value2) {
+ addCriterion("auth_userid not between", value1, value2, "authUserid");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameIsNull() {
+ addCriterion("auth_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameIsNotNull() {
+ addCriterion("auth_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameEqualTo(String value) {
+ addCriterion("auth_name =", value, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameNotEqualTo(String value) {
+ addCriterion("auth_name <>", value, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameGreaterThan(String value) {
+ addCriterion("auth_name >", value, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameGreaterThanOrEqualTo(String value) {
+ addCriterion("auth_name >=", value, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameLessThan(String value) {
+ addCriterion("auth_name <", value, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameLessThanOrEqualTo(String value) {
+ addCriterion("auth_name <=", value, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameLike(String value) {
+ addCriterion("auth_name like", value, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameNotLike(String value) {
+ addCriterion("auth_name not like", value, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameIn(List values) {
+ addCriterion("auth_name in", values, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameNotIn(List values) {
+ addCriterion("auth_name not in", values, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameBetween(String value1, String value2) {
+ addCriterion("auth_name between", value1, value2, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthNameNotBetween(String value1, String value2) {
+ addCriterion("auth_name not between", value1, value2, "authName");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarIsNull() {
+ addCriterion("auth_avatar is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarIsNotNull() {
+ addCriterion("auth_avatar is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarEqualTo(String value) {
+ addCriterion("auth_avatar =", value, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarNotEqualTo(String value) {
+ addCriterion("auth_avatar <>", value, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarGreaterThan(String value) {
+ addCriterion("auth_avatar >", value, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarGreaterThanOrEqualTo(String value) {
+ addCriterion("auth_avatar >=", value, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarLessThan(String value) {
+ addCriterion("auth_avatar <", value, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarLessThanOrEqualTo(String value) {
+ addCriterion("auth_avatar <=", value, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarLike(String value) {
+ addCriterion("auth_avatar like", value, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarNotLike(String value) {
+ addCriterion("auth_avatar not like", value, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarIn(List values) {
+ addCriterion("auth_avatar in", values, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarNotIn(List values) {
+ addCriterion("auth_avatar not in", values, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarBetween(String value1, String value2) {
+ addCriterion("auth_avatar between", value1, value2, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthAvatarNotBetween(String value1, String value2) {
+ addCriterion("auth_avatar not between", value1, value2, "authAvatar");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidIsNull() {
+ addCriterion("dealer_corp_info_corpid is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidIsNotNull() {
+ addCriterion("dealer_corp_info_corpid is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidEqualTo(String value) {
+ addCriterion("dealer_corp_info_corpid =", value, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidNotEqualTo(String value) {
+ addCriterion("dealer_corp_info_corpid <>", value, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidGreaterThan(String value) {
+ addCriterion("dealer_corp_info_corpid >", value, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidGreaterThanOrEqualTo(String value) {
+ addCriterion("dealer_corp_info_corpid >=", value, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidLessThan(String value) {
+ addCriterion("dealer_corp_info_corpid <", value, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidLessThanOrEqualTo(String value) {
+ addCriterion("dealer_corp_info_corpid <=", value, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidLike(String value) {
+ addCriterion("dealer_corp_info_corpid like", value, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidNotLike(String value) {
+ addCriterion("dealer_corp_info_corpid not like", value, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidIn(List values) {
+ addCriterion("dealer_corp_info_corpid in", values, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidNotIn(List values) {
+ addCriterion("dealer_corp_info_corpid not in", values, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidBetween(String value1, String value2) {
+ addCriterion("dealer_corp_info_corpid between", value1, value2, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpidNotBetween(String value1, String value2) {
+ addCriterion("dealer_corp_info_corpid not between", value1, value2, "dealerCorpInfoCorpid");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameIsNull() {
+ addCriterion("dealer_corp_info_corp_name is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameIsNotNull() {
+ addCriterion("dealer_corp_info_corp_name is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameEqualTo(String value) {
+ addCriterion("dealer_corp_info_corp_name =", value, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameNotEqualTo(String value) {
+ addCriterion("dealer_corp_info_corp_name <>", value, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameGreaterThan(String value) {
+ addCriterion("dealer_corp_info_corp_name >", value, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameGreaterThanOrEqualTo(String value) {
+ addCriterion("dealer_corp_info_corp_name >=", value, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameLessThan(String value) {
+ addCriterion("dealer_corp_info_corp_name <", value, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameLessThanOrEqualTo(String value) {
+ addCriterion("dealer_corp_info_corp_name <=", value, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameLike(String value) {
+ addCriterion("dealer_corp_info_corp_name like", value, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameNotLike(String value) {
+ addCriterion("dealer_corp_info_corp_name not like", value, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameIn(List values) {
+ addCriterion("dealer_corp_info_corp_name in", values, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameNotIn(List values) {
+ addCriterion("dealer_corp_info_corp_name not in", values, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameBetween(String value1, String value2) {
+ addCriterion("dealer_corp_info_corp_name between", value1, value2, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andDealerCorpInfoCorpNameNotBetween(String value1, String value2) {
+ addCriterion("dealer_corp_info_corp_name not between", value1, value2, "dealerCorpInfoCorpName");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeIsNull() {
+ addCriterion("register_code is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeIsNotNull() {
+ addCriterion("register_code is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeEqualTo(String value) {
+ addCriterion("register_code =", value, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeNotEqualTo(String value) {
+ addCriterion("register_code <>", value, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeGreaterThan(String value) {
+ addCriterion("register_code >", value, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeGreaterThanOrEqualTo(String value) {
+ addCriterion("register_code >=", value, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeLessThan(String value) {
+ addCriterion("register_code <", value, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeLessThanOrEqualTo(String value) {
+ addCriterion("register_code <=", value, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeLike(String value) {
+ addCriterion("register_code like", value, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeNotLike(String value) {
+ addCriterion("register_code not like", value, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeIn(List values) {
+ addCriterion("register_code in", values, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeNotIn(List values) {
+ addCriterion("register_code not in", values, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeBetween(String value1, String value2) {
+ addCriterion("register_code between", value1, value2, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterCodeNotBetween(String value1, String value2) {
+ addCriterion("register_code not between", value1, value2, "registerCode");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdIsNull() {
+ addCriterion("template_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdIsNotNull() {
+ addCriterion("template_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdEqualTo(String value) {
+ addCriterion("template_id =", value, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdNotEqualTo(String value) {
+ addCriterion("template_id <>", value, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdGreaterThan(String value) {
+ addCriterion("template_id >", value, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdGreaterThanOrEqualTo(String value) {
+ addCriterion("template_id >=", value, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdLessThan(String value) {
+ addCriterion("template_id <", value, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdLessThanOrEqualTo(String value) {
+ addCriterion("template_id <=", value, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdLike(String value) {
+ addCriterion("template_id like", value, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdNotLike(String value) {
+ addCriterion("template_id not like", value, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdIn(List values) {
+ addCriterion("template_id in", values, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdNotIn(List values) {
+ addCriterion("template_id not in", values, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdBetween(String value1, String value2) {
+ addCriterion("template_id between", value1, value2, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andTemplateIdNotBetween(String value1, String value2) {
+ addCriterion("template_id not between", value1, value2, "templateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateIsNull() {
+ addCriterion("state is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateIsNotNull() {
+ addCriterion("state is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateEqualTo(String value) {
+ addCriterion("state =", value, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateNotEqualTo(String value) {
+ addCriterion("state <>", value, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateGreaterThan(String value) {
+ addCriterion("state >", value, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateGreaterThanOrEqualTo(String value) {
+ addCriterion("state >=", value, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateLessThan(String value) {
+ addCriterion("state <", value, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateLessThanOrEqualTo(String value) {
+ addCriterion("state <=", value, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateLike(String value) {
+ addCriterion("state like", value, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateNotLike(String value) {
+ addCriterion("state not like", value, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateIn(List values) {
+ addCriterion("state in", values, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateNotIn(List values) {
+ addCriterion("state not in", values, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateBetween(String value1, String value2) {
+ addCriterion("state between", value1, value2, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andStateNotBetween(String value1, String value2) {
+ addCriterion("state not between", value1, value2, "state");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List values) {
+ addCriterion("created_at in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotIn(List values) {
+ addCriterion("created_at not in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtBetween(Date value1, Date value2) {
+ addCriterion("created_at between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("created_at not between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNull() {
+ addCriterion("updated_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNotNull() {
+ addCriterion("updated_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtEqualTo(Date value) {
+ addCriterion("updated_at =", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotEqualTo(Date value) {
+ addCriterion("updated_at <>", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThan(Date value) {
+ addCriterion("updated_at >", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("updated_at >=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThan(Date value) {
+ addCriterion("updated_at <", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("updated_at <=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIn(List values) {
+ addCriterion("updated_at in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotIn(List values) {
+ addCriterion("updated_at not in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtBetween(Date value1, Date value2) {
+ addCriterion("updated_at between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("updated_at not between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNull() {
+ addCriterion("rec_status is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNotNull() {
+ addCriterion("rec_status is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusEqualTo(Byte value) {
+ addCriterion("rec_status =", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotEqualTo(Byte value) {
+ addCriterion("rec_status <>", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThan(Byte value) {
+ addCriterion("rec_status >", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
+ addCriterion("rec_status >=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThan(Byte value) {
+ addCriterion("rec_status <", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
+ addCriterion("rec_status <=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIn(List values) {
+ addCriterion("rec_status in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotIn(List values) {
+ addCriterion("rec_status not in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status not between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/health/src/main/java/com/ccsens/health/persist/mapper/HealthAuthAgentMapper.java b/health/src/main/java/com/ccsens/health/persist/mapper/HealthAuthAgentMapper.java
new file mode 100644
index 00000000..f943b592
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/persist/mapper/HealthAuthAgentMapper.java
@@ -0,0 +1,30 @@
+package com.ccsens.health.persist.mapper;
+
+import com.ccsens.health.bean.po.HealthAuthAgent;
+import com.ccsens.health.bean.po.HealthAuthAgentExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface HealthAuthAgentMapper {
+ long countByExample(HealthAuthAgentExample example);
+
+ int deleteByExample(HealthAuthAgentExample example);
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(HealthAuthAgent record);
+
+ int insertSelective(HealthAuthAgent record);
+
+ List selectByExample(HealthAuthAgentExample example);
+
+ HealthAuthAgent selectByPrimaryKey(Long id);
+
+ int updateByExampleSelective(@Param("record") HealthAuthAgent record, @Param("example") HealthAuthAgentExample example);
+
+ int updateByExample(@Param("record") HealthAuthAgent record, @Param("example") HealthAuthAgentExample example);
+
+ int updateByPrimaryKeySelective(HealthAuthAgent record);
+
+ int updateByPrimaryKey(HealthAuthAgent record);
+}
\ No newline at end of file
diff --git a/health/src/main/java/com/ccsens/health/persist/mapper/HealthAuthMapper.java b/health/src/main/java/com/ccsens/health/persist/mapper/HealthAuthMapper.java
new file mode 100644
index 00000000..57c1f8d6
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/persist/mapper/HealthAuthMapper.java
@@ -0,0 +1,30 @@
+package com.ccsens.health.persist.mapper;
+
+import com.ccsens.health.bean.po.HealthAuth;
+import com.ccsens.health.bean.po.HealthAuthExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface HealthAuthMapper {
+ long countByExample(HealthAuthExample example);
+
+ int deleteByExample(HealthAuthExample example);
+
+ int deleteByPrimaryKey(Long id);
+
+ int insert(HealthAuth record);
+
+ int insertSelective(HealthAuth record);
+
+ List selectByExample(HealthAuthExample example);
+
+ HealthAuth selectByPrimaryKey(Long id);
+
+ int updateByExampleSelective(@Param("record") HealthAuth record, @Param("example") HealthAuthExample example);
+
+ int updateByExample(@Param("record") HealthAuth record, @Param("example") HealthAuthExample example);
+
+ int updateByPrimaryKeySelective(HealthAuth record);
+
+ int updateByPrimaryKey(HealthAuth record);
+}
\ No newline at end of file
diff --git a/health/src/main/java/com/ccsens/health/service/ConstantService.java b/health/src/main/java/com/ccsens/health/service/ConstantService.java
new file mode 100644
index 00000000..4c6bc9fd
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/service/ConstantService.java
@@ -0,0 +1,60 @@
+package com.ccsens.health.service;
+
+import cn.hutool.core.collection.CollectionUtil;
+import cn.hutool.core.lang.Snowflake;
+import cn.hutool.core.util.StrUtil;
+import com.ccsens.health.bean.po.Constant;
+import com.ccsens.health.bean.po.ConstantExample;
+import com.ccsens.health.persist.mapper.ConstantMapper;
+import com.ccsens.util.RedisUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.util.List;
+
+public class ConstantService implements IConstantService {
+ @Autowired
+ private Snowflake snowflake;
+ @Autowired
+ private ConstantMapper constantMapper;
+ @Autowired
+ private RedisUtil redisUtil;
+ private final String KEY_START = "constant_";
+
+ @Override
+ public void saveConstant(String key, String value) {
+ ConstantExample example = new ConstantExample();
+ example.createCriteria().andTKeyEqualTo(key);
+ List constants = constantMapper.selectByExample(example);
+ Constant constant = null;
+ if (CollectionUtil.isEmpty(constants)) {
+ constant = new Constant();
+ constant.setId(snowflake.nextId());
+ constant.settKey(key);
+ constant.settValue(value);
+ constantMapper.insertSelective(constant);
+ } else {
+ constant = constants.get(0);
+ constant.settValue(value);
+ constantMapper.updateByPrimaryKeySelective(constant);
+ }
+ redisUtil.set(KEY_START + key, value);
+
+ }
+
+ @Override
+ public String getByKey(String key) {
+ String value = (String)redisUtil.get(KEY_START + key);
+ if (StrUtil.isNotBlank(value)) {
+ return value;
+ }
+ ConstantExample example = new ConstantExample();
+ example.createCriteria().andTKeyEqualTo(key);
+ List constants = constantMapper.selectByExample(example);
+ if (CollectionUtil.isEmpty(constants)) {
+ return null;
+ }
+ value = constants.get(0).gettValue();
+ redisUtil.set(KEY_START+key, value);
+ return value;
+ }
+}
diff --git a/health/src/main/java/com/ccsens/health/service/IConstantService.java b/health/src/main/java/com/ccsens/health/service/IConstantService.java
new file mode 100644
index 00000000..ffabebe7
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/service/IConstantService.java
@@ -0,0 +1,18 @@
+package com.ccsens.health.service;
+
+public interface IConstantService {
+
+ /**
+ * 保存常量
+ * @param key
+ * @param value
+ */
+ void saveConstant(String key, String value);
+
+ /**
+ * 获取常量
+ * @param key
+ * @return
+ */
+ String getByKey(String key);
+}
diff --git a/health/src/main/java/com/ccsens/health/service/IWeiXinService.java b/health/src/main/java/com/ccsens/health/service/IWeiXinService.java
new file mode 100644
index 00000000..f36442cf
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/service/IWeiXinService.java
@@ -0,0 +1,30 @@
+package com.ccsens.health.service;
+
+/**
+ * 企业微信相关业务
+ */
+public interface IWeiXinService {
+
+ /**
+ * 保存永久授权
+ * @param authCode 微信返回永久授权字符串
+ */
+ void savePermanentCode(String authCode);
+
+ /**
+ * 获取第三方应用凭证
+ * @param suiteId
+ * @param suiteTicket
+ */
+ void getSuiteToken(String suiteId, String suiteTicket);
+
+ /**
+ * 获取第三方授权
+ * @param suiteId
+ * @param corpId
+ * @param permanent_code
+ * @return
+ */
+ String getAccessToken(String suiteId, String corpId, String permanent_code);
+
+}
diff --git a/health/src/main/java/com/ccsens/health/service/WeiXinService.java b/health/src/main/java/com/ccsens/health/service/WeiXinService.java
new file mode 100644
index 00000000..9cdcb153
--- /dev/null
+++ b/health/src/main/java/com/ccsens/health/service/WeiXinService.java
@@ -0,0 +1,204 @@
+package com.ccsens.health.service;
+
+import cn.hutool.core.collection.CollectionUtil;
+import cn.hutool.core.lang.Snowflake;
+import cn.hutool.core.util.StrUtil;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.ccsens.health.bean.po.HealthAuth;
+import com.ccsens.health.bean.po.HealthAuthAgent;
+import com.ccsens.health.persist.mapper.HealthAuthAgentMapper;
+import com.ccsens.health.persist.mapper.HealthAuthMapper;
+import com.ccsens.util.RedisUtil;
+import com.ccsens.util.RestTemplateUtil;
+import com.ccsens.util.enterprisewx.WeiXinConstant;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.scheduling.annotation.Async;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Propagation;
+import org.springframework.transaction.annotation.Transactional;
+
+import javax.annotation.Resource;
+import java.util.HashMap;
+import java.util.Map;
+
+@Slf4j
+@Service
+@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
+public class WeiXinService implements IWeiXinService {
+
+ @Autowired
+ private Snowflake snowflake;
+ @Resource
+ private HealthAuthMapper healthAuthMapper;
+ @Resource
+ private HealthAuthAgentMapper healthAuthAgentMapper;
+ @Autowired
+ private RedisUtil redisUtil;
+
+ @Override
+ public String getAccessToken(String suiteId, String corpId, String permanent_code ) {
+ String key = WeiXinConstant.getAccessToken(suiteId, corpId);
+ String value = (String) redisUtil.get(key);
+ if (StrUtil.isNotBlank(value)) {
+ return value;
+ }
+ Map param = new HashMap<>();
+ param.put("auth_corpid",corpId);
+ param.put("permanent_code", permanent_code);
+ String resultStr = RestTemplateUtil.postBody(WeiXinConstant.GET_CORP_TOKEN, param);
+ log.info("获取企业凭证结果:{}", resultStr);
+ JSONObject result = JSONObject.parseObject(resultStr);
+ if (WeiXinConstant.pageResult(result)) {
+ //TODO 异常处理
+ return null;
+ }
+ String accessToken = result.getString("access_token");
+ redisUtil.set(key, accessToken, result.getInteger("expires_in"));
+ return accessToken;
+ }
+
+ @Override
+ public void getSuiteToken(String suiteId, String suiteTicket) {
+ log.info("获取suiteToken, suiteId:{}, suiteTicket:{}", suiteId, suiteTicket);
+ String key = WeiXinConstant.getSuiteAccessToken(suiteId);
+ String suiteAccessToken = (String)redisUtil.get(key);
+ if (StrUtil.isNotBlank(suiteAccessToken)) {
+ long expire = redisUtil.getExpire(key);
+ log.info("suiteTicket有效时长:{}",expire);
+ //有效期大于20分钟
+ int expireTime = 1200;
+ if (expire > expireTime) {
+ log.info("有效时长大于1200,无需更新");
+ return;
+ }
+ }
+
+ Map param = new HashMap<>();
+ param.put("suite_id", suiteId);
+ param.put("suite_secret", WeiXinConstant.suiteSecret);
+ param.put("suite_ticket", suiteTicket);
+ String resultStr = RestTemplateUtil.postBody(WeiXinConstant.GET_SUITE_TOKEN, param);
+ log.info("获取suite_ticket返回:{}", resultStr);
+ JSONObject result = JSONObject.parseObject(resultStr);
+ if (!WeiXinConstant.pageResult(result)) {
+ log.info("获取suite_ticket异常");
+ // TODO
+ return;
+ }
+ redisUtil.set(key, result.getString("suite_access_token"), result.getInteger("expires_in"));
+ }
+
+ @Override
+ public void savePermanentCode(String authCode) {
+ //授权成功通知
+ Map params = new HashMap<>();
+ params.put("auth_code", authCode);
+ String result = RestTemplateUtil.postBody(WeiXinConstant.GET_PERMANENT_CODE, params);
+ log.info("获取永久授权返回:{}", result);
+ JSONObject json = JSONObject.parseObject(result);
+ if (json.getInteger(WeiXinConstant.ERR_CODE).intValue() != 0) {
+ log.error("获取永久授权码异常:{}", result);
+ //TODO 异常如何处理
+ return;
+ }
+ HealthAuth auth = initAuth(json);
+ HealthAuthAgent agent = initAuthAgent(json);
+ log.info("agent:{}", agent);
+ healthAuthMapper.insertSelective(auth);
+ if (agent != null) {
+ healthAuthAgentMapper.insertSelective(agent);
+ }
+ }
+
+ /**
+ * 初始化永久授权信息
+ * @param json
+ * @return HealthAuth
+ */
+ private HealthAuth initAuth(JSONObject json) {
+ HealthAuth auth = new HealthAuth();
+ auth.setId(snowflake.nextId());
+ auth.setAccessToken(json.getString("access_token"));
+ auth.setExpiresIn(json.getInteger("expires_in"));
+ auth.setPermanentCode(json.getString("permanent_code"));
+ JSONObject dealerCorpInfo = json.getJSONObject("dealer_corp_info");
+ if (dealerCorpInfo != null) {
+ auth.setDealerCorpInfoCorpid(dealerCorpInfo.getString("corpid"));
+ auth.setDealerCorpInfoCorpName(dealerCorpInfo.getString("corp_name"));
+ }
+ JSONObject authCorpInfo = json.getJSONObject("auth_corp_info");
+ if (authCorpInfo != null) {
+ auth.setCorpid(authCorpInfo.getString("corpid"));
+ auth.setCorpName(authCorpInfo.getString("corp_name"));
+ auth.setCorpType(authCorpInfo.getString("corp_type"));
+ auth.setCorpSquareLogoUrl(authCorpInfo.getString("corp_square_logo_url"));
+ auth.setCorpUserMax(authCorpInfo.getInteger("corp_user_max"));
+ auth.setCorpAgentMax(authCorpInfo.getLong("corp_agent_max"));
+ auth.setCorpFullName(authCorpInfo.getString("corp_full_name"));
+ auth.setVerifiedEndTime(authCorpInfo.getLong("verified_end_time"));
+ auth.setSubjectType(authCorpInfo.getByte("subject_type"));
+ auth.setCorpWxqrcode(authCorpInfo.getString("corp_wxqrcode"));
+ auth.setCorpScale(authCorpInfo.getString("corp_scale"));
+ auth.setCorpIndustry(authCorpInfo.getString("corp_industry"));
+ auth.setCorpSubIndustry(authCorpInfo.getString("corp_sub_industry"));
+ auth.setLocation(authCorpInfo.getString("location"));
+ }
+ JSONObject authUserInfo = json.getJSONObject("auth_user_info");
+ if (authUserInfo != null) {
+ auth.setAuthUserid(authUserInfo.getString("userid"));
+ auth.setAuthName(authUserInfo.getString("name"));
+ auth.setAuthAvatar(authUserInfo.getString("avatar"));
+ }
+ JSONObject registerCodeInfo = json.getJSONObject("register_code_info");
+ if (registerCodeInfo != null) {
+ auth.setRegisterCode(registerCodeInfo.getString("register_code"));
+ auth.setTemplateId(registerCodeInfo.getString("template_id"));
+ auth.setState(registerCodeInfo.getString("state"));
+ }
+ log.info("auth:{}", auth);
+ return auth;
+ }
+
+ /**
+ * 初始化授权应用信息
+ * @param json
+ * @return HealthAuthAgent
+ */
+ private HealthAuthAgent initAuthAgent(JSONObject json) {
+
+ JSONObject authInfo = json.getJSONObject("auth_info");
+ if (authInfo == null) {
+ return null;
+ }
+ JSONArray agentArray = authInfo.getJSONArray("agent");
+ if (agentArray == null || agentArray.isEmpty()) {
+ return null;
+ }
+
+
+ JSONObject agentJson = (JSONObject) agentArray.get(0);
+
+ HealthAuthAgent agent = new HealthAuthAgent();
+ agent.setId(snowflake.nextId());
+ agent.setAgentid(agentJson.getLong("agentid"));
+ agent.setName(agentJson.getString("name"));
+ agent.setRoundLogoUrl(agentJson.getString("round_logo_url"));
+ agent.setSquareLogoUrl(agentJson.getString("square_logo_url"));
+ JSONObject privilege = agentJson.getJSONObject("privilege");
+ if (privilege != null) {
+ agent.setLevel(privilege.getString("level"));
+ agent.setAllowParty(privilege.getString("allow_party"));
+ agent.setAllowUser(privilege.getString("allow_user"));
+ agent.setAllowTag(privilege.getString("allow_tag"));
+ agent.setExtraParty(privilege.getString("extra_party"));
+ agent.setExtraUser(privilege.getString("extra_user"));
+ agent.setExtraTag(privilege.getString("extra_tag"));
+
+ }
+
+ return agent;
+
+ }
+}
diff --git a/health/src/main/resources/logback-spring.xml b/health/src/main/resources/logback-spring.xml
index 05caf6e3..0e068272 100644
--- a/health/src/main/resources/logback-spring.xml
+++ b/health/src/main/resources/logback-spring.xml
@@ -9,7 +9,7 @@
logback
-
+
diff --git a/health/src/main/resources/mapper_raw/EmployeeMapper.xml b/health/src/main/resources/mapper_raw/EmployeeMapper.xml
index 5ba06a05..31b825d9 100644
--- a/health/src/main/resources/mapper_raw/EmployeeMapper.xml
+++ b/health/src/main/resources/mapper_raw/EmployeeMapper.xml
@@ -10,7 +10,7 @@
-
+
@@ -115,7 +115,7 @@
)
values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{gender,jdbcType=TINYINT}, #{status,jdbcType=TINYINT}, #{address,jdbcType=VARCHAR},
- #{hideMobile,jdbcType=TINYINT}, #{englishName,jdbcType=VARCHAR}, #{tallUserId,jdbcType=VARCHAR},
+ #{hideMobile,jdbcType=TINYINT}, #{englishName,jdbcType=VARCHAR}, #{tallUserId,jdbcType=BIGINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
@@ -185,7 +185,7 @@
#{englishName,jdbcType=VARCHAR},
- #{tallUserId,jdbcType=VARCHAR},
+ #{tallUserId,jdbcType=BIGINT},
#{createdAt,jdbcType=TIMESTAMP},
@@ -232,7 +232,7 @@
english_name = #{record.englishName,jdbcType=VARCHAR},
- tall_user_id = #{record.tallUserId,jdbcType=VARCHAR},
+ tall_user_id = #{record.tallUserId,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
@@ -258,7 +258,7 @@
address = #{record.address,jdbcType=VARCHAR},
hide_mobile = #{record.hideMobile,jdbcType=TINYINT},
english_name = #{record.englishName,jdbcType=VARCHAR},
- tall_user_id = #{record.tallUserId,jdbcType=VARCHAR},
+ tall_user_id = #{record.tallUserId,jdbcType=BIGINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
@@ -291,7 +291,7 @@
english_name = #{englishName,jdbcType=VARCHAR},
- tall_user_id = #{tallUserId,jdbcType=VARCHAR},
+ tall_user_id = #{tallUserId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
@@ -314,7 +314,7 @@
address = #{address,jdbcType=VARCHAR},
hide_mobile = #{hideMobile,jdbcType=TINYINT},
english_name = #{englishName,jdbcType=VARCHAR},
- tall_user_id = #{tallUserId,jdbcType=VARCHAR},
+ tall_user_id = #{tallUserId,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
diff --git a/health/src/main/resources/mapper_raw/HealthAuthAgentMapper.xml b/health/src/main/resources/mapper_raw/HealthAuthAgentMapper.xml
new file mode 100644
index 00000000..71ab37f0
--- /dev/null
+++ b/health/src/main/resources/mapper_raw/HealthAuthAgentMapper.xml
@@ -0,0 +1,401 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ id, auth_id, agentid, name, square_logo_url, round_logo_url, privilege, allow_party,
+ allow_tag, allow_user, extra_party, extra_user, extra_tag, level, created_at, updated_at,
+ rec_status
+
+
+
+
+ delete from t_health_auth_agent
+ where id = #{id,jdbcType=BIGINT}
+
+
+ delete from t_health_auth_agent
+
+
+
+
+
+ insert into t_health_auth_agent (id, auth_id, agentid,
+ name, square_logo_url, round_logo_url,
+ privilege, allow_party, allow_tag,
+ allow_user, extra_party, extra_user,
+ extra_tag, level, created_at,
+ updated_at, rec_status)
+ values (#{id,jdbcType=BIGINT}, #{authId,jdbcType=BIGINT}, #{agentid,jdbcType=BIGINT},
+ #{name,jdbcType=VARCHAR}, #{squareLogoUrl,jdbcType=VARCHAR}, #{roundLogoUrl,jdbcType=VARCHAR},
+ #{privilege,jdbcType=VARCHAR}, #{allowParty,jdbcType=VARCHAR}, #{allowTag,jdbcType=VARCHAR},
+ #{allowUser,jdbcType=VARCHAR}, #{extraParty,jdbcType=VARCHAR}, #{extraUser,jdbcType=VARCHAR},
+ #{extraTag,jdbcType=VARCHAR}, #{level,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP},
+ #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT})
+
+
+ insert into t_health_auth_agent
+
+
+ id,
+
+
+ auth_id,
+
+
+ agentid,
+
+
+ name,
+
+
+ square_logo_url,
+
+
+ round_logo_url,
+
+
+ privilege,
+
+
+ allow_party,
+
+
+ allow_tag,
+
+
+ allow_user,
+
+
+ extra_party,
+
+
+ extra_user,
+
+
+ extra_tag,
+
+
+ level,
+
+
+ created_at,
+
+
+ updated_at,
+
+
+ rec_status,
+
+
+
+
+ #{id,jdbcType=BIGINT},
+
+
+ #{authId,jdbcType=BIGINT},
+
+
+ #{agentid,jdbcType=BIGINT},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{squareLogoUrl,jdbcType=VARCHAR},
+
+
+ #{roundLogoUrl,jdbcType=VARCHAR},
+
+
+ #{privilege,jdbcType=VARCHAR},
+
+
+ #{allowParty,jdbcType=VARCHAR},
+
+
+ #{allowTag,jdbcType=VARCHAR},
+
+
+ #{allowUser,jdbcType=VARCHAR},
+
+
+ #{extraParty,jdbcType=VARCHAR},
+
+
+ #{extraUser,jdbcType=VARCHAR},
+
+
+ #{extraTag,jdbcType=VARCHAR},
+
+
+ #{level,jdbcType=VARCHAR},
+
+
+ #{createdAt,jdbcType=TIMESTAMP},
+
+
+ #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ #{recStatus,jdbcType=TINYINT},
+
+
+
+
+
+ update t_health_auth_agent
+
+
+ id = #{record.id,jdbcType=BIGINT},
+
+
+ auth_id = #{record.authId,jdbcType=BIGINT},
+
+
+ agentid = #{record.agentid,jdbcType=BIGINT},
+
+
+ name = #{record.name,jdbcType=VARCHAR},
+
+
+ square_logo_url = #{record.squareLogoUrl,jdbcType=VARCHAR},
+
+
+ round_logo_url = #{record.roundLogoUrl,jdbcType=VARCHAR},
+
+
+ privilege = #{record.privilege,jdbcType=VARCHAR},
+
+
+ allow_party = #{record.allowParty,jdbcType=VARCHAR},
+
+
+ allow_tag = #{record.allowTag,jdbcType=VARCHAR},
+
+
+ allow_user = #{record.allowUser,jdbcType=VARCHAR},
+
+
+ extra_party = #{record.extraParty,jdbcType=VARCHAR},
+
+
+ extra_user = #{record.extraUser,jdbcType=VARCHAR},
+
+
+ extra_tag = #{record.extraTag,jdbcType=VARCHAR},
+
+
+ level = #{record.level,jdbcType=VARCHAR},
+
+
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{record.recStatus,jdbcType=TINYINT},
+
+
+
+
+
+
+
+ update t_health_auth_agent
+ set id = #{record.id,jdbcType=BIGINT},
+ auth_id = #{record.authId,jdbcType=BIGINT},
+ agentid = #{record.agentid,jdbcType=BIGINT},
+ name = #{record.name,jdbcType=VARCHAR},
+ square_logo_url = #{record.squareLogoUrl,jdbcType=VARCHAR},
+ round_logo_url = #{record.roundLogoUrl,jdbcType=VARCHAR},
+ privilege = #{record.privilege,jdbcType=VARCHAR},
+ allow_party = #{record.allowParty,jdbcType=VARCHAR},
+ allow_tag = #{record.allowTag,jdbcType=VARCHAR},
+ allow_user = #{record.allowUser,jdbcType=VARCHAR},
+ extra_party = #{record.extraParty,jdbcType=VARCHAR},
+ extra_user = #{record.extraUser,jdbcType=VARCHAR},
+ extra_tag = #{record.extraTag,jdbcType=VARCHAR},
+ level = #{record.level,jdbcType=VARCHAR},
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+ rec_status = #{record.recStatus,jdbcType=TINYINT}
+
+
+
+
+
+ update t_health_auth_agent
+
+
+ auth_id = #{authId,jdbcType=BIGINT},
+
+
+ agentid = #{agentid,jdbcType=BIGINT},
+
+
+ name = #{name,jdbcType=VARCHAR},
+
+
+ square_logo_url = #{squareLogoUrl,jdbcType=VARCHAR},
+
+
+ round_logo_url = #{roundLogoUrl,jdbcType=VARCHAR},
+
+
+ privilege = #{privilege,jdbcType=VARCHAR},
+
+
+ allow_party = #{allowParty,jdbcType=VARCHAR},
+
+
+ allow_tag = #{allowTag,jdbcType=VARCHAR},
+
+
+ allow_user = #{allowUser,jdbcType=VARCHAR},
+
+
+ extra_party = #{extraParty,jdbcType=VARCHAR},
+
+
+ extra_user = #{extraUser,jdbcType=VARCHAR},
+
+
+ extra_tag = #{extraTag,jdbcType=VARCHAR},
+
+
+ level = #{level,jdbcType=VARCHAR},
+
+
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{recStatus,jdbcType=TINYINT},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update t_health_auth_agent
+ set auth_id = #{authId,jdbcType=BIGINT},
+ agentid = #{agentid,jdbcType=BIGINT},
+ name = #{name,jdbcType=VARCHAR},
+ square_logo_url = #{squareLogoUrl,jdbcType=VARCHAR},
+ round_logo_url = #{roundLogoUrl,jdbcType=VARCHAR},
+ privilege = #{privilege,jdbcType=VARCHAR},
+ allow_party = #{allowParty,jdbcType=VARCHAR},
+ allow_tag = #{allowTag,jdbcType=VARCHAR},
+ allow_user = #{allowUser,jdbcType=VARCHAR},
+ extra_party = #{extraParty,jdbcType=VARCHAR},
+ extra_user = #{extraUser,jdbcType=VARCHAR},
+ extra_tag = #{extraTag,jdbcType=VARCHAR},
+ level = #{level,jdbcType=VARCHAR},
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
+ rec_status = #{recStatus,jdbcType=TINYINT}
+ where id = #{id,jdbcType=BIGINT}
+
+
\ No newline at end of file
diff --git a/health/src/main/resources/mapper_raw/HealthAuthMapper.xml b/health/src/main/resources/mapper_raw/HealthAuthMapper.xml
new file mode 100644
index 00000000..06f8ccf7
--- /dev/null
+++ b/health/src/main/resources/mapper_raw/HealthAuthMapper.xml
@@ -0,0 +1,593 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ and ${criterion.condition}
+
+
+ and ${criterion.condition} #{criterion.value}
+
+
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+
+
+ and ${criterion.condition}
+
+ #{listItem}
+
+
+
+
+
+
+
+
+
+
+ id, access_token, expires_in, permanent_code, corpid, corp_name, corp_type, corp_square_logo_url,
+ corp_user_max, corp_agent_max, corp_full_name, subject_type, verified_end_time, corp_wxqrcode,
+ corp_scale, corp_industry, corp_sub_industry, location, auth_userid, auth_name, auth_avatar,
+ dealer_corp_info_corpid, dealer_corp_info_corp_name, register_code, template_id,
+ state, created_at, updated_at, rec_status
+
+
+
+
+ delete from t_health_auth
+ where id = #{id,jdbcType=BIGINT}
+
+
+ delete from t_health_auth
+
+
+
+
+
+ insert into t_health_auth (id, access_token, expires_in,
+ permanent_code, corpid, corp_name,
+ corp_type, corp_square_logo_url, corp_user_max,
+ corp_agent_max, corp_full_name, subject_type,
+ verified_end_time, corp_wxqrcode, corp_scale,
+ corp_industry, corp_sub_industry, location,
+ auth_userid, auth_name, auth_avatar,
+ dealer_corp_info_corpid, dealer_corp_info_corp_name,
+ register_code, template_id, state,
+ created_at, updated_at, rec_status
+ )
+ values (#{id,jdbcType=BIGINT}, #{accessToken,jdbcType=VARCHAR}, #{expiresIn,jdbcType=INTEGER},
+ #{permanentCode,jdbcType=VARCHAR}, #{corpid,jdbcType=VARCHAR}, #{corpName,jdbcType=VARCHAR},
+ #{corpType,jdbcType=VARCHAR}, #{corpSquareLogoUrl,jdbcType=VARCHAR}, #{corpUserMax,jdbcType=INTEGER},
+ #{corpAgentMax,jdbcType=BIGINT}, #{corpFullName,jdbcType=VARCHAR}, #{subjectType,jdbcType=TINYINT},
+ #{verifiedEndTime,jdbcType=BIGINT}, #{corpWxqrcode,jdbcType=VARCHAR}, #{corpScale,jdbcType=VARCHAR},
+ #{corpIndustry,jdbcType=VARCHAR}, #{corpSubIndustry,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR},
+ #{authUserid,jdbcType=VARCHAR}, #{authName,jdbcType=VARCHAR}, #{authAvatar,jdbcType=VARCHAR},
+ #{dealerCorpInfoCorpid,jdbcType=VARCHAR}, #{dealerCorpInfoCorpName,jdbcType=VARCHAR},
+ #{registerCode,jdbcType=VARCHAR}, #{templateId,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR},
+ #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
+ )
+
+
+ insert into t_health_auth
+
+
+ id,
+
+
+ access_token,
+
+
+ expires_in,
+
+
+ permanent_code,
+
+
+ corpid,
+
+
+ corp_name,
+
+
+ corp_type,
+
+
+ corp_square_logo_url,
+
+
+ corp_user_max,
+
+
+ corp_agent_max,
+
+
+ corp_full_name,
+
+
+ subject_type,
+
+
+ verified_end_time,
+
+
+ corp_wxqrcode,
+
+
+ corp_scale,
+
+
+ corp_industry,
+
+
+ corp_sub_industry,
+
+
+ location,
+
+
+ auth_userid,
+
+
+ auth_name,
+
+
+ auth_avatar,
+
+
+ dealer_corp_info_corpid,
+
+
+ dealer_corp_info_corp_name,
+
+
+ register_code,
+
+
+ template_id,
+
+
+ state,
+
+
+ created_at,
+
+
+ updated_at,
+
+
+ rec_status,
+
+
+
+
+ #{id,jdbcType=BIGINT},
+
+
+ #{accessToken,jdbcType=VARCHAR},
+
+
+ #{expiresIn,jdbcType=INTEGER},
+
+
+ #{permanentCode,jdbcType=VARCHAR},
+
+
+ #{corpid,jdbcType=VARCHAR},
+
+
+ #{corpName,jdbcType=VARCHAR},
+
+
+ #{corpType,jdbcType=VARCHAR},
+
+
+ #{corpSquareLogoUrl,jdbcType=VARCHAR},
+
+
+ #{corpUserMax,jdbcType=INTEGER},
+
+
+ #{corpAgentMax,jdbcType=BIGINT},
+
+
+ #{corpFullName,jdbcType=VARCHAR},
+
+
+ #{subjectType,jdbcType=TINYINT},
+
+
+ #{verifiedEndTime,jdbcType=BIGINT},
+
+
+ #{corpWxqrcode,jdbcType=VARCHAR},
+
+
+ #{corpScale,jdbcType=VARCHAR},
+
+
+ #{corpIndustry,jdbcType=VARCHAR},
+
+
+ #{corpSubIndustry,jdbcType=VARCHAR},
+
+
+ #{location,jdbcType=VARCHAR},
+
+
+ #{authUserid,jdbcType=VARCHAR},
+
+
+ #{authName,jdbcType=VARCHAR},
+
+
+ #{authAvatar,jdbcType=VARCHAR},
+
+
+ #{dealerCorpInfoCorpid,jdbcType=VARCHAR},
+
+
+ #{dealerCorpInfoCorpName,jdbcType=VARCHAR},
+
+
+ #{registerCode,jdbcType=VARCHAR},
+
+
+ #{templateId,jdbcType=VARCHAR},
+
+
+ #{state,jdbcType=VARCHAR},
+
+
+ #{createdAt,jdbcType=TIMESTAMP},
+
+
+ #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ #{recStatus,jdbcType=TINYINT},
+
+
+
+
+
+ update t_health_auth
+
+
+ id = #{record.id,jdbcType=BIGINT},
+
+
+ access_token = #{record.accessToken,jdbcType=VARCHAR},
+
+
+ expires_in = #{record.expiresIn,jdbcType=INTEGER},
+
+
+ permanent_code = #{record.permanentCode,jdbcType=VARCHAR},
+
+
+ corpid = #{record.corpid,jdbcType=VARCHAR},
+
+
+ corp_name = #{record.corpName,jdbcType=VARCHAR},
+
+
+ corp_type = #{record.corpType,jdbcType=VARCHAR},
+
+
+ corp_square_logo_url = #{record.corpSquareLogoUrl,jdbcType=VARCHAR},
+
+
+ corp_user_max = #{record.corpUserMax,jdbcType=INTEGER},
+
+
+ corp_agent_max = #{record.corpAgentMax,jdbcType=BIGINT},
+
+
+ corp_full_name = #{record.corpFullName,jdbcType=VARCHAR},
+
+
+ subject_type = #{record.subjectType,jdbcType=TINYINT},
+
+
+ verified_end_time = #{record.verifiedEndTime,jdbcType=BIGINT},
+
+
+ corp_wxqrcode = #{record.corpWxqrcode,jdbcType=VARCHAR},
+
+
+ corp_scale = #{record.corpScale,jdbcType=VARCHAR},
+
+
+ corp_industry = #{record.corpIndustry,jdbcType=VARCHAR},
+
+
+ corp_sub_industry = #{record.corpSubIndustry,jdbcType=VARCHAR},
+
+
+ location = #{record.location,jdbcType=VARCHAR},
+
+
+ auth_userid = #{record.authUserid,jdbcType=VARCHAR},
+
+
+ auth_name = #{record.authName,jdbcType=VARCHAR},
+
+
+ auth_avatar = #{record.authAvatar,jdbcType=VARCHAR},
+
+
+ dealer_corp_info_corpid = #{record.dealerCorpInfoCorpid,jdbcType=VARCHAR},
+
+
+ dealer_corp_info_corp_name = #{record.dealerCorpInfoCorpName,jdbcType=VARCHAR},
+
+
+ register_code = #{record.registerCode,jdbcType=VARCHAR},
+
+
+ template_id = #{record.templateId,jdbcType=VARCHAR},
+
+
+ state = #{record.state,jdbcType=VARCHAR},
+
+
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{record.recStatus,jdbcType=TINYINT},
+
+
+
+
+
+
+
+ update t_health_auth
+ set id = #{record.id,jdbcType=BIGINT},
+ access_token = #{record.accessToken,jdbcType=VARCHAR},
+ expires_in = #{record.expiresIn,jdbcType=INTEGER},
+ permanent_code = #{record.permanentCode,jdbcType=VARCHAR},
+ corpid = #{record.corpid,jdbcType=VARCHAR},
+ corp_name = #{record.corpName,jdbcType=VARCHAR},
+ corp_type = #{record.corpType,jdbcType=VARCHAR},
+ corp_square_logo_url = #{record.corpSquareLogoUrl,jdbcType=VARCHAR},
+ corp_user_max = #{record.corpUserMax,jdbcType=INTEGER},
+ corp_agent_max = #{record.corpAgentMax,jdbcType=BIGINT},
+ corp_full_name = #{record.corpFullName,jdbcType=VARCHAR},
+ subject_type = #{record.subjectType,jdbcType=TINYINT},
+ verified_end_time = #{record.verifiedEndTime,jdbcType=BIGINT},
+ corp_wxqrcode = #{record.corpWxqrcode,jdbcType=VARCHAR},
+ corp_scale = #{record.corpScale,jdbcType=VARCHAR},
+ corp_industry = #{record.corpIndustry,jdbcType=VARCHAR},
+ corp_sub_industry = #{record.corpSubIndustry,jdbcType=VARCHAR},
+ location = #{record.location,jdbcType=VARCHAR},
+ auth_userid = #{record.authUserid,jdbcType=VARCHAR},
+ auth_name = #{record.authName,jdbcType=VARCHAR},
+ auth_avatar = #{record.authAvatar,jdbcType=VARCHAR},
+ dealer_corp_info_corpid = #{record.dealerCorpInfoCorpid,jdbcType=VARCHAR},
+ dealer_corp_info_corp_name = #{record.dealerCorpInfoCorpName,jdbcType=VARCHAR},
+ register_code = #{record.registerCode,jdbcType=VARCHAR},
+ template_id = #{record.templateId,jdbcType=VARCHAR},
+ state = #{record.state,jdbcType=VARCHAR},
+ created_at = #{record.createdAt,jdbcType=TIMESTAMP},
+ updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
+ rec_status = #{record.recStatus,jdbcType=TINYINT}
+
+
+
+
+
+ update t_health_auth
+
+
+ access_token = #{accessToken,jdbcType=VARCHAR},
+
+
+ expires_in = #{expiresIn,jdbcType=INTEGER},
+
+
+ permanent_code = #{permanentCode,jdbcType=VARCHAR},
+
+
+ corpid = #{corpid,jdbcType=VARCHAR},
+
+
+ corp_name = #{corpName,jdbcType=VARCHAR},
+
+
+ corp_type = #{corpType,jdbcType=VARCHAR},
+
+
+ corp_square_logo_url = #{corpSquareLogoUrl,jdbcType=VARCHAR},
+
+
+ corp_user_max = #{corpUserMax,jdbcType=INTEGER},
+
+
+ corp_agent_max = #{corpAgentMax,jdbcType=BIGINT},
+
+
+ corp_full_name = #{corpFullName,jdbcType=VARCHAR},
+
+
+ subject_type = #{subjectType,jdbcType=TINYINT},
+
+
+ verified_end_time = #{verifiedEndTime,jdbcType=BIGINT},
+
+
+ corp_wxqrcode = #{corpWxqrcode,jdbcType=VARCHAR},
+
+
+ corp_scale = #{corpScale,jdbcType=VARCHAR},
+
+
+ corp_industry = #{corpIndustry,jdbcType=VARCHAR},
+
+
+ corp_sub_industry = #{corpSubIndustry,jdbcType=VARCHAR},
+
+
+ location = #{location,jdbcType=VARCHAR},
+
+
+ auth_userid = #{authUserid,jdbcType=VARCHAR},
+
+
+ auth_name = #{authName,jdbcType=VARCHAR},
+
+
+ auth_avatar = #{authAvatar,jdbcType=VARCHAR},
+
+
+ dealer_corp_info_corpid = #{dealerCorpInfoCorpid,jdbcType=VARCHAR},
+
+
+ dealer_corp_info_corp_name = #{dealerCorpInfoCorpName,jdbcType=VARCHAR},
+
+
+ register_code = #{registerCode,jdbcType=VARCHAR},
+
+
+ template_id = #{templateId,jdbcType=VARCHAR},
+
+
+ state = #{state,jdbcType=VARCHAR},
+
+
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
+
+
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
+
+
+ rec_status = #{recStatus,jdbcType=TINYINT},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update t_health_auth
+ set access_token = #{accessToken,jdbcType=VARCHAR},
+ expires_in = #{expiresIn,jdbcType=INTEGER},
+ permanent_code = #{permanentCode,jdbcType=VARCHAR},
+ corpid = #{corpid,jdbcType=VARCHAR},
+ corp_name = #{corpName,jdbcType=VARCHAR},
+ corp_type = #{corpType,jdbcType=VARCHAR},
+ corp_square_logo_url = #{corpSquareLogoUrl,jdbcType=VARCHAR},
+ corp_user_max = #{corpUserMax,jdbcType=INTEGER},
+ corp_agent_max = #{corpAgentMax,jdbcType=BIGINT},
+ corp_full_name = #{corpFullName,jdbcType=VARCHAR},
+ subject_type = #{subjectType,jdbcType=TINYINT},
+ verified_end_time = #{verifiedEndTime,jdbcType=BIGINT},
+ corp_wxqrcode = #{corpWxqrcode,jdbcType=VARCHAR},
+ corp_scale = #{corpScale,jdbcType=VARCHAR},
+ corp_industry = #{corpIndustry,jdbcType=VARCHAR},
+ corp_sub_industry = #{corpSubIndustry,jdbcType=VARCHAR},
+ location = #{location,jdbcType=VARCHAR},
+ auth_userid = #{authUserid,jdbcType=VARCHAR},
+ auth_name = #{authName,jdbcType=VARCHAR},
+ auth_avatar = #{authAvatar,jdbcType=VARCHAR},
+ dealer_corp_info_corpid = #{dealerCorpInfoCorpid,jdbcType=VARCHAR},
+ dealer_corp_info_corp_name = #{dealerCorpInfoCorpName,jdbcType=VARCHAR},
+ register_code = #{registerCode,jdbcType=VARCHAR},
+ template_id = #{templateId,jdbcType=VARCHAR},
+ state = #{state,jdbcType=VARCHAR},
+ created_at = #{createdAt,jdbcType=TIMESTAMP},
+ updated_at = #{updatedAt,jdbcType=TIMESTAMP},
+ rec_status = #{recStatus,jdbcType=TINYINT}
+ where id = #{id,jdbcType=BIGINT}
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 76df4646..d801622f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -223,6 +223,11 @@
qcloudsms
1.0.5
+
+ com.alibaba
+ fastjson
+ 1.2.62
+
diff --git a/util/src/main/java/com/ccsens/util/RestTemplateUtil.java b/util/src/main/java/com/ccsens/util/RestTemplateUtil.java
new file mode 100644
index 00000000..b260f6b6
--- /dev/null
+++ b/util/src/main/java/com/ccsens/util/RestTemplateUtil.java
@@ -0,0 +1,123 @@
+package com.ccsens.util;
+
+import cn.hutool.core.util.StrUtil;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpEntity;
+import org.springframework.http.HttpHeaders;
+import org.springframework.http.MediaType;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Component;
+import org.springframework.util.LinkedMultiValueMap;
+import org.springframework.util.MultiValueMap;
+import org.springframework.web.client.RestTemplate;
+
+import javax.annotation.PostConstruct;
+import java.util.Map;
+
+@Slf4j
+@Component
+public class RestTemplateUtil {
+
+ @Autowired
+ private RestTemplate restTemplate;
+
+ private static RestTemplateUtil util;
+
+ @PostConstruct
+ public void init(){
+ util = this;
+ util.restTemplate = this.restTemplate;
+ }
+
+ public static Object getForEntity(String url, Map params, Class> returnClass) {
+
+ if (params != null && !params.isEmpty()) {
+ if (!url.contains("?")) {
+ url += "?";
+ }
+ for (String key : params.keySet()) {
+ if (url.endsWith("?")) {
+ url += key + "="+params.get(key)+"";
+ } else {
+ url += "&" + key + "="+params.get(key)+"";
+ }
+ }
+ }
+ log.info("url:{}, params:{}", url, params);
+ ResponseEntity entity = util.restTemplate.getForEntity(url, String.class);
+ log.info("entity:{}",entity);
+ return JSONObject.parseObject(entity.getBody(), returnClass);
+ }
+ public static String postBody(String url, Object params) {
+ log.info("路径:{}, 参数:{}", url, params);
+ HttpHeaders httpHeaders = new HttpHeaders();
+ MediaType type=MediaType.parseMediaType("application/json;charset=UTF-8");
+ httpHeaders.setContentType(type);
+
+// MultiValueMap map=new LinkedMultiValueMap<>();
+
+ JSONObject json = JSON.parseObject(JSON.toJSONString(params));
+ HttpEntity