更新dao

This commit is contained in:
shuzheng 2017-03-14 17:30:47 +08:00
parent 33db6b8826
commit e864473507
4 changed files with 1672 additions and 0 deletions

View File

@ -0,0 +1,36 @@
package com.zheng.upms.dao.mapper;
import com.zheng.upms.dao.model.UpmsLog;
import com.zheng.upms.dao.model.UpmsLogExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UpmsLogMapper {
long countByExample(UpmsLogExample example);
int deleteByExample(UpmsLogExample example);
int deleteByPrimaryKey(Integer logId);
int insert(UpmsLog record);
int insertSelective(UpmsLog record);
List<UpmsLog> selectByExampleWithBLOBs(UpmsLogExample example);
List<UpmsLog> selectByExample(UpmsLogExample example);
UpmsLog selectByPrimaryKey(Integer logId);
int updateByExampleSelective(@Param("record") UpmsLog record, @Param("example") UpmsLogExample example);
int updateByExampleWithBLOBs(@Param("record") UpmsLog record, @Param("example") UpmsLogExample example);
int updateByExample(@Param("record") UpmsLog record, @Param("example") UpmsLogExample example);
int updateByPrimaryKeySelective(UpmsLog record);
int updateByPrimaryKeyWithBLOBs(UpmsLog record);
int updateByPrimaryKey(UpmsLog record);
}

View File

@ -0,0 +1,401 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zheng.upms.dao.mapper.UpmsLogMapper">
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsLog">
<id column="log_id" jdbcType="INTEGER" property="logId" />
<result column="description" jdbcType="VARCHAR" property="description" />
<result column="username" jdbcType="VARCHAR" property="username" />
<result column="start_time" jdbcType="BIGINT" property="startTime" />
<result column="spend_time" jdbcType="INTEGER" property="spendTime" />
<result column="base_path" jdbcType="VARCHAR" property="basePath" />
<result column="uri" jdbcType="VARCHAR" property="uri" />
<result column="url" jdbcType="VARCHAR" property="url" />
<result column="method" jdbcType="VARCHAR" property="method" />
<result column="user_agent" jdbcType="VARCHAR" property="userAgent" />
<result column="ip" jdbcType="VARCHAR" property="ip" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.zheng.upms.dao.model.UpmsLog">
<result column="parameter" jdbcType="LONGVARCHAR" property="parameter" />
<result column="result" jdbcType="LONGVARCHAR" property="result" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
log_id, description, username, start_time, spend_time, base_path, uri, url, method,
user_agent, ip
</sql>
<sql id="Blob_Column_List">
parameter, result
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.zheng.upms.dao.model.UpmsLogExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from upms_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.zheng.upms.dao.model.UpmsLogExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from upms_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
<if test="limit != null">
<if test="offset != null">
limit ${offset}, ${limit}
</if>
<if test="offset == null">
limit ${limit}
</if>
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from upms_log
where log_id = #{logId,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from upms_log
where log_id = #{logId,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.zheng.upms.dao.model.UpmsLogExample">
delete from upms_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsLog">
insert into upms_log (log_id, description, username,
start_time, spend_time, base_path,
uri, url, method, user_agent,
ip, parameter, result
)
values (#{logId,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
#{startTime,jdbcType=BIGINT}, #{spendTime,jdbcType=INTEGER}, #{basePath,jdbcType=VARCHAR},
#{uri,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{method,jdbcType=VARCHAR}, #{userAgent,jdbcType=VARCHAR},
#{ip,jdbcType=VARCHAR}, #{parameter,jdbcType=LONGVARCHAR}, #{result,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsLog">
insert into upms_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="logId != null">
log_id,
</if>
<if test="description != null">
description,
</if>
<if test="username != null">
username,
</if>
<if test="startTime != null">
start_time,
</if>
<if test="spendTime != null">
spend_time,
</if>
<if test="basePath != null">
base_path,
</if>
<if test="uri != null">
uri,
</if>
<if test="url != null">
url,
</if>
<if test="method != null">
method,
</if>
<if test="userAgent != null">
user_agent,
</if>
<if test="ip != null">
ip,
</if>
<if test="parameter != null">
parameter,
</if>
<if test="result != null">
result,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="logId != null">
#{logId,jdbcType=INTEGER},
</if>
<if test="description != null">
#{description,jdbcType=VARCHAR},
</if>
<if test="username != null">
#{username,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
#{startTime,jdbcType=BIGINT},
</if>
<if test="spendTime != null">
#{spendTime,jdbcType=INTEGER},
</if>
<if test="basePath != null">
#{basePath,jdbcType=VARCHAR},
</if>
<if test="uri != null">
#{uri,jdbcType=VARCHAR},
</if>
<if test="url != null">
#{url,jdbcType=VARCHAR},
</if>
<if test="method != null">
#{method,jdbcType=VARCHAR},
</if>
<if test="userAgent != null">
#{userAgent,jdbcType=VARCHAR},
</if>
<if test="ip != null">
#{ip,jdbcType=VARCHAR},
</if>
<if test="parameter != null">
#{parameter,jdbcType=LONGVARCHAR},
</if>
<if test="result != null">
#{result,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.zheng.upms.dao.model.UpmsLogExample" resultType="java.lang.Long">
select count(*) from upms_log
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update upms_log
<set>
<if test="record.logId != null">
log_id = #{record.logId,jdbcType=INTEGER},
</if>
<if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR},
</if>
<if test="record.username != null">
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.startTime != null">
start_time = #{record.startTime,jdbcType=BIGINT},
</if>
<if test="record.spendTime != null">
spend_time = #{record.spendTime,jdbcType=INTEGER},
</if>
<if test="record.basePath != null">
base_path = #{record.basePath,jdbcType=VARCHAR},
</if>
<if test="record.uri != null">
uri = #{record.uri,jdbcType=VARCHAR},
</if>
<if test="record.url != null">
url = #{record.url,jdbcType=VARCHAR},
</if>
<if test="record.method != null">
method = #{record.method,jdbcType=VARCHAR},
</if>
<if test="record.userAgent != null">
user_agent = #{record.userAgent,jdbcType=VARCHAR},
</if>
<if test="record.ip != null">
ip = #{record.ip,jdbcType=VARCHAR},
</if>
<if test="record.parameter != null">
parameter = #{record.parameter,jdbcType=LONGVARCHAR},
</if>
<if test="record.result != null">
result = #{record.result,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update upms_log
set log_id = #{record.logId,jdbcType=INTEGER},
description = #{record.description,jdbcType=VARCHAR},
username = #{record.username,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=BIGINT},
spend_time = #{record.spendTime,jdbcType=INTEGER},
base_path = #{record.basePath,jdbcType=VARCHAR},
uri = #{record.uri,jdbcType=VARCHAR},
url = #{record.url,jdbcType=VARCHAR},
method = #{record.method,jdbcType=VARCHAR},
user_agent = #{record.userAgent,jdbcType=VARCHAR},
ip = #{record.ip,jdbcType=VARCHAR},
parameter = #{record.parameter,jdbcType=LONGVARCHAR},
result = #{record.result,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update upms_log
set log_id = #{record.logId,jdbcType=INTEGER},
description = #{record.description,jdbcType=VARCHAR},
username = #{record.username,jdbcType=VARCHAR},
start_time = #{record.startTime,jdbcType=BIGINT},
spend_time = #{record.spendTime,jdbcType=INTEGER},
base_path = #{record.basePath,jdbcType=VARCHAR},
uri = #{record.uri,jdbcType=VARCHAR},
url = #{record.url,jdbcType=VARCHAR},
method = #{record.method,jdbcType=VARCHAR},
user_agent = #{record.userAgent,jdbcType=VARCHAR},
ip = #{record.ip,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.zheng.upms.dao.model.UpmsLog">
update upms_log
<set>
<if test="description != null">
description = #{description,jdbcType=VARCHAR},
</if>
<if test="username != null">
username = #{username,jdbcType=VARCHAR},
</if>
<if test="startTime != null">
start_time = #{startTime,jdbcType=BIGINT},
</if>
<if test="spendTime != null">
spend_time = #{spendTime,jdbcType=INTEGER},
</if>
<if test="basePath != null">
base_path = #{basePath,jdbcType=VARCHAR},
</if>
<if test="uri != null">
uri = #{uri,jdbcType=VARCHAR},
</if>
<if test="url != null">
url = #{url,jdbcType=VARCHAR},
</if>
<if test="method != null">
method = #{method,jdbcType=VARCHAR},
</if>
<if test="userAgent != null">
user_agent = #{userAgent,jdbcType=VARCHAR},
</if>
<if test="ip != null">
ip = #{ip,jdbcType=VARCHAR},
</if>
<if test="parameter != null">
parameter = #{parameter,jdbcType=LONGVARCHAR},
</if>
<if test="result != null">
result = #{result,jdbcType=LONGVARCHAR},
</if>
</set>
where log_id = #{logId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.zheng.upms.dao.model.UpmsLog">
update upms_log
set description = #{description,jdbcType=VARCHAR},
username = #{username,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=BIGINT},
spend_time = #{spendTime,jdbcType=INTEGER},
base_path = #{basePath,jdbcType=VARCHAR},
uri = #{uri,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
method = #{method,jdbcType=VARCHAR},
user_agent = #{userAgent,jdbcType=VARCHAR},
ip = #{ip,jdbcType=VARCHAR},
parameter = #{parameter,jdbcType=LONGVARCHAR},
result = #{result,jdbcType=LONGVARCHAR}
where log_id = #{logId,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsLog">
update upms_log
set description = #{description,jdbcType=VARCHAR},
username = #{username,jdbcType=VARCHAR},
start_time = #{startTime,jdbcType=BIGINT},
spend_time = #{spendTime,jdbcType=INTEGER},
base_path = #{basePath,jdbcType=VARCHAR},
uri = #{uri,jdbcType=VARCHAR},
url = #{url,jdbcType=VARCHAR},
method = #{method,jdbcType=VARCHAR},
user_agent = #{userAgent,jdbcType=VARCHAR},
ip = #{ip,jdbcType=VARCHAR}
where log_id = #{logId,jdbcType=INTEGER}
</update>
<cache type="org.mybatis.caches.ehcache.LoggingEhcache" />
</mapper>

View File

@ -0,0 +1,272 @@
package com.zheng.upms.dao.model;
import java.io.Serializable;
public class UpmsLog implements Serializable {
/**
* 编号
*
* @mbg.generated
*/
private Integer logId;
/**
* 操作描述
*
* @mbg.generated
*/
private String description;
/**
* 操作用户
*
* @mbg.generated
*/
private String username;
/**
* 操作时间
*
* @mbg.generated
*/
private Long startTime;
/**
* 消耗时间
*
* @mbg.generated
*/
private Integer spendTime;
/**
* 根路径
*
* @mbg.generated
*/
private String basePath;
/**
* URI
*
* @mbg.generated
*/
private String uri;
/**
* URL
*
* @mbg.generated
*/
private String url;
/**
* 请求类型
*
* @mbg.generated
*/
private String method;
/**
* 用户标识
*
* @mbg.generated
*/
private String userAgent;
/**
* IP地址
*
* @mbg.generated
*/
private String ip;
/**
* 请求参数
*
* @mbg.generated
*/
private String parameter;
/**
* 响应结果
*
* @mbg.generated
*/
private String result;
private static final long serialVersionUID = 1L;
public Integer getLogId() {
return logId;
}
public void setLogId(Integer logId) {
this.logId = logId;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public Long getStartTime() {
return startTime;
}
public void setStartTime(Long startTime) {
this.startTime = startTime;
}
public Integer getSpendTime() {
return spendTime;
}
public void setSpendTime(Integer spendTime) {
this.spendTime = spendTime;
}
public String getBasePath() {
return basePath;
}
public void setBasePath(String basePath) {
this.basePath = basePath;
}
public String getUri() {
return uri;
}
public void setUri(String uri) {
this.uri = uri;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getUserAgent() {
return userAgent;
}
public void setUserAgent(String userAgent) {
this.userAgent = userAgent;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getParameter() {
return parameter;
}
public void setParameter(String parameter) {
this.parameter = parameter;
}
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", logId=").append(logId);
sb.append(", description=").append(description);
sb.append(", username=").append(username);
sb.append(", startTime=").append(startTime);
sb.append(", spendTime=").append(spendTime);
sb.append(", basePath=").append(basePath);
sb.append(", uri=").append(uri);
sb.append(", url=").append(url);
sb.append(", method=").append(method);
sb.append(", userAgent=").append(userAgent);
sb.append(", ip=").append(ip);
sb.append(", parameter=").append(parameter);
sb.append(", result=").append(result);
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;
}
UpmsLog other = (UpmsLog) that;
return (this.getLogId() == null ? other.getLogId() == null : this.getLogId().equals(other.getLogId()))
&& (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
&& (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
&& (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
&& (this.getSpendTime() == null ? other.getSpendTime() == null : this.getSpendTime().equals(other.getSpendTime()))
&& (this.getBasePath() == null ? other.getBasePath() == null : this.getBasePath().equals(other.getBasePath()))
&& (this.getUri() == null ? other.getUri() == null : this.getUri().equals(other.getUri()))
&& (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
&& (this.getMethod() == null ? other.getMethod() == null : this.getMethod().equals(other.getMethod()))
&& (this.getUserAgent() == null ? other.getUserAgent() == null : this.getUserAgent().equals(other.getUserAgent()))
&& (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
&& (this.getParameter() == null ? other.getParameter() == null : this.getParameter().equals(other.getParameter()))
&& (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getLogId() == null) ? 0 : getLogId().hashCode());
result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
result = prime * result + ((getSpendTime() == null) ? 0 : getSpendTime().hashCode());
result = prime * result + ((getBasePath() == null) ? 0 : getBasePath().hashCode());
result = prime * result + ((getUri() == null) ? 0 : getUri().hashCode());
result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
result = prime * result + ((getMethod() == null) ? 0 : getMethod().hashCode());
result = prime * result + ((getUserAgent() == null) ? 0 : getUserAgent().hashCode());
result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
result = prime * result + ((getParameter() == null) ? 0 : getParameter().hashCode());
result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode());
return result;
}
}

View File

@ -0,0 +1,963 @@
package com.zheng.upms.dao.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class UpmsLogExample implements Serializable {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
private static final long serialVersionUID = 1L;
private Integer limit;
private Integer offset;
public UpmsLogExample() {
oredCriteria = new ArrayList<Criteria>();
}
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<Criteria> 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(Integer offset) {
this.offset = offset;
}
public Integer getOffset() {
return offset;
}
protected abstract static class GeneratedCriteria implements Serializable {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> 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 andLogIdIsNull() {
addCriterion("log_id is null");
return (Criteria) this;
}
public Criteria andLogIdIsNotNull() {
addCriterion("log_id is not null");
return (Criteria) this;
}
public Criteria andLogIdEqualTo(Integer value) {
addCriterion("log_id =", value, "logId");
return (Criteria) this;
}
public Criteria andLogIdNotEqualTo(Integer value) {
addCriterion("log_id <>", value, "logId");
return (Criteria) this;
}
public Criteria andLogIdGreaterThan(Integer value) {
addCriterion("log_id >", value, "logId");
return (Criteria) this;
}
public Criteria andLogIdGreaterThanOrEqualTo(Integer value) {
addCriterion("log_id >=", value, "logId");
return (Criteria) this;
}
public Criteria andLogIdLessThan(Integer value) {
addCriterion("log_id <", value, "logId");
return (Criteria) this;
}
public Criteria andLogIdLessThanOrEqualTo(Integer value) {
addCriterion("log_id <=", value, "logId");
return (Criteria) this;
}
public Criteria andLogIdIn(List<Integer> values) {
addCriterion("log_id in", values, "logId");
return (Criteria) this;
}
public Criteria andLogIdNotIn(List<Integer> values) {
addCriterion("log_id not in", values, "logId");
return (Criteria) this;
}
public Criteria andLogIdBetween(Integer value1, Integer value2) {
addCriterion("log_id between", value1, value2, "logId");
return (Criteria) this;
}
public Criteria andLogIdNotBetween(Integer value1, Integer value2) {
addCriterion("log_id not between", value1, value2, "logId");
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<String> values) {
addCriterion("description in", values, "description");
return (Criteria) this;
}
public Criteria andDescriptionNotIn(List<String> 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 andUsernameIsNull() {
addCriterion("username is null");
return (Criteria) this;
}
public Criteria andUsernameIsNotNull() {
addCriterion("username is not null");
return (Criteria) this;
}
public Criteria andUsernameEqualTo(String value) {
addCriterion("username =", value, "username");
return (Criteria) this;
}
public Criteria andUsernameNotEqualTo(String value) {
addCriterion("username <>", value, "username");
return (Criteria) this;
}
public Criteria andUsernameGreaterThan(String value) {
addCriterion("username >", value, "username");
return (Criteria) this;
}
public Criteria andUsernameGreaterThanOrEqualTo(String value) {
addCriterion("username >=", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLessThan(String value) {
addCriterion("username <", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLessThanOrEqualTo(String value) {
addCriterion("username <=", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLike(String value) {
addCriterion("username like", value, "username");
return (Criteria) this;
}
public Criteria andUsernameNotLike(String value) {
addCriterion("username not like", value, "username");
return (Criteria) this;
}
public Criteria andUsernameIn(List<String> values) {
addCriterion("username in", values, "username");
return (Criteria) this;
}
public Criteria andUsernameNotIn(List<String> values) {
addCriterion("username not in", values, "username");
return (Criteria) this;
}
public Criteria andUsernameBetween(String value1, String value2) {
addCriterion("username between", value1, value2, "username");
return (Criteria) this;
}
public Criteria andUsernameNotBetween(String value1, String value2) {
addCriterion("username not between", value1, value2, "username");
return (Criteria) this;
}
public Criteria andStartTimeIsNull() {
addCriterion("start_time is null");
return (Criteria) this;
}
public Criteria andStartTimeIsNotNull() {
addCriterion("start_time is not null");
return (Criteria) this;
}
public Criteria andStartTimeEqualTo(Long value) {
addCriterion("start_time =", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotEqualTo(Long value) {
addCriterion("start_time <>", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThan(Long value) {
addCriterion("start_time >", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeGreaterThanOrEqualTo(Long value) {
addCriterion("start_time >=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThan(Long value) {
addCriterion("start_time <", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeLessThanOrEqualTo(Long value) {
addCriterion("start_time <=", value, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeIn(List<Long> values) {
addCriterion("start_time in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotIn(List<Long> values) {
addCriterion("start_time not in", values, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeBetween(Long value1, Long value2) {
addCriterion("start_time between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andStartTimeNotBetween(Long value1, Long value2) {
addCriterion("start_time not between", value1, value2, "startTime");
return (Criteria) this;
}
public Criteria andSpendTimeIsNull() {
addCriterion("spend_time is null");
return (Criteria) this;
}
public Criteria andSpendTimeIsNotNull() {
addCriterion("spend_time is not null");
return (Criteria) this;
}
public Criteria andSpendTimeEqualTo(Integer value) {
addCriterion("spend_time =", value, "spendTime");
return (Criteria) this;
}
public Criteria andSpendTimeNotEqualTo(Integer value) {
addCriterion("spend_time <>", value, "spendTime");
return (Criteria) this;
}
public Criteria andSpendTimeGreaterThan(Integer value) {
addCriterion("spend_time >", value, "spendTime");
return (Criteria) this;
}
public Criteria andSpendTimeGreaterThanOrEqualTo(Integer value) {
addCriterion("spend_time >=", value, "spendTime");
return (Criteria) this;
}
public Criteria andSpendTimeLessThan(Integer value) {
addCriterion("spend_time <", value, "spendTime");
return (Criteria) this;
}
public Criteria andSpendTimeLessThanOrEqualTo(Integer value) {
addCriterion("spend_time <=", value, "spendTime");
return (Criteria) this;
}
public Criteria andSpendTimeIn(List<Integer> values) {
addCriterion("spend_time in", values, "spendTime");
return (Criteria) this;
}
public Criteria andSpendTimeNotIn(List<Integer> values) {
addCriterion("spend_time not in", values, "spendTime");
return (Criteria) this;
}
public Criteria andSpendTimeBetween(Integer value1, Integer value2) {
addCriterion("spend_time between", value1, value2, "spendTime");
return (Criteria) this;
}
public Criteria andSpendTimeNotBetween(Integer value1, Integer value2) {
addCriterion("spend_time not between", value1, value2, "spendTime");
return (Criteria) this;
}
public Criteria andBasePathIsNull() {
addCriterion("base_path is null");
return (Criteria) this;
}
public Criteria andBasePathIsNotNull() {
addCriterion("base_path is not null");
return (Criteria) this;
}
public Criteria andBasePathEqualTo(String value) {
addCriterion("base_path =", value, "basePath");
return (Criteria) this;
}
public Criteria andBasePathNotEqualTo(String value) {
addCriterion("base_path <>", value, "basePath");
return (Criteria) this;
}
public Criteria andBasePathGreaterThan(String value) {
addCriterion("base_path >", value, "basePath");
return (Criteria) this;
}
public Criteria andBasePathGreaterThanOrEqualTo(String value) {
addCriterion("base_path >=", value, "basePath");
return (Criteria) this;
}
public Criteria andBasePathLessThan(String value) {
addCriterion("base_path <", value, "basePath");
return (Criteria) this;
}
public Criteria andBasePathLessThanOrEqualTo(String value) {
addCriterion("base_path <=", value, "basePath");
return (Criteria) this;
}
public Criteria andBasePathLike(String value) {
addCriterion("base_path like", value, "basePath");
return (Criteria) this;
}
public Criteria andBasePathNotLike(String value) {
addCriterion("base_path not like", value, "basePath");
return (Criteria) this;
}
public Criteria andBasePathIn(List<String> values) {
addCriterion("base_path in", values, "basePath");
return (Criteria) this;
}
public Criteria andBasePathNotIn(List<String> values) {
addCriterion("base_path not in", values, "basePath");
return (Criteria) this;
}
public Criteria andBasePathBetween(String value1, String value2) {
addCriterion("base_path between", value1, value2, "basePath");
return (Criteria) this;
}
public Criteria andBasePathNotBetween(String value1, String value2) {
addCriterion("base_path not between", value1, value2, "basePath");
return (Criteria) this;
}
public Criteria andUriIsNull() {
addCriterion("uri is null");
return (Criteria) this;
}
public Criteria andUriIsNotNull() {
addCriterion("uri is not null");
return (Criteria) this;
}
public Criteria andUriEqualTo(String value) {
addCriterion("uri =", value, "uri");
return (Criteria) this;
}
public Criteria andUriNotEqualTo(String value) {
addCriterion("uri <>", value, "uri");
return (Criteria) this;
}
public Criteria andUriGreaterThan(String value) {
addCriterion("uri >", value, "uri");
return (Criteria) this;
}
public Criteria andUriGreaterThanOrEqualTo(String value) {
addCriterion("uri >=", value, "uri");
return (Criteria) this;
}
public Criteria andUriLessThan(String value) {
addCriterion("uri <", value, "uri");
return (Criteria) this;
}
public Criteria andUriLessThanOrEqualTo(String value) {
addCriterion("uri <=", value, "uri");
return (Criteria) this;
}
public Criteria andUriLike(String value) {
addCriterion("uri like", value, "uri");
return (Criteria) this;
}
public Criteria andUriNotLike(String value) {
addCriterion("uri not like", value, "uri");
return (Criteria) this;
}
public Criteria andUriIn(List<String> values) {
addCriterion("uri in", values, "uri");
return (Criteria) this;
}
public Criteria andUriNotIn(List<String> values) {
addCriterion("uri not in", values, "uri");
return (Criteria) this;
}
public Criteria andUriBetween(String value1, String value2) {
addCriterion("uri between", value1, value2, "uri");
return (Criteria) this;
}
public Criteria andUriNotBetween(String value1, String value2) {
addCriterion("uri not between", value1, value2, "uri");
return (Criteria) this;
}
public Criteria andUrlIsNull() {
addCriterion("url is null");
return (Criteria) this;
}
public Criteria andUrlIsNotNull() {
addCriterion("url is not null");
return (Criteria) this;
}
public Criteria andUrlEqualTo(String value) {
addCriterion("url =", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotEqualTo(String value) {
addCriterion("url <>", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThan(String value) {
addCriterion("url >", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThanOrEqualTo(String value) {
addCriterion("url >=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThan(String value) {
addCriterion("url <", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThanOrEqualTo(String value) {
addCriterion("url <=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLike(String value) {
addCriterion("url like", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotLike(String value) {
addCriterion("url not like", value, "url");
return (Criteria) this;
}
public Criteria andUrlIn(List<String> values) {
addCriterion("url in", values, "url");
return (Criteria) this;
}
public Criteria andUrlNotIn(List<String> values) {
addCriterion("url not in", values, "url");
return (Criteria) this;
}
public Criteria andUrlBetween(String value1, String value2) {
addCriterion("url between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andUrlNotBetween(String value1, String value2) {
addCriterion("url not between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andMethodIsNull() {
addCriterion("method is null");
return (Criteria) this;
}
public Criteria andMethodIsNotNull() {
addCriterion("method is not null");
return (Criteria) this;
}
public Criteria andMethodEqualTo(String value) {
addCriterion("method =", value, "method");
return (Criteria) this;
}
public Criteria andMethodNotEqualTo(String value) {
addCriterion("method <>", value, "method");
return (Criteria) this;
}
public Criteria andMethodGreaterThan(String value) {
addCriterion("method >", value, "method");
return (Criteria) this;
}
public Criteria andMethodGreaterThanOrEqualTo(String value) {
addCriterion("method >=", value, "method");
return (Criteria) this;
}
public Criteria andMethodLessThan(String value) {
addCriterion("method <", value, "method");
return (Criteria) this;
}
public Criteria andMethodLessThanOrEqualTo(String value) {
addCriterion("method <=", value, "method");
return (Criteria) this;
}
public Criteria andMethodLike(String value) {
addCriterion("method like", value, "method");
return (Criteria) this;
}
public Criteria andMethodNotLike(String value) {
addCriterion("method not like", value, "method");
return (Criteria) this;
}
public Criteria andMethodIn(List<String> values) {
addCriterion("method in", values, "method");
return (Criteria) this;
}
public Criteria andMethodNotIn(List<String> values) {
addCriterion("method not in", values, "method");
return (Criteria) this;
}
public Criteria andMethodBetween(String value1, String value2) {
addCriterion("method between", value1, value2, "method");
return (Criteria) this;
}
public Criteria andMethodNotBetween(String value1, String value2) {
addCriterion("method not between", value1, value2, "method");
return (Criteria) this;
}
public Criteria andUserAgentIsNull() {
addCriterion("user_agent is null");
return (Criteria) this;
}
public Criteria andUserAgentIsNotNull() {
addCriterion("user_agent is not null");
return (Criteria) this;
}
public Criteria andUserAgentEqualTo(String value) {
addCriterion("user_agent =", value, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentNotEqualTo(String value) {
addCriterion("user_agent <>", value, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentGreaterThan(String value) {
addCriterion("user_agent >", value, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentGreaterThanOrEqualTo(String value) {
addCriterion("user_agent >=", value, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentLessThan(String value) {
addCriterion("user_agent <", value, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentLessThanOrEqualTo(String value) {
addCriterion("user_agent <=", value, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentLike(String value) {
addCriterion("user_agent like", value, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentNotLike(String value) {
addCriterion("user_agent not like", value, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentIn(List<String> values) {
addCriterion("user_agent in", values, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentNotIn(List<String> values) {
addCriterion("user_agent not in", values, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentBetween(String value1, String value2) {
addCriterion("user_agent between", value1, value2, "userAgent");
return (Criteria) this;
}
public Criteria andUserAgentNotBetween(String value1, String value2) {
addCriterion("user_agent not between", value1, value2, "userAgent");
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<String> values) {
addCriterion("ip in", values, "ip");
return (Criteria) this;
}
public Criteria andIpNotIn(List<String> 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 static class Criteria extends GeneratedCriteria implements Serializable {
protected Criteria() {
super();
}
}
public static class Criterion implements Serializable {
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);
}
}
}