diff --git a/entity/Dingdan.java b/entity/Dingdan.java new file mode 100644 index 0000000..03fe312 --- /dev/null +++ b/entity/Dingdan.java @@ -0,0 +1,319 @@ +package com.entity; + + +/** + * @ClassName Dingdan + * @Description 订单模块实体层 + */ +public class Dingdan { + //id列 + private Integer id; + + + //编号 + private String bianhao; + //订单金额 + private Integer jine; + //是否支付 + private String zhifushenhe; + //是否发货 + private String fahuoshenhe; + //是否收货 + private String shouhuoshenhe; + //支付方式 + private Integer zhifufangshiid; + //姓名 + private String xingming; + //电话 + private String dianhua; + //送货地址 + private String dizhi; + //时间 + private String shijian; + //物流信息 + private String wuliu; + //备注 + private String beizhu; + //用户id + private Integer usersid; + //父表:支付方式表zhifufangshi + private Zhifufangshi zhifufangshi; + //父表:用户表users + private Users users; + + + /** + * 获取 id列 + * + * @return id id列 + */ + public Integer getId() { + return this.id; + } + + /** + * 设置 id列 + * + * @param id id列 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取 编号 + * + * @return bianhao 编号 + */ + public String getBianhao() { + return this.bianhao; + } + + /** + * 设置 编号 + * + * @param bianhao 编号 + */ + public void setBianhao(String bianhao) { + this.bianhao = bianhao; + } + /** + * 获取 订单金额 + * + * @return jine 订单金额 + */ + public Integer getJine() { + return this.jine; + } + + /** + * 设置 订单金额 + * + * @param jine 订单金额 + */ + public void setJine(Integer jine) { + this.jine = jine; + } + /** + * 获取 是否支付 + * + * @return zhifushenhe 是否支付 + */ + public String getZhifushenhe() { + return this.zhifushenhe; + } + + /** + * 设置 是否支付 + * + * @param zhifushenhe 是否支付 + */ + public void setZhifushenhe(String zhifushenhe) { + this.zhifushenhe = zhifushenhe; + } + /** + * 获取 是否发货 + * + * @return fahuoshenhe 是否发货 + */ + public String getFahuoshenhe() { + return this.fahuoshenhe; + } + + /** + * 设置 是否发货 + * + * @param fahuoshenhe 是否发货 + */ + public void setFahuoshenhe(String fahuoshenhe) { + this.fahuoshenhe = fahuoshenhe; + } + /** + * 获取 是否收货 + * + * @return shouhuoshenhe 是否收货 + */ + public String getShouhuoshenhe() { + return this.shouhuoshenhe; + } + + /** + * 设置 是否收货 + * + * @param shouhuoshenhe 是否收货 + */ + public void setShouhuoshenhe(String shouhuoshenhe) { + this.shouhuoshenhe = shouhuoshenhe; + } + /** + * 获取 支付方式 + * + * @return zhifufangshiid 支付方式 + */ + public Integer getZhifufangshiid() { + return this.zhifufangshiid; + } + + /** + * 设置 支付方式 + * + * @param zhifufangshiid 支付方式 + */ + public void setZhifufangshiid(Integer zhifufangshiid) { + this.zhifufangshiid = zhifufangshiid; + } + /** + * 获取 姓名 + * + * @return xingming 姓名 + */ + public String getXingming() { + return this.xingming; + } + + /** + * 设置 姓名 + * + * @param xingming 姓名 + */ + public void setXingming(String xingming) { + this.xingming = xingming; + } + /** + * 获取 电话 + * + * @return dianhua 电话 + */ + public String getDianhua() { + return this.dianhua; + } + + /** + * 设置 电话 + * + * @param dianhua 电话 + */ + public void setDianhua(String dianhua) { + this.dianhua = dianhua; + } + /** + * 获取 送货地址 + * + * @return dizhi 送货地址 + */ + public String getDizhi() { + return this.dizhi; + } + + /** + * 设置 送货地址 + * + * @param dizhi 送货地址 + */ + public void setDizhi(String dizhi) { + this.dizhi = dizhi; + } + /** + * 获取 时间 + * + * @return shijian 时间 + */ + public String getShijian() { + return this.shijian; + } + + /** + * 设置 时间 + * + * @param shijian 时间 + */ + public void setShijian(String shijian) { + this.shijian = shijian; + } + /** + * 获取 物流信息 + * + * @return wuliu 物流信息 + */ + public String getWuliu() { + return this.wuliu; + } + + /** + * 设置 物流信息 + * + * @param wuliu 物流信息 + */ + public void setWuliu(String wuliu) { + this.wuliu = wuliu; + } + /** + * 获取 备注 + * + * @return beizhu 备注 + */ + public String getBeizhu() { + return this.beizhu; + } + + /** + * 设置 备注 + * + * @param beizhu 备注 + */ + public void setBeizhu(String beizhu) { + this.beizhu = beizhu; + } + /** + * 获取 用户id + * + * @return usersid 用户id + */ + public Integer getUsersid() { + return this.usersid; + } + + /** + * 设置 用户id + * + * @param usersid 用户id + */ + public void setUsersid(Integer usersid) { + this.usersid = usersid; + } + /** + * 获取 父表:支付方式表zhifufangshi + * + * @return zhifufangshi 父表:支付方式表zhifufangshi + */ + public Zhifufangshi getZhifufangshi() { + return this.zhifufangshi; + } + + /** + * 设置 父表:支付方式表zhifufangshi + * + * @param zhifufangshi 父表:支付方式表zhifufangshi + */ + public void setZhifufangshi(Zhifufangshi zhifufangshi) { + this.zhifufangshi = zhifufangshi; + } + /** + * 获取 父表:用户表users + * + * @return users 父表:用户表users + */ + public Users getUsers() { + return this.users; + } + + /** + * 设置 父表:用户表users + * + * @param users 父表:用户表users + */ + public void setUsers(Users users) { + this.users = users; + } + +} diff --git a/entity/DingdanExample.java b/entity/DingdanExample.java new file mode 100644 index 0000000..6de7314 --- /dev/null +++ b/entity/DingdanExample.java @@ -0,0 +1,1163 @@ +package com.entity; + +import java.util.ArrayList; +import java.util.List; + +/** + * @ClassName Dingdan + * @Description mybatis持久层数据操作订单表搜索条件及排序封装扩展类 + */ +public class DingdanExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DingdanExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andBianhaoIsNull() { + addCriterion("bianhao is null"); + return (Criteria) this; + } + + public Criteria andBianhaoIsNotNull() { + addCriterion("bianhao is not null"); + return (Criteria) this; + } + + public Criteria andBianhaoEqualTo(String value) { + addCriterion("bianhao =", value, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoNotEqualTo(String value) { + addCriterion("bianhao <>", value, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoGreaterThan(String value) { + addCriterion("bianhao >", value, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoGreaterThanOrEqualTo(String value) { + addCriterion("bianhao >=", value, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoLessThan(String value) { + addCriterion("bianhao <", value, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoLessThanOrEqualTo(String value) { + addCriterion("bianhao <=", value, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoLike(String value) { + addCriterion("bianhao like", value, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoNotLike(String value) { + addCriterion("bianhao not like", value, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoIn(List values) { + addCriterion("bianhao in", values, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoNotIn(List values) { + addCriterion("bianhao not in", values, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoBetween(String value1, String value2) { + addCriterion("bianhao between", value1, value2, "bianhao"); + return (Criteria) this; + } + + public Criteria andBianhaoNotBetween(String value1, String value2) { + addCriterion("bianhao not between", value1, value2, "bianhao"); + return (Criteria) this; + } + public Criteria andJineIsNull() { + addCriterion("jine is null"); + return (Criteria) this; + } + + public Criteria andJineIsNotNull() { + addCriterion("jine is not null"); + return (Criteria) this; + } + + public Criteria andJineEqualTo(Integer value) { + addCriterion("jine =", value, "jine"); + return (Criteria) this; + } + + public Criteria andJineNotEqualTo(Integer value) { + addCriterion("jine <>", value, "jine"); + return (Criteria) this; + } + + public Criteria andJineGreaterThan(Integer value) { + addCriterion("jine >", value, "jine"); + return (Criteria) this; + } + + public Criteria andJineGreaterThanOrEqualTo(Integer value) { + addCriterion("jine >=", value, "jine"); + return (Criteria) this; + } + + public Criteria andJineLessThan(Integer value) { + addCriterion("jine <", value, "jine"); + return (Criteria) this; + } + + public Criteria andJineLessThanOrEqualTo(Integer value) { + addCriterion("jine <=", value, "jine"); + return (Criteria) this; + } + + public Criteria andJineLike(Integer value) { + addCriterion("jine like", value, "jine"); + return (Criteria) this; + } + + public Criteria andJineNotLike(Integer value) { + addCriterion("jine not like", value, "jine"); + return (Criteria) this; + } + + public Criteria andJineIn(List values) { + addCriterion("jine in", values, "jine"); + return (Criteria) this; + } + + public Criteria andJineNotIn(List values) { + addCriterion("jine not in", values, "jine"); + return (Criteria) this; + } + + public Criteria andJineBetween(Integer value1, Integer value2) { + addCriterion("jine between", value1, value2, "jine"); + return (Criteria) this; + } + + public Criteria andJineNotBetween(Integer value1, Integer value2) { + addCriterion("jine not between", value1, value2, "jine"); + return (Criteria) this; + } + public Criteria andZhifushenheIsNull() { + addCriterion("zhifushenhe is null"); + return (Criteria) this; + } + + public Criteria andZhifushenheIsNotNull() { + addCriterion("zhifushenhe is not null"); + return (Criteria) this; + } + + public Criteria andZhifushenheEqualTo(String value) { + addCriterion("zhifushenhe =", value, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheNotEqualTo(String value) { + addCriterion("zhifushenhe <>", value, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheGreaterThan(String value) { + addCriterion("zhifushenhe >", value, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheGreaterThanOrEqualTo(String value) { + addCriterion("zhifushenhe >=", value, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheLessThan(String value) { + addCriterion("zhifushenhe <", value, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheLessThanOrEqualTo(String value) { + addCriterion("zhifushenhe <=", value, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheLike(String value) { + addCriterion("zhifushenhe like", value, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheNotLike(String value) { + addCriterion("zhifushenhe not like", value, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheIn(List values) { + addCriterion("zhifushenhe in", values, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheNotIn(List values) { + addCriterion("zhifushenhe not in", values, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheBetween(String value1, String value2) { + addCriterion("zhifushenhe between", value1, value2, "zhifushenhe"); + return (Criteria) this; + } + + public Criteria andZhifushenheNotBetween(String value1, String value2) { + addCriterion("zhifushenhe not between", value1, value2, "zhifushenhe"); + return (Criteria) this; + } + public Criteria andFahuoshenheIsNull() { + addCriterion("fahuoshenhe is null"); + return (Criteria) this; + } + + public Criteria andFahuoshenheIsNotNull() { + addCriterion("fahuoshenhe is not null"); + return (Criteria) this; + } + + public Criteria andFahuoshenheEqualTo(String value) { + addCriterion("fahuoshenhe =", value, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheNotEqualTo(String value) { + addCriterion("fahuoshenhe <>", value, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheGreaterThan(String value) { + addCriterion("fahuoshenhe >", value, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheGreaterThanOrEqualTo(String value) { + addCriterion("fahuoshenhe >=", value, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheLessThan(String value) { + addCriterion("fahuoshenhe <", value, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheLessThanOrEqualTo(String value) { + addCriterion("fahuoshenhe <=", value, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheLike(String value) { + addCriterion("fahuoshenhe like", value, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheNotLike(String value) { + addCriterion("fahuoshenhe not like", value, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheIn(List values) { + addCriterion("fahuoshenhe in", values, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheNotIn(List values) { + addCriterion("fahuoshenhe not in", values, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheBetween(String value1, String value2) { + addCriterion("fahuoshenhe between", value1, value2, "fahuoshenhe"); + return (Criteria) this; + } + + public Criteria andFahuoshenheNotBetween(String value1, String value2) { + addCriterion("fahuoshenhe not between", value1, value2, "fahuoshenhe"); + return (Criteria) this; + } + public Criteria andShouhuoshenheIsNull() { + addCriterion("shouhuoshenhe is null"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheIsNotNull() { + addCriterion("shouhuoshenhe is not null"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheEqualTo(String value) { + addCriterion("shouhuoshenhe =", value, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheNotEqualTo(String value) { + addCriterion("shouhuoshenhe <>", value, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheGreaterThan(String value) { + addCriterion("shouhuoshenhe >", value, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheGreaterThanOrEqualTo(String value) { + addCriterion("shouhuoshenhe >=", value, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheLessThan(String value) { + addCriterion("shouhuoshenhe <", value, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheLessThanOrEqualTo(String value) { + addCriterion("shouhuoshenhe <=", value, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheLike(String value) { + addCriterion("shouhuoshenhe like", value, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheNotLike(String value) { + addCriterion("shouhuoshenhe not like", value, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheIn(List values) { + addCriterion("shouhuoshenhe in", values, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheNotIn(List values) { + addCriterion("shouhuoshenhe not in", values, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheBetween(String value1, String value2) { + addCriterion("shouhuoshenhe between", value1, value2, "shouhuoshenhe"); + return (Criteria) this; + } + + public Criteria andShouhuoshenheNotBetween(String value1, String value2) { + addCriterion("shouhuoshenhe not between", value1, value2, "shouhuoshenhe"); + return (Criteria) this; + } + public Criteria andZhifufangshiidIsNull() { + addCriterion("zhifufangshiid is null"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidIsNotNull() { + addCriterion("zhifufangshiid is not null"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidEqualTo(Integer value) { + addCriterion("zhifufangshiid =", value, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidNotEqualTo(Integer value) { + addCriterion("zhifufangshiid <>", value, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidGreaterThan(Integer value) { + addCriterion("zhifufangshiid >", value, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidGreaterThanOrEqualTo(Integer value) { + addCriterion("zhifufangshiid >=", value, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidLessThan(Integer value) { + addCriterion("zhifufangshiid <", value, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidLessThanOrEqualTo(Integer value) { + addCriterion("zhifufangshiid <=", value, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidLike(Integer value) { + addCriterion("zhifufangshiid like", value, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidNotLike(Integer value) { + addCriterion("zhifufangshiid not like", value, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidIn(List values) { + addCriterion("zhifufangshiid in", values, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidNotIn(List values) { + addCriterion("zhifufangshiid not in", values, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidBetween(Integer value1, Integer value2) { + addCriterion("zhifufangshiid between", value1, value2, "zhifufangshiid"); + return (Criteria) this; + } + + public Criteria andZhifufangshiidNotBetween(Integer value1, Integer value2) { + addCriterion("zhifufangshiid not between", value1, value2, "zhifufangshiid"); + return (Criteria) this; + } + public Criteria andXingmingIsNull() { + addCriterion("xingming is null"); + return (Criteria) this; + } + + public Criteria andXingmingIsNotNull() { + addCriterion("xingming is not null"); + return (Criteria) this; + } + + public Criteria andXingmingEqualTo(String value) { + addCriterion("xingming =", value, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingNotEqualTo(String value) { + addCriterion("xingming <>", value, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingGreaterThan(String value) { + addCriterion("xingming >", value, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingGreaterThanOrEqualTo(String value) { + addCriterion("xingming >=", value, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingLessThan(String value) { + addCriterion("xingming <", value, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingLessThanOrEqualTo(String value) { + addCriterion("xingming <=", value, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingLike(String value) { + addCriterion("xingming like", value, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingNotLike(String value) { + addCriterion("xingming not like", value, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingIn(List values) { + addCriterion("xingming in", values, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingNotIn(List values) { + addCriterion("xingming not in", values, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingBetween(String value1, String value2) { + addCriterion("xingming between", value1, value2, "xingming"); + return (Criteria) this; + } + + public Criteria andXingmingNotBetween(String value1, String value2) { + addCriterion("xingming not between", value1, value2, "xingming"); + return (Criteria) this; + } + public Criteria andDianhuaIsNull() { + addCriterion("dianhua is null"); + return (Criteria) this; + } + + public Criteria andDianhuaIsNotNull() { + addCriterion("dianhua is not null"); + return (Criteria) this; + } + + public Criteria andDianhuaEqualTo(String value) { + addCriterion("dianhua =", value, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaNotEqualTo(String value) { + addCriterion("dianhua <>", value, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaGreaterThan(String value) { + addCriterion("dianhua >", value, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaGreaterThanOrEqualTo(String value) { + addCriterion("dianhua >=", value, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaLessThan(String value) { + addCriterion("dianhua <", value, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaLessThanOrEqualTo(String value) { + addCriterion("dianhua <=", value, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaLike(String value) { + addCriterion("dianhua like", value, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaNotLike(String value) { + addCriterion("dianhua not like", value, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaIn(List values) { + addCriterion("dianhua in", values, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaNotIn(List values) { + addCriterion("dianhua not in", values, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaBetween(String value1, String value2) { + addCriterion("dianhua between", value1, value2, "dianhua"); + return (Criteria) this; + } + + public Criteria andDianhuaNotBetween(String value1, String value2) { + addCriterion("dianhua not between", value1, value2, "dianhua"); + return (Criteria) this; + } + public Criteria andDizhiIsNull() { + addCriterion("dizhi is null"); + return (Criteria) this; + } + + public Criteria andDizhiIsNotNull() { + addCriterion("dizhi is not null"); + return (Criteria) this; + } + + public Criteria andDizhiEqualTo(String value) { + addCriterion("dizhi =", value, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiNotEqualTo(String value) { + addCriterion("dizhi <>", value, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiGreaterThan(String value) { + addCriterion("dizhi >", value, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiGreaterThanOrEqualTo(String value) { + addCriterion("dizhi >=", value, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiLessThan(String value) { + addCriterion("dizhi <", value, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiLessThanOrEqualTo(String value) { + addCriterion("dizhi <=", value, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiLike(String value) { + addCriterion("dizhi like", value, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiNotLike(String value) { + addCriterion("dizhi not like", value, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiIn(List values) { + addCriterion("dizhi in", values, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiNotIn(List values) { + addCriterion("dizhi not in", values, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiBetween(String value1, String value2) { + addCriterion("dizhi between", value1, value2, "dizhi"); + return (Criteria) this; + } + + public Criteria andDizhiNotBetween(String value1, String value2) { + addCriterion("dizhi not between", value1, value2, "dizhi"); + return (Criteria) this; + } + public Criteria andShijianIsNull() { + addCriterion("shijian is null"); + return (Criteria) this; + } + + public Criteria andShijianIsNotNull() { + addCriterion("shijian is not null"); + return (Criteria) this; + } + + public Criteria andShijianEqualTo(String value) { + addCriterion("shijian =", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianNotEqualTo(String value) { + addCriterion("shijian <>", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianGreaterThan(String value) { + addCriterion("shijian >", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianGreaterThanOrEqualTo(String value) { + addCriterion("shijian >=", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianLessThan(String value) { + addCriterion("shijian <", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianLessThanOrEqualTo(String value) { + addCriterion("shijian <=", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianLike(String value) { + addCriterion("shijian like", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianNotLike(String value) { + addCriterion("shijian not like", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianIn(List values) { + addCriterion("shijian in", values, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianNotIn(List values) { + addCriterion("shijian not in", values, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianBetween(String value1, String value2) { + addCriterion("shijian between", value1, value2, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianNotBetween(String value1, String value2) { + addCriterion("shijian not between", value1, value2, "shijian"); + return (Criteria) this; + } + public Criteria andWuliuIsNull() { + addCriterion("wuliu is null"); + return (Criteria) this; + } + + public Criteria andWuliuIsNotNull() { + addCriterion("wuliu is not null"); + return (Criteria) this; + } + + public Criteria andWuliuEqualTo(String value) { + addCriterion("wuliu =", value, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuNotEqualTo(String value) { + addCriterion("wuliu <>", value, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuGreaterThan(String value) { + addCriterion("wuliu >", value, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuGreaterThanOrEqualTo(String value) { + addCriterion("wuliu >=", value, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuLessThan(String value) { + addCriterion("wuliu <", value, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuLessThanOrEqualTo(String value) { + addCriterion("wuliu <=", value, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuLike(String value) { + addCriterion("wuliu like", value, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuNotLike(String value) { + addCriterion("wuliu not like", value, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuIn(List values) { + addCriterion("wuliu in", values, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuNotIn(List values) { + addCriterion("wuliu not in", values, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuBetween(String value1, String value2) { + addCriterion("wuliu between", value1, value2, "wuliu"); + return (Criteria) this; + } + + public Criteria andWuliuNotBetween(String value1, String value2) { + addCriterion("wuliu not between", value1, value2, "wuliu"); + return (Criteria) this; + } + public Criteria andBeizhuIsNull() { + addCriterion("beizhu is null"); + return (Criteria) this; + } + + public Criteria andBeizhuIsNotNull() { + addCriterion("beizhu is not null"); + return (Criteria) this; + } + + public Criteria andBeizhuEqualTo(String value) { + addCriterion("beizhu =", value, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuNotEqualTo(String value) { + addCriterion("beizhu <>", value, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuGreaterThan(String value) { + addCriterion("beizhu >", value, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuGreaterThanOrEqualTo(String value) { + addCriterion("beizhu >=", value, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuLessThan(String value) { + addCriterion("beizhu <", value, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuLessThanOrEqualTo(String value) { + addCriterion("beizhu <=", value, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuLike(String value) { + addCriterion("beizhu like", value, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuNotLike(String value) { + addCriterion("beizhu not like", value, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuIn(List values) { + addCriterion("beizhu in", values, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuNotIn(List values) { + addCriterion("beizhu not in", values, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuBetween(String value1, String value2) { + addCriterion("beizhu between", value1, value2, "beizhu"); + return (Criteria) this; + } + + public Criteria andBeizhuNotBetween(String value1, String value2) { + addCriterion("beizhu not between", value1, value2, "beizhu"); + return (Criteria) this; + } + public Criteria andUsersidIsNull() { + addCriterion("usersid is null"); + return (Criteria) this; + } + + public Criteria andUsersidIsNotNull() { + addCriterion("usersid is not null"); + return (Criteria) this; + } + + public Criteria andUsersidEqualTo(Integer value) { + addCriterion("usersid =", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotEqualTo(Integer value) { + addCriterion("usersid <>", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidGreaterThan(Integer value) { + addCriterion("usersid >", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidGreaterThanOrEqualTo(Integer value) { + addCriterion("usersid >=", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLessThan(Integer value) { + addCriterion("usersid <", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLessThanOrEqualTo(Integer value) { + addCriterion("usersid <=", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLike(Integer value) { + addCriterion("usersid like", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotLike(Integer value) { + addCriterion("usersid not like", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidIn(List values) { + addCriterion("usersid in", values, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotIn(List values) { + addCriterion("usersid not in", values, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidBetween(Integer value1, Integer value2) { + addCriterion("usersid between", value1, value2, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotBetween(Integer value1, Integer value2) { + addCriterion("usersid not between", value1, value2, "usersid"); + 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); + } + } +} diff --git a/entity/Dingdanxiang.java b/entity/Dingdanxiang.java new file mode 100644 index 0000000..601ce7f --- /dev/null +++ b/entity/Dingdanxiang.java @@ -0,0 +1,167 @@ +package com.entity; + + +/** + * @ClassName Dingdanxiang + * @Description 订单项模块实体层 + */ +public class Dingdanxiang { + //id列 + private Integer id; + + + //订单id + private Integer dingdanid; + //商品id + private Integer shangpinid; + //商品数量 + private Integer goumaishuliang; + //用户id + private Integer usersid; + //父表:订单表dingdan + private Dingdan dingdan; + //父表:零食表shangpin + private Shangpin shangpin; + //父表:用户表users + private Users users; + + + /** + * 获取 id列 + * + * @return id id列 + */ + public Integer getId() { + return this.id; + } + + /** + * 设置 id列 + * + * @param id id列 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取 订单id + * + * @return dingdanid 订单id + */ + public Integer getDingdanid() { + return this.dingdanid; + } + + /** + * 设置 订单id + * + * @param dingdanid 订单id + */ + public void setDingdanid(Integer dingdanid) { + this.dingdanid = dingdanid; + } + /** + * 获取 商品id + * + * @return shangpinid 商品id + */ + public Integer getShangpinid() { + return this.shangpinid; + } + + /** + * 设置 商品id + * + * @param shangpinid 商品id + */ + public void setShangpinid(Integer shangpinid) { + this.shangpinid = shangpinid; + } + /** + * 获取 商品数量 + * + * @return goumaishuliang 商品数量 + */ + public Integer getGoumaishuliang() { + return this.goumaishuliang; + } + + /** + * 设置 商品数量 + * + * @param goumaishuliang 商品数量 + */ + public void setGoumaishuliang(Integer goumaishuliang) { + this.goumaishuliang = goumaishuliang; + } + /** + * 获取 用户id + * + * @return usersid 用户id + */ + public Integer getUsersid() { + return this.usersid; + } + + /** + * 设置 用户id + * + * @param usersid 用户id + */ + public void setUsersid(Integer usersid) { + this.usersid = usersid; + } + /** + * 获取 父表:订单表dingdan + * + * @return dingdan 父表:订单表dingdan + */ + public Dingdan getDingdan() { + return this.dingdan; + } + + /** + * 设置 父表:订单表dingdan + * + * @param dingdan 父表:订单表dingdan + */ + public void setDingdan(Dingdan dingdan) { + this.dingdan = dingdan; + } + /** + * 获取 父表:零食表shangpin + * + * @return shangpin 父表:零食表shangpin + */ + public Shangpin getShangpin() { + return this.shangpin; + } + + /** + * 设置 父表:零食表shangpin + * + * @param shangpin 父表:零食表shangpin + */ + public void setShangpin(Shangpin shangpin) { + this.shangpin = shangpin; + } + /** + * 获取 父表:用户表users + * + * @return users 父表:用户表users + */ + public Users getUsers() { + return this.users; + } + + /** + * 设置 父表:用户表users + * + * @param users 父表:用户表users + */ + public void setUsers(Users users) { + this.users = users; + } + +} diff --git a/entity/DingdanxiangExample.java b/entity/DingdanxiangExample.java new file mode 100644 index 0000000..d2d85c5 --- /dev/null +++ b/entity/DingdanxiangExample.java @@ -0,0 +1,542 @@ +package com.entity; + +import java.util.ArrayList; +import java.util.List; + +/** + * @ClassName Dingdanxiang + * @Description mybatis持久层数据操作订单项表搜索条件及排序封装扩展类 + */ +public class DingdanxiangExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DingdanxiangExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andDingdanidIsNull() { + addCriterion("dingdanid is null"); + return (Criteria) this; + } + + public Criteria andDingdanidIsNotNull() { + addCriterion("dingdanid is not null"); + return (Criteria) this; + } + + public Criteria andDingdanidEqualTo(Integer value) { + addCriterion("dingdanid =", value, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidNotEqualTo(Integer value) { + addCriterion("dingdanid <>", value, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidGreaterThan(Integer value) { + addCriterion("dingdanid >", value, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidGreaterThanOrEqualTo(Integer value) { + addCriterion("dingdanid >=", value, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidLessThan(Integer value) { + addCriterion("dingdanid <", value, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidLessThanOrEqualTo(Integer value) { + addCriterion("dingdanid <=", value, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidLike(Integer value) { + addCriterion("dingdanid like", value, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidNotLike(Integer value) { + addCriterion("dingdanid not like", value, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidIn(List values) { + addCriterion("dingdanid in", values, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidNotIn(List values) { + addCriterion("dingdanid not in", values, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidBetween(Integer value1, Integer value2) { + addCriterion("dingdanid between", value1, value2, "dingdanid"); + return (Criteria) this; + } + + public Criteria andDingdanidNotBetween(Integer value1, Integer value2) { + addCriterion("dingdanid not between", value1, value2, "dingdanid"); + return (Criteria) this; + } + public Criteria andShangpinidIsNull() { + addCriterion("shangpinid is null"); + return (Criteria) this; + } + + public Criteria andShangpinidIsNotNull() { + addCriterion("shangpinid is not null"); + return (Criteria) this; + } + + public Criteria andShangpinidEqualTo(Integer value) { + addCriterion("shangpinid =", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidNotEqualTo(Integer value) { + addCriterion("shangpinid <>", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidGreaterThan(Integer value) { + addCriterion("shangpinid >", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidGreaterThanOrEqualTo(Integer value) { + addCriterion("shangpinid >=", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidLessThan(Integer value) { + addCriterion("shangpinid <", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidLessThanOrEqualTo(Integer value) { + addCriterion("shangpinid <=", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidLike(Integer value) { + addCriterion("shangpinid like", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidNotLike(Integer value) { + addCriterion("shangpinid not like", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidIn(List values) { + addCriterion("shangpinid in", values, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidNotIn(List values) { + addCriterion("shangpinid not in", values, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidBetween(Integer value1, Integer value2) { + addCriterion("shangpinid between", value1, value2, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidNotBetween(Integer value1, Integer value2) { + addCriterion("shangpinid not between", value1, value2, "shangpinid"); + return (Criteria) this; + } + public Criteria andGoumaishuliangIsNull() { + addCriterion("goumaishuliang is null"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangIsNotNull() { + addCriterion("goumaishuliang is not null"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangEqualTo(Integer value) { + addCriterion("goumaishuliang =", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangNotEqualTo(Integer value) { + addCriterion("goumaishuliang <>", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangGreaterThan(Integer value) { + addCriterion("goumaishuliang >", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangGreaterThanOrEqualTo(Integer value) { + addCriterion("goumaishuliang >=", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangLessThan(Integer value) { + addCriterion("goumaishuliang <", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangLessThanOrEqualTo(Integer value) { + addCriterion("goumaishuliang <=", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangLike(Integer value) { + addCriterion("goumaishuliang like", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangNotLike(Integer value) { + addCriterion("goumaishuliang not like", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangIn(List values) { + addCriterion("goumaishuliang in", values, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangNotIn(List values) { + addCriterion("goumaishuliang not in", values, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangBetween(Integer value1, Integer value2) { + addCriterion("goumaishuliang between", value1, value2, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangNotBetween(Integer value1, Integer value2) { + addCriterion("goumaishuliang not between", value1, value2, "goumaishuliang"); + return (Criteria) this; + } + public Criteria andUsersidIsNull() { + addCriterion("usersid is null"); + return (Criteria) this; + } + + public Criteria andUsersidIsNotNull() { + addCriterion("usersid is not null"); + return (Criteria) this; + } + + public Criteria andUsersidEqualTo(Integer value) { + addCriterion("usersid =", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotEqualTo(Integer value) { + addCriterion("usersid <>", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidGreaterThan(Integer value) { + addCriterion("usersid >", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidGreaterThanOrEqualTo(Integer value) { + addCriterion("usersid >=", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLessThan(Integer value) { + addCriterion("usersid <", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLessThanOrEqualTo(Integer value) { + addCriterion("usersid <=", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLike(Integer value) { + addCriterion("usersid like", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotLike(Integer value) { + addCriterion("usersid not like", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidIn(List values) { + addCriterion("usersid in", values, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotIn(List values) { + addCriterion("usersid not in", values, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidBetween(Integer value1, Integer value2) { + addCriterion("usersid between", value1, value2, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotBetween(Integer value1, Integer value2) { + addCriterion("usersid not between", value1, value2, "usersid"); + 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); + } + } +} diff --git a/entity/Dx.java b/entity/Dx.java new file mode 100644 index 0000000..99a3aa5 --- /dev/null +++ b/entity/Dx.java @@ -0,0 +1,91 @@ +package com.entity; + + +/** + * @ClassName Dx + * @Description 信息介绍模块实体层 + */ +public class Dx { + //id列 + private Integer id; + + + //类别 + private String leibie; + //内容 + private String content; + //时间 + private String addtime; + + + /** + * 获取 id列 + * + * @return id id列 + */ + public Integer getId() { + return this.id; + } + + /** + * 设置 id列 + * + * @param id id列 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取 类别 + * + * @return leibie 类别 + */ + public String getLeibie() { + return this.leibie; + } + + /** + * 设置 类别 + * + * @param leibie 类别 + */ + public void setLeibie(String leibie) { + this.leibie = leibie; + } + /** + * 获取 内容 + * + * @return content 内容 + */ + public String getContent() { + return this.content; + } + + /** + * 设置 内容 + * + * @param content 内容 + */ + public void setContent(String content) { + this.content = content; + } + /** + * 获取 时间 + * + * @return addtime 时间 + */ + public String getAddtime() { + return this.addtime; + } + + /** + * 设置 时间 + * + * @param addtime 时间 + */ + public void setAddtime(String addtime) { + this.addtime = addtime; + } + +} diff --git a/entity/DxExample.java b/entity/DxExample.java new file mode 100644 index 0000000..808b090 --- /dev/null +++ b/entity/DxExample.java @@ -0,0 +1,473 @@ +package com.entity; + +import java.util.ArrayList; +import java.util.List; + +/** + * @ClassName Dx + * @Description mybatis持久层数据操作信息介绍表搜索条件及排序封装扩展类 + */ +public class DxExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DxExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andLeibieIsNull() { + addCriterion("leibie is null"); + return (Criteria) this; + } + + public Criteria andLeibieIsNotNull() { + addCriterion("leibie is not null"); + return (Criteria) this; + } + + public Criteria andLeibieEqualTo(String value) { + addCriterion("leibie =", value, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieNotEqualTo(String value) { + addCriterion("leibie <>", value, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieGreaterThan(String value) { + addCriterion("leibie >", value, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieGreaterThanOrEqualTo(String value) { + addCriterion("leibie >=", value, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieLessThan(String value) { + addCriterion("leibie <", value, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieLessThanOrEqualTo(String value) { + addCriterion("leibie <=", value, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieLike(String value) { + addCriterion("leibie like", value, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieNotLike(String value) { + addCriterion("leibie not like", value, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieIn(List values) { + addCriterion("leibie in", values, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieNotIn(List values) { + addCriterion("leibie not in", values, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieBetween(String value1, String value2) { + addCriterion("leibie between", value1, value2, "leibie"); + return (Criteria) this; + } + + public Criteria andLeibieNotBetween(String value1, String value2) { + addCriterion("leibie not between", value1, value2, "leibie"); + return (Criteria) this; + } + public Criteria andContentIsNull() { + addCriterion("content is null"); + return (Criteria) this; + } + + public Criteria andContentIsNotNull() { + addCriterion("content is not null"); + return (Criteria) this; + } + + public Criteria andContentEqualTo(String value) { + addCriterion("content =", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotEqualTo(String value) { + addCriterion("content <>", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThan(String value) { + addCriterion("content >", value, "content"); + return (Criteria) this; + } + + public Criteria andContentGreaterThanOrEqualTo(String value) { + addCriterion("content >=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThan(String value) { + addCriterion("content <", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLessThanOrEqualTo(String value) { + addCriterion("content <=", value, "content"); + return (Criteria) this; + } + + public Criteria andContentLike(String value) { + addCriterion("content like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentNotLike(String value) { + addCriterion("content not like", value, "content"); + return (Criteria) this; + } + + public Criteria andContentIn(List values) { + addCriterion("content in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentNotIn(List values) { + addCriterion("content not in", values, "content"); + return (Criteria) this; + } + + public Criteria andContentBetween(String value1, String value2) { + addCriterion("content between", value1, value2, "content"); + return (Criteria) this; + } + + public Criteria andContentNotBetween(String value1, String value2) { + addCriterion("content not between", value1, value2, "content"); + return (Criteria) this; + } + public Criteria andAddtimeIsNull() { + addCriterion("addtime is null"); + return (Criteria) this; + } + + public Criteria andAddtimeIsNotNull() { + addCriterion("addtime is not null"); + return (Criteria) this; + } + + public Criteria andAddtimeEqualTo(String value) { + addCriterion("addtime =", value, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeNotEqualTo(String value) { + addCriterion("addtime <>", value, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeGreaterThan(String value) { + addCriterion("addtime >", value, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeGreaterThanOrEqualTo(String value) { + addCriterion("addtime >=", value, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeLessThan(String value) { + addCriterion("addtime <", value, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeLessThanOrEqualTo(String value) { + addCriterion("addtime <=", value, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeLike(String value) { + addCriterion("addtime like", value, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeNotLike(String value) { + addCriterion("addtime not like", value, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeIn(List values) { + addCriterion("addtime in", values, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeNotIn(List values) { + addCriterion("addtime not in", values, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeBetween(String value1, String value2) { + addCriterion("addtime between", value1, value2, "addtime"); + return (Criteria) this; + } + + public Criteria andAddtimeNotBetween(String value1, String value2) { + addCriterion("addtime not between", value1, value2, "addtime"); + 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); + } + } +} diff --git a/entity/Gonggao.java b/entity/Gonggao.java new file mode 100644 index 0000000..fa29034 --- /dev/null +++ b/entity/Gonggao.java @@ -0,0 +1,110 @@ +package com.entity; + + +/** + * @ClassName Gonggao + * @Description 公告模块实体层 + */ +public class Gonggao { + //id列 + private Integer id; + + + //标题 + private String biaoti; + //内容 + private String neirong; + //图片 + private String tupian; + //时间 + private String shijian; + + + /** + * 获取 id列 + * + * @return id id列 + */ + public Integer getId() { + return this.id; + } + + /** + * 设置 id列 + * + * @param id id列 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取 标题 + * + * @return biaoti 标题 + */ + public String getBiaoti() { + return this.biaoti; + } + + /** + * 设置 标题 + * + * @param biaoti 标题 + */ + public void setBiaoti(String biaoti) { + this.biaoti = biaoti; + } + /** + * 获取 内容 + * + * @return neirong 内容 + */ + public String getNeirong() { + return this.neirong; + } + + /** + * 设置 内容 + * + * @param neirong 内容 + */ + public void setNeirong(String neirong) { + this.neirong = neirong; + } + /** + * 获取 图片 + * + * @return tupian 图片 + */ + public String getTupian() { + return this.tupian; + } + + /** + * 设置 图片 + * + * @param tupian 图片 + */ + public void setTupian(String tupian) { + this.tupian = tupian; + } + /** + * 获取 时间 + * + * @return shijian 时间 + */ + public String getShijian() { + return this.shijian; + } + + /** + * 设置 时间 + * + * @param shijian 时间 + */ + public void setShijian(String shijian) { + this.shijian = shijian; + } + +} diff --git a/entity/GonggaoExample.java b/entity/GonggaoExample.java new file mode 100644 index 0000000..4ff3ddc --- /dev/null +++ b/entity/GonggaoExample.java @@ -0,0 +1,542 @@ +package com.entity; + +import java.util.ArrayList; +import java.util.List; + +/** + * @ClassName Gonggao + * @Description mybatis持久层数据操作公告表搜索条件及排序封装扩展类 + */ +public class GonggaoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public GonggaoExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andBiaotiIsNull() { + addCriterion("biaoti is null"); + return (Criteria) this; + } + + public Criteria andBiaotiIsNotNull() { + addCriterion("biaoti is not null"); + return (Criteria) this; + } + + public Criteria andBiaotiEqualTo(String value) { + addCriterion("biaoti =", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotEqualTo(String value) { + addCriterion("biaoti <>", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiGreaterThan(String value) { + addCriterion("biaoti >", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiGreaterThanOrEqualTo(String value) { + addCriterion("biaoti >=", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiLessThan(String value) { + addCriterion("biaoti <", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiLessThanOrEqualTo(String value) { + addCriterion("biaoti <=", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiLike(String value) { + addCriterion("biaoti like", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotLike(String value) { + addCriterion("biaoti not like", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiIn(List values) { + addCriterion("biaoti in", values, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotIn(List values) { + addCriterion("biaoti not in", values, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiBetween(String value1, String value2) { + addCriterion("biaoti between", value1, value2, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotBetween(String value1, String value2) { + addCriterion("biaoti not between", value1, value2, "biaoti"); + return (Criteria) this; + } + public Criteria andNeirongIsNull() { + addCriterion("neirong is null"); + return (Criteria) this; + } + + public Criteria andNeirongIsNotNull() { + addCriterion("neirong is not null"); + return (Criteria) this; + } + + public Criteria andNeirongEqualTo(String value) { + addCriterion("neirong =", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongNotEqualTo(String value) { + addCriterion("neirong <>", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongGreaterThan(String value) { + addCriterion("neirong >", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongGreaterThanOrEqualTo(String value) { + addCriterion("neirong >=", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongLessThan(String value) { + addCriterion("neirong <", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongLessThanOrEqualTo(String value) { + addCriterion("neirong <=", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongLike(String value) { + addCriterion("neirong like", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongNotLike(String value) { + addCriterion("neirong not like", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongIn(List values) { + addCriterion("neirong in", values, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongNotIn(List values) { + addCriterion("neirong not in", values, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongBetween(String value1, String value2) { + addCriterion("neirong between", value1, value2, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongNotBetween(String value1, String value2) { + addCriterion("neirong not between", value1, value2, "neirong"); + return (Criteria) this; + } + public Criteria andTupianIsNull() { + addCriterion("tupian is null"); + return (Criteria) this; + } + + public Criteria andTupianIsNotNull() { + addCriterion("tupian is not null"); + return (Criteria) this; + } + + public Criteria andTupianEqualTo(String value) { + addCriterion("tupian =", value, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianNotEqualTo(String value) { + addCriterion("tupian <>", value, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianGreaterThan(String value) { + addCriterion("tupian >", value, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianGreaterThanOrEqualTo(String value) { + addCriterion("tupian >=", value, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianLessThan(String value) { + addCriterion("tupian <", value, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianLessThanOrEqualTo(String value) { + addCriterion("tupian <=", value, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianLike(String value) { + addCriterion("tupian like", value, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianNotLike(String value) { + addCriterion("tupian not like", value, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianIn(List values) { + addCriterion("tupian in", values, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianNotIn(List values) { + addCriterion("tupian not in", values, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianBetween(String value1, String value2) { + addCriterion("tupian between", value1, value2, "tupian"); + return (Criteria) this; + } + + public Criteria andTupianNotBetween(String value1, String value2) { + addCriterion("tupian not between", value1, value2, "tupian"); + return (Criteria) this; + } + public Criteria andShijianIsNull() { + addCriterion("shijian is null"); + return (Criteria) this; + } + + public Criteria andShijianIsNotNull() { + addCriterion("shijian is not null"); + return (Criteria) this; + } + + public Criteria andShijianEqualTo(String value) { + addCriterion("shijian =", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianNotEqualTo(String value) { + addCriterion("shijian <>", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianGreaterThan(String value) { + addCriterion("shijian >", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianGreaterThanOrEqualTo(String value) { + addCriterion("shijian >=", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianLessThan(String value) { + addCriterion("shijian <", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianLessThanOrEqualTo(String value) { + addCriterion("shijian <=", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianLike(String value) { + addCriterion("shijian like", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianNotLike(String value) { + addCriterion("shijian not like", value, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianIn(List values) { + addCriterion("shijian in", values, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianNotIn(List values) { + addCriterion("shijian not in", values, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianBetween(String value1, String value2) { + addCriterion("shijian between", value1, value2, "shijian"); + return (Criteria) this; + } + + public Criteria andShijianNotBetween(String value1, String value2) { + addCriterion("shijian not between", value1, value2, "shijian"); + 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); + } + } +} diff --git a/entity/Gouwuche.java b/entity/Gouwuche.java new file mode 100644 index 0000000..71afea4 --- /dev/null +++ b/entity/Gouwuche.java @@ -0,0 +1,129 @@ +package com.entity; + + +/** + * @ClassName Gouwuche + * @Description 购物车模块实体层 + */ +public class Gouwuche { + //id列 + private Integer id; + + + //商品id + private Integer shangpinid; + //商品数量 + private Integer goumaishuliang; + //用户id + private Integer usersid; + //父表:零食表shangpin + private Shangpin shangpin; + //父表:用户表users + private Users users; + + + /** + * 获取 id列 + * + * @return id id列 + */ + public Integer getId() { + return this.id; + } + + /** + * 设置 id列 + * + * @param id id列 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取 商品id + * + * @return shangpinid 商品id + */ + public Integer getShangpinid() { + return this.shangpinid; + } + + /** + * 设置 商品id + * + * @param shangpinid 商品id + */ + public void setShangpinid(Integer shangpinid) { + this.shangpinid = shangpinid; + } + /** + * 获取 商品数量 + * + * @return goumaishuliang 商品数量 + */ + public Integer getGoumaishuliang() { + return this.goumaishuliang; + } + + /** + * 设置 商品数量 + * + * @param goumaishuliang 商品数量 + */ + public void setGoumaishuliang(Integer goumaishuliang) { + this.goumaishuliang = goumaishuliang; + } + /** + * 获取 用户id + * + * @return usersid 用户id + */ + public Integer getUsersid() { + return this.usersid; + } + + /** + * 设置 用户id + * + * @param usersid 用户id + */ + public void setUsersid(Integer usersid) { + this.usersid = usersid; + } + /** + * 获取 父表:零食表shangpin + * + * @return shangpin 父表:零食表shangpin + */ + public Shangpin getShangpin() { + return this.shangpin; + } + + /** + * 设置 父表:零食表shangpin + * + * @param shangpin 父表:零食表shangpin + */ + public void setShangpin(Shangpin shangpin) { + this.shangpin = shangpin; + } + /** + * 获取 父表:用户表users + * + * @return users 父表:用户表users + */ + public Users getUsers() { + return this.users; + } + + /** + * 设置 父表:用户表users + * + * @param users 父表:用户表users + */ + public void setUsers(Users users) { + this.users = users; + } + +} diff --git a/entity/GouwucheExample.java b/entity/GouwucheExample.java new file mode 100644 index 0000000..6ae9c9e --- /dev/null +++ b/entity/GouwucheExample.java @@ -0,0 +1,473 @@ +package com.entity; + +import java.util.ArrayList; +import java.util.List; + +/** + * @ClassName Gouwuche + * @Description mybatis持久层数据操作购物车表搜索条件及排序封装扩展类 + */ +public class GouwucheExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public GouwucheExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andShangpinidIsNull() { + addCriterion("shangpinid is null"); + return (Criteria) this; + } + + public Criteria andShangpinidIsNotNull() { + addCriterion("shangpinid is not null"); + return (Criteria) this; + } + + public Criteria andShangpinidEqualTo(Integer value) { + addCriterion("shangpinid =", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidNotEqualTo(Integer value) { + addCriterion("shangpinid <>", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidGreaterThan(Integer value) { + addCriterion("shangpinid >", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidGreaterThanOrEqualTo(Integer value) { + addCriterion("shangpinid >=", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidLessThan(Integer value) { + addCriterion("shangpinid <", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidLessThanOrEqualTo(Integer value) { + addCriterion("shangpinid <=", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidLike(Integer value) { + addCriterion("shangpinid like", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidNotLike(Integer value) { + addCriterion("shangpinid not like", value, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidIn(List values) { + addCriterion("shangpinid in", values, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidNotIn(List values) { + addCriterion("shangpinid not in", values, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidBetween(Integer value1, Integer value2) { + addCriterion("shangpinid between", value1, value2, "shangpinid"); + return (Criteria) this; + } + + public Criteria andShangpinidNotBetween(Integer value1, Integer value2) { + addCriterion("shangpinid not between", value1, value2, "shangpinid"); + return (Criteria) this; + } + public Criteria andGoumaishuliangIsNull() { + addCriterion("goumaishuliang is null"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangIsNotNull() { + addCriterion("goumaishuliang is not null"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangEqualTo(Integer value) { + addCriterion("goumaishuliang =", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangNotEqualTo(Integer value) { + addCriterion("goumaishuliang <>", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangGreaterThan(Integer value) { + addCriterion("goumaishuliang >", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangGreaterThanOrEqualTo(Integer value) { + addCriterion("goumaishuliang >=", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangLessThan(Integer value) { + addCriterion("goumaishuliang <", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangLessThanOrEqualTo(Integer value) { + addCriterion("goumaishuliang <=", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangLike(Integer value) { + addCriterion("goumaishuliang like", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangNotLike(Integer value) { + addCriterion("goumaishuliang not like", value, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangIn(List values) { + addCriterion("goumaishuliang in", values, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangNotIn(List values) { + addCriterion("goumaishuliang not in", values, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangBetween(Integer value1, Integer value2) { + addCriterion("goumaishuliang between", value1, value2, "goumaishuliang"); + return (Criteria) this; + } + + public Criteria andGoumaishuliangNotBetween(Integer value1, Integer value2) { + addCriterion("goumaishuliang not between", value1, value2, "goumaishuliang"); + return (Criteria) this; + } + public Criteria andUsersidIsNull() { + addCriterion("usersid is null"); + return (Criteria) this; + } + + public Criteria andUsersidIsNotNull() { + addCriterion("usersid is not null"); + return (Criteria) this; + } + + public Criteria andUsersidEqualTo(Integer value) { + addCriterion("usersid =", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotEqualTo(Integer value) { + addCriterion("usersid <>", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidGreaterThan(Integer value) { + addCriterion("usersid >", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidGreaterThanOrEqualTo(Integer value) { + addCriterion("usersid >=", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLessThan(Integer value) { + addCriterion("usersid <", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLessThanOrEqualTo(Integer value) { + addCriterion("usersid <=", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLike(Integer value) { + addCriterion("usersid like", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotLike(Integer value) { + addCriterion("usersid not like", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidIn(List values) { + addCriterion("usersid in", values, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotIn(List values) { + addCriterion("usersid not in", values, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidBetween(Integer value1, Integer value2) { + addCriterion("usersid between", value1, value2, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotBetween(Integer value1, Integer value2) { + addCriterion("usersid not between", value1, value2, "usersid"); + 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); + } + } +} diff --git a/entity/Lianjie.java b/entity/Lianjie.java new file mode 100644 index 0000000..20871e3 --- /dev/null +++ b/entity/Lianjie.java @@ -0,0 +1,72 @@ +package com.entity; + + +/** + * @ClassName Lianjie + * @Description 友情链接模块实体层 + */ +public class Lianjie { + //id列 + private Integer id; + + + //名称 + private String name; + //链接地址 + private String url; + + + /** + * 获取 id列 + * + * @return id id列 + */ + public Integer getId() { + return this.id; + } + + /** + * 设置 id列 + * + * @param id id列 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取 名称 + * + * @return name 名称 + */ + public String getName() { + return this.name; + } + + /** + * 设置 名称 + * + * @param name 名称 + */ + public void setName(String name) { + this.name = name; + } + /** + * 获取 链接地址 + * + * @return url 链接地址 + */ + public String getUrl() { + return this.url; + } + + /** + * 设置 链接地址 + * + * @param url 链接地址 + */ + public void setUrl(String url) { + this.url = url; + } + +} diff --git a/entity/LianjieExample.java b/entity/LianjieExample.java new file mode 100644 index 0000000..3906e24 --- /dev/null +++ b/entity/LianjieExample.java @@ -0,0 +1,404 @@ +package com.entity; + +import java.util.ArrayList; +import java.util.List; + +/** + * @ClassName Lianjie + * @Description mybatis持久层数据操作友情链接表搜索条件及排序封装扩展类 + */ +public class LianjieExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public LianjieExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + 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 values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List 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 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); + } + } +} diff --git a/entity/Liuyan.java b/entity/Liuyan.java new file mode 100644 index 0000000..ad47d75 --- /dev/null +++ b/entity/Liuyan.java @@ -0,0 +1,148 @@ +package com.entity; + + +/** + * @ClassName Liuyan + * @Description 留言反馈模块实体层 + */ +public class Liuyan { + //id列 + private Integer id; + + + //标题 + private String biaoti; + //内容 + private String neirong; + //留言添加时间 + private String addshijian; + //用户id + private Integer usersid; + //回复 + private String huifu; + //父表:用户表users + private Users users; + + + /** + * 获取 id列 + * + * @return id id列 + */ + public Integer getId() { + return this.id; + } + + /** + * 设置 id列 + * + * @param id id列 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取 标题 + * + * @return biaoti 标题 + */ + public String getBiaoti() { + return this.biaoti; + } + + /** + * 设置 标题 + * + * @param biaoti 标题 + */ + public void setBiaoti(String biaoti) { + this.biaoti = biaoti; + } + /** + * 获取 内容 + * + * @return neirong 内容 + */ + public String getNeirong() { + return this.neirong; + } + + /** + * 设置 内容 + * + * @param neirong 内容 + */ + public void setNeirong(String neirong) { + this.neirong = neirong; + } + /** + * 获取 留言添加时间 + * + * @return addshijian 留言添加时间 + */ + public String getAddshijian() { + return this.addshijian; + } + + /** + * 设置 留言添加时间 + * + * @param addshijian 留言添加时间 + */ + public void setAddshijian(String addshijian) { + this.addshijian = addshijian; + } + /** + * 获取 用户id + * + * @return usersid 用户id + */ + public Integer getUsersid() { + return this.usersid; + } + + /** + * 设置 用户id + * + * @param usersid 用户id + */ + public void setUsersid(Integer usersid) { + this.usersid = usersid; + } + /** + * 获取 回复 + * + * @return huifu 回复 + */ + public String getHuifu() { + return this.huifu; + } + + /** + * 设置 回复 + * + * @param huifu 回复 + */ + public void setHuifu(String huifu) { + this.huifu = huifu; + } + /** + * 获取 父表:用户表users + * + * @return users 父表:用户表users + */ + public Users getUsers() { + return this.users; + } + + /** + * 设置 父表:用户表users + * + * @param users 父表:用户表users + */ + public void setUsers(Users users) { + this.users = users; + } + +} diff --git a/entity/LiuyanExample.java b/entity/LiuyanExample.java new file mode 100644 index 0000000..668ce68 --- /dev/null +++ b/entity/LiuyanExample.java @@ -0,0 +1,611 @@ +package com.entity; + +import java.util.ArrayList; +import java.util.List; + +/** + * @ClassName Liuyan + * @Description mybatis持久层数据操作留言反馈表搜索条件及排序封装扩展类 + */ +public class LiuyanExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public LiuyanExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andBiaotiIsNull() { + addCriterion("biaoti is null"); + return (Criteria) this; + } + + public Criteria andBiaotiIsNotNull() { + addCriterion("biaoti is not null"); + return (Criteria) this; + } + + public Criteria andBiaotiEqualTo(String value) { + addCriterion("biaoti =", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotEqualTo(String value) { + addCriterion("biaoti <>", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiGreaterThan(String value) { + addCriterion("biaoti >", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiGreaterThanOrEqualTo(String value) { + addCriterion("biaoti >=", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiLessThan(String value) { + addCriterion("biaoti <", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiLessThanOrEqualTo(String value) { + addCriterion("biaoti <=", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiLike(String value) { + addCriterion("biaoti like", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotLike(String value) { + addCriterion("biaoti not like", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiIn(List values) { + addCriterion("biaoti in", values, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotIn(List values) { + addCriterion("biaoti not in", values, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiBetween(String value1, String value2) { + addCriterion("biaoti between", value1, value2, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotBetween(String value1, String value2) { + addCriterion("biaoti not between", value1, value2, "biaoti"); + return (Criteria) this; + } + public Criteria andNeirongIsNull() { + addCriterion("neirong is null"); + return (Criteria) this; + } + + public Criteria andNeirongIsNotNull() { + addCriterion("neirong is not null"); + return (Criteria) this; + } + + public Criteria andNeirongEqualTo(String value) { + addCriterion("neirong =", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongNotEqualTo(String value) { + addCriterion("neirong <>", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongGreaterThan(String value) { + addCriterion("neirong >", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongGreaterThanOrEqualTo(String value) { + addCriterion("neirong >=", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongLessThan(String value) { + addCriterion("neirong <", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongLessThanOrEqualTo(String value) { + addCriterion("neirong <=", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongLike(String value) { + addCriterion("neirong like", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongNotLike(String value) { + addCriterion("neirong not like", value, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongIn(List values) { + addCriterion("neirong in", values, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongNotIn(List values) { + addCriterion("neirong not in", values, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongBetween(String value1, String value2) { + addCriterion("neirong between", value1, value2, "neirong"); + return (Criteria) this; + } + + public Criteria andNeirongNotBetween(String value1, String value2) { + addCriterion("neirong not between", value1, value2, "neirong"); + return (Criteria) this; + } + public Criteria andAddshijianIsNull() { + addCriterion("addshijian is null"); + return (Criteria) this; + } + + public Criteria andAddshijianIsNotNull() { + addCriterion("addshijian is not null"); + return (Criteria) this; + } + + public Criteria andAddshijianEqualTo(String value) { + addCriterion("addshijian =", value, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianNotEqualTo(String value) { + addCriterion("addshijian <>", value, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianGreaterThan(String value) { + addCriterion("addshijian >", value, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianGreaterThanOrEqualTo(String value) { + addCriterion("addshijian >=", value, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianLessThan(String value) { + addCriterion("addshijian <", value, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianLessThanOrEqualTo(String value) { + addCriterion("addshijian <=", value, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianLike(String value) { + addCriterion("addshijian like", value, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianNotLike(String value) { + addCriterion("addshijian not like", value, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianIn(List values) { + addCriterion("addshijian in", values, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianNotIn(List values) { + addCriterion("addshijian not in", values, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianBetween(String value1, String value2) { + addCriterion("addshijian between", value1, value2, "addshijian"); + return (Criteria) this; + } + + public Criteria andAddshijianNotBetween(String value1, String value2) { + addCriterion("addshijian not between", value1, value2, "addshijian"); + return (Criteria) this; + } + public Criteria andUsersidIsNull() { + addCriterion("usersid is null"); + return (Criteria) this; + } + + public Criteria andUsersidIsNotNull() { + addCriterion("usersid is not null"); + return (Criteria) this; + } + + public Criteria andUsersidEqualTo(Integer value) { + addCriterion("usersid =", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotEqualTo(Integer value) { + addCriterion("usersid <>", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidGreaterThan(Integer value) { + addCriterion("usersid >", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidGreaterThanOrEqualTo(Integer value) { + addCriterion("usersid >=", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLessThan(Integer value) { + addCriterion("usersid <", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLessThanOrEqualTo(Integer value) { + addCriterion("usersid <=", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidLike(Integer value) { + addCriterion("usersid like", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotLike(Integer value) { + addCriterion("usersid not like", value, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidIn(List values) { + addCriterion("usersid in", values, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotIn(List values) { + addCriterion("usersid not in", values, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidBetween(Integer value1, Integer value2) { + addCriterion("usersid between", value1, value2, "usersid"); + return (Criteria) this; + } + + public Criteria andUsersidNotBetween(Integer value1, Integer value2) { + addCriterion("usersid not between", value1, value2, "usersid"); + return (Criteria) this; + } + public Criteria andHuifuIsNull() { + addCriterion("huifu is null"); + return (Criteria) this; + } + + public Criteria andHuifuIsNotNull() { + addCriterion("huifu is not null"); + return (Criteria) this; + } + + public Criteria andHuifuEqualTo(String value) { + addCriterion("huifu =", value, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuNotEqualTo(String value) { + addCriterion("huifu <>", value, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuGreaterThan(String value) { + addCriterion("huifu >", value, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuGreaterThanOrEqualTo(String value) { + addCriterion("huifu >=", value, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuLessThan(String value) { + addCriterion("huifu <", value, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuLessThanOrEqualTo(String value) { + addCriterion("huifu <=", value, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuLike(String value) { + addCriterion("huifu like", value, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuNotLike(String value) { + addCriterion("huifu not like", value, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuIn(List values) { + addCriterion("huifu in", values, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuNotIn(List values) { + addCriterion("huifu not in", values, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuBetween(String value1, String value2) { + addCriterion("huifu between", value1, value2, "huifu"); + return (Criteria) this; + } + + public Criteria andHuifuNotBetween(String value1, String value2) { + addCriterion("huifu not between", value1, value2, "huifu"); + 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); + } + } +} diff --git a/entity/Lunbo.java b/entity/Lunbo.java new file mode 100644 index 0000000..68d3cab --- /dev/null +++ b/entity/Lunbo.java @@ -0,0 +1,72 @@ +package com.entity; + + +/** + * @ClassName Lunbo + * @Description 轮播图模块实体层 + */ +public class Lunbo { + //id列 + private Integer id; + + + //标题 + private String biaoti; + //图片 + private String image; + + + /** + * 获取 id列 + * + * @return id id列 + */ + public Integer getId() { + return this.id; + } + + /** + * 设置 id列 + * + * @param id id列 + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * 获取 标题 + * + * @return biaoti 标题 + */ + public String getBiaoti() { + return this.biaoti; + } + + /** + * 设置 标题 + * + * @param biaoti 标题 + */ + public void setBiaoti(String biaoti) { + this.biaoti = biaoti; + } + /** + * 获取 图片 + * + * @return image 图片 + */ + public String getImage() { + return this.image; + } + + /** + * 设置 图片 + * + * @param image 图片 + */ + public void setImage(String image) { + this.image = image; + } + +} diff --git a/entity/LunboExample.java b/entity/LunboExample.java new file mode 100644 index 0000000..ad6ceb1 --- /dev/null +++ b/entity/LunboExample.java @@ -0,0 +1,404 @@ +package com.entity; + +import java.util.ArrayList; +import java.util.List; + +/** + * @ClassName Lunbo + * @Description mybatis持久层数据操作轮播图表搜索条件及排序封装扩展类 + */ +public class LunboExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public LunboExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andBiaotiIsNull() { + addCriterion("biaoti is null"); + return (Criteria) this; + } + + public Criteria andBiaotiIsNotNull() { + addCriterion("biaoti is not null"); + return (Criteria) this; + } + + public Criteria andBiaotiEqualTo(String value) { + addCriterion("biaoti =", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotEqualTo(String value) { + addCriterion("biaoti <>", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiGreaterThan(String value) { + addCriterion("biaoti >", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiGreaterThanOrEqualTo(String value) { + addCriterion("biaoti >=", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiLessThan(String value) { + addCriterion("biaoti <", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiLessThanOrEqualTo(String value) { + addCriterion("biaoti <=", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiLike(String value) { + addCriterion("biaoti like", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotLike(String value) { + addCriterion("biaoti not like", value, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiIn(List values) { + addCriterion("biaoti in", values, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotIn(List values) { + addCriterion("biaoti not in", values, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiBetween(String value1, String value2) { + addCriterion("biaoti between", value1, value2, "biaoti"); + return (Criteria) this; + } + + public Criteria andBiaotiNotBetween(String value1, String value2) { + addCriterion("biaoti not between", value1, value2, "biaoti"); + return (Criteria) this; + } + public Criteria andImageIsNull() { + addCriterion("image is null"); + return (Criteria) this; + } + + public Criteria andImageIsNotNull() { + addCriterion("image is not null"); + return (Criteria) this; + } + + public Criteria andImageEqualTo(String value) { + addCriterion("image =", value, "image"); + return (Criteria) this; + } + + public Criteria andImageNotEqualTo(String value) { + addCriterion("image <>", value, "image"); + return (Criteria) this; + } + + public Criteria andImageGreaterThan(String value) { + addCriterion("image >", value, "image"); + return (Criteria) this; + } + + public Criteria andImageGreaterThanOrEqualTo(String value) { + addCriterion("image >=", value, "image"); + return (Criteria) this; + } + + public Criteria andImageLessThan(String value) { + addCriterion("image <", value, "image"); + return (Criteria) this; + } + + public Criteria andImageLessThanOrEqualTo(String value) { + addCriterion("image <=", value, "image"); + return (Criteria) this; + } + + public Criteria andImageLike(String value) { + addCriterion("image like", value, "image"); + return (Criteria) this; + } + + public Criteria andImageNotLike(String value) { + addCriterion("image not like", value, "image"); + return (Criteria) this; + } + + public Criteria andImageIn(List values) { + addCriterion("image in", values, "image"); + return (Criteria) this; + } + + public Criteria andImageNotIn(List values) { + addCriterion("image not in", values, "image"); + return (Criteria) this; + } + + public Criteria andImageBetween(String value1, String value2) { + addCriterion("image between", value1, value2, "image"); + return (Criteria) this; + } + + public Criteria andImageNotBetween(String value1, String value2) { + addCriterion("image not between", value1, value2, "image"); + 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); + } + } +}