diff --git a/beacon-common/src/main/java/com/mashibing/common/constant/WebMasterConstants.java b/beacon-common/src/main/java/com/mashibing/common/constant/WebMasterConstants.java
new file mode 100644
index 0000000..b7390e3
--- /dev/null
+++ b/beacon-common/src/main/java/com/mashibing/common/constant/WebMasterConstants.java
@@ -0,0 +1,15 @@
+package com.mashibing.common.constant;
+
+/**
+ * @author dch
+ * @create 2024-03-29 15:05
+ */
+public interface WebMasterConstants {
+
+ /**
+ * 将验证码基于这个key做存储
+ */
+
+ String KAPTCHA = "kaptcha";
+
+}
diff --git a/beacon-webmaster/pom.xml b/beacon-webmaster/pom.xml
index 864f41f..7a0c5a6 100644
--- a/beacon-webmaster/pom.xml
+++ b/beacon-webmaster/pom.xml
@@ -17,15 +17,62 @@
UTF-8
+
+
+
+ org.mybatis.generator
+ mybatis-generator-maven-plugin
+ 1.4.2
+
+
+ mysql
+ mysql-connector-java
+ 5.1.49
+
+
+
+
+
+
org.springframework.boot
spring-boot-starter-web
+
org.apache.shiro
shiro-spring-boot-web-starter
1.4.0
+
+ mysql
+ mysql-connector-java
+ 5.1.49
+
+
+ com.alibaba
+ druid-spring-boot-starter
+ 1.1.10
+
+
+ org.mybatis.spring.boot
+ mybatis-spring-boot-starter
+ 2.2.2
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+
+
+ com.github.axet
+ kaptcha
+ 0.0.9
+
+
+ com.mashibing
+ beacon-common
+ 1.0-SNAPSHOT
+
-
\ No newline at end of file
+
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/WebMasterStarterApp.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/WebMasterStarterApp.java
index 70cd2cb..dc4b1ce 100644
--- a/beacon-webmaster/src/main/java/com/mashibing/webmaster/WebMasterStarterApp.java
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/WebMasterStarterApp.java
@@ -1,5 +1,7 @@
package com.mashibing.webmaster;
+import org.apache.ibatis.annotations.Mapper;
+import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -8,6 +10,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* @create 2024-03-28 21:44
*/
@SpringBootApplication
+@MapperScan(basePackages = "com.mashibing.webmaster.mapper")
public class WebMasterStarterApp {
public static void main(String[] args) {
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/config/KaptchaConfig.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/config/KaptchaConfig.java
new file mode 100644
index 0000000..7753157
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/config/KaptchaConfig.java
@@ -0,0 +1,39 @@
+package com.mashibing.webmaster.config;
+
+/**
+ * @author dch
+ * @create 2024-03-29 14:13
+ */
+
+import com.google.code.kaptcha.Constants;
+import com.google.code.kaptcha.impl.DefaultKaptcha;
+import com.google.code.kaptcha.util.Config;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import java.util.Properties;
+
+/**
+ * 验证码生成规则
+ * @author zjw
+ * @description
+ */
+@Configuration
+public class KaptchaConfig {
+
+ @Bean
+ public DefaultKaptcha kaptcha(){
+ //1、直接构建DefaultKaptcha
+ DefaultKaptcha kaptcha = new DefaultKaptcha();
+
+ //2、设置配置信息
+ Properties properties = new Properties();
+ // 验证码生成位数为4位。
+ properties.setProperty(Constants.KAPTCHA_TEXTPRODUCER_CHAR_LENGTH,"4");
+ Config config = new Config(properties);
+ kaptcha.setConfig(config);
+
+ //3、返回对象
+ return kaptcha;
+ }
+}
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/controller/KaptchaController.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/controller/KaptchaController.java
new file mode 100644
index 0000000..643807c
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/controller/KaptchaController.java
@@ -0,0 +1,50 @@
+package com.mashibing.webmaster.controller;
+
+import com.google.code.kaptcha.impl.DefaultKaptcha;
+import com.mashibing.common.constant.WebMasterConstants;
+import org.apache.shiro.SecurityUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+
+import javax.imageio.ImageIO;
+import javax.servlet.ServletOutputStream;
+import javax.servlet.http.HttpServletResponse;
+import java.awt.image.BufferedImage;
+import java.io.IOException;
+
+/**
+ * @author dch
+ * @create 2024-03-29 14:53
+ */
+@Controller
+public class KaptchaController {
+
+ private final String JPG = "jpg";
+
+ @Autowired
+ private DefaultKaptcha kaptcha;
+
+ @GetMapping("/captcha.jpg")
+ public void captcha(HttpServletResponse resp){
+ //1、验证码图片不需要做存储和缓存
+ resp.setHeader("Cache-Control","no-store, no-cahe");
+ //2、设置响应头信息
+ resp.setContentType("image/jpg");
+ //3、生成验证码文字
+ String text = kaptcha.createText();
+ // 认证需要验证验证码的准确性,基于Shiro将text做存储
+ SecurityUtils.getSubject().getSession().setAttribute(WebMasterConstants.KAPTCHA,text);
+ //4、基于文字生成对应的图片
+ BufferedImage image = kaptcha.createImage(text);
+ //5、写回验证码图片信息
+ try {
+ ServletOutputStream outputStream = resp.getOutputStream();
+ ImageIO.write(image,JPG,outputStream);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+
+
+}
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/controller/SmsUserController.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/controller/SmsUserController.java
new file mode 100644
index 0000000..506498e
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/controller/SmsUserController.java
@@ -0,0 +1,54 @@
+package com.mashibing.webmaster.controller;
+
+import com.mashibing.common.constant.WebMasterConstants;
+import com.mashibing.common.enums.ExceptionEnums;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.shiro.SecurityUtils;
+import org.apache.shiro.authc.AuthenticationException;
+import org.apache.shiro.authc.UsernamePasswordToken;
+import org.springframework.validation.BindingResult;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * @author dch
+ * @create 2024-03-29 15:12
+ */
+@RestController
+@RequestMapping("/sys")
+@Slf4j
+public class SmsUserController {
+
+
+ @PostMapping("/login")
+ public ResultVO login(@RequestBody @Valid UserDTO userDTO, BindingResult bindingResult) {
+// * 1、请求参数的非空校验
+ if (bindingResult.hasErrors()) {
+ // 参数不合法,响应对应的JSON信息
+ log.info("【认证操作】参数不合法,userDTO = {}", userDTO);
+ return R.error(ExceptionEnums.PARAMETER_ERROR);
+ }
+// * 2、基于验证码校验请求是否合理
+ String realKaptcha = (String) SecurityUtils.getSubject().getSession().getAttribute(WebMasterConstants.KAPTCHA);
+ if (!userDTO.getCaptcha().equalsIgnoreCase(realKaptcha)) {
+ log.info("【认证操作】验证码不正确,kapacha = {},realKaptcha = {}", userDTO.getCaptcha(), realKaptcha);
+ return R.error(ExceptionEnums.KAPACHA_ERROR);
+ }
+// * 3、基于用户名和密码做Shiro的认证操作
+ UsernamePasswordToken token = new UsernamePasswordToken(userDTO.getUsername(),userDTO.getPassword());
+ token.setRememberMe(userDTO.getRememberMe());
+ try {
+ SecurityUtils.getSubject().login(token);
+ } catch (AuthenticationException e) {
+// * 4、根据Shiro的认证,返回响应信息
+ log.info("【认证操作】用户名或密码错误,ex = {}", e.getMessage());
+ return R.error(ExceptionEnums.AUTHEN_ERROR);
+ }
+ // 到这,代表认证成功
+ return R.ok();
+ }
+
+
+}
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsMenu.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsMenu.java
new file mode 100644
index 0000000..5224d47
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsMenu.java
@@ -0,0 +1,165 @@
+package com.mashibing.webmaster.entity;
+
+import java.util.Date;
+
+public class SmsMenu {
+ private Integer id;
+
+ private String name;
+
+ private Long parentId;
+
+ private String url;
+
+ private String icon;
+
+ private Integer type;
+
+ private Integer sort;
+
+ private Date created;
+
+ private Long createId;
+
+ private Date updated;
+
+ private Long updateId;
+
+ private Byte isDelete;
+
+ private String extend1;
+
+ private String extend2;
+
+ private String extend3;
+
+ private String extend4;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public Long getParentId() {
+ return parentId;
+ }
+
+ public void setParentId(Long parentId) {
+ this.parentId = parentId;
+ }
+
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url == null ? null : url.trim();
+ }
+
+ public String getIcon() {
+ return icon;
+ }
+
+ public void setIcon(String icon) {
+ this.icon = icon == null ? null : icon.trim();
+ }
+
+ public Integer getType() {
+ return type;
+ }
+
+ public void setType(Integer type) {
+ this.type = type;
+ }
+
+ public Integer getSort() {
+ return sort;
+ }
+
+ public void setSort(Integer sort) {
+ this.sort = sort;
+ }
+
+ public Date getCreated() {
+ return created;
+ }
+
+ public void setCreated(Date created) {
+ this.created = created;
+ }
+
+ public Long getCreateId() {
+ return createId;
+ }
+
+ public void setCreateId(Long createId) {
+ this.createId = createId;
+ }
+
+ public Date getUpdated() {
+ return updated;
+ }
+
+ public void setUpdated(Date updated) {
+ this.updated = updated;
+ }
+
+ public Long getUpdateId() {
+ return updateId;
+ }
+
+ public void setUpdateId(Long updateId) {
+ this.updateId = updateId;
+ }
+
+ public Byte getIsDelete() {
+ return isDelete;
+ }
+
+ public void setIsDelete(Byte isDelete) {
+ this.isDelete = isDelete;
+ }
+
+ public String getExtend1() {
+ return extend1;
+ }
+
+ public void setExtend1(String extend1) {
+ this.extend1 = extend1 == null ? null : extend1.trim();
+ }
+
+ public String getExtend2() {
+ return extend2;
+ }
+
+ public void setExtend2(String extend2) {
+ this.extend2 = extend2 == null ? null : extend2.trim();
+ }
+
+ public String getExtend3() {
+ return extend3;
+ }
+
+ public void setExtend3(String extend3) {
+ this.extend3 = extend3 == null ? null : extend3.trim();
+ }
+
+ public String getExtend4() {
+ return extend4;
+ }
+
+ public void setExtend4(String extend4) {
+ this.extend4 = extend4 == null ? null : extend4.trim();
+ }
+}
\ No newline at end of file
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsMenuExample.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsMenuExample.java
new file mode 100644
index 0000000..1a77885
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsMenuExample.java
@@ -0,0 +1,1230 @@
+package com.mashibing.webmaster.entity;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SmsMenuExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public SmsMenuExample() {
+ 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(Integer value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Integer value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Integer value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Integer value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria 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 andParentIdIsNull() {
+ addCriterion("parent_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdIsNotNull() {
+ addCriterion("parent_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdEqualTo(Long value) {
+ addCriterion("parent_id =", value, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdNotEqualTo(Long value) {
+ addCriterion("parent_id <>", value, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdGreaterThan(Long value) {
+ addCriterion("parent_id >", value, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("parent_id >=", value, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdLessThan(Long value) {
+ addCriterion("parent_id <", value, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdLessThanOrEqualTo(Long value) {
+ addCriterion("parent_id <=", value, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdIn(List values) {
+ addCriterion("parent_id in", values, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdNotIn(List values) {
+ addCriterion("parent_id not in", values, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdBetween(Long value1, Long value2) {
+ addCriterion("parent_id between", value1, value2, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andParentIdNotBetween(Long value1, Long value2) {
+ addCriterion("parent_id not between", value1, value2, "parentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlIsNull() {
+ addCriterion("url is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlIsNotNull() {
+ addCriterion("url is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlEqualTo(String value) {
+ addCriterion("url =", value, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlNotEqualTo(String value) {
+ addCriterion("url <>", value, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlGreaterThan(String value) {
+ addCriterion("url >", value, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlGreaterThanOrEqualTo(String value) {
+ addCriterion("url >=", value, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlLessThan(String value) {
+ addCriterion("url <", value, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlLessThanOrEqualTo(String value) {
+ addCriterion("url <=", value, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlLike(String value) {
+ addCriterion("url like", value, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlNotLike(String value) {
+ addCriterion("url not like", value, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlIn(List values) {
+ addCriterion("url in", values, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlNotIn(List values) {
+ addCriterion("url not in", values, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlBetween(String value1, String value2) {
+ addCriterion("url between", value1, value2, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andUrlNotBetween(String value1, String value2) {
+ addCriterion("url not between", value1, value2, "url");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconIsNull() {
+ addCriterion("icon is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconIsNotNull() {
+ addCriterion("icon is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconEqualTo(String value) {
+ addCriterion("icon =", value, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconNotEqualTo(String value) {
+ addCriterion("icon <>", value, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconGreaterThan(String value) {
+ addCriterion("icon >", value, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconGreaterThanOrEqualTo(String value) {
+ addCriterion("icon >=", value, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconLessThan(String value) {
+ addCriterion("icon <", value, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconLessThanOrEqualTo(String value) {
+ addCriterion("icon <=", value, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconLike(String value) {
+ addCriterion("icon like", value, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconNotLike(String value) {
+ addCriterion("icon not like", value, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconIn(List values) {
+ addCriterion("icon in", values, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconNotIn(List values) {
+ addCriterion("icon not in", values, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconBetween(String value1, String value2) {
+ addCriterion("icon between", value1, value2, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andIconNotBetween(String value1, String value2) {
+ addCriterion("icon not between", value1, value2, "icon");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNull() {
+ addCriterion("type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNotNull() {
+ addCriterion("type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeEqualTo(Integer value) {
+ addCriterion("type =", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotEqualTo(Integer value) {
+ addCriterion("type <>", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThan(Integer value) {
+ addCriterion("type >", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
+ addCriterion("type >=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThan(Integer value) {
+ addCriterion("type <", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThanOrEqualTo(Integer value) {
+ addCriterion("type <=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIn(List values) {
+ addCriterion("type in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotIn(List values) {
+ addCriterion("type not in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeBetween(Integer value1, Integer value2) {
+ addCriterion("type between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotBetween(Integer value1, Integer value2) {
+ addCriterion("type not between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIsNull() {
+ addCriterion("sort is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIsNotNull() {
+ addCriterion("sort is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortEqualTo(Integer value) {
+ addCriterion("sort =", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotEqualTo(Integer value) {
+ addCriterion("sort <>", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortGreaterThan(Integer value) {
+ addCriterion("sort >", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortGreaterThanOrEqualTo(Integer value) {
+ addCriterion("sort >=", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortLessThan(Integer value) {
+ addCriterion("sort <", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortLessThanOrEqualTo(Integer value) {
+ addCriterion("sort <=", value, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortIn(List values) {
+ addCriterion("sort in", values, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotIn(List values) {
+ addCriterion("sort not in", values, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortBetween(Integer value1, Integer value2) {
+ addCriterion("sort between", value1, value2, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andSortNotBetween(Integer value1, Integer value2) {
+ addCriterion("sort not between", value1, value2, "sort");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedIsNull() {
+ addCriterion("created is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedIsNotNull() {
+ addCriterion("created is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedEqualTo(Date value) {
+ addCriterion("created =", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedNotEqualTo(Date value) {
+ addCriterion("created <>", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedGreaterThan(Date value) {
+ addCriterion("created >", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
+ addCriterion("created >=", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedLessThan(Date value) {
+ addCriterion("created <", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedLessThanOrEqualTo(Date value) {
+ addCriterion("created <=", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedIn(List values) {
+ addCriterion("created in", values, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedNotIn(List values) {
+ addCriterion("created not in", values, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedBetween(Date value1, Date value2) {
+ addCriterion("created between", value1, value2, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedNotBetween(Date value1, Date value2) {
+ addCriterion("created not between", value1, value2, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdIsNull() {
+ addCriterion("create_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdIsNotNull() {
+ addCriterion("create_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdEqualTo(Long value) {
+ addCriterion("create_id =", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdNotEqualTo(Long value) {
+ addCriterion("create_id <>", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdGreaterThan(Long value) {
+ addCriterion("create_id >", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("create_id >=", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdLessThan(Long value) {
+ addCriterion("create_id <", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdLessThanOrEqualTo(Long value) {
+ addCriterion("create_id <=", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdIn(List values) {
+ addCriterion("create_id in", values, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdNotIn(List values) {
+ addCriterion("create_id not in", values, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdBetween(Long value1, Long value2) {
+ addCriterion("create_id between", value1, value2, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdNotBetween(Long value1, Long value2) {
+ addCriterion("create_id not between", value1, value2, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedIsNull() {
+ addCriterion("updated is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedIsNotNull() {
+ addCriterion("updated is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedEqualTo(Date value) {
+ addCriterion("updated =", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedNotEqualTo(Date value) {
+ addCriterion("updated <>", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedGreaterThan(Date value) {
+ addCriterion("updated >", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedGreaterThanOrEqualTo(Date value) {
+ addCriterion("updated >=", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedLessThan(Date value) {
+ addCriterion("updated <", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedLessThanOrEqualTo(Date value) {
+ addCriterion("updated <=", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedIn(List values) {
+ addCriterion("updated in", values, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedNotIn(List values) {
+ addCriterion("updated not in", values, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedBetween(Date value1, Date value2) {
+ addCriterion("updated between", value1, value2, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedNotBetween(Date value1, Date value2) {
+ addCriterion("updated not between", value1, value2, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdIsNull() {
+ addCriterion("update_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdIsNotNull() {
+ addCriterion("update_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdEqualTo(Long value) {
+ addCriterion("update_id =", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdNotEqualTo(Long value) {
+ addCriterion("update_id <>", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdGreaterThan(Long value) {
+ addCriterion("update_id >", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("update_id >=", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdLessThan(Long value) {
+ addCriterion("update_id <", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdLessThanOrEqualTo(Long value) {
+ addCriterion("update_id <=", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdIn(List values) {
+ addCriterion("update_id in", values, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdNotIn(List values) {
+ addCriterion("update_id not in", values, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdBetween(Long value1, Long value2) {
+ addCriterion("update_id between", value1, value2, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdNotBetween(Long value1, Long value2) {
+ addCriterion("update_id not between", value1, value2, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteIsNull() {
+ addCriterion("is_delete is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteIsNotNull() {
+ addCriterion("is_delete is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteEqualTo(Byte value) {
+ addCriterion("is_delete =", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteNotEqualTo(Byte value) {
+ addCriterion("is_delete <>", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteGreaterThan(Byte value) {
+ addCriterion("is_delete >", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteGreaterThanOrEqualTo(Byte value) {
+ addCriterion("is_delete >=", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteLessThan(Byte value) {
+ addCriterion("is_delete <", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteLessThanOrEqualTo(Byte value) {
+ addCriterion("is_delete <=", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteIn(List values) {
+ addCriterion("is_delete in", values, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteNotIn(List values) {
+ addCriterion("is_delete not in", values, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteBetween(Byte value1, Byte value2) {
+ addCriterion("is_delete between", value1, value2, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteNotBetween(Byte value1, Byte value2) {
+ addCriterion("is_delete not between", value1, value2, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1IsNull() {
+ addCriterion("extend1 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1IsNotNull() {
+ addCriterion("extend1 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1EqualTo(String value) {
+ addCriterion("extend1 =", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotEqualTo(String value) {
+ addCriterion("extend1 <>", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1GreaterThan(String value) {
+ addCriterion("extend1 >", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1GreaterThanOrEqualTo(String value) {
+ addCriterion("extend1 >=", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1LessThan(String value) {
+ addCriterion("extend1 <", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1LessThanOrEqualTo(String value) {
+ addCriterion("extend1 <=", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1Like(String value) {
+ addCriterion("extend1 like", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotLike(String value) {
+ addCriterion("extend1 not like", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1In(List values) {
+ addCriterion("extend1 in", values, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotIn(List values) {
+ addCriterion("extend1 not in", values, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1Between(String value1, String value2) {
+ addCriterion("extend1 between", value1, value2, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotBetween(String value1, String value2) {
+ addCriterion("extend1 not between", value1, value2, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2IsNull() {
+ addCriterion("extend2 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2IsNotNull() {
+ addCriterion("extend2 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2EqualTo(String value) {
+ addCriterion("extend2 =", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotEqualTo(String value) {
+ addCriterion("extend2 <>", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2GreaterThan(String value) {
+ addCriterion("extend2 >", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2GreaterThanOrEqualTo(String value) {
+ addCriterion("extend2 >=", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2LessThan(String value) {
+ addCriterion("extend2 <", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2LessThanOrEqualTo(String value) {
+ addCriterion("extend2 <=", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2Like(String value) {
+ addCriterion("extend2 like", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotLike(String value) {
+ addCriterion("extend2 not like", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2In(List values) {
+ addCriterion("extend2 in", values, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotIn(List values) {
+ addCriterion("extend2 not in", values, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2Between(String value1, String value2) {
+ addCriterion("extend2 between", value1, value2, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotBetween(String value1, String value2) {
+ addCriterion("extend2 not between", value1, value2, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3IsNull() {
+ addCriterion("extend3 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3IsNotNull() {
+ addCriterion("extend3 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3EqualTo(String value) {
+ addCriterion("extend3 =", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotEqualTo(String value) {
+ addCriterion("extend3 <>", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3GreaterThan(String value) {
+ addCriterion("extend3 >", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3GreaterThanOrEqualTo(String value) {
+ addCriterion("extend3 >=", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3LessThan(String value) {
+ addCriterion("extend3 <", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3LessThanOrEqualTo(String value) {
+ addCriterion("extend3 <=", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3Like(String value) {
+ addCriterion("extend3 like", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotLike(String value) {
+ addCriterion("extend3 not like", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3In(List values) {
+ addCriterion("extend3 in", values, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotIn(List values) {
+ addCriterion("extend3 not in", values, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3Between(String value1, String value2) {
+ addCriterion("extend3 between", value1, value2, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotBetween(String value1, String value2) {
+ addCriterion("extend3 not between", value1, value2, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4IsNull() {
+ addCriterion("extend4 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4IsNotNull() {
+ addCriterion("extend4 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4EqualTo(String value) {
+ addCriterion("extend4 =", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotEqualTo(String value) {
+ addCriterion("extend4 <>", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4GreaterThan(String value) {
+ addCriterion("extend4 >", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4GreaterThanOrEqualTo(String value) {
+ addCriterion("extend4 >=", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4LessThan(String value) {
+ addCriterion("extend4 <", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4LessThanOrEqualTo(String value) {
+ addCriterion("extend4 <=", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4Like(String value) {
+ addCriterion("extend4 like", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotLike(String value) {
+ addCriterion("extend4 not like", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4In(List values) {
+ addCriterion("extend4 in", values, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotIn(List values) {
+ addCriterion("extend4 not in", values, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4Between(String value1, String value2) {
+ addCriterion("extend4 between", value1, value2, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotBetween(String value1, String value2) {
+ addCriterion("extend4 not between", value1, value2, "extend4");
+ 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/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsRole.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsRole.java
new file mode 100644
index 0000000..a271e7d
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsRole.java
@@ -0,0 +1,115 @@
+package com.mashibing.webmaster.entity;
+
+import java.util.Date;
+
+public class SmsRole {
+ private Integer id;
+
+ private String name;
+
+ private Date created;
+
+ private Long createId;
+
+ private Date updated;
+
+ private Long updateId;
+
+ private Byte isDelete;
+
+ private String extend1;
+
+ private String extend2;
+
+ private String extend3;
+
+ private String extend4;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public Date getCreated() {
+ return created;
+ }
+
+ public void setCreated(Date created) {
+ this.created = created;
+ }
+
+ public Long getCreateId() {
+ return createId;
+ }
+
+ public void setCreateId(Long createId) {
+ this.createId = createId;
+ }
+
+ public Date getUpdated() {
+ return updated;
+ }
+
+ public void setUpdated(Date updated) {
+ this.updated = updated;
+ }
+
+ public Long getUpdateId() {
+ return updateId;
+ }
+
+ public void setUpdateId(Long updateId) {
+ this.updateId = updateId;
+ }
+
+ public Byte getIsDelete() {
+ return isDelete;
+ }
+
+ public void setIsDelete(Byte isDelete) {
+ this.isDelete = isDelete;
+ }
+
+ public String getExtend1() {
+ return extend1;
+ }
+
+ public void setExtend1(String extend1) {
+ this.extend1 = extend1 == null ? null : extend1.trim();
+ }
+
+ public String getExtend2() {
+ return extend2;
+ }
+
+ public void setExtend2(String extend2) {
+ this.extend2 = extend2 == null ? null : extend2.trim();
+ }
+
+ public String getExtend3() {
+ return extend3;
+ }
+
+ public void setExtend3(String extend3) {
+ this.extend3 = extend3 == null ? null : extend3.trim();
+ }
+
+ public String getExtend4() {
+ return extend4;
+ }
+
+ public void setExtend4(String extend4) {
+ this.extend4 = extend4 == null ? null : extend4.trim();
+ }
+}
\ No newline at end of file
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsRoleExample.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsRoleExample.java
new file mode 100644
index 0000000..ac4c296
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsRoleExample.java
@@ -0,0 +1,910 @@
+package com.mashibing.webmaster.entity;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SmsRoleExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public SmsRoleExample() {
+ 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(Integer value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Integer value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Integer value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Integer value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria 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 andCreatedIsNull() {
+ addCriterion("created is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedIsNotNull() {
+ addCriterion("created is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedEqualTo(Date value) {
+ addCriterion("created =", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedNotEqualTo(Date value) {
+ addCriterion("created <>", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedGreaterThan(Date value) {
+ addCriterion("created >", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
+ addCriterion("created >=", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedLessThan(Date value) {
+ addCriterion("created <", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedLessThanOrEqualTo(Date value) {
+ addCriterion("created <=", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedIn(List values) {
+ addCriterion("created in", values, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedNotIn(List values) {
+ addCriterion("created not in", values, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedBetween(Date value1, Date value2) {
+ addCriterion("created between", value1, value2, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedNotBetween(Date value1, Date value2) {
+ addCriterion("created not between", value1, value2, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdIsNull() {
+ addCriterion("create_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdIsNotNull() {
+ addCriterion("create_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdEqualTo(Long value) {
+ addCriterion("create_id =", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdNotEqualTo(Long value) {
+ addCriterion("create_id <>", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdGreaterThan(Long value) {
+ addCriterion("create_id >", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("create_id >=", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdLessThan(Long value) {
+ addCriterion("create_id <", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdLessThanOrEqualTo(Long value) {
+ addCriterion("create_id <=", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdIn(List values) {
+ addCriterion("create_id in", values, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdNotIn(List values) {
+ addCriterion("create_id not in", values, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdBetween(Long value1, Long value2) {
+ addCriterion("create_id between", value1, value2, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdNotBetween(Long value1, Long value2) {
+ addCriterion("create_id not between", value1, value2, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedIsNull() {
+ addCriterion("updated is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedIsNotNull() {
+ addCriterion("updated is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedEqualTo(Date value) {
+ addCriterion("updated =", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedNotEqualTo(Date value) {
+ addCriterion("updated <>", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedGreaterThan(Date value) {
+ addCriterion("updated >", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedGreaterThanOrEqualTo(Date value) {
+ addCriterion("updated >=", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedLessThan(Date value) {
+ addCriterion("updated <", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedLessThanOrEqualTo(Date value) {
+ addCriterion("updated <=", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedIn(List values) {
+ addCriterion("updated in", values, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedNotIn(List values) {
+ addCriterion("updated not in", values, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedBetween(Date value1, Date value2) {
+ addCriterion("updated between", value1, value2, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedNotBetween(Date value1, Date value2) {
+ addCriterion("updated not between", value1, value2, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdIsNull() {
+ addCriterion("update_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdIsNotNull() {
+ addCriterion("update_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdEqualTo(Long value) {
+ addCriterion("update_id =", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdNotEqualTo(Long value) {
+ addCriterion("update_id <>", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdGreaterThan(Long value) {
+ addCriterion("update_id >", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("update_id >=", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdLessThan(Long value) {
+ addCriterion("update_id <", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdLessThanOrEqualTo(Long value) {
+ addCriterion("update_id <=", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdIn(List values) {
+ addCriterion("update_id in", values, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdNotIn(List values) {
+ addCriterion("update_id not in", values, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdBetween(Long value1, Long value2) {
+ addCriterion("update_id between", value1, value2, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdNotBetween(Long value1, Long value2) {
+ addCriterion("update_id not between", value1, value2, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteIsNull() {
+ addCriterion("is_delete is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteIsNotNull() {
+ addCriterion("is_delete is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteEqualTo(Byte value) {
+ addCriterion("is_delete =", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteNotEqualTo(Byte value) {
+ addCriterion("is_delete <>", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteGreaterThan(Byte value) {
+ addCriterion("is_delete >", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteGreaterThanOrEqualTo(Byte value) {
+ addCriterion("is_delete >=", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteLessThan(Byte value) {
+ addCriterion("is_delete <", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteLessThanOrEqualTo(Byte value) {
+ addCriterion("is_delete <=", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteIn(List values) {
+ addCriterion("is_delete in", values, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteNotIn(List values) {
+ addCriterion("is_delete not in", values, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteBetween(Byte value1, Byte value2) {
+ addCriterion("is_delete between", value1, value2, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteNotBetween(Byte value1, Byte value2) {
+ addCriterion("is_delete not between", value1, value2, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1IsNull() {
+ addCriterion("extend1 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1IsNotNull() {
+ addCriterion("extend1 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1EqualTo(String value) {
+ addCriterion("extend1 =", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotEqualTo(String value) {
+ addCriterion("extend1 <>", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1GreaterThan(String value) {
+ addCriterion("extend1 >", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1GreaterThanOrEqualTo(String value) {
+ addCriterion("extend1 >=", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1LessThan(String value) {
+ addCriterion("extend1 <", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1LessThanOrEqualTo(String value) {
+ addCriterion("extend1 <=", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1Like(String value) {
+ addCriterion("extend1 like", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotLike(String value) {
+ addCriterion("extend1 not like", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1In(List values) {
+ addCriterion("extend1 in", values, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotIn(List values) {
+ addCriterion("extend1 not in", values, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1Between(String value1, String value2) {
+ addCriterion("extend1 between", value1, value2, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotBetween(String value1, String value2) {
+ addCriterion("extend1 not between", value1, value2, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2IsNull() {
+ addCriterion("extend2 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2IsNotNull() {
+ addCriterion("extend2 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2EqualTo(String value) {
+ addCriterion("extend2 =", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotEqualTo(String value) {
+ addCriterion("extend2 <>", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2GreaterThan(String value) {
+ addCriterion("extend2 >", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2GreaterThanOrEqualTo(String value) {
+ addCriterion("extend2 >=", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2LessThan(String value) {
+ addCriterion("extend2 <", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2LessThanOrEqualTo(String value) {
+ addCriterion("extend2 <=", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2Like(String value) {
+ addCriterion("extend2 like", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotLike(String value) {
+ addCriterion("extend2 not like", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2In(List values) {
+ addCriterion("extend2 in", values, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotIn(List values) {
+ addCriterion("extend2 not in", values, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2Between(String value1, String value2) {
+ addCriterion("extend2 between", value1, value2, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotBetween(String value1, String value2) {
+ addCriterion("extend2 not between", value1, value2, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3IsNull() {
+ addCriterion("extend3 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3IsNotNull() {
+ addCriterion("extend3 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3EqualTo(String value) {
+ addCriterion("extend3 =", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotEqualTo(String value) {
+ addCriterion("extend3 <>", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3GreaterThan(String value) {
+ addCriterion("extend3 >", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3GreaterThanOrEqualTo(String value) {
+ addCriterion("extend3 >=", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3LessThan(String value) {
+ addCriterion("extend3 <", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3LessThanOrEqualTo(String value) {
+ addCriterion("extend3 <=", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3Like(String value) {
+ addCriterion("extend3 like", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotLike(String value) {
+ addCriterion("extend3 not like", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3In(List values) {
+ addCriterion("extend3 in", values, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotIn(List values) {
+ addCriterion("extend3 not in", values, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3Between(String value1, String value2) {
+ addCriterion("extend3 between", value1, value2, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotBetween(String value1, String value2) {
+ addCriterion("extend3 not between", value1, value2, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4IsNull() {
+ addCriterion("extend4 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4IsNotNull() {
+ addCriterion("extend4 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4EqualTo(String value) {
+ addCriterion("extend4 =", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotEqualTo(String value) {
+ addCriterion("extend4 <>", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4GreaterThan(String value) {
+ addCriterion("extend4 >", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4GreaterThanOrEqualTo(String value) {
+ addCriterion("extend4 >=", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4LessThan(String value) {
+ addCriterion("extend4 <", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4LessThanOrEqualTo(String value) {
+ addCriterion("extend4 <=", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4Like(String value) {
+ addCriterion("extend4 like", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotLike(String value) {
+ addCriterion("extend4 not like", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4In(List values) {
+ addCriterion("extend4 in", values, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotIn(List values) {
+ addCriterion("extend4 not in", values, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4Between(String value1, String value2) {
+ addCriterion("extend4 between", value1, value2, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotBetween(String value1, String value2) {
+ addCriterion("extend4 not between", value1, value2, "extend4");
+ 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/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsUser.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsUser.java
new file mode 100644
index 0000000..8be6c00
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsUser.java
@@ -0,0 +1,165 @@
+package com.mashibing.webmaster.entity;
+
+import java.util.Date;
+
+public class SmsUser {
+ private Integer id;
+
+ private String username;
+
+ private String password;
+
+ private String salt;
+
+ private String nickname;
+
+ private Date created;
+
+ private Long createId;
+
+ private Date updated;
+
+ private Long updateId;
+
+ private Byte isDelete;
+
+ private String extend1;
+
+ private String extend2;
+
+ private String extend3;
+
+ private String extend4;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username == null ? null : username.trim();
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password == null ? null : password.trim();
+ }
+
+ public String getSalt() {
+ return salt;
+ }
+
+ public void setSalt(String salt) {
+ this.salt = salt == null ? null : salt.trim();
+ }
+
+ public String getNickname() {
+ return nickname;
+ }
+
+ public void setNickname(String nickname) {
+ this.nickname = nickname == null ? null : nickname.trim();
+ }
+
+ public Date getCreated() {
+ return created;
+ }
+
+ public void setCreated(Date created) {
+ this.created = created;
+ }
+
+ public Long getCreateId() {
+ return createId;
+ }
+
+ public void setCreateId(Long createId) {
+ this.createId = createId;
+ }
+
+ public Date getUpdated() {
+ return updated;
+ }
+
+ public void setUpdated(Date updated) {
+ this.updated = updated;
+ }
+
+ public Long getUpdateId() {
+ return updateId;
+ }
+
+ public void setUpdateId(Long updateId) {
+ this.updateId = updateId;
+ }
+
+ public Byte getIsDelete() {
+ return isDelete;
+ }
+
+ public void setIsDelete(Byte isDelete) {
+ this.isDelete = isDelete;
+ }
+
+ public String getExtend1() {
+ return extend1;
+ }
+
+ public void setExtend1(String extend1) {
+ this.extend1 = extend1 == null ? null : extend1.trim();
+ }
+
+ public String getExtend2() {
+ return extend2;
+ }
+
+ public void setExtend2(String extend2) {
+ this.extend2 = extend2 == null ? null : extend2.trim();
+ }
+
+ public String getExtend3() {
+ return extend3;
+ }
+
+ public void setExtend3(String extend3) {
+ this.extend3 = extend3 == null ? null : extend3.trim();
+ }
+
+ public String getExtend4() {
+ return extend4;
+ }
+
+ public void setExtend4(String extend4) {
+ this.extend4 = extend4 == null ? null : extend4.trim();
+ }
+
+ @Override
+ public String toString() {
+ return "SmsUser{" +
+ "id=" + id +
+ ", username='" + username + '\'' +
+ ", password='" + password + '\'' +
+ ", salt='" + salt + '\'' +
+ ", nickname='" + nickname + '\'' +
+ ", created=" + created +
+ ", createId=" + createId +
+ ", updated=" + updated +
+ ", updateId=" + updateId +
+ ", isDelete=" + isDelete +
+ ", extend1='" + extend1 + '\'' +
+ ", extend2='" + extend2 + '\'' +
+ ", extend3='" + extend3 + '\'' +
+ ", extend4='" + extend4 + '\'' +
+ '}';
+ }
+}
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsUserExample.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsUserExample.java
new file mode 100644
index 0000000..5badea7
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/entity/SmsUserExample.java
@@ -0,0 +1,1120 @@
+package com.mashibing.webmaster.entity;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SmsUserExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public SmsUserExample() {
+ 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(Integer value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Integer value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Integer value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Integer value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Integer value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Integer value1, Integer value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameIsNull() {
+ addCriterion("username is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameIsNotNull() {
+ addCriterion("username is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameEqualTo(String value) {
+ addCriterion("username =", value, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameNotEqualTo(String value) {
+ addCriterion("username <>", value, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameGreaterThan(String value) {
+ addCriterion("username >", value, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameGreaterThanOrEqualTo(String value) {
+ addCriterion("username >=", value, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameLessThan(String value) {
+ addCriterion("username <", value, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameLessThanOrEqualTo(String value) {
+ addCriterion("username <=", value, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameLike(String value) {
+ addCriterion("username like", value, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameNotLike(String value) {
+ addCriterion("username not like", value, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameIn(List values) {
+ addCriterion("username in", values, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameNotIn(List values) {
+ addCriterion("username not in", values, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameBetween(String value1, String value2) {
+ addCriterion("username between", value1, value2, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andUsernameNotBetween(String value1, String value2) {
+ addCriterion("username not between", value1, value2, "username");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordIsNull() {
+ addCriterion("password is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordIsNotNull() {
+ addCriterion("password is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordEqualTo(String value) {
+ addCriterion("password =", value, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordNotEqualTo(String value) {
+ addCriterion("password <>", value, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordGreaterThan(String value) {
+ addCriterion("password >", value, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordGreaterThanOrEqualTo(String value) {
+ addCriterion("password >=", value, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordLessThan(String value) {
+ addCriterion("password <", value, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordLessThanOrEqualTo(String value) {
+ addCriterion("password <=", value, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordLike(String value) {
+ addCriterion("password like", value, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordNotLike(String value) {
+ addCriterion("password not like", value, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordIn(List values) {
+ addCriterion("password in", values, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordNotIn(List values) {
+ addCriterion("password not in", values, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordBetween(String value1, String value2) {
+ addCriterion("password between", value1, value2, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andPasswordNotBetween(String value1, String value2) {
+ addCriterion("password not between", value1, value2, "password");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltIsNull() {
+ addCriterion("salt is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltIsNotNull() {
+ addCriterion("salt is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltEqualTo(String value) {
+ addCriterion("salt =", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltNotEqualTo(String value) {
+ addCriterion("salt <>", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltGreaterThan(String value) {
+ addCriterion("salt >", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltGreaterThanOrEqualTo(String value) {
+ addCriterion("salt >=", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltLessThan(String value) {
+ addCriterion("salt <", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltLessThanOrEqualTo(String value) {
+ addCriterion("salt <=", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltLike(String value) {
+ addCriterion("salt like", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltNotLike(String value) {
+ addCriterion("salt not like", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltIn(List values) {
+ addCriterion("salt in", values, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltNotIn(List values) {
+ addCriterion("salt not in", values, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltBetween(String value1, String value2) {
+ addCriterion("salt between", value1, value2, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltNotBetween(String value1, String value2) {
+ addCriterion("salt not between", value1, value2, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameIsNull() {
+ addCriterion("nickname is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameIsNotNull() {
+ addCriterion("nickname is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameEqualTo(String value) {
+ addCriterion("nickname =", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameNotEqualTo(String value) {
+ addCriterion("nickname <>", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameGreaterThan(String value) {
+ addCriterion("nickname >", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameGreaterThanOrEqualTo(String value) {
+ addCriterion("nickname >=", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameLessThan(String value) {
+ addCriterion("nickname <", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameLessThanOrEqualTo(String value) {
+ addCriterion("nickname <=", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameLike(String value) {
+ addCriterion("nickname like", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameNotLike(String value) {
+ addCriterion("nickname not like", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameIn(List values) {
+ addCriterion("nickname in", values, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameNotIn(List values) {
+ addCriterion("nickname not in", values, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameBetween(String value1, String value2) {
+ addCriterion("nickname between", value1, value2, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameNotBetween(String value1, String value2) {
+ addCriterion("nickname not between", value1, value2, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedIsNull() {
+ addCriterion("created is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedIsNotNull() {
+ addCriterion("created is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedEqualTo(Date value) {
+ addCriterion("created =", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedNotEqualTo(Date value) {
+ addCriterion("created <>", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedGreaterThan(Date value) {
+ addCriterion("created >", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
+ addCriterion("created >=", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedLessThan(Date value) {
+ addCriterion("created <", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedLessThanOrEqualTo(Date value) {
+ addCriterion("created <=", value, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedIn(List values) {
+ addCriterion("created in", values, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedNotIn(List values) {
+ addCriterion("created not in", values, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedBetween(Date value1, Date value2) {
+ addCriterion("created between", value1, value2, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedNotBetween(Date value1, Date value2) {
+ addCriterion("created not between", value1, value2, "created");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdIsNull() {
+ addCriterion("create_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdIsNotNull() {
+ addCriterion("create_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdEqualTo(Long value) {
+ addCriterion("create_id =", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdNotEqualTo(Long value) {
+ addCriterion("create_id <>", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdGreaterThan(Long value) {
+ addCriterion("create_id >", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("create_id >=", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdLessThan(Long value) {
+ addCriterion("create_id <", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdLessThanOrEqualTo(Long value) {
+ addCriterion("create_id <=", value, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdIn(List values) {
+ addCriterion("create_id in", values, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdNotIn(List values) {
+ addCriterion("create_id not in", values, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdBetween(Long value1, Long value2) {
+ addCriterion("create_id between", value1, value2, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreateIdNotBetween(Long value1, Long value2) {
+ addCriterion("create_id not between", value1, value2, "createId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedIsNull() {
+ addCriterion("updated is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedIsNotNull() {
+ addCriterion("updated is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedEqualTo(Date value) {
+ addCriterion("updated =", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedNotEqualTo(Date value) {
+ addCriterion("updated <>", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedGreaterThan(Date value) {
+ addCriterion("updated >", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedGreaterThanOrEqualTo(Date value) {
+ addCriterion("updated >=", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedLessThan(Date value) {
+ addCriterion("updated <", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedLessThanOrEqualTo(Date value) {
+ addCriterion("updated <=", value, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedIn(List values) {
+ addCriterion("updated in", values, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedNotIn(List values) {
+ addCriterion("updated not in", values, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedBetween(Date value1, Date value2) {
+ addCriterion("updated between", value1, value2, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedNotBetween(Date value1, Date value2) {
+ addCriterion("updated not between", value1, value2, "updated");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdIsNull() {
+ addCriterion("update_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdIsNotNull() {
+ addCriterion("update_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdEqualTo(Long value) {
+ addCriterion("update_id =", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdNotEqualTo(Long value) {
+ addCriterion("update_id <>", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdGreaterThan(Long value) {
+ addCriterion("update_id >", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("update_id >=", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdLessThan(Long value) {
+ addCriterion("update_id <", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdLessThanOrEqualTo(Long value) {
+ addCriterion("update_id <=", value, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdIn(List values) {
+ addCriterion("update_id in", values, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdNotIn(List values) {
+ addCriterion("update_id not in", values, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdBetween(Long value1, Long value2) {
+ addCriterion("update_id between", value1, value2, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdateIdNotBetween(Long value1, Long value2) {
+ addCriterion("update_id not between", value1, value2, "updateId");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteIsNull() {
+ addCriterion("is_delete is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteIsNotNull() {
+ addCriterion("is_delete is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteEqualTo(Byte value) {
+ addCriterion("is_delete =", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteNotEqualTo(Byte value) {
+ addCriterion("is_delete <>", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteGreaterThan(Byte value) {
+ addCriterion("is_delete >", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteGreaterThanOrEqualTo(Byte value) {
+ addCriterion("is_delete >=", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteLessThan(Byte value) {
+ addCriterion("is_delete <", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteLessThanOrEqualTo(Byte value) {
+ addCriterion("is_delete <=", value, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteIn(List values) {
+ addCriterion("is_delete in", values, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteNotIn(List values) {
+ addCriterion("is_delete not in", values, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteBetween(Byte value1, Byte value2) {
+ addCriterion("is_delete between", value1, value2, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andIsDeleteNotBetween(Byte value1, Byte value2) {
+ addCriterion("is_delete not between", value1, value2, "isDelete");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1IsNull() {
+ addCriterion("extend1 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1IsNotNull() {
+ addCriterion("extend1 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1EqualTo(String value) {
+ addCriterion("extend1 =", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotEqualTo(String value) {
+ addCriterion("extend1 <>", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1GreaterThan(String value) {
+ addCriterion("extend1 >", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1GreaterThanOrEqualTo(String value) {
+ addCriterion("extend1 >=", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1LessThan(String value) {
+ addCriterion("extend1 <", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1LessThanOrEqualTo(String value) {
+ addCriterion("extend1 <=", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1Like(String value) {
+ addCriterion("extend1 like", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotLike(String value) {
+ addCriterion("extend1 not like", value, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1In(List values) {
+ addCriterion("extend1 in", values, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotIn(List values) {
+ addCriterion("extend1 not in", values, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1Between(String value1, String value2) {
+ addCriterion("extend1 between", value1, value2, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend1NotBetween(String value1, String value2) {
+ addCriterion("extend1 not between", value1, value2, "extend1");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2IsNull() {
+ addCriterion("extend2 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2IsNotNull() {
+ addCriterion("extend2 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2EqualTo(String value) {
+ addCriterion("extend2 =", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotEqualTo(String value) {
+ addCriterion("extend2 <>", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2GreaterThan(String value) {
+ addCriterion("extend2 >", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2GreaterThanOrEqualTo(String value) {
+ addCriterion("extend2 >=", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2LessThan(String value) {
+ addCriterion("extend2 <", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2LessThanOrEqualTo(String value) {
+ addCriterion("extend2 <=", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2Like(String value) {
+ addCriterion("extend2 like", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotLike(String value) {
+ addCriterion("extend2 not like", value, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2In(List values) {
+ addCriterion("extend2 in", values, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotIn(List values) {
+ addCriterion("extend2 not in", values, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2Between(String value1, String value2) {
+ addCriterion("extend2 between", value1, value2, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend2NotBetween(String value1, String value2) {
+ addCriterion("extend2 not between", value1, value2, "extend2");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3IsNull() {
+ addCriterion("extend3 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3IsNotNull() {
+ addCriterion("extend3 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3EqualTo(String value) {
+ addCriterion("extend3 =", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotEqualTo(String value) {
+ addCriterion("extend3 <>", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3GreaterThan(String value) {
+ addCriterion("extend3 >", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3GreaterThanOrEqualTo(String value) {
+ addCriterion("extend3 >=", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3LessThan(String value) {
+ addCriterion("extend3 <", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3LessThanOrEqualTo(String value) {
+ addCriterion("extend3 <=", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3Like(String value) {
+ addCriterion("extend3 like", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotLike(String value) {
+ addCriterion("extend3 not like", value, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3In(List values) {
+ addCriterion("extend3 in", values, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotIn(List values) {
+ addCriterion("extend3 not in", values, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3Between(String value1, String value2) {
+ addCriterion("extend3 between", value1, value2, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend3NotBetween(String value1, String value2) {
+ addCriterion("extend3 not between", value1, value2, "extend3");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4IsNull() {
+ addCriterion("extend4 is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4IsNotNull() {
+ addCriterion("extend4 is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4EqualTo(String value) {
+ addCriterion("extend4 =", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotEqualTo(String value) {
+ addCriterion("extend4 <>", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4GreaterThan(String value) {
+ addCriterion("extend4 >", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4GreaterThanOrEqualTo(String value) {
+ addCriterion("extend4 >=", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4LessThan(String value) {
+ addCriterion("extend4 <", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4LessThanOrEqualTo(String value) {
+ addCriterion("extend4 <=", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4Like(String value) {
+ addCriterion("extend4 like", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotLike(String value) {
+ addCriterion("extend4 not like", value, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4In(List values) {
+ addCriterion("extend4 in", values, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotIn(List values) {
+ addCriterion("extend4 not in", values, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4Between(String value1, String value2) {
+ addCriterion("extend4 between", value1, value2, "extend4");
+ return (Criteria) this;
+ }
+
+ public Criteria andExtend4NotBetween(String value1, String value2) {
+ addCriterion("extend4 not between", value1, value2, "extend4");
+ 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/beacon-webmaster/src/main/java/com/mashibing/webmaster/mapper/SmsMenuMapper.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/mapper/SmsMenuMapper.java
new file mode 100644
index 0000000..5b77a13
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/mapper/SmsMenuMapper.java
@@ -0,0 +1,30 @@
+package com.mashibing.webmaster.mapper;
+
+import com.mashibing.webmaster.entity.SmsMenu;
+import com.mashibing.webmaster.entity.SmsMenuExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface SmsMenuMapper {
+ long countByExample(SmsMenuExample example);
+
+ int deleteByExample(SmsMenuExample example);
+
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(SmsMenu row);
+
+ int insertSelective(SmsMenu row);
+
+ List selectByExample(SmsMenuExample example);
+
+ SmsMenu selectByPrimaryKey(Integer id);
+
+ int updateByExampleSelective(@Param("row") SmsMenu row, @Param("example") SmsMenuExample example);
+
+ int updateByExample(@Param("row") SmsMenu row, @Param("example") SmsMenuExample example);
+
+ int updateByPrimaryKeySelective(SmsMenu row);
+
+ int updateByPrimaryKey(SmsMenu row);
+}
\ No newline at end of file
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/mapper/SmsRoleMapper.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/mapper/SmsRoleMapper.java
new file mode 100644
index 0000000..4cdd5d0
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/mapper/SmsRoleMapper.java
@@ -0,0 +1,30 @@
+package com.mashibing.webmaster.mapper;
+
+import com.mashibing.webmaster.entity.SmsRole;
+import com.mashibing.webmaster.entity.SmsRoleExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface SmsRoleMapper {
+ long countByExample(SmsRoleExample example);
+
+ int deleteByExample(SmsRoleExample example);
+
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(SmsRole row);
+
+ int insertSelective(SmsRole row);
+
+ List selectByExample(SmsRoleExample example);
+
+ SmsRole selectByPrimaryKey(Integer id);
+
+ int updateByExampleSelective(@Param("row") SmsRole row, @Param("example") SmsRoleExample example);
+
+ int updateByExample(@Param("row") SmsRole row, @Param("example") SmsRoleExample example);
+
+ int updateByPrimaryKeySelective(SmsRole row);
+
+ int updateByPrimaryKey(SmsRole row);
+}
\ No newline at end of file
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/mapper/SmsUserMapper.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/mapper/SmsUserMapper.java
new file mode 100644
index 0000000..c6be081
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/mapper/SmsUserMapper.java
@@ -0,0 +1,30 @@
+package com.mashibing.webmaster.mapper;
+
+import com.mashibing.webmaster.entity.SmsUser;
+import com.mashibing.webmaster.entity.SmsUserExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface SmsUserMapper {
+ long countByExample(SmsUserExample example);
+
+ int deleteByExample(SmsUserExample example);
+
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(SmsUser row);
+
+ int insertSelective(SmsUser row);
+
+ List selectByExample(SmsUserExample example);
+
+ SmsUser selectByPrimaryKey(Integer id);
+
+ int updateByExampleSelective(@Param("row") SmsUser row, @Param("example") SmsUserExample example);
+
+ int updateByExample(@Param("row") SmsUser row, @Param("example") SmsUserExample example);
+
+ int updateByPrimaryKeySelective(SmsUser row);
+
+ int updateByPrimaryKey(SmsUser row);
+}
\ No newline at end of file
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/realm/ShiroRealm.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/realm/ShiroRealm.java
index d8fc29a..f992ea0 100644
--- a/beacon-webmaster/src/main/java/com/mashibing/webmaster/realm/ShiroRealm.java
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/realm/ShiroRealm.java
@@ -5,6 +5,8 @@ package com.mashibing.webmaster.realm;
* @create 2024-03-29 1:55
*/
+import com.mashibing.webmaster.entity.SmsUser;
+import com.mashibing.webmaster.service.SmsUserService;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
@@ -14,6 +16,7 @@ import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection;
import org.apache.shiro.util.ByteSource;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
@@ -24,6 +27,9 @@ import org.springframework.stereotype.Component;
@Component
public class ShiroRealm extends AuthorizingRealm {
+ @Autowired
+ private SmsUserService userService;
+
{
HashedCredentialsMatcher credentialsMatcher = new HashedCredentialsMatcher();
credentialsMatcher.setHashAlgorithmName("MD5");
@@ -43,15 +49,17 @@ public class ShiroRealm extends AuthorizingRealm {
String username = (String) token.getPrincipal();
//2、基于用户名获取用户信息(模拟数据库操作)
- if(username == null || !username.equals("admin")) {
- //3、查询完毕后,查看用户是否为null,为null就直接返回即可
- return null;
+ SmsUser smsUser = userService.findByUsername(username);
+
+ //3、查询完毕后,查看用户是否为null,为null就直接返回即可
+ if(smsUser == null){
+ // 用户名错误
+ return null;
}
- String password = "b39dc5da02d002e6ac581e5bb929d2e5";
- String salt = "09a8424ed5bf4373af6530fec2b29c0f";
+
//4、不为null,说明用户名正确,封装AuthenticationInfo返回即可,设置密码加密方式和信息
- SimpleAuthenticationInfo info = new SimpleAuthenticationInfo("用户信息",password,"shiroRealm");
- info.setCredentialsSalt(ByteSource.Util.bytes(salt));
+ SimpleAuthenticationInfo info = new SimpleAuthenticationInfo(smsUser,smsUser.getPassword(),"shiroRealm");
+ info.setCredentialsSalt(ByteSource.Util.bytes(smsUser.getSalt()));
//5、返回
return info;
@@ -66,4 +74,4 @@ public class ShiroRealm extends AuthorizingRealm {
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
return null;
}
-}
\ No newline at end of file
+}
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/service/SmsUserService.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/service/SmsUserService.java
new file mode 100644
index 0000000..26e133e
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/service/SmsUserService.java
@@ -0,0 +1,13 @@
+package com.mashibing.webmaster.service;
+
+import com.mashibing.webmaster.entity.SmsUser;
+
+/**
+ * @author dch
+ * @create 2024-03-29 10:40
+ */
+public interface SmsUserService {
+
+ public SmsUser findByUsername(String username);
+
+}
diff --git a/beacon-webmaster/src/main/java/com/mashibing/webmaster/service/impl/SmsUserServiceImpl.java b/beacon-webmaster/src/main/java/com/mashibing/webmaster/service/impl/SmsUserServiceImpl.java
new file mode 100644
index 0000000..7f0ef35
--- /dev/null
+++ b/beacon-webmaster/src/main/java/com/mashibing/webmaster/service/impl/SmsUserServiceImpl.java
@@ -0,0 +1,33 @@
+package com.mashibing.webmaster.service.impl;
+
+import com.mashibing.webmaster.entity.SmsUser;
+import com.mashibing.webmaster.entity.SmsUserExample;
+import com.mashibing.webmaster.mapper.SmsUserMapper;
+import com.mashibing.webmaster.service.SmsUserService;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @author dch
+ * @create 2024-03-29 10:41
+ */
+@Service
+public class SmsUserServiceImpl implements SmsUserService {
+
+ @Resource
+ private SmsUserMapper userMapper;
+
+ @Override
+ public SmsUser findByUsername(String username) {
+ //1、封装查询条件
+ SmsUserExample example = new SmsUserExample();
+ SmsUserExample.Criteria criteria = example.createCriteria();
+ criteria.andUsernameEqualTo(username);
+ //2、基于userMapper查询
+ List list = userMapper.selectByExample(example);
+ //3、返回
+ return list != null ? list.get(0) : null;
+ }
+}
diff --git a/beacon-webmaster/src/main/resources/application.yml b/beacon-webmaster/src/main/resources/application.yml
index 5e98b20..a483bf0 100644
--- a/beacon-webmaster/src/main/resources/application.yml
+++ b/beacon-webmaster/src/main/resources/application.yml
@@ -1,5 +1,20 @@
+# MyBatis和dataSource配置
+spring:
+ datasource:
+ driver-class-name: org.gjt.mm.mysql.Driver
+ url: jdbc:mysql://192.168.1.121:3306/beacon_cloud?characterEncoding=utf-8
+ username: root
+ password: 1234
+ type: com.alibaba.druid.pool.DruidDataSource
+# MyBatis
+mybatis:
+ mapper-locations: classpath:mapper/*.xml
+ configuration:
+ map-underscore-to-camel-case: true
+# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+
shiro:
# 默认登录页面
loginUrl: /login.html
# 没有权限的页面
- unauthorizedUrl: unauthorized.html
\ No newline at end of file
+ unauthorizedUrl: unauthorized.html
diff --git a/beacon-webmaster/src/main/resources/generatorConfig.xml b/beacon-webmaster/src/main/resources/generatorConfig.xml
new file mode 100644
index 0000000..1b414b2
--- /dev/null
+++ b/beacon-webmaster/src/main/resources/generatorConfig.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/beacon-webmaster/src/main/resources/mapper/SmsMenuMapper.xml b/beacon-webmaster/src/main/resources/mapper/SmsMenuMapper.xml
new file mode 100644
index 0000000..2b1769d
--- /dev/null
+++ b/beacon-webmaster/src/main/resources/mapper/SmsMenuMapper.xml
@@ -0,0 +1,385 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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, name, parent_id, url, icon, type, sort, created, create_id, updated, update_id,
+ is_delete, extend1, extend2, extend3, extend4
+
+
+
+
+ delete from sms_menu
+ where id = #{id,jdbcType=INTEGER}
+
+
+ delete from sms_menu
+
+
+
+
+
+ insert into sms_menu (id, name, parent_id,
+ url, icon, type, sort,
+ created, create_id, updated,
+ update_id, is_delete, extend1,
+ extend2, extend3, extend4
+ )
+ values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT},
+ #{url,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
+ #{created,jdbcType=TIMESTAMP}, #{createId,jdbcType=BIGINT}, #{updated,jdbcType=TIMESTAMP},
+ #{updateId,jdbcType=BIGINT}, #{isDelete,jdbcType=TINYINT}, #{extend1,jdbcType=VARCHAR},
+ #{extend2,jdbcType=VARCHAR}, #{extend3,jdbcType=VARCHAR}, #{extend4,jdbcType=VARCHAR}
+ )
+
+
+ insert into sms_menu
+
+
+ id,
+
+
+ name,
+
+
+ parent_id,
+
+
+ url,
+
+
+ icon,
+
+
+ type,
+
+
+ sort,
+
+
+ created,
+
+
+ create_id,
+
+
+ updated,
+
+
+ update_id,
+
+
+ is_delete,
+
+
+ extend1,
+
+
+ extend2,
+
+
+ extend3,
+
+
+ extend4,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{parentId,jdbcType=BIGINT},
+
+
+ #{url,jdbcType=VARCHAR},
+
+
+ #{icon,jdbcType=VARCHAR},
+
+
+ #{type,jdbcType=INTEGER},
+
+
+ #{sort,jdbcType=INTEGER},
+
+
+ #{created,jdbcType=TIMESTAMP},
+
+
+ #{createId,jdbcType=BIGINT},
+
+
+ #{updated,jdbcType=TIMESTAMP},
+
+
+ #{updateId,jdbcType=BIGINT},
+
+
+ #{isDelete,jdbcType=TINYINT},
+
+
+ #{extend1,jdbcType=VARCHAR},
+
+
+ #{extend2,jdbcType=VARCHAR},
+
+
+ #{extend3,jdbcType=VARCHAR},
+
+
+ #{extend4,jdbcType=VARCHAR},
+
+
+
+
+
+ update sms_menu
+
+
+ id = #{row.id,jdbcType=INTEGER},
+
+
+ name = #{row.name,jdbcType=VARCHAR},
+
+
+ parent_id = #{row.parentId,jdbcType=BIGINT},
+
+
+ url = #{row.url,jdbcType=VARCHAR},
+
+
+ icon = #{row.icon,jdbcType=VARCHAR},
+
+
+ type = #{row.type,jdbcType=INTEGER},
+
+
+ sort = #{row.sort,jdbcType=INTEGER},
+
+
+ created = #{row.created,jdbcType=TIMESTAMP},
+
+
+ create_id = #{row.createId,jdbcType=BIGINT},
+
+
+ updated = #{row.updated,jdbcType=TIMESTAMP},
+
+
+ update_id = #{row.updateId,jdbcType=BIGINT},
+
+
+ is_delete = #{row.isDelete,jdbcType=TINYINT},
+
+
+ extend1 = #{row.extend1,jdbcType=VARCHAR},
+
+
+ extend2 = #{row.extend2,jdbcType=VARCHAR},
+
+
+ extend3 = #{row.extend3,jdbcType=VARCHAR},
+
+
+ extend4 = #{row.extend4,jdbcType=VARCHAR},
+
+
+
+
+
+
+
+ update sms_menu
+ set id = #{row.id,jdbcType=INTEGER},
+ name = #{row.name,jdbcType=VARCHAR},
+ parent_id = #{row.parentId,jdbcType=BIGINT},
+ url = #{row.url,jdbcType=VARCHAR},
+ icon = #{row.icon,jdbcType=VARCHAR},
+ type = #{row.type,jdbcType=INTEGER},
+ sort = #{row.sort,jdbcType=INTEGER},
+ created = #{row.created,jdbcType=TIMESTAMP},
+ create_id = #{row.createId,jdbcType=BIGINT},
+ updated = #{row.updated,jdbcType=TIMESTAMP},
+ update_id = #{row.updateId,jdbcType=BIGINT},
+ is_delete = #{row.isDelete,jdbcType=TINYINT},
+ extend1 = #{row.extend1,jdbcType=VARCHAR},
+ extend2 = #{row.extend2,jdbcType=VARCHAR},
+ extend3 = #{row.extend3,jdbcType=VARCHAR},
+ extend4 = #{row.extend4,jdbcType=VARCHAR}
+
+
+
+
+
+ update sms_menu
+
+
+ name = #{name,jdbcType=VARCHAR},
+
+
+ parent_id = #{parentId,jdbcType=BIGINT},
+
+
+ url = #{url,jdbcType=VARCHAR},
+
+
+ icon = #{icon,jdbcType=VARCHAR},
+
+
+ type = #{type,jdbcType=INTEGER},
+
+
+ sort = #{sort,jdbcType=INTEGER},
+
+
+ created = #{created,jdbcType=TIMESTAMP},
+
+
+ create_id = #{createId,jdbcType=BIGINT},
+
+
+ updated = #{updated,jdbcType=TIMESTAMP},
+
+
+ update_id = #{updateId,jdbcType=BIGINT},
+
+
+ is_delete = #{isDelete,jdbcType=TINYINT},
+
+
+ extend1 = #{extend1,jdbcType=VARCHAR},
+
+
+ extend2 = #{extend2,jdbcType=VARCHAR},
+
+
+ extend3 = #{extend3,jdbcType=VARCHAR},
+
+
+ extend4 = #{extend4,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update sms_menu
+ set name = #{name,jdbcType=VARCHAR},
+ parent_id = #{parentId,jdbcType=BIGINT},
+ url = #{url,jdbcType=VARCHAR},
+ icon = #{icon,jdbcType=VARCHAR},
+ type = #{type,jdbcType=INTEGER},
+ sort = #{sort,jdbcType=INTEGER},
+ created = #{created,jdbcType=TIMESTAMP},
+ create_id = #{createId,jdbcType=BIGINT},
+ updated = #{updated,jdbcType=TIMESTAMP},
+ update_id = #{updateId,jdbcType=BIGINT},
+ is_delete = #{isDelete,jdbcType=TINYINT},
+ extend1 = #{extend1,jdbcType=VARCHAR},
+ extend2 = #{extend2,jdbcType=VARCHAR},
+ extend3 = #{extend3,jdbcType=VARCHAR},
+ extend4 = #{extend4,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/beacon-webmaster/src/main/resources/mapper/SmsRoleMapper.xml b/beacon-webmaster/src/main/resources/mapper/SmsRoleMapper.xml
new file mode 100644
index 0000000..650227c
--- /dev/null
+++ b/beacon-webmaster/src/main/resources/mapper/SmsRoleMapper.xml
@@ -0,0 +1,306 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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, name, created, create_id, updated, update_id, is_delete, extend1, extend2, extend3,
+ extend4
+
+
+
+
+ delete from sms_role
+ where id = #{id,jdbcType=INTEGER}
+
+
+ delete from sms_role
+
+
+
+
+
+ insert into sms_role (id, name, created,
+ create_id, updated, update_id,
+ is_delete, extend1, extend2,
+ extend3, extend4)
+ values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{created,jdbcType=TIMESTAMP},
+ #{createId,jdbcType=BIGINT}, #{updated,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT},
+ #{isDelete,jdbcType=TINYINT}, #{extend1,jdbcType=VARCHAR}, #{extend2,jdbcType=VARCHAR},
+ #{extend3,jdbcType=VARCHAR}, #{extend4,jdbcType=VARCHAR})
+
+
+ insert into sms_role
+
+
+ id,
+
+
+ name,
+
+
+ created,
+
+
+ create_id,
+
+
+ updated,
+
+
+ update_id,
+
+
+ is_delete,
+
+
+ extend1,
+
+
+ extend2,
+
+
+ extend3,
+
+
+ extend4,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{created,jdbcType=TIMESTAMP},
+
+
+ #{createId,jdbcType=BIGINT},
+
+
+ #{updated,jdbcType=TIMESTAMP},
+
+
+ #{updateId,jdbcType=BIGINT},
+
+
+ #{isDelete,jdbcType=TINYINT},
+
+
+ #{extend1,jdbcType=VARCHAR},
+
+
+ #{extend2,jdbcType=VARCHAR},
+
+
+ #{extend3,jdbcType=VARCHAR},
+
+
+ #{extend4,jdbcType=VARCHAR},
+
+
+
+
+
+ update sms_role
+
+
+ id = #{row.id,jdbcType=INTEGER},
+
+
+ name = #{row.name,jdbcType=VARCHAR},
+
+
+ created = #{row.created,jdbcType=TIMESTAMP},
+
+
+ create_id = #{row.createId,jdbcType=BIGINT},
+
+
+ updated = #{row.updated,jdbcType=TIMESTAMP},
+
+
+ update_id = #{row.updateId,jdbcType=BIGINT},
+
+
+ is_delete = #{row.isDelete,jdbcType=TINYINT},
+
+
+ extend1 = #{row.extend1,jdbcType=VARCHAR},
+
+
+ extend2 = #{row.extend2,jdbcType=VARCHAR},
+
+
+ extend3 = #{row.extend3,jdbcType=VARCHAR},
+
+
+ extend4 = #{row.extend4,jdbcType=VARCHAR},
+
+
+
+
+
+
+
+ update sms_role
+ set id = #{row.id,jdbcType=INTEGER},
+ name = #{row.name,jdbcType=VARCHAR},
+ created = #{row.created,jdbcType=TIMESTAMP},
+ create_id = #{row.createId,jdbcType=BIGINT},
+ updated = #{row.updated,jdbcType=TIMESTAMP},
+ update_id = #{row.updateId,jdbcType=BIGINT},
+ is_delete = #{row.isDelete,jdbcType=TINYINT},
+ extend1 = #{row.extend1,jdbcType=VARCHAR},
+ extend2 = #{row.extend2,jdbcType=VARCHAR},
+ extend3 = #{row.extend3,jdbcType=VARCHAR},
+ extend4 = #{row.extend4,jdbcType=VARCHAR}
+
+
+
+
+
+ update sms_role
+
+
+ name = #{name,jdbcType=VARCHAR},
+
+
+ created = #{created,jdbcType=TIMESTAMP},
+
+
+ create_id = #{createId,jdbcType=BIGINT},
+
+
+ updated = #{updated,jdbcType=TIMESTAMP},
+
+
+ update_id = #{updateId,jdbcType=BIGINT},
+
+
+ is_delete = #{isDelete,jdbcType=TINYINT},
+
+
+ extend1 = #{extend1,jdbcType=VARCHAR},
+
+
+ extend2 = #{extend2,jdbcType=VARCHAR},
+
+
+ extend3 = #{extend3,jdbcType=VARCHAR},
+
+
+ extend4 = #{extend4,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update sms_role
+ set name = #{name,jdbcType=VARCHAR},
+ created = #{created,jdbcType=TIMESTAMP},
+ create_id = #{createId,jdbcType=BIGINT},
+ updated = #{updated,jdbcType=TIMESTAMP},
+ update_id = #{updateId,jdbcType=BIGINT},
+ is_delete = #{isDelete,jdbcType=TINYINT},
+ extend1 = #{extend1,jdbcType=VARCHAR},
+ extend2 = #{extend2,jdbcType=VARCHAR},
+ extend3 = #{extend3,jdbcType=VARCHAR},
+ extend4 = #{extend4,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/beacon-webmaster/src/main/resources/mapper/SmsUserMapper.xml b/beacon-webmaster/src/main/resources/mapper/SmsUserMapper.xml
new file mode 100644
index 0000000..1581d83
--- /dev/null
+++ b/beacon-webmaster/src/main/resources/mapper/SmsUserMapper.xml
@@ -0,0 +1,353 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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, username, password, salt, nickname, created, create_id, updated, update_id, is_delete,
+ extend1, extend2, extend3, extend4
+
+
+
+
+ delete from sms_user
+ where id = #{id,jdbcType=INTEGER}
+
+
+ delete from sms_user
+
+
+
+
+
+ insert into sms_user (id, username, password,
+ salt, nickname, created,
+ create_id, updated, update_id,
+ is_delete, extend1, extend2,
+ extend3, extend4)
+ values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
+ #{salt,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{created,jdbcType=TIMESTAMP},
+ #{createId,jdbcType=BIGINT}, #{updated,jdbcType=TIMESTAMP}, #{updateId,jdbcType=BIGINT},
+ #{isDelete,jdbcType=TINYINT}, #{extend1,jdbcType=VARCHAR}, #{extend2,jdbcType=VARCHAR},
+ #{extend3,jdbcType=VARCHAR}, #{extend4,jdbcType=VARCHAR})
+
+
+ insert into sms_user
+
+
+ id,
+
+
+ username,
+
+
+ password,
+
+
+ salt,
+
+
+ nickname,
+
+
+ created,
+
+
+ create_id,
+
+
+ updated,
+
+
+ update_id,
+
+
+ is_delete,
+
+
+ extend1,
+
+
+ extend2,
+
+
+ extend3,
+
+
+ extend4,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{username,jdbcType=VARCHAR},
+
+
+ #{password,jdbcType=VARCHAR},
+
+
+ #{salt,jdbcType=VARCHAR},
+
+
+ #{nickname,jdbcType=VARCHAR},
+
+
+ #{created,jdbcType=TIMESTAMP},
+
+
+ #{createId,jdbcType=BIGINT},
+
+
+ #{updated,jdbcType=TIMESTAMP},
+
+
+ #{updateId,jdbcType=BIGINT},
+
+
+ #{isDelete,jdbcType=TINYINT},
+
+
+ #{extend1,jdbcType=VARCHAR},
+
+
+ #{extend2,jdbcType=VARCHAR},
+
+
+ #{extend3,jdbcType=VARCHAR},
+
+
+ #{extend4,jdbcType=VARCHAR},
+
+
+
+
+
+ update sms_user
+
+
+ id = #{row.id,jdbcType=INTEGER},
+
+
+ username = #{row.username,jdbcType=VARCHAR},
+
+
+ password = #{row.password,jdbcType=VARCHAR},
+
+
+ salt = #{row.salt,jdbcType=VARCHAR},
+
+
+ nickname = #{row.nickname,jdbcType=VARCHAR},
+
+
+ created = #{row.created,jdbcType=TIMESTAMP},
+
+
+ create_id = #{row.createId,jdbcType=BIGINT},
+
+
+ updated = #{row.updated,jdbcType=TIMESTAMP},
+
+
+ update_id = #{row.updateId,jdbcType=BIGINT},
+
+
+ is_delete = #{row.isDelete,jdbcType=TINYINT},
+
+
+ extend1 = #{row.extend1,jdbcType=VARCHAR},
+
+
+ extend2 = #{row.extend2,jdbcType=VARCHAR},
+
+
+ extend3 = #{row.extend3,jdbcType=VARCHAR},
+
+
+ extend4 = #{row.extend4,jdbcType=VARCHAR},
+
+
+
+
+
+
+
+ update sms_user
+ set id = #{row.id,jdbcType=INTEGER},
+ username = #{row.username,jdbcType=VARCHAR},
+ password = #{row.password,jdbcType=VARCHAR},
+ salt = #{row.salt,jdbcType=VARCHAR},
+ nickname = #{row.nickname,jdbcType=VARCHAR},
+ created = #{row.created,jdbcType=TIMESTAMP},
+ create_id = #{row.createId,jdbcType=BIGINT},
+ updated = #{row.updated,jdbcType=TIMESTAMP},
+ update_id = #{row.updateId,jdbcType=BIGINT},
+ is_delete = #{row.isDelete,jdbcType=TINYINT},
+ extend1 = #{row.extend1,jdbcType=VARCHAR},
+ extend2 = #{row.extend2,jdbcType=VARCHAR},
+ extend3 = #{row.extend3,jdbcType=VARCHAR},
+ extend4 = #{row.extend4,jdbcType=VARCHAR}
+
+
+
+
+
+ update sms_user
+
+
+ username = #{username,jdbcType=VARCHAR},
+
+
+ password = #{password,jdbcType=VARCHAR},
+
+
+ salt = #{salt,jdbcType=VARCHAR},
+
+
+ nickname = #{nickname,jdbcType=VARCHAR},
+
+
+ created = #{created,jdbcType=TIMESTAMP},
+
+
+ create_id = #{createId,jdbcType=BIGINT},
+
+
+ updated = #{updated,jdbcType=TIMESTAMP},
+
+
+ update_id = #{updateId,jdbcType=BIGINT},
+
+
+ is_delete = #{isDelete,jdbcType=TINYINT},
+
+
+ extend1 = #{extend1,jdbcType=VARCHAR},
+
+
+ extend2 = #{extend2,jdbcType=VARCHAR},
+
+
+ extend3 = #{extend3,jdbcType=VARCHAR},
+
+
+ extend4 = #{extend4,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update sms_user
+ set username = #{username,jdbcType=VARCHAR},
+ password = #{password,jdbcType=VARCHAR},
+ salt = #{salt,jdbcType=VARCHAR},
+ nickname = #{nickname,jdbcType=VARCHAR},
+ created = #{created,jdbcType=TIMESTAMP},
+ create_id = #{createId,jdbcType=BIGINT},
+ updated = #{updated,jdbcType=TIMESTAMP},
+ update_id = #{updateId,jdbcType=BIGINT},
+ is_delete = #{isDelete,jdbcType=TINYINT},
+ extend1 = #{extend1,jdbcType=VARCHAR},
+ extend2 = #{extend2,jdbcType=VARCHAR},
+ extend3 = #{extend3,jdbcType=VARCHAR},
+ extend4 = #{extend4,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/beacon-webmaster/src/test/java/com/mashibing/webmaster/mapper/SmsUserMapperTest.java b/beacon-webmaster/src/test/java/com/mashibing/webmaster/mapper/SmsUserMapperTest.java
new file mode 100644
index 0000000..1ba848e
--- /dev/null
+++ b/beacon-webmaster/src/test/java/com/mashibing/webmaster/mapper/SmsUserMapperTest.java
@@ -0,0 +1,33 @@
+package com.mashibing.webmaster.mapper;
+
+import com.mashibing.webmaster.entity.SmsUser;
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+import javax.annotation.Resource;
+
+import static org.junit.Assert.*;
+
+/**
+ * @author dch
+ * @create 2024-03-29 10:32
+ */
+@SpringBootTest
+@RunWith(SpringRunner.class)
+public class SmsUserMapperTest {
+
+ @Autowired
+ private SmsUserMapper userMapper;
+
+ @Test
+ public void findById(){
+ SmsUser smsUser = userMapper.selectByPrimaryKey(1);
+ Assert.assertNotNull(smsUser);
+ System.out.println(smsUser);
+ }
+
+}
diff --git a/beacon-webmaster/src/test/java/com/mashibing/webmaster/mapper/SmsUserServiceTest.java b/beacon-webmaster/src/test/java/com/mashibing/webmaster/mapper/SmsUserServiceTest.java
new file mode 100644
index 0000000..dbbbfe9
--- /dev/null
+++ b/beacon-webmaster/src/test/java/com/mashibing/webmaster/mapper/SmsUserServiceTest.java
@@ -0,0 +1,27 @@
+package com.mashibing.webmaster.mapper;
+
+import com.mashibing.webmaster.entity.SmsUser;
+import com.mashibing.webmaster.service.SmsUserService;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.test.context.junit4.SpringRunner;
+
+/**
+ * @author dch
+ * @create 2024-03-29 10:43
+ */
+@RunWith(SpringRunner.class)
+@SpringBootTest
+public class SmsUserServiceTest {
+
+ @Autowired
+ private SmsUserService smsUserService;
+
+ @Test
+ public void findByUsername() {
+ SmsUser smsUser = smsUserService.findByUsername("admin");
+ System.out.println(smsUser);
+ }
+}