diff --git a/hai-service/src/main/java/com/hai/dao/HighAgentMapper.java b/hai-service/src/main/java/com/hai/dao/HighAgentMapper.java new file mode 100644 index 00000000..7ec4266a --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighAgentMapper.java @@ -0,0 +1,119 @@ +package com.hai.dao; + +import com.hai.entity.HighAgent; +import com.hai.entity.HighAgentExample; +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 HighAgentMapper extends HighAgentMapperExt { + @SelectProvider(type=HighAgentSqlProvider.class, method="countByExample") + long countByExample(HighAgentExample example); + + @DeleteProvider(type=HighAgentSqlProvider.class, method="deleteByExample") + int deleteByExample(HighAgentExample example); + + @Delete({ + "delete from high_agent", + "where id = #{id,jdbcType=BIGINT}" + }) + int deleteByPrimaryKey(Long id); + + @Insert({ + "insert into high_agent (agent_name, agent_address, ", + "agent_user, agent_phone, ", + "create_time, `status`, ", + "user_name, operator_id, ", + "operator_name)", + "values (#{agentName,jdbcType=VARCHAR}, #{agentAddress,jdbcType=VARCHAR}, ", + "#{agentUser,jdbcType=VARCHAR}, #{agentPhone,jdbcType=VARCHAR}, ", + "#{createTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", + "#{userName,jdbcType=VARCHAR}, #{operatorId,jdbcType=BIGINT}, ", + "#{operatorName,jdbcType=VARCHAR})" + }) + @Options(useGeneratedKeys=true,keyProperty="id") + int insert(HighAgent record); + + @InsertProvider(type=HighAgentSqlProvider.class, method="insertSelective") + @Options(useGeneratedKeys=true,keyProperty="id") + int insertSelective(HighAgent record); + + @SelectProvider(type=HighAgentSqlProvider.class, method="selectByExample") + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="agent_name", property="agentName", jdbcType=JdbcType.VARCHAR), + @Result(column="agent_address", property="agentAddress", jdbcType=JdbcType.VARCHAR), + @Result(column="agent_user", property="agentUser", jdbcType=JdbcType.VARCHAR), + @Result(column="agent_phone", property="agentPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), + @Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), + @Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR) + }) + List selectByExample(HighAgentExample example); + + @Select({ + "select", + "id, agent_name, agent_address, agent_user, agent_phone, create_time, `status`, ", + "user_name, operator_id, operator_name", + "from high_agent", + "where id = #{id,jdbcType=BIGINT}" + }) + @Results({ + @Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), + @Result(column="agent_name", property="agentName", jdbcType=JdbcType.VARCHAR), + @Result(column="agent_address", property="agentAddress", jdbcType=JdbcType.VARCHAR), + @Result(column="agent_user", property="agentUser", jdbcType=JdbcType.VARCHAR), + @Result(column="agent_phone", property="agentPhone", jdbcType=JdbcType.VARCHAR), + @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), + @Result(column="status", property="status", jdbcType=JdbcType.INTEGER), + @Result(column="user_name", property="userName", jdbcType=JdbcType.VARCHAR), + @Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), + @Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR) + }) + HighAgent selectByPrimaryKey(Long id); + + @UpdateProvider(type=HighAgentSqlProvider.class, method="updateByExampleSelective") + int updateByExampleSelective(@Param("record") HighAgent record, @Param("example") HighAgentExample example); + + @UpdateProvider(type=HighAgentSqlProvider.class, method="updateByExample") + int updateByExample(@Param("record") HighAgent record, @Param("example") HighAgentExample example); + + @UpdateProvider(type=HighAgentSqlProvider.class, method="updateByPrimaryKeySelective") + int updateByPrimaryKeySelective(HighAgent record); + + @Update({ + "update high_agent", + "set agent_name = #{agentName,jdbcType=VARCHAR},", + "agent_address = #{agentAddress,jdbcType=VARCHAR},", + "agent_user = #{agentUser,jdbcType=VARCHAR},", + "agent_phone = #{agentPhone,jdbcType=VARCHAR},", + "create_time = #{createTime,jdbcType=TIMESTAMP},", + "`status` = #{status,jdbcType=INTEGER},", + "user_name = #{userName,jdbcType=VARCHAR},", + "operator_id = #{operatorId,jdbcType=BIGINT},", + "operator_name = #{operatorName,jdbcType=VARCHAR}", + "where id = #{id,jdbcType=BIGINT}" + }) + int updateByPrimaryKey(HighAgent record); +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighAgentMapperExt.java b/hai-service/src/main/java/com/hai/dao/HighAgentMapperExt.java new file mode 100644 index 00000000..30ad7a2f --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighAgentMapperExt.java @@ -0,0 +1,7 @@ +package com.hai.dao; + +/** + * mapper扩展类 + */ +public interface HighAgentMapperExt { +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/dao/HighAgentSqlProvider.java b/hai-service/src/main/java/com/hai/dao/HighAgentSqlProvider.java new file mode 100644 index 00000000..02ff7e82 --- /dev/null +++ b/hai-service/src/main/java/com/hai/dao/HighAgentSqlProvider.java @@ -0,0 +1,304 @@ +package com.hai.dao; + +import com.hai.entity.HighAgent; +import com.hai.entity.HighAgentExample.Criteria; +import com.hai.entity.HighAgentExample.Criterion; +import com.hai.entity.HighAgentExample; +import java.util.List; +import java.util.Map; +import org.apache.ibatis.jdbc.SQL; + +public class HighAgentSqlProvider { + + public String countByExample(HighAgentExample example) { + SQL sql = new SQL(); + sql.SELECT("count(*)").FROM("high_agent"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String deleteByExample(HighAgentExample example) { + SQL sql = new SQL(); + sql.DELETE_FROM("high_agent"); + applyWhere(sql, example, false); + return sql.toString(); + } + + public String insertSelective(HighAgent record) { + SQL sql = new SQL(); + sql.INSERT_INTO("high_agent"); + + if (record.getAgentName() != null) { + sql.VALUES("agent_name", "#{agentName,jdbcType=VARCHAR}"); + } + + if (record.getAgentAddress() != null) { + sql.VALUES("agent_address", "#{agentAddress,jdbcType=VARCHAR}"); + } + + if (record.getAgentUser() != null) { + sql.VALUES("agent_user", "#{agentUser,jdbcType=VARCHAR}"); + } + + if (record.getAgentPhone() != null) { + sql.VALUES("agent_phone", "#{agentPhone,jdbcType=VARCHAR}"); + } + + if (record.getCreateTime() != null) { + sql.VALUES("create_time", "#{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getStatus() != null) { + sql.VALUES("`status`", "#{status,jdbcType=INTEGER}"); + } + + if (record.getUserName() != null) { + sql.VALUES("user_name", "#{userName,jdbcType=VARCHAR}"); + } + + if (record.getOperatorId() != null) { + sql.VALUES("operator_id", "#{operatorId,jdbcType=BIGINT}"); + } + + if (record.getOperatorName() != null) { + sql.VALUES("operator_name", "#{operatorName,jdbcType=VARCHAR}"); + } + + return sql.toString(); + } + + public String selectByExample(HighAgentExample example) { + SQL sql = new SQL(); + if (example != null && example.isDistinct()) { + sql.SELECT_DISTINCT("id"); + } else { + sql.SELECT("id"); + } + sql.SELECT("agent_name"); + sql.SELECT("agent_address"); + sql.SELECT("agent_user"); + sql.SELECT("agent_phone"); + sql.SELECT("create_time"); + sql.SELECT("`status`"); + sql.SELECT("user_name"); + sql.SELECT("operator_id"); + sql.SELECT("operator_name"); + sql.FROM("high_agent"); + applyWhere(sql, example, false); + + if (example != null && example.getOrderByClause() != null) { + sql.ORDER_BY(example.getOrderByClause()); + } + + return sql.toString(); + } + + public String updateByExampleSelective(Map parameter) { + HighAgent record = (HighAgent) parameter.get("record"); + HighAgentExample example = (HighAgentExample) parameter.get("example"); + + SQL sql = new SQL(); + sql.UPDATE("high_agent"); + + if (record.getId() != null) { + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + } + + if (record.getAgentName() != null) { + sql.SET("agent_name = #{record.agentName,jdbcType=VARCHAR}"); + } + + if (record.getAgentAddress() != null) { + sql.SET("agent_address = #{record.agentAddress,jdbcType=VARCHAR}"); + } + + if (record.getAgentUser() != null) { + sql.SET("agent_user = #{record.agentUser,jdbcType=VARCHAR}"); + } + + if (record.getAgentPhone() != null) { + sql.SET("agent_phone = #{record.agentPhone,jdbcType=VARCHAR}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + } + + if (record.getUserName() != null) { + sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}"); + } + + if (record.getOperatorId() != null) { + sql.SET("operator_id = #{record.operatorId,jdbcType=BIGINT}"); + } + + if (record.getOperatorName() != null) { + sql.SET("operator_name = #{record.operatorName,jdbcType=VARCHAR}"); + } + + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByExample(Map parameter) { + SQL sql = new SQL(); + sql.UPDATE("high_agent"); + + sql.SET("id = #{record.id,jdbcType=BIGINT}"); + sql.SET("agent_name = #{record.agentName,jdbcType=VARCHAR}"); + sql.SET("agent_address = #{record.agentAddress,jdbcType=VARCHAR}"); + sql.SET("agent_user = #{record.agentUser,jdbcType=VARCHAR}"); + sql.SET("agent_phone = #{record.agentPhone,jdbcType=VARCHAR}"); + sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); + sql.SET("`status` = #{record.status,jdbcType=INTEGER}"); + sql.SET("user_name = #{record.userName,jdbcType=VARCHAR}"); + sql.SET("operator_id = #{record.operatorId,jdbcType=BIGINT}"); + sql.SET("operator_name = #{record.operatorName,jdbcType=VARCHAR}"); + + HighAgentExample example = (HighAgentExample) parameter.get("example"); + applyWhere(sql, example, true); + return sql.toString(); + } + + public String updateByPrimaryKeySelective(HighAgent record) { + SQL sql = new SQL(); + sql.UPDATE("high_agent"); + + if (record.getAgentName() != null) { + sql.SET("agent_name = #{agentName,jdbcType=VARCHAR}"); + } + + if (record.getAgentAddress() != null) { + sql.SET("agent_address = #{agentAddress,jdbcType=VARCHAR}"); + } + + if (record.getAgentUser() != null) { + sql.SET("agent_user = #{agentUser,jdbcType=VARCHAR}"); + } + + if (record.getAgentPhone() != null) { + sql.SET("agent_phone = #{agentPhone,jdbcType=VARCHAR}"); + } + + if (record.getCreateTime() != null) { + sql.SET("create_time = #{createTime,jdbcType=TIMESTAMP}"); + } + + if (record.getStatus() != null) { + sql.SET("`status` = #{status,jdbcType=INTEGER}"); + } + + if (record.getUserName() != null) { + sql.SET("user_name = #{userName,jdbcType=VARCHAR}"); + } + + if (record.getOperatorId() != null) { + sql.SET("operator_id = #{operatorId,jdbcType=BIGINT}"); + } + + if (record.getOperatorName() != null) { + sql.SET("operator_name = #{operatorName,jdbcType=VARCHAR}"); + } + + sql.WHERE("id = #{id,jdbcType=BIGINT}"); + + return sql.toString(); + } + + protected void applyWhere(SQL sql, HighAgentExample 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/hai-service/src/main/java/com/hai/entity/HighAgent.java b/hai-service/src/main/java/com/hai/entity/HighAgent.java new file mode 100644 index 00000000..6c42223b --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighAgent.java @@ -0,0 +1,203 @@ +package com.hai.entity; + +import java.io.Serializable; +import java.util.Date; + +/** + * high_agent + * @author + */ +/** + * + * 代码由工具生成 + * + **/ +public class HighAgent implements Serializable { + private Long id; + + /** + * 代理商名称 + */ + private String agentName; + + /** + * 代理商地址 + */ + private String agentAddress; + + /** + * 联系人 + */ + private String agentUser; + + /** + * 联系电话 + */ + private String agentPhone; + + /** + * 创建时间 + */ + private Date createTime; + + private Integer status; + + /** + * 用户名 + */ + private String userName; + + /** + * 操作人员id + */ + private Long operatorId; + + /** + * 操作人员名称 + */ + private String operatorName; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getAgentName() { + return agentName; + } + + public void setAgentName(String agentName) { + this.agentName = agentName; + } + + public String getAgentAddress() { + return agentAddress; + } + + public void setAgentAddress(String agentAddress) { + this.agentAddress = agentAddress; + } + + public String getAgentUser() { + return agentUser; + } + + public void setAgentUser(String agentUser) { + this.agentUser = agentUser; + } + + public String getAgentPhone() { + return agentPhone; + } + + public void setAgentPhone(String agentPhone) { + this.agentPhone = agentPhone; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public Long getOperatorId() { + return operatorId; + } + + public void setOperatorId(Long operatorId) { + this.operatorId = operatorId; + } + + public String getOperatorName() { + return operatorName; + } + + public void setOperatorName(String operatorName) { + this.operatorName = operatorName; + } + + @Override + public boolean equals(Object that) { + if (this == that) { + return true; + } + if (that == null) { + return false; + } + if (getClass() != that.getClass()) { + return false; + } + HighAgent other = (HighAgent) that; + return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) + && (this.getAgentName() == null ? other.getAgentName() == null : this.getAgentName().equals(other.getAgentName())) + && (this.getAgentAddress() == null ? other.getAgentAddress() == null : this.getAgentAddress().equals(other.getAgentAddress())) + && (this.getAgentUser() == null ? other.getAgentUser() == null : this.getAgentUser().equals(other.getAgentUser())) + && (this.getAgentPhone() == null ? other.getAgentPhone() == null : this.getAgentPhone().equals(other.getAgentPhone())) + && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) + && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) + && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName())) + && (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId())) + && (this.getOperatorName() == null ? other.getOperatorName() == null : this.getOperatorName().equals(other.getOperatorName())); + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); + result = prime * result + ((getAgentName() == null) ? 0 : getAgentName().hashCode()); + result = prime * result + ((getAgentAddress() == null) ? 0 : getAgentAddress().hashCode()); + result = prime * result + ((getAgentUser() == null) ? 0 : getAgentUser().hashCode()); + result = prime * result + ((getAgentPhone() == null) ? 0 : getAgentPhone().hashCode()); + result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); + result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); + result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode()); + result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode()); + result = prime * result + ((getOperatorName() == null) ? 0 : getOperatorName().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(", agentName=").append(agentName); + sb.append(", agentAddress=").append(agentAddress); + sb.append(", agentUser=").append(agentUser); + sb.append(", agentPhone=").append(agentPhone); + sb.append(", createTime=").append(createTime); + sb.append(", status=").append(status); + sb.append(", userName=").append(userName); + sb.append(", operatorId=").append(operatorId); + sb.append(", operatorName=").append(operatorName); + sb.append(", serialVersionUID=").append(serialVersionUID); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/hai-service/src/main/java/com/hai/entity/HighAgentExample.java b/hai-service/src/main/java/com/hai/entity/HighAgentExample.java new file mode 100644 index 00000000..eedacae9 --- /dev/null +++ b/hai-service/src/main/java/com/hai/entity/HighAgentExample.java @@ -0,0 +1,883 @@ +package com.hai.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class HighAgentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + private Integer limit; + + private Long offset; + + public HighAgentExample() { + 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 andAgentNameIsNull() { + addCriterion("agent_name is null"); + return (Criteria) this; + } + + public Criteria andAgentNameIsNotNull() { + addCriterion("agent_name is not null"); + return (Criteria) this; + } + + public Criteria andAgentNameEqualTo(String value) { + addCriterion("agent_name =", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameNotEqualTo(String value) { + addCriterion("agent_name <>", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameGreaterThan(String value) { + addCriterion("agent_name >", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameGreaterThanOrEqualTo(String value) { + addCriterion("agent_name >=", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameLessThan(String value) { + addCriterion("agent_name <", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameLessThanOrEqualTo(String value) { + addCriterion("agent_name <=", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameLike(String value) { + addCriterion("agent_name like", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameNotLike(String value) { + addCriterion("agent_name not like", value, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameIn(List values) { + addCriterion("agent_name in", values, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameNotIn(List values) { + addCriterion("agent_name not in", values, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameBetween(String value1, String value2) { + addCriterion("agent_name between", value1, value2, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentNameNotBetween(String value1, String value2) { + addCriterion("agent_name not between", value1, value2, "agentName"); + return (Criteria) this; + } + + public Criteria andAgentAddressIsNull() { + addCriterion("agent_address is null"); + return (Criteria) this; + } + + public Criteria andAgentAddressIsNotNull() { + addCriterion("agent_address is not null"); + return (Criteria) this; + } + + public Criteria andAgentAddressEqualTo(String value) { + addCriterion("agent_address =", value, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressNotEqualTo(String value) { + addCriterion("agent_address <>", value, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressGreaterThan(String value) { + addCriterion("agent_address >", value, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressGreaterThanOrEqualTo(String value) { + addCriterion("agent_address >=", value, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressLessThan(String value) { + addCriterion("agent_address <", value, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressLessThanOrEqualTo(String value) { + addCriterion("agent_address <=", value, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressLike(String value) { + addCriterion("agent_address like", value, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressNotLike(String value) { + addCriterion("agent_address not like", value, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressIn(List values) { + addCriterion("agent_address in", values, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressNotIn(List values) { + addCriterion("agent_address not in", values, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressBetween(String value1, String value2) { + addCriterion("agent_address between", value1, value2, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentAddressNotBetween(String value1, String value2) { + addCriterion("agent_address not between", value1, value2, "agentAddress"); + return (Criteria) this; + } + + public Criteria andAgentUserIsNull() { + addCriterion("agent_user is null"); + return (Criteria) this; + } + + public Criteria andAgentUserIsNotNull() { + addCriterion("agent_user is not null"); + return (Criteria) this; + } + + public Criteria andAgentUserEqualTo(String value) { + addCriterion("agent_user =", value, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserNotEqualTo(String value) { + addCriterion("agent_user <>", value, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserGreaterThan(String value) { + addCriterion("agent_user >", value, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserGreaterThanOrEqualTo(String value) { + addCriterion("agent_user >=", value, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserLessThan(String value) { + addCriterion("agent_user <", value, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserLessThanOrEqualTo(String value) { + addCriterion("agent_user <=", value, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserLike(String value) { + addCriterion("agent_user like", value, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserNotLike(String value) { + addCriterion("agent_user not like", value, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserIn(List values) { + addCriterion("agent_user in", values, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserNotIn(List values) { + addCriterion("agent_user not in", values, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserBetween(String value1, String value2) { + addCriterion("agent_user between", value1, value2, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentUserNotBetween(String value1, String value2) { + addCriterion("agent_user not between", value1, value2, "agentUser"); + return (Criteria) this; + } + + public Criteria andAgentPhoneIsNull() { + addCriterion("agent_phone is null"); + return (Criteria) this; + } + + public Criteria andAgentPhoneIsNotNull() { + addCriterion("agent_phone is not null"); + return (Criteria) this; + } + + public Criteria andAgentPhoneEqualTo(String value) { + addCriterion("agent_phone =", value, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneNotEqualTo(String value) { + addCriterion("agent_phone <>", value, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneGreaterThan(String value) { + addCriterion("agent_phone >", value, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneGreaterThanOrEqualTo(String value) { + addCriterion("agent_phone >=", value, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneLessThan(String value) { + addCriterion("agent_phone <", value, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneLessThanOrEqualTo(String value) { + addCriterion("agent_phone <=", value, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneLike(String value) { + addCriterion("agent_phone like", value, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneNotLike(String value) { + addCriterion("agent_phone not like", value, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneIn(List values) { + addCriterion("agent_phone in", values, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneNotIn(List values) { + addCriterion("agent_phone not in", values, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneBetween(String value1, String value2) { + addCriterion("agent_phone between", value1, value2, "agentPhone"); + return (Criteria) this; + } + + public Criteria andAgentPhoneNotBetween(String value1, String value2) { + addCriterion("agent_phone not between", value1, value2, "agentPhone"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("`status` =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("`status` <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("`status` >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("`status` >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("`status` <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("`status` <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("`status` between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("`status` not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andUserNameIsNull() { + addCriterion("user_name is null"); + return (Criteria) this; + } + + public Criteria andUserNameIsNotNull() { + addCriterion("user_name is not null"); + return (Criteria) this; + } + + public Criteria andUserNameEqualTo(String value) { + addCriterion("user_name =", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotEqualTo(String value) { + addCriterion("user_name <>", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThan(String value) { + addCriterion("user_name >", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameGreaterThanOrEqualTo(String value) { + addCriterion("user_name >=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThan(String value) { + addCriterion("user_name <", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLessThanOrEqualTo(String value) { + addCriterion("user_name <=", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameLike(String value) { + addCriterion("user_name like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotLike(String value) { + addCriterion("user_name not like", value, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameIn(List values) { + addCriterion("user_name in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotIn(List values) { + addCriterion("user_name not in", values, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameBetween(String value1, String value2) { + addCriterion("user_name between", value1, value2, "userName"); + return (Criteria) this; + } + + public Criteria andUserNameNotBetween(String value1, String value2) { + addCriterion("user_name not between", value1, value2, "userName"); + return (Criteria) this; + } + + public Criteria andOperatorIdIsNull() { + addCriterion("operator_id is null"); + return (Criteria) this; + } + + public Criteria andOperatorIdIsNotNull() { + addCriterion("operator_id is not null"); + return (Criteria) this; + } + + public Criteria andOperatorIdEqualTo(Long value) { + addCriterion("operator_id =", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdNotEqualTo(Long value) { + addCriterion("operator_id <>", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdGreaterThan(Long value) { + addCriterion("operator_id >", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdGreaterThanOrEqualTo(Long value) { + addCriterion("operator_id >=", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdLessThan(Long value) { + addCriterion("operator_id <", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdLessThanOrEqualTo(Long value) { + addCriterion("operator_id <=", value, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdIn(List values) { + addCriterion("operator_id in", values, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdNotIn(List values) { + addCriterion("operator_id not in", values, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdBetween(Long value1, Long value2) { + addCriterion("operator_id between", value1, value2, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorIdNotBetween(Long value1, Long value2) { + addCriterion("operator_id not between", value1, value2, "operatorId"); + return (Criteria) this; + } + + public Criteria andOperatorNameIsNull() { + addCriterion("operator_name is null"); + return (Criteria) this; + } + + public Criteria andOperatorNameIsNotNull() { + addCriterion("operator_name is not null"); + return (Criteria) this; + } + + public Criteria andOperatorNameEqualTo(String value) { + addCriterion("operator_name =", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameNotEqualTo(String value) { + addCriterion("operator_name <>", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameGreaterThan(String value) { + addCriterion("operator_name >", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameGreaterThanOrEqualTo(String value) { + addCriterion("operator_name >=", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameLessThan(String value) { + addCriterion("operator_name <", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameLessThanOrEqualTo(String value) { + addCriterion("operator_name <=", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameLike(String value) { + addCriterion("operator_name like", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameNotLike(String value) { + addCriterion("operator_name not like", value, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameIn(List values) { + addCriterion("operator_name in", values, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameNotIn(List values) { + addCriterion("operator_name not in", values, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameBetween(String value1, String value2) { + addCriterion("operator_name between", value1, value2, "operatorName"); + return (Criteria) this; + } + + public Criteria andOperatorNameNotBetween(String value1, String value2) { + addCriterion("operator_name not between", value1, value2, "operatorName"); + 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