Commit b4418eed authored by shiyu's avatar shiyu

后台新增用户

parent 535f55bf
package com.wwdz.ch.db.domain;
import com.xxdxxs.entity.Entity;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import com.xxdxxs.entity.Entity;
import lombok.Data;
/**
* @author shiyu
* @date 2023/11/01
*/
@Data
public class Admin implements Entity {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
* This field corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -21,129 +25,343 @@ public class Admin implements Entity {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
* This field corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static final Boolean IS_DELETED = true;
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.id
* 管理员名称
*/
private String username;
/**
* 管理员密码
*/
private String password;
/**
* 最近一次登录IP地址
*/
private String lastLoginIp;
/**
* 最近一次登录时间
*/
private Date lastLoginTime;
/**
* 头像图片
*/
private String avatar;
/**
* 创建时间
*/
private Date addTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 逻辑删除
*/
private Boolean deleted;
/**
* 角色列表
*/
private String roleIds;
/**
* 用户描述
*/
private String desc;
/**
* 联系电话
*/
private String tel;
/**
* 邮箱地址
*/
private String mail;
private static final long serialVersionUID = 1L;
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", username=").append(username);
sb.append(", password=").append(password);
sb.append(", lastLoginIp=").append(lastLoginIp);
sb.append(", lastLoginTime=").append(lastLoginTime);
sb.append(", avatar=").append(avatar);
sb.append(", addTime=").append(addTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", deleted=").append(deleted);
sb.append(", roleIds=").append(roleIds);
sb.append(", desc=").append(desc);
sb.append(", tel=").append(tel);
sb.append(", mail=").append(mail);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Admin other = (Admin) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
&& (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
&& (this.getLastLoginIp() == null ? other.getLastLoginIp() == null : this.getLastLoginIp().equals(other.getLastLoginIp()))
&& (this.getLastLoginTime() == null ? other.getLastLoginTime() == null : this.getLastLoginTime().equals(other.getLastLoginTime()))
&& (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
&& (this.getRoleIds() == null ? other.getRoleIds() == null : this.getRoleIds().equals(other.getRoleIds()))
&& (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
&& (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
&& (this.getMail() == null ? other.getMail() == null : this.getMail().equals(other.getMail()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
result = prime * result + ((getLastLoginIp() == null) ? 0 : getLastLoginIp().hashCode());
result = prime * result + ((getLastLoginTime() == null) ? 0 : getLastLoginTime().hashCode());
result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
result = prime * result + ((getRoleIds() == null) ? 0 : getRoleIds().hashCode());
result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
result = prime * result + ((getMail() == null) ? 0 : getMail().hashCode());
return result;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private Integer id;
public void andLogicalDeleted(boolean deleted) {
setDeleted(deleted ? IS_DELETED : NOT_DELETED);
}
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.username
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private String username;
public enum Column {
id("id", "id", "INTEGER", false),
username("username", "username", "VARCHAR", false),
password("password", "password", "VARCHAR", true),
lastLoginIp("last_login_ip", "lastLoginIp", "VARCHAR", false),
lastLoginTime("last_login_time", "lastLoginTime", "TIMESTAMP", false),
avatar("avatar", "avatar", "VARCHAR", false),
addTime("add_time", "addTime", "TIMESTAMP", false),
updateTime("update_time", "updateTime", "TIMESTAMP", false),
deleted("deleted", "deleted", "BIT", false),
roleIds("role_ids", "roleIds", "VARCHAR", false),
desc("desc", "desc", "VARCHAR", true),
tel("tel", "tel", "VARCHAR", false),
mail("mail", "mail", "VARCHAR", false);
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.password
* This field corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private String password;
private static final String BEGINNING_DELIMITER = "`";
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.last_login_ip
* This field corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private String lastLoginIp;
private static final String ENDING_DELIMITER = "`";
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.last_login_time
* This field corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private Date lastLoginTime;
private final String column;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.avatar
* This field corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private String avatar;
private final boolean isColumnNameDelimited;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.add_time
* This field corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private Date addTime;
private final String javaProperty;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.update_time
* This field corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private Date updateTime;
private final String jdbcType;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.deleted
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private Boolean deleted;
public String value() {
return this.column;
}
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.role_ids
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private Integer[] roleIds;
public String getValue() {
return this.column;
}
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.desc
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private String desc;
public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.tel
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private String tel;
Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
this.isColumnNameDelimited = isColumnNameDelimited;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column dts_admin.mail
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String desc() {
return this.getEscapedColumnName() + " DESC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private String mail;
public String asc() {
return this.getEscapedColumnName() + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getEscapedColumnName() {
if (this.isColumnNameDelimited) {
return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
} else {
return this.column;
}
}
}
}
\ No newline at end of file
package com.wwdz.ch.db.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class AdminExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public AdminExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
......@@ -113,7 +47,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -125,7 +59,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -142,12 +76,6 @@ public class AdminExample {
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
......@@ -156,23 +84,11 @@ public class AdminExample {
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
......@@ -181,7 +97,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -191,57 +107,20 @@ public class AdminExample {
return example.createCriteria();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dts_admin
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> roleIdsCriteria;
protected List<Criterion> allCriteria;
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
roleIdsCriteria = new ArrayList<Criterion>();
}
public List<Criterion> getRoleIdsCriteria() {
return roleIdsCriteria;
}
protected void addRoleIdsCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
roleIdsCriteria.add(new Criterion(condition, value, "com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler"));
allCriteria = null;
}
protected void addRoleIdsCriterion(String condition, Integer[] value1, Integer[] value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
roleIdsCriteria.add(new Criterion(condition, value1, value2, "com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler"));
allCriteria = null;
}
public boolean isValid() {
return criteria.size() > 0
|| roleIdsCriteria.size() > 0;
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
if (allCriteria == null) {
allCriteria = new ArrayList<Criterion>();
allCriteria.addAll(criteria);
allCriteria.addAll(roleIdsCriteria);
}
return allCriteria;
return criteria;
}
public List<Criterion> getCriteria() {
......@@ -253,7 +132,6 @@ public class AdminExample {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
allCriteria = null;
}
protected void addCriterion(String condition, Object value, String property) {
......@@ -261,7 +139,6 @@ public class AdminExample {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
allCriteria = null;
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
......@@ -269,7 +146,6 @@ public class AdminExample {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
allCriteria = null;
}
public Criteria andIdIsNull() {
......@@ -289,7 +165,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -306,7 +182,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -323,7 +199,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -340,7 +216,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -357,7 +233,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -374,7 +250,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -421,7 +297,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -438,7 +314,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -455,7 +331,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -472,7 +348,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -489,7 +365,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -506,7 +382,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -563,7 +439,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -580,7 +456,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -597,7 +473,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -614,7 +490,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -631,7 +507,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -648,7 +524,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -705,7 +581,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -722,7 +598,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -739,7 +615,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -756,7 +632,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -773,7 +649,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -790,7 +666,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -840,14 +716,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andLastLoginTimeEqualTo(LocalDateTime value) {
public Criteria andLastLoginTimeEqualTo(Date value) {
addCriterion("last_login_time =", value, "lastLoginTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -857,14 +733,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andLastLoginTimeNotEqualTo(LocalDateTime value) {
public Criteria andLastLoginTimeNotEqualTo(Date value) {
addCriterion("last_login_time <>", value, "lastLoginTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -874,14 +750,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andLastLoginTimeGreaterThan(LocalDateTime value) {
public Criteria andLastLoginTimeGreaterThan(Date value) {
addCriterion("last_login_time >", value, "lastLoginTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -891,14 +767,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andLastLoginTimeGreaterThanOrEqualTo(LocalDateTime value) {
public Criteria andLastLoginTimeGreaterThanOrEqualTo(Date value) {
addCriterion("last_login_time >=", value, "lastLoginTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -908,14 +784,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andLastLoginTimeLessThan(LocalDateTime value) {
public Criteria andLastLoginTimeLessThan(Date value) {
addCriterion("last_login_time <", value, "lastLoginTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -925,14 +801,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andLastLoginTimeLessThanOrEqualTo(LocalDateTime value) {
public Criteria andLastLoginTimeLessThanOrEqualTo(Date value) {
addCriterion("last_login_time <=", value, "lastLoginTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -942,22 +818,22 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andLastLoginTimeIn(List<LocalDateTime> values) {
public Criteria andLastLoginTimeIn(List<Date> values) {
addCriterion("last_login_time in", values, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeNotIn(List<LocalDateTime> values) {
public Criteria andLastLoginTimeNotIn(List<Date> values) {
addCriterion("last_login_time not in", values, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeBetween(LocalDateTime value1, LocalDateTime value2) {
public Criteria andLastLoginTimeBetween(Date value1, Date value2) {
addCriterion("last_login_time between", value1, value2, "lastLoginTime");
return (Criteria) this;
}
public Criteria andLastLoginTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
public Criteria andLastLoginTimeNotBetween(Date value1, Date value2) {
addCriterion("last_login_time not between", value1, value2, "lastLoginTime");
return (Criteria) this;
}
......@@ -979,7 +855,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -996,7 +872,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1013,7 +889,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1030,7 +906,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1047,7 +923,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1064,7 +940,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1114,14 +990,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andAddTimeEqualTo(LocalDateTime value) {
public Criteria andAddTimeEqualTo(Date value) {
addCriterion("add_time =", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1131,14 +1007,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andAddTimeNotEqualTo(LocalDateTime value) {
public Criteria andAddTimeNotEqualTo(Date value) {
addCriterion("add_time <>", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1148,14 +1024,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andAddTimeGreaterThan(LocalDateTime value) {
public Criteria andAddTimeGreaterThan(Date value) {
addCriterion("add_time >", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1165,14 +1041,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andAddTimeGreaterThanOrEqualTo(LocalDateTime value) {
public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
addCriterion("add_time >=", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1182,14 +1058,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andAddTimeLessThan(LocalDateTime value) {
public Criteria andAddTimeLessThan(Date value) {
addCriterion("add_time <", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1199,14 +1075,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andAddTimeLessThanOrEqualTo(LocalDateTime value) {
public Criteria andAddTimeLessThanOrEqualTo(Date value) {
addCriterion("add_time <=", value, "addTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1216,22 +1092,22 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andAddTimeIn(List<LocalDateTime> values) {
public Criteria andAddTimeIn(List<Date> values) {
addCriterion("add_time in", values, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotIn(List<LocalDateTime> values) {
public Criteria andAddTimeNotIn(List<Date> values) {
addCriterion("add_time not in", values, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeBetween(LocalDateTime value1, LocalDateTime value2) {
public Criteria andAddTimeBetween(Date value1, Date value2) {
addCriterion("add_time between", value1, value2, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
public Criteria andAddTimeNotBetween(Date value1, Date value2) {
addCriterion("add_time not between", value1, value2, "addTime");
return (Criteria) this;
}
......@@ -1246,14 +1122,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1263,14 +1139,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1280,14 +1156,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1297,14 +1173,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1314,14 +1190,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(LocalDateTime value) {
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1331,14 +1207,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1348,22 +1224,22 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<LocalDateTime> values) {
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<LocalDateTime> values) {
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
......@@ -1385,7 +1261,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1402,7 +1278,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1419,7 +1295,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1436,7 +1312,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1453,7 +1329,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1470,7 +1346,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1510,14 +1386,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andRoleIdsEqualTo(Integer[] value) {
addRoleIdsCriterion("role_ids =", value, "roleIds");
public Criteria andRoleIdsEqualTo(String value) {
addCriterion("role_ids =", value, "roleIds");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1527,14 +1403,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andRoleIdsNotEqualTo(Integer[] value) {
addRoleIdsCriterion("role_ids <>", value, "roleIds");
public Criteria andRoleIdsNotEqualTo(String value) {
addCriterion("role_ids <>", value, "roleIds");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1544,14 +1420,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andRoleIdsGreaterThan(Integer[] value) {
addRoleIdsCriterion("role_ids >", value, "roleIds");
public Criteria andRoleIdsGreaterThan(String value) {
addCriterion("role_ids >", value, "roleIds");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1561,14 +1437,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andRoleIdsGreaterThanOrEqualTo(Integer[] value) {
addRoleIdsCriterion("role_ids >=", value, "roleIds");
public Criteria andRoleIdsGreaterThanOrEqualTo(String value) {
addCriterion("role_ids >=", value, "roleIds");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1578,14 +1454,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andRoleIdsLessThan(Integer[] value) {
addRoleIdsCriterion("role_ids <", value, "roleIds");
public Criteria andRoleIdsLessThan(String value) {
addCriterion("role_ids <", value, "roleIds");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1595,14 +1471,14 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andRoleIdsLessThanOrEqualTo(Integer[] value) {
addRoleIdsCriterion("role_ids <=", value, "roleIds");
public Criteria andRoleIdsLessThanOrEqualTo(String value) {
addCriterion("role_ids <=", value, "roleIds");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1612,33 +1488,33 @@ public class AdminExample {
return (Criteria) this;
}
public Criteria andRoleIdsLike(Integer[] value) {
addRoleIdsCriterion("role_ids like", value, "roleIds");
public Criteria andRoleIdsLike(String value) {
addCriterion("role_ids like", value, "roleIds");
return (Criteria) this;
}
public Criteria andRoleIdsNotLike(Integer[] value) {
addRoleIdsCriterion("role_ids not like", value, "roleIds");
public Criteria andRoleIdsNotLike(String value) {
addCriterion("role_ids not like", value, "roleIds");
return (Criteria) this;
}
public Criteria andRoleIdsIn(List<Integer[]> values) {
addRoleIdsCriterion("role_ids in", values, "roleIds");
public Criteria andRoleIdsIn(List<String> values) {
addCriterion("role_ids in", values, "roleIds");
return (Criteria) this;
}
public Criteria andRoleIdsNotIn(List<Integer[]> values) {
addRoleIdsCriterion("role_ids not in", values, "roleIds");
public Criteria andRoleIdsNotIn(List<String> values) {
addCriterion("role_ids not in", values, "roleIds");
return (Criteria) this;
}
public Criteria andRoleIdsBetween(Integer[] value1, Integer[] value2) {
addRoleIdsCriterion("role_ids between", value1, value2, "roleIds");
public Criteria andRoleIdsBetween(String value1, String value2) {
addCriterion("role_ids between", value1, value2, "roleIds");
return (Criteria) this;
}
public Criteria andRoleIdsNotBetween(Integer[] value1, Integer[] value2) {
addRoleIdsCriterion("role_ids not between", value1, value2, "roleIds");
public Criteria andRoleIdsNotBetween(String value1, String value2) {
addCriterion("role_ids not between", value1, value2, "roleIds");
return (Criteria) this;
}
......@@ -1659,7 +1535,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1676,7 +1552,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1693,7 +1569,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1710,7 +1586,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1727,7 +1603,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1744,7 +1620,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1801,7 +1677,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1818,7 +1694,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1835,7 +1711,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1852,7 +1728,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1869,7 +1745,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1886,7 +1762,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1943,7 +1819,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1960,7 +1836,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1977,7 +1853,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -1994,7 +1870,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2011,7 +1887,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2028,7 +1904,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2069,16 +1945,10 @@ public class AdminExample {
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dts_admin
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table dts_admin
* This field corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2087,7 +1957,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2099,7 +1969,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2110,7 +1980,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2124,7 +1994,7 @@ public class AdminExample {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2135,7 +2005,7 @@ public class AdminExample {
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table dts_admin
* This interface corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2143,7 +2013,7 @@ public class AdminExample {
public interface ICriteriaAdd {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -2152,12 +2022,6 @@ public class AdminExample {
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table dts_admin
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
......
......@@ -11,6 +11,7 @@ import org.springframework.util.StringUtils;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
@Service
......@@ -57,7 +58,7 @@ public class DtsAdminDaoImpl implements DtsAdminDao {
@Override
public int updateById(Admin admin) {
admin.setUpdateTime(LocalDateTime.now());
admin.setUpdateTime(new Date());
return adminMapper.updateByPrimaryKeySelective(admin);
}
......@@ -68,8 +69,9 @@ public class DtsAdminDaoImpl implements DtsAdminDao {
@Override
public void add(Admin admin) {
admin.setAddTime(LocalDateTime.now());
admin.setUpdateTime(LocalDateTime.now());
Date now = new Date();
admin.setAddTime(now);
admin.setUpdateTime(now);
adminMapper.insertSelective(admin);
}
......
......@@ -6,49 +6,19 @@ import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface AdminMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
long countByExample(AdminExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int deleteByExample(AdminExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int insert(Admin record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int insertSelective(Admin record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -57,7 +27,7 @@ public interface AdminMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -66,82 +36,46 @@ public interface AdminMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<Admin> selectByExampleSelective(@Param("example") AdminExample example, @Param("selective") Admin.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
List<Admin> selectByExample(AdminExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Admin selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") Admin.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
Admin selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Admin selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") Admin record, @Param("example") AdminExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int updateByExample(@Param("record") Admin record, @Param("example") AdminExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(Admin record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
*
* @mbg.generated
*/
int updateByPrimaryKey(Admin record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......@@ -150,7 +84,7 @@ public interface AdminMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_admin
* This method corresponds to the database table admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
......
......@@ -2,10 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.wwdz.ch.db.mapper.AdminMapper">
<resultMap id="BaseResultMap" type="com.wwdz.ch.db.domain.Admin">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="username" jdbcType="VARCHAR" property="username" />
<result column="password" jdbcType="VARCHAR" property="password" />
......@@ -15,16 +11,12 @@
<result column="add_time" jdbcType="TIMESTAMP" property="addTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="deleted" jdbcType="BIT" property="deleted" />
<result column="role_ids" jdbcType="VARCHAR" property="roleIds" typeHandler="com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler" />
<result column="role_ids" jdbcType="VARCHAR" property="roleIds" />
<result column="desc" jdbcType="VARCHAR" property="desc" />
<result column="tel" jdbcType="VARCHAR" property="tel" />
<result column="mail" jdbcType="VARCHAR" property="mail" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
......@@ -48,35 +40,12 @@
</when>
</choose>
</foreach>
<foreach collection="criteria.roleIdsCriteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler} and #{criterion.secondValue,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
......@@ -100,47 +69,21 @@
</when>
</choose>
</foreach>
<foreach collection="criteria.roleIdsCriteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler} and #{criterion.secondValue,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, username, `password`, last_login_ip, last_login_time, avatar, add_time, update_time,
deleted, role_ids, `desc`, tel, mail
</sql>
<select id="selectByExample" parameterType="com.wwdz.ch.db.domain.AdminExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
'true' as QUERYID,
<include refid="Base_Column_List" />
from admin
<if test="_parameter != null">
......@@ -157,6 +100,7 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if test="example.distinct">
distinct
</if>
......@@ -180,10 +124,6 @@
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from admin
......@@ -195,10 +135,6 @@
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from admin
......@@ -235,28 +171,16 @@
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from admin
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.wwdz.ch.db.domain.AdminExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from admin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.wwdz.ch.db.domain.Admin">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
......@@ -266,14 +190,10 @@
`desc`, tel, mail)
values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{lastLoginIp,jdbcType=VARCHAR},
#{lastLoginTime,jdbcType=TIMESTAMP}, #{avatar,jdbcType=VARCHAR}, #{addTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT}, #{roleIds,jdbcType=VARCHAR,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler},
#{updateTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=BIT}, #{roleIds,jdbcType=VARCHAR},
#{desc,jdbcType=VARCHAR}, #{tel,jdbcType=VARCHAR}, #{mail,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.Admin">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
......@@ -342,7 +262,7 @@
#{deleted,jdbcType=BIT},
</if>
<if test="roleIds != null">
#{roleIds,jdbcType=VARCHAR,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler},
#{roleIds,jdbcType=VARCHAR},
</if>
<if test="desc != null">
#{desc,jdbcType=VARCHAR},
......@@ -356,20 +276,12 @@
</trim>
</insert>
<select id="countByExample" parameterType="com.wwdz.ch.db.domain.AdminExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from admin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update admin
<set>
<if test="record.id != null">
......@@ -400,7 +312,7 @@
deleted = #{record.deleted,jdbcType=BIT},
</if>
<if test="record.roleIds != null">
role_ids = #{record.roleIds,jdbcType=VARCHAR,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler},
role_ids = #{record.roleIds,jdbcType=VARCHAR},
</if>
<if test="record.desc != null">
`desc` = #{record.desc,jdbcType=VARCHAR},
......@@ -417,10 +329,6 @@
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update admin
set id = #{record.id,jdbcType=INTEGER},
username = #{record.username,jdbcType=VARCHAR},
......@@ -431,7 +339,7 @@
add_time = #{record.addTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
deleted = #{record.deleted,jdbcType=BIT},
role_ids = #{record.roleIds,jdbcType=VARCHAR,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler},
role_ids = #{record.roleIds,jdbcType=VARCHAR},
`desc` = #{record.desc,jdbcType=VARCHAR},
tel = #{record.tel,jdbcType=VARCHAR},
mail = #{record.mail,jdbcType=VARCHAR}
......@@ -440,10 +348,6 @@
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.wwdz.ch.db.domain.Admin">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update admin
<set>
<if test="username != null">
......@@ -471,7 +375,7 @@
deleted = #{deleted,jdbcType=BIT},
</if>
<if test="roleIds != null">
role_ids = #{roleIds,jdbcType=VARCHAR,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler},
role_ids = #{roleIds,jdbcType=VARCHAR},
</if>
<if test="desc != null">
`desc` = #{desc,jdbcType=VARCHAR},
......@@ -486,10 +390,6 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.wwdz.ch.db.domain.Admin">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update admin
set username = #{username,jdbcType=VARCHAR},
`password` = #{password,jdbcType=VARCHAR},
......@@ -499,7 +399,7 @@
add_time = #{addTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
deleted = #{deleted,jdbcType=BIT},
role_ids = #{roleIds,jdbcType=VARCHAR,typeHandler=com.wwdz.ch.db.mybatis.JsonIntegerArrayTypeHandler},
role_ids = #{roleIds,jdbcType=VARCHAR},
`desc` = #{desc,jdbcType=VARCHAR},
tel = #{tel,jdbcType=VARCHAR},
mail = #{mail,jdbcType=VARCHAR}
......@@ -512,6 +412,7 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include refid="Base_Column_List" />
from admin
<if test="_parameter != null">
......@@ -529,6 +430,7 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when test="selective != null and selective.length &gt; 0">
<foreach collection="selective" item="column" separator=",">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment