Commit b4418eed authored by shiyu's avatar shiyu

后台新增用户

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