diff --git a/src/main/java/com/hai/dao/SecOperationLogMapper.java b/src/main/java/com/hai/dao/SecOperationLogMapper.java deleted file mode 100644 index d567271e..00000000 --- a/src/main/java/com/hai/dao/SecOperationLogMapper.java +++ /dev/null @@ -1,110 +0,0 @@ -package com.hai.dao; - -import com.hai.entity.SecOperationLog; -import com.hai.entity.SecOperationLogExample; -import java.util.List; -import org.apache.ibatis.annotations.Delete; -import org.apache.ibatis.annotations.DeleteProvider; -import org.apache.ibatis.annotations.Insert; -import org.apache.ibatis.annotations.InsertProvider; -import org.apache.ibatis.annotations.Options; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Result; -import org.apache.ibatis.annotations.Results; -import org.apache.ibatis.annotations.Select; -import org.apache.ibatis.annotations.SelectProvider; -import org.apache.ibatis.annotations.Update; -import org.apache.ibatis.annotations.UpdateProvider; -import org.apache.ibatis.type.JdbcType; -import org.springframework.stereotype.Repository; - -/** - * - * 代码由工具生成,请勿修改!!! - * 如果需要扩展请在其父类进行扩展 - * - **/ -@Repository -public interface SecOperationLogMapper extends SecOperationLogMapperExt { - @SelectProvider(type=SecOperationLogSqlProvider.class, method="countByExample") - long countByExample(SecOperationLogExample example); - - @DeleteProvider(type=SecOperationLogSqlProvider.class, method="deleteByExample") - int deleteByExample(SecOperationLogExample example); - - @Delete({ - "delete from sec_operation_log", - "where id = #{id,jdbcType=BIGINT}" - }) - int deleteByPrimaryKey(Long id); - - @Insert({ - "insert into sec_operation_log (ip, `module`, ", - "description, content, ", - "operation_time, operation_id, ", - "operation_name)", - "values (#{ip,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR}, ", - "#{description,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, ", - "#{operationTime,jdbcType=TIMESTAMP}, #{operationId,jdbcType=BIGINT}, ", - "#{operationName,jdbcType=VARCHAR})" - }) - @Options(useGeneratedKeys=true,keyProperty="id") - int insert(SecOperationLog record); - - @InsertProvider(type=SecOperationLogSqlProvider.class, method="insertSelective") - @Options(useGeneratedKeys=true,keyProperty="id") - int insertSelective(SecOperationLog record); - - @SelectProvider(type=SecOperationLogSqlProvider.class, method="selectByExample") - @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), - @Result(column="ip", property="ip", jdbcType=JdbcType.VARCHAR), - @Result(column="module", property="module", jdbcType=JdbcType.VARCHAR), - @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR), - @Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), - @Result(column="operation_time", property="operationTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="operation_id", property="operationId", jdbcType=JdbcType.BIGINT), - @Result(column="operation_name", property="operationName", jdbcType=JdbcType.VARCHAR) - }) - List selectByExample(SecOperationLogExample example); - - @Select({ - "select", - "id, ip, `module`, description, content, operation_time, operation_id, operation_name", - "from sec_operation_log", - "where id = #{id,jdbcType=BIGINT}" - }) - @Results({ - @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), - @Result(column="ip", property="ip", jdbcType=JdbcType.VARCHAR), - @Result(column="module", property="module", jdbcType=JdbcType.VARCHAR), - @Result(column="description", property="description", jdbcType=JdbcType.VARCHAR), - @Result(column="content", property="content", jdbcType=JdbcType.VARCHAR), - @Result(column="operation_time", property="operationTime", jdbcType=JdbcType.TIMESTAMP), - @Result(column="operation_id", property="operationId", jdbcType=JdbcType.BIGINT), - @Result(column="operation_name", property="operationName", jdbcType=JdbcType.VARCHAR) - }) - SecOperationLog selectByPrimaryKey(Long id); - - @UpdateProvider(type=SecOperationLogSqlProvider.class, method="updateByExampleSelective") - int updateByExampleSelective(@Param("record") SecOperationLog record, @Param("example") SecOperationLogExample example); - - @UpdateProvider(type=SecOperationLogSqlProvider.class, method="updateByExample") - int updateByExample(@Param("record") SecOperationLog record, @Param("example") SecOperationLogExample example); - - @UpdateProvider(type=SecOperationLogSqlProvider.class, method="updateByPrimaryKeySelective") - int updateByPrimaryKeySelective(SecOperationLog record); - - @Update({ - "update sec_operation_log", - "set ip = #{ip,jdbcType=VARCHAR},", - "`module` = #{module,jdbcType=VARCHAR},", - "description = #{description,jdbcType=VARCHAR},", - "content = #{content,jdbcType=VARCHAR},", - "operation_time = #{operationTime,jdbcType=TIMESTAMP},", - "operation_id = #{operationId,jdbcType=BIGINT},", - "operation_name = #{operationName,jdbcType=VARCHAR}", - "where id = #{id,jdbcType=BIGINT}" - }) - int updateByPrimaryKey(SecOperationLog record); -} \ No newline at end of file diff --git a/src/main/java/com/hai/dao/SecOperationLogMapperExt.java b/src/main/java/com/hai/dao/SecOperationLogMapperExt.java deleted file mode 100644 index 68f88458..00000000 --- a/src/main/java/com/hai/dao/SecOperationLogMapperExt.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.hai.dao; - -/** - * mapper扩展类 - */ -public interface SecOperationLogMapperExt { -} \ No newline at end of file diff --git a/src/main/java/com/hai/dao/SecOperationLogSqlProvider.java b/src/main/java/com/hai/dao/SecOperationLogSqlProvider.java deleted file mode 100644 index 8804a85b..00000000 --- a/src/main/java/com/hai/dao/SecOperationLogSqlProvider.java +++ /dev/null @@ -1,276 +0,0 @@ -package com.hai.dao; - -import com.hai.entity.SecOperationLog; -import com.hai.entity.SecOperationLogExample.Criteria; -import com.hai.entity.SecOperationLogExample.Criterion; -import com.hai.entity.SecOperationLogExample; -import java.util.List; -import java.util.Map; -import org.apache.ibatis.jdbc.SQL; - -public class SecOperationLogSqlProvider { - - public String countByExample(SecOperationLogExample example) { - SQL sql = new SQL(); - sql.SELECT("count(*)").FROM("sec_operation_log"); - applyWhere(sql, example, false); - return sql.toString(); - } - - public String deleteByExample(SecOperationLogExample example) { - SQL sql = new SQL(); - sql.DELETE_FROM("sec_operation_log"); - applyWhere(sql, example, false); - return sql.toString(); - } - - public String insertSelective(SecOperationLog record) { - SQL sql = new SQL(); - sql.INSERT_INTO("sec_operation_log"); - - if (record.getIp() != null) { - sql.VALUES("ip", "#{ip,jdbcType=VARCHAR}"); - } - - if (record.getModule() != null) { - sql.VALUES("`module`", "#{module,jdbcType=VARCHAR}"); - } - - if (record.getDescription() != null) { - sql.VALUES("description", "#{description,jdbcType=VARCHAR}"); - } - - if (record.getContent() != null) { - sql.VALUES("content", "#{content,jdbcType=VARCHAR}"); - } - - if (record.getOperationTime() != null) { - sql.VALUES("operation_time", "#{operationTime,jdbcType=TIMESTAMP}"); - } - - if (record.getOperationId() != null) { - sql.VALUES("operation_id", "#{operationId,jdbcType=BIGINT}"); - } - - if (record.getOperationName() != null) { - sql.VALUES("operation_name", "#{operationName,jdbcType=VARCHAR}"); - } - - return sql.toString(); - } - - public String selectByExample(SecOperationLogExample example) { - SQL sql = new SQL(); - if (example != null && example.isDistinct()) { - sql.SELECT_DISTINCT("id"); - } else { - sql.SELECT("id"); - } - sql.SELECT("ip"); - sql.SELECT("`module`"); - sql.SELECT("description"); - sql.SELECT("content"); - sql.SELECT("operation_time"); - sql.SELECT("operation_id"); - sql.SELECT("operation_name"); - sql.FROM("sec_operation_log"); - applyWhere(sql, example, false); - - if (example != null && example.getOrderByClause() != null) { - sql.ORDER_BY(example.getOrderByClause()); - } - - return sql.toString(); - } - - public String updateByExampleSelective(Map parameter) { - SecOperationLog record = (SecOperationLog) parameter.get("record"); - SecOperationLogExample example = (SecOperationLogExample) parameter.get("example"); - - SQL sql = new SQL(); - sql.UPDATE("sec_operation_log"); - - if (record.getId() != null) { - sql.SET("id = #{record.id,jdbcType=BIGINT}"); - } - - if (record.getIp() != null) { - sql.SET("ip = #{record.ip,jdbcType=VARCHAR}"); - } - - if (record.getModule() != null) { - sql.SET("`module` = #{record.module,jdbcType=VARCHAR}"); - } - - if (record.getDescription() != null) { - sql.SET("description = #{record.description,jdbcType=VARCHAR}"); - } - - if (record.getContent() != null) { - sql.SET("content = #{record.content,jdbcType=VARCHAR}"); - } - - if (record.getOperationTime() != null) { - sql.SET("operation_time = #{record.operationTime,jdbcType=TIMESTAMP}"); - } - - if (record.getOperationId() != null) { - sql.SET("operation_id = #{record.operationId,jdbcType=BIGINT}"); - } - - if (record.getOperationName() != null) { - sql.SET("operation_name = #{record.operationName,jdbcType=VARCHAR}"); - } - - applyWhere(sql, example, true); - return sql.toString(); - } - - public String updateByExample(Map parameter) { - SQL sql = new SQL(); - sql.UPDATE("sec_operation_log"); - - sql.SET("id = #{record.id,jdbcType=BIGINT}"); - sql.SET("ip = #{record.ip,jdbcType=VARCHAR}"); - sql.SET("`module` = #{record.module,jdbcType=VARCHAR}"); - sql.SET("description = #{record.description,jdbcType=VARCHAR}"); - sql.SET("content = #{record.content,jdbcType=VARCHAR}"); - sql.SET("operation_time = #{record.operationTime,jdbcType=TIMESTAMP}"); - sql.SET("operation_id = #{record.operationId,jdbcType=BIGINT}"); - sql.SET("operation_name = #{record.operationName,jdbcType=VARCHAR}"); - - SecOperationLogExample example = (SecOperationLogExample) parameter.get("example"); - applyWhere(sql, example, true); - return sql.toString(); - } - - public String updateByPrimaryKeySelective(SecOperationLog record) { - SQL sql = new SQL(); - sql.UPDATE("sec_operation_log"); - - if (record.getIp() != null) { - sql.SET("ip = #{ip,jdbcType=VARCHAR}"); - } - - if (record.getModule() != null) { - sql.SET("`module` = #{module,jdbcType=VARCHAR}"); - } - - if (record.getDescription() != null) { - sql.SET("description = #{description,jdbcType=VARCHAR}"); - } - - if (record.getContent() != null) { - sql.SET("content = #{content,jdbcType=VARCHAR}"); - } - - if (record.getOperationTime() != null) { - sql.SET("operation_time = #{operationTime,jdbcType=TIMESTAMP}"); - } - - if (record.getOperationId() != null) { - sql.SET("operation_id = #{operationId,jdbcType=BIGINT}"); - } - - if (record.getOperationName() != null) { - sql.SET("operation_name = #{operationName,jdbcType=VARCHAR}"); - } - - sql.WHERE("id = #{id,jdbcType=BIGINT}"); - - return sql.toString(); - } - - protected void applyWhere(SQL sql, SecOperationLogExample example, boolean includeExamplePhrase) { - if (example == null) { - return; - } - - String parmPhrase1; - String parmPhrase1_th; - String parmPhrase2; - String parmPhrase2_th; - String parmPhrase3; - String parmPhrase3_th; - if (includeExamplePhrase) { - parmPhrase1 = "%s #{example.oredCriteria[%d].allCriteria[%d].value}"; - parmPhrase1_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; - parmPhrase2 = "%s #{example.oredCriteria[%d].allCriteria[%d].value} and #{example.oredCriteria[%d].criteria[%d].secondValue}"; - parmPhrase2_th = "%s #{example.oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{example.oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; - parmPhrase3 = "#{example.oredCriteria[%d].allCriteria[%d].value[%d]}"; - parmPhrase3_th = "#{example.oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; - } else { - parmPhrase1 = "%s #{oredCriteria[%d].allCriteria[%d].value}"; - parmPhrase1_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s}"; - parmPhrase2 = "%s #{oredCriteria[%d].allCriteria[%d].value} and #{oredCriteria[%d].criteria[%d].secondValue}"; - parmPhrase2_th = "%s #{oredCriteria[%d].allCriteria[%d].value,typeHandler=%s} and #{oredCriteria[%d].criteria[%d].secondValue,typeHandler=%s}"; - parmPhrase3 = "#{oredCriteria[%d].allCriteria[%d].value[%d]}"; - parmPhrase3_th = "#{oredCriteria[%d].allCriteria[%d].value[%d],typeHandler=%s}"; - } - - StringBuilder sb = new StringBuilder(); - List oredCriteria = example.getOredCriteria(); - boolean firstCriteria = true; - for (int i = 0; i < oredCriteria.size(); i++) { - Criteria criteria = oredCriteria.get(i); - if (criteria.isValid()) { - if (firstCriteria) { - firstCriteria = false; - } else { - sb.append(" or "); - } - - sb.append('('); - List criterions = criteria.getAllCriteria(); - boolean firstCriterion = true; - for (int j = 0; j < criterions.size(); j++) { - Criterion criterion = criterions.get(j); - if (firstCriterion) { - firstCriterion = false; - } else { - sb.append(" and "); - } - - if (criterion.isNoValue()) { - sb.append(criterion.getCondition()); - } else if (criterion.isSingleValue()) { - if (criterion.getTypeHandler() == null) { - sb.append(String.format(parmPhrase1, criterion.getCondition(), i, j)); - } else { - sb.append(String.format(parmPhrase1_th, criterion.getCondition(), i, j,criterion.getTypeHandler())); - } - } else if (criterion.isBetweenValue()) { - if (criterion.getTypeHandler() == null) { - sb.append(String.format(parmPhrase2, criterion.getCondition(), i, j, i, j)); - } else { - sb.append(String.format(parmPhrase2_th, criterion.getCondition(), i, j, criterion.getTypeHandler(), i, j, criterion.getTypeHandler())); - } - } else if (criterion.isListValue()) { - sb.append(criterion.getCondition()); - sb.append(" ("); - List listItems = (List) criterion.getValue(); - boolean comma = false; - for (int k = 0; k < listItems.size(); k++) { - if (comma) { - sb.append(", "); - } else { - comma = true; - } - if (criterion.getTypeHandler() == null) { - sb.append(String.format(parmPhrase3, i, j, k)); - } else { - sb.append(String.format(parmPhrase3_th, i, j, k, criterion.getTypeHandler())); - } - } - sb.append(')'); - } - } - sb.append(')'); - } - } - - if (sb.length() > 0) { - sql.WHERE(sb.toString()); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/hai/entity/SecOperationLog.java b/src/main/java/com/hai/entity/SecOperationLog.java deleted file mode 100644 index 6e9b0824..00000000 --- a/src/main/java/com/hai/entity/SecOperationLog.java +++ /dev/null @@ -1,177 +0,0 @@ -package com.hai.entity; - -import java.io.Serializable; -import java.util.Date; - -/** - * sec_operation_log - * @author - */ -/** - * - * 代码由工具生成 - * - **/ -public class SecOperationLog implements Serializable { - /** - * 主键 - */ - private Long id; - - /** - * ip地址 - */ - private String ip; - - /** - * 模块 - */ - private String module; - - /** - * 操作 - */ - private String description; - - /** - * 详细内容 - */ - private String content; - - /** - * 操作时间 - */ - private Date operationTime; - - /** - * 操作id - */ - private Long operationId; - - /** - * 操作用户名称 - */ - private String operationName; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getIp() { - return ip; - } - - public void setIp(String ip) { - this.ip = ip; - } - - public String getModule() { - return module; - } - - public void setModule(String module) { - this.module = module; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - - public Date getOperationTime() { - return operationTime; - } - - public void setOperationTime(Date operationTime) { - this.operationTime = operationTime; - } - - public Long getOperationId() { - return operationId; - } - - public void setOperationId(Long operationId) { - this.operationId = operationId; - } - - public String getOperationName() { - return operationName; - } - - public void setOperationName(String operationName) { - this.operationName = operationName; - } - - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - SecOperationLog other = (SecOperationLog) that; - return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) - && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp())) - && (this.getModule() == null ? other.getModule() == null : this.getModule().equals(other.getModule())) - && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())) - && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent())) - && (this.getOperationTime() == null ? other.getOperationTime() == null : this.getOperationTime().equals(other.getOperationTime())) - && (this.getOperationId() == null ? other.getOperationId() == null : this.getOperationId().equals(other.getOperationId())) - && (this.getOperationName() == null ? other.getOperationName() == null : this.getOperationName().equals(other.getOperationName())); - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); - result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode()); - result = prime * result + ((getModule() == null) ? 0 : getModule().hashCode()); - result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode()); - result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode()); - result = prime * result + ((getOperationTime() == null) ? 0 : getOperationTime().hashCode()); - result = prime * result + ((getOperationId() == null) ? 0 : getOperationId().hashCode()); - result = prime * result + ((getOperationName() == null) ? 0 : getOperationName().hashCode()); - return result; - } - - @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(", ip=").append(ip); - sb.append(", module=").append(module); - sb.append(", description=").append(description); - sb.append(", content=").append(content); - sb.append(", operationTime=").append(operationTime); - sb.append(", operationId=").append(operationId); - sb.append(", operationName=").append(operationName); - sb.append(", serialVersionUID=").append(serialVersionUID); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file diff --git a/src/main/java/com/hai/entity/SecOperationLogExample.java b/src/main/java/com/hai/entity/SecOperationLogExample.java deleted file mode 100644 index b04e1c9d..00000000 --- a/src/main/java/com/hai/entity/SecOperationLogExample.java +++ /dev/null @@ -1,753 +0,0 @@ -package com.hai.entity; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class SecOperationLogExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - private Integer limit; - - private Long offset; - - public SecOperationLogExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - public void setLimit(Integer limit) { - this.limit = limit; - } - - public Integer getLimit() { - return limit; - } - - public void setOffset(Long offset) { - this.offset = offset; - } - - public Long getOffset() { - return offset; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIpIsNull() { - addCriterion("ip is null"); - return (Criteria) this; - } - - public Criteria andIpIsNotNull() { - addCriterion("ip is not null"); - return (Criteria) this; - } - - public Criteria andIpEqualTo(String value) { - addCriterion("ip =", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotEqualTo(String value) { - addCriterion("ip <>", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpGreaterThan(String value) { - addCriterion("ip >", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpGreaterThanOrEqualTo(String value) { - addCriterion("ip >=", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLessThan(String value) { - addCriterion("ip <", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLessThanOrEqualTo(String value) { - addCriterion("ip <=", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLike(String value) { - addCriterion("ip like", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotLike(String value) { - addCriterion("ip not like", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpIn(List values) { - addCriterion("ip in", values, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotIn(List values) { - addCriterion("ip not in", values, "ip"); - return (Criteria) this; - } - - public Criteria andIpBetween(String value1, String value2) { - addCriterion("ip between", value1, value2, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotBetween(String value1, String value2) { - addCriterion("ip not between", value1, value2, "ip"); - return (Criteria) this; - } - - public Criteria andModuleIsNull() { - addCriterion("`module` is null"); - return (Criteria) this; - } - - public Criteria andModuleIsNotNull() { - addCriterion("`module` is not null"); - return (Criteria) this; - } - - public Criteria andModuleEqualTo(String value) { - addCriterion("`module` =", value, "module"); - return (Criteria) this; - } - - public Criteria andModuleNotEqualTo(String value) { - addCriterion("`module` <>", value, "module"); - return (Criteria) this; - } - - public Criteria andModuleGreaterThan(String value) { - addCriterion("`module` >", value, "module"); - return (Criteria) this; - } - - public Criteria andModuleGreaterThanOrEqualTo(String value) { - addCriterion("`module` >=", value, "module"); - return (Criteria) this; - } - - public Criteria andModuleLessThan(String value) { - addCriterion("`module` <", value, "module"); - return (Criteria) this; - } - - public Criteria andModuleLessThanOrEqualTo(String value) { - addCriterion("`module` <=", value, "module"); - return (Criteria) this; - } - - public Criteria andModuleLike(String value) { - addCriterion("`module` like", value, "module"); - return (Criteria) this; - } - - public Criteria andModuleNotLike(String value) { - addCriterion("`module` not like", value, "module"); - return (Criteria) this; - } - - public Criteria andModuleIn(List values) { - addCriterion("`module` in", values, "module"); - return (Criteria) this; - } - - public Criteria andModuleNotIn(List values) { - addCriterion("`module` not in", values, "module"); - return (Criteria) this; - } - - public Criteria andModuleBetween(String value1, String value2) { - addCriterion("`module` between", value1, value2, "module"); - return (Criteria) this; - } - - public Criteria andModuleNotBetween(String value1, String value2) { - addCriterion("`module` not between", value1, value2, "module"); - return (Criteria) this; - } - - public Criteria andDescriptionIsNull() { - addCriterion("description is null"); - return (Criteria) this; - } - - public Criteria andDescriptionIsNotNull() { - addCriterion("description is not null"); - return (Criteria) this; - } - - public Criteria andDescriptionEqualTo(String value) { - addCriterion("description =", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotEqualTo(String value) { - addCriterion("description <>", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionGreaterThan(String value) { - addCriterion("description >", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionGreaterThanOrEqualTo(String value) { - addCriterion("description >=", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLessThan(String value) { - addCriterion("description <", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLessThanOrEqualTo(String value) { - addCriterion("description <=", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionLike(String value) { - addCriterion("description like", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotLike(String value) { - addCriterion("description not like", value, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionIn(List values) { - addCriterion("description in", values, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotIn(List values) { - addCriterion("description not in", values, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionBetween(String value1, String value2) { - addCriterion("description between", value1, value2, "description"); - return (Criteria) this; - } - - public Criteria andDescriptionNotBetween(String value1, String value2) { - addCriterion("description not between", value1, value2, "description"); - return (Criteria) this; - } - - public Criteria andContentIsNull() { - addCriterion("content is null"); - return (Criteria) this; - } - - public Criteria andContentIsNotNull() { - addCriterion("content is not null"); - return (Criteria) this; - } - - public Criteria andContentEqualTo(String value) { - addCriterion("content =", value, "content"); - return (Criteria) this; - } - - public Criteria andContentNotEqualTo(String value) { - addCriterion("content <>", value, "content"); - return (Criteria) this; - } - - public Criteria andContentGreaterThan(String value) { - addCriterion("content >", value, "content"); - return (Criteria) this; - } - - public Criteria andContentGreaterThanOrEqualTo(String value) { - addCriterion("content >=", value, "content"); - return (Criteria) this; - } - - public Criteria andContentLessThan(String value) { - addCriterion("content <", value, "content"); - return (Criteria) this; - } - - public Criteria andContentLessThanOrEqualTo(String value) { - addCriterion("content <=", value, "content"); - return (Criteria) this; - } - - public Criteria andContentLike(String value) { - addCriterion("content like", value, "content"); - return (Criteria) this; - } - - public Criteria andContentNotLike(String value) { - addCriterion("content not like", value, "content"); - return (Criteria) this; - } - - public Criteria andContentIn(List values) { - addCriterion("content in", values, "content"); - return (Criteria) this; - } - - public Criteria andContentNotIn(List values) { - addCriterion("content not in", values, "content"); - return (Criteria) this; - } - - public Criteria andContentBetween(String value1, String value2) { - addCriterion("content between", value1, value2, "content"); - return (Criteria) this; - } - - public Criteria andContentNotBetween(String value1, String value2) { - addCriterion("content not between", value1, value2, "content"); - return (Criteria) this; - } - - public Criteria andOperationTimeIsNull() { - addCriterion("operation_time is null"); - return (Criteria) this; - } - - public Criteria andOperationTimeIsNotNull() { - addCriterion("operation_time is not null"); - return (Criteria) this; - } - - public Criteria andOperationTimeEqualTo(Date value) { - addCriterion("operation_time =", value, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationTimeNotEqualTo(Date value) { - addCriterion("operation_time <>", value, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationTimeGreaterThan(Date value) { - addCriterion("operation_time >", value, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationTimeGreaterThanOrEqualTo(Date value) { - addCriterion("operation_time >=", value, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationTimeLessThan(Date value) { - addCriterion("operation_time <", value, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationTimeLessThanOrEqualTo(Date value) { - addCriterion("operation_time <=", value, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationTimeIn(List values) { - addCriterion("operation_time in", values, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationTimeNotIn(List values) { - addCriterion("operation_time not in", values, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationTimeBetween(Date value1, Date value2) { - addCriterion("operation_time between", value1, value2, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationTimeNotBetween(Date value1, Date value2) { - addCriterion("operation_time not between", value1, value2, "operationTime"); - return (Criteria) this; - } - - public Criteria andOperationIdIsNull() { - addCriterion("operation_id is null"); - return (Criteria) this; - } - - public Criteria andOperationIdIsNotNull() { - addCriterion("operation_id is not null"); - return (Criteria) this; - } - - public Criteria andOperationIdEqualTo(Long value) { - addCriterion("operation_id =", value, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationIdNotEqualTo(Long value) { - addCriterion("operation_id <>", value, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationIdGreaterThan(Long value) { - addCriterion("operation_id >", value, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationIdGreaterThanOrEqualTo(Long value) { - addCriterion("operation_id >=", value, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationIdLessThan(Long value) { - addCriterion("operation_id <", value, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationIdLessThanOrEqualTo(Long value) { - addCriterion("operation_id <=", value, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationIdIn(List values) { - addCriterion("operation_id in", values, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationIdNotIn(List values) { - addCriterion("operation_id not in", values, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationIdBetween(Long value1, Long value2) { - addCriterion("operation_id between", value1, value2, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationIdNotBetween(Long value1, Long value2) { - addCriterion("operation_id not between", value1, value2, "operationId"); - return (Criteria) this; - } - - public Criteria andOperationNameIsNull() { - addCriterion("operation_name is null"); - return (Criteria) this; - } - - public Criteria andOperationNameIsNotNull() { - addCriterion("operation_name is not null"); - return (Criteria) this; - } - - public Criteria andOperationNameEqualTo(String value) { - addCriterion("operation_name =", value, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameNotEqualTo(String value) { - addCriterion("operation_name <>", value, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameGreaterThan(String value) { - addCriterion("operation_name >", value, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameGreaterThanOrEqualTo(String value) { - addCriterion("operation_name >=", value, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameLessThan(String value) { - addCriterion("operation_name <", value, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameLessThanOrEqualTo(String value) { - addCriterion("operation_name <=", value, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameLike(String value) { - addCriterion("operation_name like", value, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameNotLike(String value) { - addCriterion("operation_name not like", value, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameIn(List values) { - addCriterion("operation_name in", values, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameNotIn(List values) { - addCriterion("operation_name not in", values, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameBetween(String value1, String value2) { - addCriterion("operation_name between", value1, value2, "operationName"); - return (Criteria) this; - } - - public Criteria andOperationNameNotBetween(String value1, String value2) { - addCriterion("operation_name not between", value1, value2, "operationName"); - return (Criteria) this; - } - } - - /** - */ - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file