From 5740327cd5b8d50d6a8eb946c2eac55d032c846c Mon Sep 17 00:00:00 2001 From: lixiangrong Date: Fri, 17 Jun 2016 13:56:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pxene/dsp/archer/dao/OperateLogsDao.java | 36 + .../pxene/dsp/archer/dao/OperateLogsDao.xml | 342 ++++++++ .../dsp/archer/model/OperateLogsModel.java | 105 +++ .../archer/model/OperateLogsModelExample.java | 811 ++++++++++++++++++ .../java/osc/git/eh3/redis/redis.properties | 6 +- src/main/java/osc/git/eh3/test/Main.java | 13 + src/main/resources/generatorConfig.xml | 29 +- 7 files changed, 1325 insertions(+), 17 deletions(-) create mode 100644 src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.java create mode 100644 src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.xml create mode 100644 src/main/java/com/pxene/dsp/archer/model/OperateLogsModel.java create mode 100644 src/main/java/com/pxene/dsp/archer/model/OperateLogsModelExample.java create mode 100644 src/main/java/osc/git/eh3/test/Main.java diff --git a/src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.java b/src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.java new file mode 100644 index 0000000..56c0251 --- /dev/null +++ b/src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.java @@ -0,0 +1,36 @@ +package com.pxene.dsp.archer.dao; + +import com.pxene.dsp.archer.model.OperateLogsModel; +import com.pxene.dsp.archer.model.OperateLogsModelExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OperateLogsDao { + int countByExample(OperateLogsModelExample example); + + int deleteByExample(OperateLogsModelExample example); + + int deleteByPrimaryKey(String id); + + int insert(OperateLogsModel record); + + int insertSelective(OperateLogsModel record); + + List selectByExampleWithBLOBs(OperateLogsModelExample example); + + List selectByExample(OperateLogsModelExample example); + + OperateLogsModel selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") OperateLogsModel record, @Param("example") OperateLogsModelExample example); + + int updateByExampleWithBLOBs(@Param("record") OperateLogsModel record, @Param("example") OperateLogsModelExample example); + + int updateByExample(@Param("record") OperateLogsModel record, @Param("example") OperateLogsModelExample example); + + int updateByPrimaryKeySelective(OperateLogsModel record); + + int updateByPrimaryKeyWithBLOBs(OperateLogsModel record); + + int updateByPrimaryKey(OperateLogsModel record); +} \ No newline at end of file diff --git a/src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.xml b/src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.xml new file mode 100644 index 0000000..98749f7 --- /dev/null +++ b/src/main/java/com/pxene/dsp/archer/dao/OperateLogsDao.xml @@ -0,0 +1,342 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, userid, usertype, ip, operate, plangroup, remark, createtime, status + + + details + + + + + + delete from dsp_t_operate_logs + where id = #{id,jdbcType=VARCHAR} + + + delete from dsp_t_operate_logs + + + + + + insert into dsp_t_operate_logs (id, userid, usertype, + ip, operate, plangroup, + remark, createtime, status, + details) + values (#{id,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, #{usertype,jdbcType=VARCHAR}, + #{ip,jdbcType=VARCHAR}, #{operate,jdbcType=VARCHAR}, #{plangroup,jdbcType=VARCHAR}, + #{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, + #{details,jdbcType=LONGVARCHAR}) + + + insert into dsp_t_operate_logs + + + id, + + + userid, + + + usertype, + + + ip, + + + operate, + + + plangroup, + + + remark, + + + createtime, + + + status, + + + details, + + + + + #{id,jdbcType=VARCHAR}, + + + #{userid,jdbcType=VARCHAR}, + + + #{usertype,jdbcType=VARCHAR}, + + + #{ip,jdbcType=VARCHAR}, + + + #{operate,jdbcType=VARCHAR}, + + + #{plangroup,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{createtime,jdbcType=TIMESTAMP}, + + + #{status,jdbcType=INTEGER}, + + + #{details,jdbcType=LONGVARCHAR}, + + + + + + update dsp_t_operate_logs + + + id = #{record.id,jdbcType=VARCHAR}, + + + userid = #{record.userid,jdbcType=VARCHAR}, + + + usertype = #{record.usertype,jdbcType=VARCHAR}, + + + ip = #{record.ip,jdbcType=VARCHAR}, + + + operate = #{record.operate,jdbcType=VARCHAR}, + + + plangroup = #{record.plangroup,jdbcType=VARCHAR}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + createtime = #{record.createtime,jdbcType=TIMESTAMP}, + + + status = #{record.status,jdbcType=INTEGER}, + + + details = #{record.details,jdbcType=LONGVARCHAR}, + + + + + + + + update dsp_t_operate_logs + set id = #{record.id,jdbcType=VARCHAR}, + userid = #{record.userid,jdbcType=VARCHAR}, + usertype = #{record.usertype,jdbcType=VARCHAR}, + ip = #{record.ip,jdbcType=VARCHAR}, + operate = #{record.operate,jdbcType=VARCHAR}, + plangroup = #{record.plangroup,jdbcType=VARCHAR}, + remark = #{record.remark,jdbcType=VARCHAR}, + createtime = #{record.createtime,jdbcType=TIMESTAMP}, + status = #{record.status,jdbcType=INTEGER}, + details = #{record.details,jdbcType=LONGVARCHAR} + + + + + + update dsp_t_operate_logs + set id = #{record.id,jdbcType=VARCHAR}, + userid = #{record.userid,jdbcType=VARCHAR}, + usertype = #{record.usertype,jdbcType=VARCHAR}, + ip = #{record.ip,jdbcType=VARCHAR}, + operate = #{record.operate,jdbcType=VARCHAR}, + plangroup = #{record.plangroup,jdbcType=VARCHAR}, + remark = #{record.remark,jdbcType=VARCHAR}, + createtime = #{record.createtime,jdbcType=TIMESTAMP}, + status = #{record.status,jdbcType=INTEGER} + + + + + + update dsp_t_operate_logs + + + userid = #{userid,jdbcType=VARCHAR}, + + + usertype = #{usertype,jdbcType=VARCHAR}, + + + ip = #{ip,jdbcType=VARCHAR}, + + + operate = #{operate,jdbcType=VARCHAR}, + + + plangroup = #{plangroup,jdbcType=VARCHAR}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + createtime = #{createtime,jdbcType=TIMESTAMP}, + + + status = #{status,jdbcType=INTEGER}, + + + details = #{details,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update dsp_t_operate_logs + set userid = #{userid,jdbcType=VARCHAR}, + usertype = #{usertype,jdbcType=VARCHAR}, + ip = #{ip,jdbcType=VARCHAR}, + operate = #{operate,jdbcType=VARCHAR}, + plangroup = #{plangroup,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + createtime = #{createtime,jdbcType=TIMESTAMP}, + status = #{status,jdbcType=INTEGER}, + details = #{details,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=VARCHAR} + + + update dsp_t_operate_logs + set userid = #{userid,jdbcType=VARCHAR}, + usertype = #{usertype,jdbcType=VARCHAR}, + ip = #{ip,jdbcType=VARCHAR}, + operate = #{operate,jdbcType=VARCHAR}, + plangroup = #{plangroup,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + createtime = #{createtime,jdbcType=TIMESTAMP}, + status = #{status,jdbcType=INTEGER} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/com/pxene/dsp/archer/model/OperateLogsModel.java b/src/main/java/com/pxene/dsp/archer/model/OperateLogsModel.java new file mode 100644 index 0000000..bda8d18 --- /dev/null +++ b/src/main/java/com/pxene/dsp/archer/model/OperateLogsModel.java @@ -0,0 +1,105 @@ +package com.pxene.dsp.archer.model; + +import java.util.Date; + +public class OperateLogsModel { + private String id; + + private String userid; + + private String usertype; + + private String ip; + + private String operate; + + private String plangroup; + + private String remark; + + private Date createtime; + + private Integer status; + + private String details; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + public String getUserid() { + return userid; + } + + public void setUserid(String userid) { + this.userid = userid == null ? null : userid.trim(); + } + + public String getUsertype() { + return usertype; + } + + public void setUsertype(String usertype) { + this.usertype = usertype == null ? null : usertype.trim(); + } + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip == null ? null : ip.trim(); + } + + public String getOperate() { + return operate; + } + + public void setOperate(String operate) { + this.operate = operate == null ? null : operate.trim(); + } + + public String getPlangroup() { + return plangroup; + } + + public void setPlangroup(String plangroup) { + this.plangroup = plangroup == null ? null : plangroup.trim(); + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + 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 getDetails() { + return details; + } + + public void setDetails(String details) { + this.details = details == null ? null : details.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/com/pxene/dsp/archer/model/OperateLogsModelExample.java b/src/main/java/com/pxene/dsp/archer/model/OperateLogsModelExample.java new file mode 100644 index 0000000..9a79f27 --- /dev/null +++ b/src/main/java/com/pxene/dsp/archer/model/OperateLogsModelExample.java @@ -0,0 +1,811 @@ +package com.pxene.dsp.archer.model; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OperateLogsModelExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OperateLogsModelExample() { + 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; + } + + 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(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", 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(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andUseridIsNull() { + addCriterion("userid is null"); + return (Criteria) this; + } + + public Criteria andUseridIsNotNull() { + addCriterion("userid is not null"); + return (Criteria) this; + } + + public Criteria andUseridEqualTo(String value) { + addCriterion("userid =", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridNotEqualTo(String value) { + addCriterion("userid <>", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridGreaterThan(String value) { + addCriterion("userid >", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridGreaterThanOrEqualTo(String value) { + addCriterion("userid >=", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridLessThan(String value) { + addCriterion("userid <", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridLessThanOrEqualTo(String value) { + addCriterion("userid <=", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridLike(String value) { + addCriterion("userid like", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridNotLike(String value) { + addCriterion("userid not like", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridIn(List values) { + addCriterion("userid in", values, "userid"); + return (Criteria) this; + } + + public Criteria andUseridNotIn(List values) { + addCriterion("userid not in", values, "userid"); + return (Criteria) this; + } + + public Criteria andUseridBetween(String value1, String value2) { + addCriterion("userid between", value1, value2, "userid"); + return (Criteria) this; + } + + public Criteria andUseridNotBetween(String value1, String value2) { + addCriterion("userid not between", value1, value2, "userid"); + return (Criteria) this; + } + + public Criteria andUsertypeIsNull() { + addCriterion("usertype is null"); + return (Criteria) this; + } + + public Criteria andUsertypeIsNotNull() { + addCriterion("usertype is not null"); + return (Criteria) this; + } + + public Criteria andUsertypeEqualTo(String value) { + addCriterion("usertype =", value, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeNotEqualTo(String value) { + addCriterion("usertype <>", value, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeGreaterThan(String value) { + addCriterion("usertype >", value, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeGreaterThanOrEqualTo(String value) { + addCriterion("usertype >=", value, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeLessThan(String value) { + addCriterion("usertype <", value, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeLessThanOrEqualTo(String value) { + addCriterion("usertype <=", value, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeLike(String value) { + addCriterion("usertype like", value, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeNotLike(String value) { + addCriterion("usertype not like", value, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeIn(List values) { + addCriterion("usertype in", values, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeNotIn(List values) { + addCriterion("usertype not in", values, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeBetween(String value1, String value2) { + addCriterion("usertype between", value1, value2, "usertype"); + return (Criteria) this; + } + + public Criteria andUsertypeNotBetween(String value1, String value2) { + addCriterion("usertype not between", value1, value2, "usertype"); + 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 andOperateIsNull() { + addCriterion("operate is null"); + return (Criteria) this; + } + + public Criteria andOperateIsNotNull() { + addCriterion("operate is not null"); + return (Criteria) this; + } + + public Criteria andOperateEqualTo(String value) { + addCriterion("operate =", value, "operate"); + return (Criteria) this; + } + + public Criteria andOperateNotEqualTo(String value) { + addCriterion("operate <>", value, "operate"); + return (Criteria) this; + } + + public Criteria andOperateGreaterThan(String value) { + addCriterion("operate >", value, "operate"); + return (Criteria) this; + } + + public Criteria andOperateGreaterThanOrEqualTo(String value) { + addCriterion("operate >=", value, "operate"); + return (Criteria) this; + } + + public Criteria andOperateLessThan(String value) { + addCriterion("operate <", value, "operate"); + return (Criteria) this; + } + + public Criteria andOperateLessThanOrEqualTo(String value) { + addCriterion("operate <=", value, "operate"); + return (Criteria) this; + } + + public Criteria andOperateLike(String value) { + addCriterion("operate like", value, "operate"); + return (Criteria) this; + } + + public Criteria andOperateNotLike(String value) { + addCriterion("operate not like", value, "operate"); + return (Criteria) this; + } + + public Criteria andOperateIn(List values) { + addCriterion("operate in", values, "operate"); + return (Criteria) this; + } + + public Criteria andOperateNotIn(List values) { + addCriterion("operate not in", values, "operate"); + return (Criteria) this; + } + + public Criteria andOperateBetween(String value1, String value2) { + addCriterion("operate between", value1, value2, "operate"); + return (Criteria) this; + } + + public Criteria andOperateNotBetween(String value1, String value2) { + addCriterion("operate not between", value1, value2, "operate"); + return (Criteria) this; + } + + public Criteria andPlangroupIsNull() { + addCriterion("plangroup is null"); + return (Criteria) this; + } + + public Criteria andPlangroupIsNotNull() { + addCriterion("plangroup is not null"); + return (Criteria) this; + } + + public Criteria andPlangroupEqualTo(String value) { + addCriterion("plangroup =", value, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupNotEqualTo(String value) { + addCriterion("plangroup <>", value, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupGreaterThan(String value) { + addCriterion("plangroup >", value, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupGreaterThanOrEqualTo(String value) { + addCriterion("plangroup >=", value, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupLessThan(String value) { + addCriterion("plangroup <", value, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupLessThanOrEqualTo(String value) { + addCriterion("plangroup <=", value, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupLike(String value) { + addCriterion("plangroup like", value, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupNotLike(String value) { + addCriterion("plangroup not like", value, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupIn(List values) { + addCriterion("plangroup in", values, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupNotIn(List values) { + addCriterion("plangroup not in", values, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupBetween(String value1, String value2) { + addCriterion("plangroup between", value1, value2, "plangroup"); + return (Criteria) this; + } + + public Criteria andPlangroupNotBetween(String value1, String value2) { + addCriterion("plangroup not between", value1, value2, "plangroup"); + return (Criteria) this; + } + + public Criteria andRemarkIsNull() { + addCriterion("remark is null"); + return (Criteria) this; + } + + public Criteria andRemarkIsNotNull() { + addCriterion("remark is not null"); + return (Criteria) this; + } + + public Criteria andRemarkEqualTo(String value) { + addCriterion("remark =", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotEqualTo(String value) { + addCriterion("remark <>", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThan(String value) { + addCriterion("remark >", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThanOrEqualTo(String value) { + addCriterion("remark >=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThan(String value) { + addCriterion("remark <", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThanOrEqualTo(String value) { + addCriterion("remark <=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLike(String value) { + addCriterion("remark like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotLike(String value) { + addCriterion("remark not like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkIn(List values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List values) { + addCriterion("remark not in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkBetween(String value1, String value2) { + addCriterion("remark between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotBetween(String value1, String value2) { + addCriterion("remark not between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andCreatetimeIsNull() { + addCriterion("createtime is null"); + return (Criteria) this; + } + + public Criteria andCreatetimeIsNotNull() { + addCriterion("createtime is not null"); + return (Criteria) this; + } + + public Criteria andCreatetimeEqualTo(Date value) { + addCriterion("createtime =", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotEqualTo(Date value) { + addCriterion("createtime <>", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeGreaterThan(Date value) { + addCriterion("createtime >", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) { + addCriterion("createtime >=", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeLessThan(Date value) { + addCriterion("createtime <", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeLessThanOrEqualTo(Date value) { + addCriterion("createtime <=", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeIn(List values) { + addCriterion("createtime in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotIn(List values) { + addCriterion("createtime not in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeBetween(Date value1, Date value2) { + addCriterion("createtime between", value1, value2, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotBetween(Date value1, Date value2) { + addCriterion("createtime 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 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 diff --git a/src/main/java/osc/git/eh3/redis/redis.properties b/src/main/java/osc/git/eh3/redis/redis.properties index 4e38a2a..a2c93fa 100644 --- a/src/main/java/osc/git/eh3/redis/redis.properties +++ b/src/main/java/osc/git/eh3/redis/redis.properties @@ -3,7 +3,7 @@ redis.pool.maxIdle=200 redis.pool.maxWait=1000 redis.pool.testOnBorrow=true redis.pool.testOnReturn=true -redis.ip=192.168.3.166 -#redis.ip=111.235.158.31 -redis.port=7379 +#redis.ip=192.168.3.166 +redis.ip=115.182.33.143 +redis.port=47379 redis.password= \ No newline at end of file diff --git a/src/main/java/osc/git/eh3/test/Main.java b/src/main/java/osc/git/eh3/test/Main.java new file mode 100644 index 0000000..e1341da --- /dev/null +++ b/src/main/java/osc/git/eh3/test/Main.java @@ -0,0 +1,13 @@ +package osc.git.eh3.test; + +import osc.git.eh3.redis.JedisUtil; + +/** + * Created by lixiangrong on 2016/6/14. + */ +public class Main { + public static void main(String[] args) { + JedisUtil.set("test_20160614","20160614"); + System.out.println(JedisUtil.getStr("test_20160614")); + } +} diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml index 84131a2..509456a 100644 --- a/src/main/resources/generatorConfig.xml +++ b/src/main/resources/generatorConfig.xml @@ -23,19 +23,20 @@ - - +
+ \ No newline at end of file