RocketMQ 实战:模拟电商网站场景综合案例(四)
一、mybatis 逆向工程使用。
1、创建 Mybatis-Reverse 逆向工程。
1.1、在 Mybatis-Reverse\pom.xml 中导入依赖坐标。
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.pinyougou</groupId>
<artifactId>mybatis-reverse</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.2.3</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.30</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.1.0</version>
</dependency>
</dependencies>
</project>
<!-- Mybatis-Reverse\pom.xml -->
1.2、创建 类 GeneratorSqlmap.java
import org.mybatis.generator.api.MyBatisGenerator;
import org.mybatis.generator.config.Configuration;
import org.mybatis.generator.config.xml.ConfigurationParser;
import org.mybatis.generator.internal.DefaultShellCallback;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class GeneratorSqlmap {
public void generator() throws Exception{
List<String> warnings = new ArrayList<String>();
boolean overwrite = true;
File configFile = new File("E:\\RocketMQ\\资料\\Mybatis-Reverse\\src\\main\\resources\\generatorConfig.xml");
ConfigurationParser cp = new ConfigurationParser(warnings);
Configuration config = cp.parseConfiguration(configFile);
DefaultShellCallback callback = new DefaultShellCallback(overwrite);
MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config,
callback, warnings);
myBatisGenerator.generate(null);
}
public static void main(String[] args) throws Exception {
try {
GeneratorSqlmap generatorSqlmap = new GeneratorSqlmap();
generatorSqlmap.generator();
} catch (Exception e) {
e.printStackTrace();
}
}
}
1.3、创建 配置文件 generatorConfig.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<context id="testTables" targetRuntime="MyBatis3">
<commentGenerator>
<!-- 是否去除自动生成的注释 true:是 : false:否 -->
<property name="suppressAllComments" value="true" />
</commentGenerator>
<!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
<jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/trade" userId="root"
password="root">
</jdbcConnection>
<!-- <jdbcConnection driverClass="oracle.jdbc.OracleDriver"
connectionURL="jdbc:oracle:thin:@127.0.0.1:1521:yycg"
userId="yycg"
password="yycg">
</jdbcConnection> -->
<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和
NUMERIC 类型解析为java.math.BigDecimal -->
<javaTypeResolver>
<property name="forceBigDecimals" value="false" />
</javaTypeResolver>
<!-- targetProject:生成PO类的位置 -->
<javaModelGenerator targetPackage="com.itheima.shop.pojo"
targetProject="E:\RocketMQ\资料\Mybatis-Reverse\src\main\java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
<!-- 从数据库返回的值被清理前后的空格 -->
<property name="trimStrings" value="true" />
</javaModelGenerator>
<!-- targetProject:mapper映射文件生成的位置 -->
<sqlMapGenerator targetPackage="com.itheima.shop.mapper"
targetProject="E:\RocketMQ\资料\Mybatis-Reverse\src\main\resources">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
</sqlMapGenerator>
<!-- targetPackage:mapper接口生成的位置 -->
<javaClientGenerator type="XMLMAPPER"
targetPackage="com.itheima.shop.mapper"
targetProject="E:\RocketMQ\资料\Mybatis-Reverse\src\main\java">
<!-- enableSubPackages:是否让schema作为包的后缀 -->
<property name="enableSubPackages" value="false" />
</javaClientGenerator>
<!-- 指定数据库表 -->
<table schema="" tableName="trade_coupon"></table>
<table schema="" tableName="trade_goods"></table>
<table schema="" tableName="trade_goods_number_log"></table>
<table schema="" tableName="trade_order"></table>
<table schema="" tableName="trade_pay"></table>
<table schema="" tableName="trade_user"></table>
<table schema="" tableName="trade_user_money_log"></table>
<table schema="" tableName="trade_mq_consumer_log"></table>
<table schema="" tableName="trade_mq_producer_temp"></table>
<!-- 有些表的字段需要指定java类型
<table schema="" tableName="">
<columnOverride column="" javaType="" />
</table> -->
</context>
</generatorConfiguration>
1.4、创建 日志文件 log4j.properties
log4j.rootLogger=DEBUG, Console
#Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p [%c] - %m%n
log4j.logger.java.sql.ResultSet=INFO
log4j.logger.org.apache=INFO
log4j.logger.java.sql.Connection=DEBUG
log4j.logger.java.sql.Statement=DEBUG
log4j.logger.java.sql.PreparedStatement=DEBUG
2、运行 GeneratorSqlmap.java ,连接数据库,逆向生成 POJO 类文件 及 mapper 类文件。
2.1、生成的 POJO 类 TradeCoupon.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
import java.util.Date;
public class TradeCoupon {
private Long couponId;
private BigDecimal couponPrice;
private Long userId;
private Long orderId;
private Integer isUsed;
private Date usedTime;
public Long getCouponId() {
return couponId;
}
public void setCouponId(Long couponId) {
this.couponId = couponId;
}
public BigDecimal getCouponPrice() {
return couponPrice;
}
public void setCouponPrice(BigDecimal couponPrice) {
this.couponPrice = couponPrice;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public Integer getIsUsed() {
return isUsed;
}
public void setIsUsed(Integer isUsed) {
this.isUsed = isUsed;
}
public Date getUsedTime() {
return usedTime;
}
public void setUsedTime(Date usedTime) {
this.usedTime = usedTime;
}
}
2.2、生成的 POJO 类 TradeCouponExample.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TradeCouponExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TradeCouponExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andCouponIdIsNull() {
addCriterion("coupon_id is null");
return (Criteria) this;
}
public Criteria andCouponIdIsNotNull() {
addCriterion("coupon_id is not null");
return (Criteria) this;
}
public Criteria andCouponIdEqualTo(Long value) {
addCriterion("coupon_id =", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdNotEqualTo(Long value) {
addCriterion("coupon_id <>", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdGreaterThan(Long value) {
addCriterion("coupon_id >", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdGreaterThanOrEqualTo(Long value) {
addCriterion("coupon_id >=", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdLessThan(Long value) {
addCriterion("coupon_id <", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdLessThanOrEqualTo(Long value) {
addCriterion("coupon_id <=", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdIn(List<Long> values) {
addCriterion("coupon_id in", values, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdNotIn(List<Long> values) {
addCriterion("coupon_id not in", values, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdBetween(Long value1, Long value2) {
addCriterion("coupon_id between", value1, value2, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdNotBetween(Long value1, Long value2) {
addCriterion("coupon_id not between", value1, value2, "couponId");
return (Criteria) this;
}
public Criteria andCouponPriceIsNull() {
addCriterion("coupon_price is null");
return (Criteria) this;
}
public Criteria andCouponPriceIsNotNull() {
addCriterion("coupon_price is not null");
return (Criteria) this;
}
public Criteria andCouponPriceEqualTo(BigDecimal value) {
addCriterion("coupon_price =", value, "couponPrice");
return (Criteria) this;
}
public Criteria andCouponPriceNotEqualTo(BigDecimal value) {
addCriterion("coupon_price <>", value, "couponPrice");
return (Criteria) this;
}
public Criteria andCouponPriceGreaterThan(BigDecimal value) {
addCriterion("coupon_price >", value, "couponPrice");
return (Criteria) this;
}
public Criteria andCouponPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("coupon_price >=", value, "couponPrice");
return (Criteria) this;
}
public Criteria andCouponPriceLessThan(BigDecimal value) {
addCriterion("coupon_price <", value, "couponPrice");
return (Criteria) this;
}
public Criteria andCouponPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("coupon_price <=", value, "couponPrice");
return (Criteria) this;
}
public Criteria andCouponPriceIn(List<BigDecimal> values) {
addCriterion("coupon_price in", values, "couponPrice");
return (Criteria) this;
}
public Criteria andCouponPriceNotIn(List<BigDecimal> values) {
addCriterion("coupon_price not in", values, "couponPrice");
return (Criteria) this;
}
public Criteria andCouponPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("coupon_price between", value1, value2, "couponPrice");
return (Criteria) this;
}
public Criteria andCouponPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("coupon_price not between", value1, value2, "couponPrice");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andOrderIdIsNull() {
addCriterion("order_id is null");
return (Criteria) this;
}
public Criteria andOrderIdIsNotNull() {
addCriterion("order_id is not null");
return (Criteria) this;
}
public Criteria andOrderIdEqualTo(Long value) {
addCriterion("order_id =", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotEqualTo(Long value) {
addCriterion("order_id <>", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThan(Long value) {
addCriterion("order_id >", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
addCriterion("order_id >=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThan(Long value) {
addCriterion("order_id <", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThanOrEqualTo(Long value) {
addCriterion("order_id <=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdIn(List<Long> values) {
addCriterion("order_id in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotIn(List<Long> values) {
addCriterion("order_id not in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdBetween(Long value1, Long value2) {
addCriterion("order_id between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotBetween(Long value1, Long value2) {
addCriterion("order_id not between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andIsUsedIsNull() {
addCriterion("is_used is null");
return (Criteria) this;
}
public Criteria andIsUsedIsNotNull() {
addCriterion("is_used is not null");
return (Criteria) this;
}
public Criteria andIsUsedEqualTo(Integer value) {
addCriterion("is_used =", value, "isUsed");
return (Criteria) this;
}
public Criteria andIsUsedNotEqualTo(Integer value) {
addCriterion("is_used <>", value, "isUsed");
return (Criteria) this;
}
public Criteria andIsUsedGreaterThan(Integer value) {
addCriterion("is_used >", value, "isUsed");
return (Criteria) this;
}
public Criteria andIsUsedGreaterThanOrEqualTo(Integer value) {
addCriterion("is_used >=", value, "isUsed");
return (Criteria) this;
}
public Criteria andIsUsedLessThan(Integer value) {
addCriterion("is_used <", value, "isUsed");
return (Criteria) this;
}
public Criteria andIsUsedLessThanOrEqualTo(Integer value) {
addCriterion("is_used <=", value, "isUsed");
return (Criteria) this;
}
public Criteria andIsUsedIn(List<Integer> values) {
addCriterion("is_used in", values, "isUsed");
return (Criteria) this;
}
public Criteria andIsUsedNotIn(List<Integer> values) {
addCriterion("is_used not in", values, "isUsed");
return (Criteria) this;
}
public Criteria andIsUsedBetween(Integer value1, Integer value2) {
addCriterion("is_used between", value1, value2, "isUsed");
return (Criteria) this;
}
public Criteria andIsUsedNotBetween(Integer value1, Integer value2) {
addCriterion("is_used not between", value1, value2, "isUsed");
return (Criteria) this;
}
public Criteria andUsedTimeIsNull() {
addCriterion("used_time is null");
return (Criteria) this;
}
public Criteria andUsedTimeIsNotNull() {
addCriterion("used_time is not null");
return (Criteria) this;
}
public Criteria andUsedTimeEqualTo(Date value) {
addCriterion("used_time =", value, "usedTime");
return (Criteria) this;
}
public Criteria andUsedTimeNotEqualTo(Date value) {
addCriterion("used_time <>", value, "usedTime");
return (Criteria) this;
}
public Criteria andUsedTimeGreaterThan(Date value) {
addCriterion("used_time >", value, "usedTime");
return (Criteria) this;
}
public Criteria andUsedTimeGreaterThanOrEqualTo(Date value) {
addCriterion("used_time >=", value, "usedTime");
return (Criteria) this;
}
public Criteria andUsedTimeLessThan(Date value) {
addCriterion("used_time <", value, "usedTime");
return (Criteria) this;
}
public Criteria andUsedTimeLessThanOrEqualTo(Date value) {
addCriterion("used_time <=", value, "usedTime");
return (Criteria) this;
}
public Criteria andUsedTimeIn(List<Date> values) {
addCriterion("used_time in", values, "usedTime");
return (Criteria) this;
}
public Criteria andUsedTimeNotIn(List<Date> values) {
addCriterion("used_time not in", values, "usedTime");
return (Criteria) this;
}
public Criteria andUsedTimeBetween(Date value1, Date value2) {
addCriterion("used_time between", value1, value2, "usedTime");
return (Criteria) this;
}
public Criteria andUsedTimeNotBetween(Date value1, Date value2) {
addCriterion("used_time not between", value1, value2, "usedTime");
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);
}
}
}
2.3、生成的 POJO 类 TradeGoods.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
import java.util.Date;
public class TradeGoods {
private Long goodsId;
private String goodsName;
private Integer goodsNumber;
private BigDecimal goodsPrice;
private String goodsDesc;
private Date addTime;
public Long getGoodsId() {
return goodsId;
}
public void setGoodsId(Long goodsId) {
this.goodsId = goodsId;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName == null ? null : goodsName.trim();
}
public Integer getGoodsNumber() {
return goodsNumber;
}
public void setGoodsNumber(Integer goodsNumber) {
this.goodsNumber = goodsNumber;
}
public BigDecimal getGoodsPrice() {
return goodsPrice;
}
public void setGoodsPrice(BigDecimal goodsPrice) {
this.goodsPrice = goodsPrice;
}
public String getGoodsDesc() {
return goodsDesc;
}
public void setGoodsDesc(String goodsDesc) {
this.goodsDesc = goodsDesc == null ? null : goodsDesc.trim();
}
public Date getAddTime() {
return addTime;
}
public void setAddTime(Date addTime) {
this.addTime = addTime;
}
}
2.4、生成的 POJO 类 TradeGoodsExample.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TradeGoodsExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TradeGoodsExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andGoodsIdIsNull() {
addCriterion("goods_id is null");
return (Criteria) this;
}
public Criteria andGoodsIdIsNotNull() {
addCriterion("goods_id is not null");
return (Criteria) this;
}
public Criteria andGoodsIdEqualTo(Long value) {
addCriterion("goods_id =", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdNotEqualTo(Long value) {
addCriterion("goods_id <>", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdGreaterThan(Long value) {
addCriterion("goods_id >", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdGreaterThanOrEqualTo(Long value) {
addCriterion("goods_id >=", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdLessThan(Long value) {
addCriterion("goods_id <", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdLessThanOrEqualTo(Long value) {
addCriterion("goods_id <=", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdIn(List<Long> values) {
addCriterion("goods_id in", values, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdNotIn(List<Long> values) {
addCriterion("goods_id not in", values, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdBetween(Long value1, Long value2) {
addCriterion("goods_id between", value1, value2, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdNotBetween(Long value1, Long value2) {
addCriterion("goods_id not between", value1, value2, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsNameIsNull() {
addCriterion("goods_name is null");
return (Criteria) this;
}
public Criteria andGoodsNameIsNotNull() {
addCriterion("goods_name is not null");
return (Criteria) this;
}
public Criteria andGoodsNameEqualTo(String value) {
addCriterion("goods_name =", value, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameNotEqualTo(String value) {
addCriterion("goods_name <>", value, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameGreaterThan(String value) {
addCriterion("goods_name >", value, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
addCriterion("goods_name >=", value, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameLessThan(String value) {
addCriterion("goods_name <", value, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameLessThanOrEqualTo(String value) {
addCriterion("goods_name <=", value, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameLike(String value) {
addCriterion("goods_name like", value, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameNotLike(String value) {
addCriterion("goods_name not like", value, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameIn(List<String> values) {
addCriterion("goods_name in", values, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameNotIn(List<String> values) {
addCriterion("goods_name not in", values, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameBetween(String value1, String value2) {
addCriterion("goods_name between", value1, value2, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNameNotBetween(String value1, String value2) {
addCriterion("goods_name not between", value1, value2, "goodsName");
return (Criteria) this;
}
public Criteria andGoodsNumberIsNull() {
addCriterion("goods_number is null");
return (Criteria) this;
}
public Criteria andGoodsNumberIsNotNull() {
addCriterion("goods_number is not null");
return (Criteria) this;
}
public Criteria andGoodsNumberEqualTo(Integer value) {
addCriterion("goods_number =", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberNotEqualTo(Integer value) {
addCriterion("goods_number <>", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberGreaterThan(Integer value) {
addCriterion("goods_number >", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberGreaterThanOrEqualTo(Integer value) {
addCriterion("goods_number >=", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberLessThan(Integer value) {
addCriterion("goods_number <", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberLessThanOrEqualTo(Integer value) {
addCriterion("goods_number <=", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberIn(List<Integer> values) {
addCriterion("goods_number in", values, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberNotIn(List<Integer> values) {
addCriterion("goods_number not in", values, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberBetween(Integer value1, Integer value2) {
addCriterion("goods_number between", value1, value2, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberNotBetween(Integer value1, Integer value2) {
addCriterion("goods_number not between", value1, value2, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsPriceIsNull() {
addCriterion("goods_price is null");
return (Criteria) this;
}
public Criteria andGoodsPriceIsNotNull() {
addCriterion("goods_price is not null");
return (Criteria) this;
}
public Criteria andGoodsPriceEqualTo(BigDecimal value) {
addCriterion("goods_price =", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceNotEqualTo(BigDecimal value) {
addCriterion("goods_price <>", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceGreaterThan(BigDecimal value) {
addCriterion("goods_price >", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("goods_price >=", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceLessThan(BigDecimal value) {
addCriterion("goods_price <", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("goods_price <=", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceIn(List<BigDecimal> values) {
addCriterion("goods_price in", values, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceNotIn(List<BigDecimal> values) {
addCriterion("goods_price not in", values, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("goods_price between", value1, value2, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("goods_price not between", value1, value2, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsDescIsNull() {
addCriterion("goods_desc is null");
return (Criteria) this;
}
public Criteria andGoodsDescIsNotNull() {
addCriterion("goods_desc is not null");
return (Criteria) this;
}
public Criteria andGoodsDescEqualTo(String value) {
addCriterion("goods_desc =", value, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescNotEqualTo(String value) {
addCriterion("goods_desc <>", value, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescGreaterThan(String value) {
addCriterion("goods_desc >", value, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescGreaterThanOrEqualTo(String value) {
addCriterion("goods_desc >=", value, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescLessThan(String value) {
addCriterion("goods_desc <", value, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescLessThanOrEqualTo(String value) {
addCriterion("goods_desc <=", value, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescLike(String value) {
addCriterion("goods_desc like", value, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescNotLike(String value) {
addCriterion("goods_desc not like", value, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescIn(List<String> values) {
addCriterion("goods_desc in", values, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescNotIn(List<String> values) {
addCriterion("goods_desc not in", values, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescBetween(String value1, String value2) {
addCriterion("goods_desc between", value1, value2, "goodsDesc");
return (Criteria) this;
}
public Criteria andGoodsDescNotBetween(String value1, String value2) {
addCriterion("goods_desc not between", value1, value2, "goodsDesc");
return (Criteria) this;
}
public Criteria andAddTimeIsNull() {
addCriterion("add_time is null");
return (Criteria) this;
}
public Criteria andAddTimeIsNotNull() {
addCriterion("add_time is not null");
return (Criteria) this;
}
public Criteria andAddTimeEqualTo(Date value) {
addCriterion("add_time =", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotEqualTo(Date value) {
addCriterion("add_time <>", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeGreaterThan(Date value) {
addCriterion("add_time >", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
addCriterion("add_time >=", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeLessThan(Date value) {
addCriterion("add_time <", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeLessThanOrEqualTo(Date value) {
addCriterion("add_time <=", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeIn(List<Date> values) {
addCriterion("add_time in", values, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotIn(List<Date> values) {
addCriterion("add_time not in", values, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeBetween(Date value1, Date value2) {
addCriterion("add_time between", value1, value2, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotBetween(Date value1, Date value2) {
addCriterion("add_time 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);
}
}
}
2.5、生成的 POJO 类 TradeGoodsNumberLog.java
package com.itheima.shop.pojo;
import java.util.Date;
public class TradeGoodsNumberLog extends TradeGoodsNumberLogKey {
private Integer goodsNumber;
private Date logTime;
public Integer getGoodsNumber() {
return goodsNumber;
}
public void setGoodsNumber(Integer goodsNumber) {
this.goodsNumber = goodsNumber;
}
public Date getLogTime() {
return logTime;
}
public void setLogTime(Date logTime) {
this.logTime = logTime;
}
}
2.6、生成的 POJO 类 TradeGoodsNumberLogExample.java
package com.itheima.shop.pojo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TradeGoodsNumberLogExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TradeGoodsNumberLogExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andGoodsIdIsNull() {
addCriterion("goods_id is null");
return (Criteria) this;
}
public Criteria andGoodsIdIsNotNull() {
addCriterion("goods_id is not null");
return (Criteria) this;
}
public Criteria andGoodsIdEqualTo(Long value) {
addCriterion("goods_id =", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdNotEqualTo(Long value) {
addCriterion("goods_id <>", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdGreaterThan(Long value) {
addCriterion("goods_id >", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdGreaterThanOrEqualTo(Long value) {
addCriterion("goods_id >=", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdLessThan(Long value) {
addCriterion("goods_id <", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdLessThanOrEqualTo(Long value) {
addCriterion("goods_id <=", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdIn(List<Long> values) {
addCriterion("goods_id in", values, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdNotIn(List<Long> values) {
addCriterion("goods_id not in", values, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdBetween(Long value1, Long value2) {
addCriterion("goods_id between", value1, value2, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdNotBetween(Long value1, Long value2) {
addCriterion("goods_id not between", value1, value2, "goodsId");
return (Criteria) this;
}
public Criteria andOrderIdIsNull() {
addCriterion("order_id is null");
return (Criteria) this;
}
public Criteria andOrderIdIsNotNull() {
addCriterion("order_id is not null");
return (Criteria) this;
}
public Criteria andOrderIdEqualTo(Long value) {
addCriterion("order_id =", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotEqualTo(Long value) {
addCriterion("order_id <>", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThan(Long value) {
addCriterion("order_id >", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
addCriterion("order_id >=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThan(Long value) {
addCriterion("order_id <", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThanOrEqualTo(Long value) {
addCriterion("order_id <=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdIn(List<Long> values) {
addCriterion("order_id in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotIn(List<Long> values) {
addCriterion("order_id not in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdBetween(Long value1, Long value2) {
addCriterion("order_id between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotBetween(Long value1, Long value2) {
addCriterion("order_id not between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andGoodsNumberIsNull() {
addCriterion("goods_number is null");
return (Criteria) this;
}
public Criteria andGoodsNumberIsNotNull() {
addCriterion("goods_number is not null");
return (Criteria) this;
}
public Criteria andGoodsNumberEqualTo(Integer value) {
addCriterion("goods_number =", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberNotEqualTo(Integer value) {
addCriterion("goods_number <>", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberGreaterThan(Integer value) {
addCriterion("goods_number >", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberGreaterThanOrEqualTo(Integer value) {
addCriterion("goods_number >=", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberLessThan(Integer value) {
addCriterion("goods_number <", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberLessThanOrEqualTo(Integer value) {
addCriterion("goods_number <=", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberIn(List<Integer> values) {
addCriterion("goods_number in", values, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberNotIn(List<Integer> values) {
addCriterion("goods_number not in", values, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberBetween(Integer value1, Integer value2) {
addCriterion("goods_number between", value1, value2, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberNotBetween(Integer value1, Integer value2) {
addCriterion("goods_number not between", value1, value2, "goodsNumber");
return (Criteria) this;
}
public Criteria andLogTimeIsNull() {
addCriterion("log_time is null");
return (Criteria) this;
}
public Criteria andLogTimeIsNotNull() {
addCriterion("log_time is not null");
return (Criteria) this;
}
public Criteria andLogTimeEqualTo(Date value) {
addCriterion("log_time =", value, "logTime");
return (Criteria) this;
}
public Criteria andLogTimeNotEqualTo(Date value) {
addCriterion("log_time <>", value, "logTime");
return (Criteria) this;
}
public Criteria andLogTimeGreaterThan(Date value) {
addCriterion("log_time >", value, "logTime");
return (Criteria) this;
}
public Criteria andLogTimeGreaterThanOrEqualTo(Date value) {
addCriterion("log_time >=", value, "logTime");
return (Criteria) this;
}
public Criteria andLogTimeLessThan(Date value) {
addCriterion("log_time <", value, "logTime");
return (Criteria) this;
}
public Criteria andLogTimeLessThanOrEqualTo(Date value) {
addCriterion("log_time <=", value, "logTime");
return (Criteria) this;
}
public Criteria andLogTimeIn(List<Date> values) {
addCriterion("log_time in", values, "logTime");
return (Criteria) this;
}
public Criteria andLogTimeNotIn(List<Date> values) {
addCriterion("log_time not in", values, "logTime");
return (Criteria) this;
}
public Criteria andLogTimeBetween(Date value1, Date value2) {
addCriterion("log_time between", value1, value2, "logTime");
return (Criteria) this;
}
public Criteria andLogTimeNotBetween(Date value1, Date value2) {
addCriterion("log_time not between", value1, value2, "logTime");
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);
}
}
}
2.7、生成的 POJO 类 TradeGoodsNumberLogKey.java
package com.itheima.shop.pojo;
public class TradeGoodsNumberLogKey {
private Long goodsId;
private Long orderId;
public Long getGoodsId() {
return goodsId;
}
public void setGoodsId(Long goodsId) {
this.goodsId = goodsId;
}
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
}
2.8、生成的 POJO 类 TradeMqConsumerLog.java
package com.itheima.shop.pojo;
import java.util.Date;
public class TradeMqConsumerLog extends TradeMqConsumerLogKey {
private String msgId;
private String msgBody;
private Integer consumerStatus;
private Integer consumerTimes;
private Date consumerTimestamp;
private String remark;
public String getMsgId() {
return msgId;
}
public void setMsgId(String msgId) {
this.msgId = msgId == null ? null : msgId.trim();
}
public String getMsgBody() {
return msgBody;
}
public void setMsgBody(String msgBody) {
this.msgBody = msgBody == null ? null : msgBody.trim();
}
public Integer getConsumerStatus() {
return consumerStatus;
}
public void setConsumerStatus(Integer consumerStatus) {
this.consumerStatus = consumerStatus;
}
public Integer getConsumerTimes() {
return consumerTimes;
}
public void setConsumerTimes(Integer consumerTimes) {
this.consumerTimes = consumerTimes;
}
public Date getConsumerTimestamp() {
return consumerTimestamp;
}
public void setConsumerTimestamp(Date consumerTimestamp) {
this.consumerTimestamp = consumerTimestamp;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
}
2.9、生成的 POJO 类 TradeMqConsumerLogExample.java
package com.itheima.shop.pojo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TradeMqConsumerLogExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TradeMqConsumerLogExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andGroupNameIsNull() {
addCriterion("group_name is null");
return (Criteria) this;
}
public Criteria andGroupNameIsNotNull() {
addCriterion("group_name is not null");
return (Criteria) this;
}
public Criteria andGroupNameEqualTo(String value) {
addCriterion("group_name =", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotEqualTo(String value) {
addCriterion("group_name <>", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameGreaterThan(String value) {
addCriterion("group_name >", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameGreaterThanOrEqualTo(String value) {
addCriterion("group_name >=", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameLessThan(String value) {
addCriterion("group_name <", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameLessThanOrEqualTo(String value) {
addCriterion("group_name <=", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameLike(String value) {
addCriterion("group_name like", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotLike(String value) {
addCriterion("group_name not like", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameIn(List<String> values) {
addCriterion("group_name in", values, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotIn(List<String> values) {
addCriterion("group_name not in", values, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameBetween(String value1, String value2) {
addCriterion("group_name between", value1, value2, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotBetween(String value1, String value2) {
addCriterion("group_name not between", value1, value2, "groupName");
return (Criteria) this;
}
public Criteria andMsgTagIsNull() {
addCriterion("msg_tag is null");
return (Criteria) this;
}
public Criteria andMsgTagIsNotNull() {
addCriterion("msg_tag is not null");
return (Criteria) this;
}
public Criteria andMsgTagEqualTo(String value) {
addCriterion("msg_tag =", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagNotEqualTo(String value) {
addCriterion("msg_tag <>", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagGreaterThan(String value) {
addCriterion("msg_tag >", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagGreaterThanOrEqualTo(String value) {
addCriterion("msg_tag >=", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagLessThan(String value) {
addCriterion("msg_tag <", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagLessThanOrEqualTo(String value) {
addCriterion("msg_tag <=", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagLike(String value) {
addCriterion("msg_tag like", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagNotLike(String value) {
addCriterion("msg_tag not like", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagIn(List<String> values) {
addCriterion("msg_tag in", values, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagNotIn(List<String> values) {
addCriterion("msg_tag not in", values, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagBetween(String value1, String value2) {
addCriterion("msg_tag between", value1, value2, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagNotBetween(String value1, String value2) {
addCriterion("msg_tag not between", value1, value2, "msgTag");
return (Criteria) this;
}
public Criteria andMsgKeyIsNull() {
addCriterion("msg_key is null");
return (Criteria) this;
}
public Criteria andMsgKeyIsNotNull() {
addCriterion("msg_key is not null");
return (Criteria) this;
}
public Criteria andMsgKeyEqualTo(String value) {
addCriterion("msg_key =", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyNotEqualTo(String value) {
addCriterion("msg_key <>", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyGreaterThan(String value) {
addCriterion("msg_key >", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyGreaterThanOrEqualTo(String value) {
addCriterion("msg_key >=", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyLessThan(String value) {
addCriterion("msg_key <", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyLessThanOrEqualTo(String value) {
addCriterion("msg_key <=", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyLike(String value) {
addCriterion("msg_key like", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyNotLike(String value) {
addCriterion("msg_key not like", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyIn(List<String> values) {
addCriterion("msg_key in", values, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyNotIn(List<String> values) {
addCriterion("msg_key not in", values, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyBetween(String value1, String value2) {
addCriterion("msg_key between", value1, value2, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyNotBetween(String value1, String value2) {
addCriterion("msg_key not between", value1, value2, "msgKey");
return (Criteria) this;
}
public Criteria andMsgIdIsNull() {
addCriterion("msg_id is null");
return (Criteria) this;
}
public Criteria andMsgIdIsNotNull() {
addCriterion("msg_id is not null");
return (Criteria) this;
}
public Criteria andMsgIdEqualTo(String value) {
addCriterion("msg_id =", value, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdNotEqualTo(String value) {
addCriterion("msg_id <>", value, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdGreaterThan(String value) {
addCriterion("msg_id >", value, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdGreaterThanOrEqualTo(String value) {
addCriterion("msg_id >=", value, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdLessThan(String value) {
addCriterion("msg_id <", value, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdLessThanOrEqualTo(String value) {
addCriterion("msg_id <=", value, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdLike(String value) {
addCriterion("msg_id like", value, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdNotLike(String value) {
addCriterion("msg_id not like", value, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdIn(List<String> values) {
addCriterion("msg_id in", values, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdNotIn(List<String> values) {
addCriterion("msg_id not in", values, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdBetween(String value1, String value2) {
addCriterion("msg_id between", value1, value2, "msgId");
return (Criteria) this;
}
public Criteria andMsgIdNotBetween(String value1, String value2) {
addCriterion("msg_id not between", value1, value2, "msgId");
return (Criteria) this;
}
public Criteria andMsgBodyIsNull() {
addCriterion("msg_body is null");
return (Criteria) this;
}
public Criteria andMsgBodyIsNotNull() {
addCriterion("msg_body is not null");
return (Criteria) this;
}
public Criteria andMsgBodyEqualTo(String value) {
addCriterion("msg_body =", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyNotEqualTo(String value) {
addCriterion("msg_body <>", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyGreaterThan(String value) {
addCriterion("msg_body >", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyGreaterThanOrEqualTo(String value) {
addCriterion("msg_body >=", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyLessThan(String value) {
addCriterion("msg_body <", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyLessThanOrEqualTo(String value) {
addCriterion("msg_body <=", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyLike(String value) {
addCriterion("msg_body like", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyNotLike(String value) {
addCriterion("msg_body not like", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyIn(List<String> values) {
addCriterion("msg_body in", values, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyNotIn(List<String> values) {
addCriterion("msg_body not in", values, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyBetween(String value1, String value2) {
addCriterion("msg_body between", value1, value2, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyNotBetween(String value1, String value2) {
addCriterion("msg_body not between", value1, value2, "msgBody");
return (Criteria) this;
}
public Criteria andConsumerStatusIsNull() {
addCriterion("consumer_status is null");
return (Criteria) this;
}
public Criteria andConsumerStatusIsNotNull() {
addCriterion("consumer_status is not null");
return (Criteria) this;
}
public Criteria andConsumerStatusEqualTo(Integer value) {
addCriterion("consumer_status =", value, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerStatusNotEqualTo(Integer value) {
addCriterion("consumer_status <>", value, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerStatusGreaterThan(Integer value) {
addCriterion("consumer_status >", value, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("consumer_status >=", value, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerStatusLessThan(Integer value) {
addCriterion("consumer_status <", value, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerStatusLessThanOrEqualTo(Integer value) {
addCriterion("consumer_status <=", value, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerStatusIn(List<Integer> values) {
addCriterion("consumer_status in", values, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerStatusNotIn(List<Integer> values) {
addCriterion("consumer_status not in", values, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerStatusBetween(Integer value1, Integer value2) {
addCriterion("consumer_status between", value1, value2, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerStatusNotBetween(Integer value1, Integer value2) {
addCriterion("consumer_status not between", value1, value2, "consumerStatus");
return (Criteria) this;
}
public Criteria andConsumerTimesIsNull() {
addCriterion("consumer_times is null");
return (Criteria) this;
}
public Criteria andConsumerTimesIsNotNull() {
addCriterion("consumer_times is not null");
return (Criteria) this;
}
public Criteria andConsumerTimesEqualTo(Integer value) {
addCriterion("consumer_times =", value, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimesNotEqualTo(Integer value) {
addCriterion("consumer_times <>", value, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimesGreaterThan(Integer value) {
addCriterion("consumer_times >", value, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimesGreaterThanOrEqualTo(Integer value) {
addCriterion("consumer_times >=", value, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimesLessThan(Integer value) {
addCriterion("consumer_times <", value, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimesLessThanOrEqualTo(Integer value) {
addCriterion("consumer_times <=", value, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimesIn(List<Integer> values) {
addCriterion("consumer_times in", values, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimesNotIn(List<Integer> values) {
addCriterion("consumer_times not in", values, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimesBetween(Integer value1, Integer value2) {
addCriterion("consumer_times between", value1, value2, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimesNotBetween(Integer value1, Integer value2) {
addCriterion("consumer_times not between", value1, value2, "consumerTimes");
return (Criteria) this;
}
public Criteria andConsumerTimestampIsNull() {
addCriterion("consumer_timestamp is null");
return (Criteria) this;
}
public Criteria andConsumerTimestampIsNotNull() {
addCriterion("consumer_timestamp is not null");
return (Criteria) this;
}
public Criteria andConsumerTimestampEqualTo(Date value) {
addCriterion("consumer_timestamp =", value, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andConsumerTimestampNotEqualTo(Date value) {
addCriterion("consumer_timestamp <>", value, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andConsumerTimestampGreaterThan(Date value) {
addCriterion("consumer_timestamp >", value, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andConsumerTimestampGreaterThanOrEqualTo(Date value) {
addCriterion("consumer_timestamp >=", value, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andConsumerTimestampLessThan(Date value) {
addCriterion("consumer_timestamp <", value, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andConsumerTimestampLessThanOrEqualTo(Date value) {
addCriterion("consumer_timestamp <=", value, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andConsumerTimestampIn(List<Date> values) {
addCriterion("consumer_timestamp in", values, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andConsumerTimestampNotIn(List<Date> values) {
addCriterion("consumer_timestamp not in", values, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andConsumerTimestampBetween(Date value1, Date value2) {
addCriterion("consumer_timestamp between", value1, value2, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andConsumerTimestampNotBetween(Date value1, Date value2) {
addCriterion("consumer_timestamp not between", value1, value2, "consumerTimestamp");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
}
public 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);
}
}
}
2.10、生成的 POJO 类 TradeMqConsumerLogKey .java
package com.itheima.shop.pojo;
public class TradeMqConsumerLogKey {
private String groupName;
private String msgTag;
private String msgKey;
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName == null ? null : groupName.trim();
}
public String getMsgTag() {
return msgTag;
}
public void setMsgTag(String msgTag) {
this.msgTag = msgTag == null ? null : msgTag.trim();
}
public String getMsgKey() {
return msgKey;
}
public void setMsgKey(String msgKey) {
this.msgKey = msgKey == null ? null : msgKey.trim();
}
}
2.11、生成的 POJO 类 TradeMqProducerTemp.java
package com.itheima.shop.pojo;
import java.util.Date;
public class TradeMqProducerTemp {
private String id;
private String groupName;
private String msgTopic;
private String msgTag;
private String msgKey;
private String msgBody;
private Integer msgStatus;
private Date createTime;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName == null ? null : groupName.trim();
}
public String getMsgTopic() {
return msgTopic;
}
public void setMsgTopic(String msgTopic) {
this.msgTopic = msgTopic == null ? null : msgTopic.trim();
}
public String getMsgTag() {
return msgTag;
}
public void setMsgTag(String msgTag) {
this.msgTag = msgTag == null ? null : msgTag.trim();
}
public String getMsgKey() {
return msgKey;
}
public void setMsgKey(String msgKey) {
this.msgKey = msgKey == null ? null : msgKey.trim();
}
public String getMsgBody() {
return msgBody;
}
public void setMsgBody(String msgBody) {
this.msgBody = msgBody == null ? null : msgBody.trim();
}
public Integer getMsgStatus() {
return msgStatus;
}
public void setMsgStatus(Integer msgStatus) {
this.msgStatus = msgStatus;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
2.12、生成的 POJO 类 TradeMqProducerTempExample.java
package com.itheima.shop.pojo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TradeMqProducerTempExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TradeMqProducerTempExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdLike(String value) {
addCriterion("id like", value, "id");
return (Criteria) this;
}
public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andGroupNameIsNull() {
addCriterion("group_name is null");
return (Criteria) this;
}
public Criteria andGroupNameIsNotNull() {
addCriterion("group_name is not null");
return (Criteria) this;
}
public Criteria andGroupNameEqualTo(String value) {
addCriterion("group_name =", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotEqualTo(String value) {
addCriterion("group_name <>", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameGreaterThan(String value) {
addCriterion("group_name >", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameGreaterThanOrEqualTo(String value) {
addCriterion("group_name >=", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameLessThan(String value) {
addCriterion("group_name <", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameLessThanOrEqualTo(String value) {
addCriterion("group_name <=", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameLike(String value) {
addCriterion("group_name like", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotLike(String value) {
addCriterion("group_name not like", value, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameIn(List<String> values) {
addCriterion("group_name in", values, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotIn(List<String> values) {
addCriterion("group_name not in", values, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameBetween(String value1, String value2) {
addCriterion("group_name between", value1, value2, "groupName");
return (Criteria) this;
}
public Criteria andGroupNameNotBetween(String value1, String value2) {
addCriterion("group_name not between", value1, value2, "groupName");
return (Criteria) this;
}
public Criteria andMsgTopicIsNull() {
addCriterion("msg_topic is null");
return (Criteria) this;
}
public Criteria andMsgTopicIsNotNull() {
addCriterion("msg_topic is not null");
return (Criteria) this;
}
public Criteria andMsgTopicEqualTo(String value) {
addCriterion("msg_topic =", value, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicNotEqualTo(String value) {
addCriterion("msg_topic <>", value, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicGreaterThan(String value) {
addCriterion("msg_topic >", value, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicGreaterThanOrEqualTo(String value) {
addCriterion("msg_topic >=", value, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicLessThan(String value) {
addCriterion("msg_topic <", value, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicLessThanOrEqualTo(String value) {
addCriterion("msg_topic <=", value, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicLike(String value) {
addCriterion("msg_topic like", value, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicNotLike(String value) {
addCriterion("msg_topic not like", value, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicIn(List<String> values) {
addCriterion("msg_topic in", values, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicNotIn(List<String> values) {
addCriterion("msg_topic not in", values, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicBetween(String value1, String value2) {
addCriterion("msg_topic between", value1, value2, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTopicNotBetween(String value1, String value2) {
addCriterion("msg_topic not between", value1, value2, "msgTopic");
return (Criteria) this;
}
public Criteria andMsgTagIsNull() {
addCriterion("msg_tag is null");
return (Criteria) this;
}
public Criteria andMsgTagIsNotNull() {
addCriterion("msg_tag is not null");
return (Criteria) this;
}
public Criteria andMsgTagEqualTo(String value) {
addCriterion("msg_tag =", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagNotEqualTo(String value) {
addCriterion("msg_tag <>", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagGreaterThan(String value) {
addCriterion("msg_tag >", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagGreaterThanOrEqualTo(String value) {
addCriterion("msg_tag >=", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagLessThan(String value) {
addCriterion("msg_tag <", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagLessThanOrEqualTo(String value) {
addCriterion("msg_tag <=", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagLike(String value) {
addCriterion("msg_tag like", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagNotLike(String value) {
addCriterion("msg_tag not like", value, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagIn(List<String> values) {
addCriterion("msg_tag in", values, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagNotIn(List<String> values) {
addCriterion("msg_tag not in", values, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagBetween(String value1, String value2) {
addCriterion("msg_tag between", value1, value2, "msgTag");
return (Criteria) this;
}
public Criteria andMsgTagNotBetween(String value1, String value2) {
addCriterion("msg_tag not between", value1, value2, "msgTag");
return (Criteria) this;
}
public Criteria andMsgKeyIsNull() {
addCriterion("msg_key is null");
return (Criteria) this;
}
public Criteria andMsgKeyIsNotNull() {
addCriterion("msg_key is not null");
return (Criteria) this;
}
public Criteria andMsgKeyEqualTo(String value) {
addCriterion("msg_key =", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyNotEqualTo(String value) {
addCriterion("msg_key <>", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyGreaterThan(String value) {
addCriterion("msg_key >", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyGreaterThanOrEqualTo(String value) {
addCriterion("msg_key >=", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyLessThan(String value) {
addCriterion("msg_key <", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyLessThanOrEqualTo(String value) {
addCriterion("msg_key <=", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyLike(String value) {
addCriterion("msg_key like", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyNotLike(String value) {
addCriterion("msg_key not like", value, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyIn(List<String> values) {
addCriterion("msg_key in", values, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyNotIn(List<String> values) {
addCriterion("msg_key not in", values, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyBetween(String value1, String value2) {
addCriterion("msg_key between", value1, value2, "msgKey");
return (Criteria) this;
}
public Criteria andMsgKeyNotBetween(String value1, String value2) {
addCriterion("msg_key not between", value1, value2, "msgKey");
return (Criteria) this;
}
public Criteria andMsgBodyIsNull() {
addCriterion("msg_body is null");
return (Criteria) this;
}
public Criteria andMsgBodyIsNotNull() {
addCriterion("msg_body is not null");
return (Criteria) this;
}
public Criteria andMsgBodyEqualTo(String value) {
addCriterion("msg_body =", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyNotEqualTo(String value) {
addCriterion("msg_body <>", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyGreaterThan(String value) {
addCriterion("msg_body >", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyGreaterThanOrEqualTo(String value) {
addCriterion("msg_body >=", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyLessThan(String value) {
addCriterion("msg_body <", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyLessThanOrEqualTo(String value) {
addCriterion("msg_body <=", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyLike(String value) {
addCriterion("msg_body like", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyNotLike(String value) {
addCriterion("msg_body not like", value, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyIn(List<String> values) {
addCriterion("msg_body in", values, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyNotIn(List<String> values) {
addCriterion("msg_body not in", values, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyBetween(String value1, String value2) {
addCriterion("msg_body between", value1, value2, "msgBody");
return (Criteria) this;
}
public Criteria andMsgBodyNotBetween(String value1, String value2) {
addCriterion("msg_body not between", value1, value2, "msgBody");
return (Criteria) this;
}
public Criteria andMsgStatusIsNull() {
addCriterion("msg_status is null");
return (Criteria) this;
}
public Criteria andMsgStatusIsNotNull() {
addCriterion("msg_status is not null");
return (Criteria) this;
}
public Criteria andMsgStatusEqualTo(Integer value) {
addCriterion("msg_status =", value, "msgStatus");
return (Criteria) this;
}
public Criteria andMsgStatusNotEqualTo(Integer value) {
addCriterion("msg_status <>", value, "msgStatus");
return (Criteria) this;
}
public Criteria andMsgStatusGreaterThan(Integer value) {
addCriterion("msg_status >", value, "msgStatus");
return (Criteria) this;
}
public Criteria andMsgStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("msg_status >=", value, "msgStatus");
return (Criteria) this;
}
public Criteria andMsgStatusLessThan(Integer value) {
addCriterion("msg_status <", value, "msgStatus");
return (Criteria) this;
}
public Criteria andMsgStatusLessThanOrEqualTo(Integer value) {
addCriterion("msg_status <=", value, "msgStatus");
return (Criteria) this;
}
public Criteria andMsgStatusIn(List<Integer> values) {
addCriterion("msg_status in", values, "msgStatus");
return (Criteria) this;
}
public Criteria andMsgStatusNotIn(List<Integer> values) {
addCriterion("msg_status not in", values, "msgStatus");
return (Criteria) this;
}
public Criteria andMsgStatusBetween(Integer value1, Integer value2) {
addCriterion("msg_status between", value1, value2, "msgStatus");
return (Criteria) this;
}
public Criteria andMsgStatusNotBetween(Integer value1, Integer value2) {
addCriterion("msg_status not between", value1, value2, "msgStatus");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public 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);
}
}
}
2.13、生成的 POJO 类 TradeOrder.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
import java.util.Date;
public class TradeOrder {
private Long orderId;
private Long userId;
private Integer orderStatus;
private Integer payStatus;
private Integer shippingStatus;
private String address;
private String consignee;
private Long goodsId;
private Integer goodsNumber;
private BigDecimal goodsPrice;
private Long goodsAmount;
private BigDecimal shippingFee;
private BigDecimal orderAmount;
private Long couponId;
private BigDecimal couponPaid;
private BigDecimal moneyPaid;
private BigDecimal payAmount;
private Date addTime;
private Date confirmTime;
private Date payTime;
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Integer getOrderStatus() {
return orderStatus;
}
public void setOrderStatus(Integer orderStatus) {
this.orderStatus = orderStatus;
}
public Integer getPayStatus() {
return payStatus;
}
public void setPayStatus(Integer payStatus) {
this.payStatus = payStatus;
}
public Integer getShippingStatus() {
return shippingStatus;
}
public void setShippingStatus(Integer shippingStatus) {
this.shippingStatus = shippingStatus;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address == null ? null : address.trim();
}
public String getConsignee() {
return consignee;
}
public void setConsignee(String consignee) {
this.consignee = consignee == null ? null : consignee.trim();
}
public Long getGoodsId() {
return goodsId;
}
public void setGoodsId(Long goodsId) {
this.goodsId = goodsId;
}
public Integer getGoodsNumber() {
return goodsNumber;
}
public void setGoodsNumber(Integer goodsNumber) {
this.goodsNumber = goodsNumber;
}
public BigDecimal getGoodsPrice() {
return goodsPrice;
}
public void setGoodsPrice(BigDecimal goodsPrice) {
this.goodsPrice = goodsPrice;
}
public Long getGoodsAmount() {
return goodsAmount;
}
public void setGoodsAmount(Long goodsAmount) {
this.goodsAmount = goodsAmount;
}
public BigDecimal getShippingFee() {
return shippingFee;
}
public void setShippingFee(BigDecimal shippingFee) {
this.shippingFee = shippingFee;
}
public BigDecimal getOrderAmount() {
return orderAmount;
}
public void setOrderAmount(BigDecimal orderAmount) {
this.orderAmount = orderAmount;
}
public Long getCouponId() {
return couponId;
}
public void setCouponId(Long couponId) {
this.couponId = couponId;
}
public BigDecimal getCouponPaid() {
return couponPaid;
}
public void setCouponPaid(BigDecimal couponPaid) {
this.couponPaid = couponPaid;
}
public BigDecimal getMoneyPaid() {
return moneyPaid;
}
public void setMoneyPaid(BigDecimal moneyPaid) {
this.moneyPaid = moneyPaid;
}
public BigDecimal getPayAmount() {
return payAmount;
}
public void setPayAmount(BigDecimal payAmount) {
this.payAmount = payAmount;
}
public Date getAddTime() {
return addTime;
}
public void setAddTime(Date addTime) {
this.addTime = addTime;
}
public Date getConfirmTime() {
return confirmTime;
}
public void setConfirmTime(Date confirmTime) {
this.confirmTime = confirmTime;
}
public Date getPayTime() {
return payTime;
}
public void setPayTime(Date payTime) {
this.payTime = payTime;
}
}
2.14、生成的 POJO 类 TradeOrderExample.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TradeOrderExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TradeOrderExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andOrderIdIsNull() {
addCriterion("order_id is null");
return (Criteria) this;
}
public Criteria andOrderIdIsNotNull() {
addCriterion("order_id is not null");
return (Criteria) this;
}
public Criteria andOrderIdEqualTo(Long value) {
addCriterion("order_id =", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotEqualTo(Long value) {
addCriterion("order_id <>", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThan(Long value) {
addCriterion("order_id >", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
addCriterion("order_id >=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThan(Long value) {
addCriterion("order_id <", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThanOrEqualTo(Long value) {
addCriterion("order_id <=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdIn(List<Long> values) {
addCriterion("order_id in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotIn(List<Long> values) {
addCriterion("order_id not in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdBetween(Long value1, Long value2) {
addCriterion("order_id between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotBetween(Long value1, Long value2) {
addCriterion("order_id not between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andOrderStatusIsNull() {
addCriterion("order_status is null");
return (Criteria) this;
}
public Criteria andOrderStatusIsNotNull() {
addCriterion("order_status is not null");
return (Criteria) this;
}
public Criteria andOrderStatusEqualTo(Integer value) {
addCriterion("order_status =", value, "orderStatus");
return (Criteria) this;
}
public Criteria andOrderStatusNotEqualTo(Integer value) {
addCriterion("order_status <>", value, "orderStatus");
return (Criteria) this;
}
public Criteria andOrderStatusGreaterThan(Integer value) {
addCriterion("order_status >", value, "orderStatus");
return (Criteria) this;
}
public Criteria andOrderStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("order_status >=", value, "orderStatus");
return (Criteria) this;
}
public Criteria andOrderStatusLessThan(Integer value) {
addCriterion("order_status <", value, "orderStatus");
return (Criteria) this;
}
public Criteria andOrderStatusLessThanOrEqualTo(Integer value) {
addCriterion("order_status <=", value, "orderStatus");
return (Criteria) this;
}
public Criteria andOrderStatusIn(List<Integer> values) {
addCriterion("order_status in", values, "orderStatus");
return (Criteria) this;
}
public Criteria andOrderStatusNotIn(List<Integer> values) {
addCriterion("order_status not in", values, "orderStatus");
return (Criteria) this;
}
public Criteria andOrderStatusBetween(Integer value1, Integer value2) {
addCriterion("order_status between", value1, value2, "orderStatus");
return (Criteria) this;
}
public Criteria andOrderStatusNotBetween(Integer value1, Integer value2) {
addCriterion("order_status not between", value1, value2, "orderStatus");
return (Criteria) this;
}
public Criteria andPayStatusIsNull() {
addCriterion("pay_status is null");
return (Criteria) this;
}
public Criteria andPayStatusIsNotNull() {
addCriterion("pay_status is not null");
return (Criteria) this;
}
public Criteria andPayStatusEqualTo(Integer value) {
addCriterion("pay_status =", value, "payStatus");
return (Criteria) this;
}
public Criteria andPayStatusNotEqualTo(Integer value) {
addCriterion("pay_status <>", value, "payStatus");
return (Criteria) this;
}
public Criteria andPayStatusGreaterThan(Integer value) {
addCriterion("pay_status >", value, "payStatus");
return (Criteria) this;
}
public Criteria andPayStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("pay_status >=", value, "payStatus");
return (Criteria) this;
}
public Criteria andPayStatusLessThan(Integer value) {
addCriterion("pay_status <", value, "payStatus");
return (Criteria) this;
}
public Criteria andPayStatusLessThanOrEqualTo(Integer value) {
addCriterion("pay_status <=", value, "payStatus");
return (Criteria) this;
}
public Criteria andPayStatusIn(List<Integer> values) {
addCriterion("pay_status in", values, "payStatus");
return (Criteria) this;
}
public Criteria andPayStatusNotIn(List<Integer> values) {
addCriterion("pay_status not in", values, "payStatus");
return (Criteria) this;
}
public Criteria andPayStatusBetween(Integer value1, Integer value2) {
addCriterion("pay_status between", value1, value2, "payStatus");
return (Criteria) this;
}
public Criteria andPayStatusNotBetween(Integer value1, Integer value2) {
addCriterion("pay_status not between", value1, value2, "payStatus");
return (Criteria) this;
}
public Criteria andShippingStatusIsNull() {
addCriterion("shipping_status is null");
return (Criteria) this;
}
public Criteria andShippingStatusIsNotNull() {
addCriterion("shipping_status is not null");
return (Criteria) this;
}
public Criteria andShippingStatusEqualTo(Integer value) {
addCriterion("shipping_status =", value, "shippingStatus");
return (Criteria) this;
}
public Criteria andShippingStatusNotEqualTo(Integer value) {
addCriterion("shipping_status <>", value, "shippingStatus");
return (Criteria) this;
}
public Criteria andShippingStatusGreaterThan(Integer value) {
addCriterion("shipping_status >", value, "shippingStatus");
return (Criteria) this;
}
public Criteria andShippingStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("shipping_status >=", value, "shippingStatus");
return (Criteria) this;
}
public Criteria andShippingStatusLessThan(Integer value) {
addCriterion("shipping_status <", value, "shippingStatus");
return (Criteria) this;
}
public Criteria andShippingStatusLessThanOrEqualTo(Integer value) {
addCriterion("shipping_status <=", value, "shippingStatus");
return (Criteria) this;
}
public Criteria andShippingStatusIn(List<Integer> values) {
addCriterion("shipping_status in", values, "shippingStatus");
return (Criteria) this;
}
public Criteria andShippingStatusNotIn(List<Integer> values) {
addCriterion("shipping_status not in", values, "shippingStatus");
return (Criteria) this;
}
public Criteria andShippingStatusBetween(Integer value1, Integer value2) {
addCriterion("shipping_status between", value1, value2, "shippingStatus");
return (Criteria) this;
}
public Criteria andShippingStatusNotBetween(Integer value1, Integer value2) {
addCriterion("shipping_status not between", value1, value2, "shippingStatus");
return (Criteria) this;
}
public Criteria andAddressIsNull() {
addCriterion("address is null");
return (Criteria) this;
}
public Criteria andAddressIsNotNull() {
addCriterion("address is not null");
return (Criteria) this;
}
public Criteria andAddressEqualTo(String value) {
addCriterion("address =", value, "address");
return (Criteria) this;
}
public Criteria andAddressNotEqualTo(String value) {
addCriterion("address <>", value, "address");
return (Criteria) this;
}
public Criteria andAddressGreaterThan(String value) {
addCriterion("address >", value, "address");
return (Criteria) this;
}
public Criteria andAddressGreaterThanOrEqualTo(String value) {
addCriterion("address >=", value, "address");
return (Criteria) this;
}
public Criteria andAddressLessThan(String value) {
addCriterion("address <", value, "address");
return (Criteria) this;
}
public Criteria andAddressLessThanOrEqualTo(String value) {
addCriterion("address <=", value, "address");
return (Criteria) this;
}
public Criteria andAddressLike(String value) {
addCriterion("address like", value, "address");
return (Criteria) this;
}
public Criteria andAddressNotLike(String value) {
addCriterion("address not like", value, "address");
return (Criteria) this;
}
public Criteria andAddressIn(List<String> values) {
addCriterion("address in", values, "address");
return (Criteria) this;
}
public Criteria andAddressNotIn(List<String> values) {
addCriterion("address not in", values, "address");
return (Criteria) this;
}
public Criteria andAddressBetween(String value1, String value2) {
addCriterion("address between", value1, value2, "address");
return (Criteria) this;
}
public Criteria andAddressNotBetween(String value1, String value2) {
addCriterion("address not between", value1, value2, "address");
return (Criteria) this;
}
public Criteria andConsigneeIsNull() {
addCriterion("consignee is null");
return (Criteria) this;
}
public Criteria andConsigneeIsNotNull() {
addCriterion("consignee is not null");
return (Criteria) this;
}
public Criteria andConsigneeEqualTo(String value) {
addCriterion("consignee =", value, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeNotEqualTo(String value) {
addCriterion("consignee <>", value, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeGreaterThan(String value) {
addCriterion("consignee >", value, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeGreaterThanOrEqualTo(String value) {
addCriterion("consignee >=", value, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeLessThan(String value) {
addCriterion("consignee <", value, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeLessThanOrEqualTo(String value) {
addCriterion("consignee <=", value, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeLike(String value) {
addCriterion("consignee like", value, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeNotLike(String value) {
addCriterion("consignee not like", value, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeIn(List<String> values) {
addCriterion("consignee in", values, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeNotIn(List<String> values) {
addCriterion("consignee not in", values, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeBetween(String value1, String value2) {
addCriterion("consignee between", value1, value2, "consignee");
return (Criteria) this;
}
public Criteria andConsigneeNotBetween(String value1, String value2) {
addCriterion("consignee not between", value1, value2, "consignee");
return (Criteria) this;
}
public Criteria andGoodsIdIsNull() {
addCriterion("goods_id is null");
return (Criteria) this;
}
public Criteria andGoodsIdIsNotNull() {
addCriterion("goods_id is not null");
return (Criteria) this;
}
public Criteria andGoodsIdEqualTo(Long value) {
addCriterion("goods_id =", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdNotEqualTo(Long value) {
addCriterion("goods_id <>", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdGreaterThan(Long value) {
addCriterion("goods_id >", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdGreaterThanOrEqualTo(Long value) {
addCriterion("goods_id >=", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdLessThan(Long value) {
addCriterion("goods_id <", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdLessThanOrEqualTo(Long value) {
addCriterion("goods_id <=", value, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdIn(List<Long> values) {
addCriterion("goods_id in", values, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdNotIn(List<Long> values) {
addCriterion("goods_id not in", values, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdBetween(Long value1, Long value2) {
addCriterion("goods_id between", value1, value2, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsIdNotBetween(Long value1, Long value2) {
addCriterion("goods_id not between", value1, value2, "goodsId");
return (Criteria) this;
}
public Criteria andGoodsNumberIsNull() {
addCriterion("goods_number is null");
return (Criteria) this;
}
public Criteria andGoodsNumberIsNotNull() {
addCriterion("goods_number is not null");
return (Criteria) this;
}
public Criteria andGoodsNumberEqualTo(Integer value) {
addCriterion("goods_number =", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberNotEqualTo(Integer value) {
addCriterion("goods_number <>", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberGreaterThan(Integer value) {
addCriterion("goods_number >", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberGreaterThanOrEqualTo(Integer value) {
addCriterion("goods_number >=", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberLessThan(Integer value) {
addCriterion("goods_number <", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberLessThanOrEqualTo(Integer value) {
addCriterion("goods_number <=", value, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberIn(List<Integer> values) {
addCriterion("goods_number in", values, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberNotIn(List<Integer> values) {
addCriterion("goods_number not in", values, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberBetween(Integer value1, Integer value2) {
addCriterion("goods_number between", value1, value2, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsNumberNotBetween(Integer value1, Integer value2) {
addCriterion("goods_number not between", value1, value2, "goodsNumber");
return (Criteria) this;
}
public Criteria andGoodsPriceIsNull() {
addCriterion("goods_price is null");
return (Criteria) this;
}
public Criteria andGoodsPriceIsNotNull() {
addCriterion("goods_price is not null");
return (Criteria) this;
}
public Criteria andGoodsPriceEqualTo(BigDecimal value) {
addCriterion("goods_price =", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceNotEqualTo(BigDecimal value) {
addCriterion("goods_price <>", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceGreaterThan(BigDecimal value) {
addCriterion("goods_price >", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("goods_price >=", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceLessThan(BigDecimal value) {
addCriterion("goods_price <", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("goods_price <=", value, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceIn(List<BigDecimal> values) {
addCriterion("goods_price in", values, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceNotIn(List<BigDecimal> values) {
addCriterion("goods_price not in", values, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("goods_price between", value1, value2, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("goods_price not between", value1, value2, "goodsPrice");
return (Criteria) this;
}
public Criteria andGoodsAmountIsNull() {
addCriterion("goods_amount is null");
return (Criteria) this;
}
public Criteria andGoodsAmountIsNotNull() {
addCriterion("goods_amount is not null");
return (Criteria) this;
}
public Criteria andGoodsAmountEqualTo(Long value) {
addCriterion("goods_amount =", value, "goodsAmount");
return (Criteria) this;
}
public Criteria andGoodsAmountNotEqualTo(Long value) {
addCriterion("goods_amount <>", value, "goodsAmount");
return (Criteria) this;
}
public Criteria andGoodsAmountGreaterThan(Long value) {
addCriterion("goods_amount >", value, "goodsAmount");
return (Criteria) this;
}
public Criteria andGoodsAmountGreaterThanOrEqualTo(Long value) {
addCriterion("goods_amount >=", value, "goodsAmount");
return (Criteria) this;
}
public Criteria andGoodsAmountLessThan(Long value) {
addCriterion("goods_amount <", value, "goodsAmount");
return (Criteria) this;
}
public Criteria andGoodsAmountLessThanOrEqualTo(Long value) {
addCriterion("goods_amount <=", value, "goodsAmount");
return (Criteria) this;
}
public Criteria andGoodsAmountIn(List<Long> values) {
addCriterion("goods_amount in", values, "goodsAmount");
return (Criteria) this;
}
public Criteria andGoodsAmountNotIn(List<Long> values) {
addCriterion("goods_amount not in", values, "goodsAmount");
return (Criteria) this;
}
public Criteria andGoodsAmountBetween(Long value1, Long value2) {
addCriterion("goods_amount between", value1, value2, "goodsAmount");
return (Criteria) this;
}
public Criteria andGoodsAmountNotBetween(Long value1, Long value2) {
addCriterion("goods_amount not between", value1, value2, "goodsAmount");
return (Criteria) this;
}
public Criteria andShippingFeeIsNull() {
addCriterion("shipping_fee is null");
return (Criteria) this;
}
public Criteria andShippingFeeIsNotNull() {
addCriterion("shipping_fee is not null");
return (Criteria) this;
}
public Criteria andShippingFeeEqualTo(BigDecimal value) {
addCriterion("shipping_fee =", value, "shippingFee");
return (Criteria) this;
}
public Criteria andShippingFeeNotEqualTo(BigDecimal value) {
addCriterion("shipping_fee <>", value, "shippingFee");
return (Criteria) this;
}
public Criteria andShippingFeeGreaterThan(BigDecimal value) {
addCriterion("shipping_fee >", value, "shippingFee");
return (Criteria) this;
}
public Criteria andShippingFeeGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("shipping_fee >=", value, "shippingFee");
return (Criteria) this;
}
public Criteria andShippingFeeLessThan(BigDecimal value) {
addCriterion("shipping_fee <", value, "shippingFee");
return (Criteria) this;
}
public Criteria andShippingFeeLessThanOrEqualTo(BigDecimal value) {
addCriterion("shipping_fee <=", value, "shippingFee");
return (Criteria) this;
}
public Criteria andShippingFeeIn(List<BigDecimal> values) {
addCriterion("shipping_fee in", values, "shippingFee");
return (Criteria) this;
}
public Criteria andShippingFeeNotIn(List<BigDecimal> values) {
addCriterion("shipping_fee not in", values, "shippingFee");
return (Criteria) this;
}
public Criteria andShippingFeeBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("shipping_fee between", value1, value2, "shippingFee");
return (Criteria) this;
}
public Criteria andShippingFeeNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("shipping_fee not between", value1, value2, "shippingFee");
return (Criteria) this;
}
public Criteria andOrderAmountIsNull() {
addCriterion("order_amount is null");
return (Criteria) this;
}
public Criteria andOrderAmountIsNotNull() {
addCriterion("order_amount is not null");
return (Criteria) this;
}
public Criteria andOrderAmountEqualTo(BigDecimal value) {
addCriterion("order_amount =", value, "orderAmount");
return (Criteria) this;
}
public Criteria andOrderAmountNotEqualTo(BigDecimal value) {
addCriterion("order_amount <>", value, "orderAmount");
return (Criteria) this;
}
public Criteria andOrderAmountGreaterThan(BigDecimal value) {
addCriterion("order_amount >", value, "orderAmount");
return (Criteria) this;
}
public Criteria andOrderAmountGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("order_amount >=", value, "orderAmount");
return (Criteria) this;
}
public Criteria andOrderAmountLessThan(BigDecimal value) {
addCriterion("order_amount <", value, "orderAmount");
return (Criteria) this;
}
public Criteria andOrderAmountLessThanOrEqualTo(BigDecimal value) {
addCriterion("order_amount <=", value, "orderAmount");
return (Criteria) this;
}
public Criteria andOrderAmountIn(List<BigDecimal> values) {
addCriterion("order_amount in", values, "orderAmount");
return (Criteria) this;
}
public Criteria andOrderAmountNotIn(List<BigDecimal> values) {
addCriterion("order_amount not in", values, "orderAmount");
return (Criteria) this;
}
public Criteria andOrderAmountBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("order_amount between", value1, value2, "orderAmount");
return (Criteria) this;
}
public Criteria andOrderAmountNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("order_amount not between", value1, value2, "orderAmount");
return (Criteria) this;
}
public Criteria andCouponIdIsNull() {
addCriterion("coupon_id is null");
return (Criteria) this;
}
public Criteria andCouponIdIsNotNull() {
addCriterion("coupon_id is not null");
return (Criteria) this;
}
public Criteria andCouponIdEqualTo(Long value) {
addCriterion("coupon_id =", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdNotEqualTo(Long value) {
addCriterion("coupon_id <>", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdGreaterThan(Long value) {
addCriterion("coupon_id >", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdGreaterThanOrEqualTo(Long value) {
addCriterion("coupon_id >=", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdLessThan(Long value) {
addCriterion("coupon_id <", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdLessThanOrEqualTo(Long value) {
addCriterion("coupon_id <=", value, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdIn(List<Long> values) {
addCriterion("coupon_id in", values, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdNotIn(List<Long> values) {
addCriterion("coupon_id not in", values, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdBetween(Long value1, Long value2) {
addCriterion("coupon_id between", value1, value2, "couponId");
return (Criteria) this;
}
public Criteria andCouponIdNotBetween(Long value1, Long value2) {
addCriterion("coupon_id not between", value1, value2, "couponId");
return (Criteria) this;
}
public Criteria andCouponPaidIsNull() {
addCriterion("coupon_paid is null");
return (Criteria) this;
}
public Criteria andCouponPaidIsNotNull() {
addCriterion("coupon_paid is not null");
return (Criteria) this;
}
public Criteria andCouponPaidEqualTo(BigDecimal value) {
addCriterion("coupon_paid =", value, "couponPaid");
return (Criteria) this;
}
public Criteria andCouponPaidNotEqualTo(BigDecimal value) {
addCriterion("coupon_paid <>", value, "couponPaid");
return (Criteria) this;
}
public Criteria andCouponPaidGreaterThan(BigDecimal value) {
addCriterion("coupon_paid >", value, "couponPaid");
return (Criteria) this;
}
public Criteria andCouponPaidGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("coupon_paid >=", value, "couponPaid");
return (Criteria) this;
}
public Criteria andCouponPaidLessThan(BigDecimal value) {
addCriterion("coupon_paid <", value, "couponPaid");
return (Criteria) this;
}
public Criteria andCouponPaidLessThanOrEqualTo(BigDecimal value) {
addCriterion("coupon_paid <=", value, "couponPaid");
return (Criteria) this;
}
public Criteria andCouponPaidIn(List<BigDecimal> values) {
addCriterion("coupon_paid in", values, "couponPaid");
return (Criteria) this;
}
public Criteria andCouponPaidNotIn(List<BigDecimal> values) {
addCriterion("coupon_paid not in", values, "couponPaid");
return (Criteria) this;
}
public Criteria andCouponPaidBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("coupon_paid between", value1, value2, "couponPaid");
return (Criteria) this;
}
public Criteria andCouponPaidNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("coupon_paid not between", value1, value2, "couponPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidIsNull() {
addCriterion("money_paid is null");
return (Criteria) this;
}
public Criteria andMoneyPaidIsNotNull() {
addCriterion("money_paid is not null");
return (Criteria) this;
}
public Criteria andMoneyPaidEqualTo(BigDecimal value) {
addCriterion("money_paid =", value, "moneyPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidNotEqualTo(BigDecimal value) {
addCriterion("money_paid <>", value, "moneyPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidGreaterThan(BigDecimal value) {
addCriterion("money_paid >", value, "moneyPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("money_paid >=", value, "moneyPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidLessThan(BigDecimal value) {
addCriterion("money_paid <", value, "moneyPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidLessThanOrEqualTo(BigDecimal value) {
addCriterion("money_paid <=", value, "moneyPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidIn(List<BigDecimal> values) {
addCriterion("money_paid in", values, "moneyPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidNotIn(List<BigDecimal> values) {
addCriterion("money_paid not in", values, "moneyPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("money_paid between", value1, value2, "moneyPaid");
return (Criteria) this;
}
public Criteria andMoneyPaidNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("money_paid not between", value1, value2, "moneyPaid");
return (Criteria) this;
}
public Criteria andPayAmountIsNull() {
addCriterion("pay_amount is null");
return (Criteria) this;
}
public Criteria andPayAmountIsNotNull() {
addCriterion("pay_amount is not null");
return (Criteria) this;
}
public Criteria andPayAmountEqualTo(BigDecimal value) {
addCriterion("pay_amount =", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountNotEqualTo(BigDecimal value) {
addCriterion("pay_amount <>", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountGreaterThan(BigDecimal value) {
addCriterion("pay_amount >", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("pay_amount >=", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountLessThan(BigDecimal value) {
addCriterion("pay_amount <", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountLessThanOrEqualTo(BigDecimal value) {
addCriterion("pay_amount <=", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountIn(List<BigDecimal> values) {
addCriterion("pay_amount in", values, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountNotIn(List<BigDecimal> values) {
addCriterion("pay_amount not in", values, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("pay_amount between", value1, value2, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("pay_amount not between", value1, value2, "payAmount");
return (Criteria) this;
}
public Criteria andAddTimeIsNull() {
addCriterion("add_time is null");
return (Criteria) this;
}
public Criteria andAddTimeIsNotNull() {
addCriterion("add_time is not null");
return (Criteria) this;
}
public Criteria andAddTimeEqualTo(Date value) {
addCriterion("add_time =", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotEqualTo(Date value) {
addCriterion("add_time <>", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeGreaterThan(Date value) {
addCriterion("add_time >", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
addCriterion("add_time >=", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeLessThan(Date value) {
addCriterion("add_time <", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeLessThanOrEqualTo(Date value) {
addCriterion("add_time <=", value, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeIn(List<Date> values) {
addCriterion("add_time in", values, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotIn(List<Date> values) {
addCriterion("add_time not in", values, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeBetween(Date value1, Date value2) {
addCriterion("add_time between", value1, value2, "addTime");
return (Criteria) this;
}
public Criteria andAddTimeNotBetween(Date value1, Date value2) {
addCriterion("add_time not between", value1, value2, "addTime");
return (Criteria) this;
}
public Criteria andConfirmTimeIsNull() {
addCriterion("confirm_time is null");
return (Criteria) this;
}
public Criteria andConfirmTimeIsNotNull() {
addCriterion("confirm_time is not null");
return (Criteria) this;
}
public Criteria andConfirmTimeEqualTo(Date value) {
addCriterion("confirm_time =", value, "confirmTime");
return (Criteria) this;
}
public Criteria andConfirmTimeNotEqualTo(Date value) {
addCriterion("confirm_time <>", value, "confirmTime");
return (Criteria) this;
}
public Criteria andConfirmTimeGreaterThan(Date value) {
addCriterion("confirm_time >", value, "confirmTime");
return (Criteria) this;
}
public Criteria andConfirmTimeGreaterThanOrEqualTo(Date value) {
addCriterion("confirm_time >=", value, "confirmTime");
return (Criteria) this;
}
public Criteria andConfirmTimeLessThan(Date value) {
addCriterion("confirm_time <", value, "confirmTime");
return (Criteria) this;
}
public Criteria andConfirmTimeLessThanOrEqualTo(Date value) {
addCriterion("confirm_time <=", value, "confirmTime");
return (Criteria) this;
}
public Criteria andConfirmTimeIn(List<Date> values) {
addCriterion("confirm_time in", values, "confirmTime");
return (Criteria) this;
}
public Criteria andConfirmTimeNotIn(List<Date> values) {
addCriterion("confirm_time not in", values, "confirmTime");
return (Criteria) this;
}
public Criteria andConfirmTimeBetween(Date value1, Date value2) {
addCriterion("confirm_time between", value1, value2, "confirmTime");
return (Criteria) this;
}
public Criteria andConfirmTimeNotBetween(Date value1, Date value2) {
addCriterion("confirm_time not between", value1, value2, "confirmTime");
return (Criteria) this;
}
public Criteria andPayTimeIsNull() {
addCriterion("pay_time is null");
return (Criteria) this;
}
public Criteria andPayTimeIsNotNull() {
addCriterion("pay_time is not null");
return (Criteria) this;
}
public Criteria andPayTimeEqualTo(Date value) {
addCriterion("pay_time =", value, "payTime");
return (Criteria) this;
}
public Criteria andPayTimeNotEqualTo(Date value) {
addCriterion("pay_time <>", value, "payTime");
return (Criteria) this;
}
public Criteria andPayTimeGreaterThan(Date value) {
addCriterion("pay_time >", value, "payTime");
return (Criteria) this;
}
public Criteria andPayTimeGreaterThanOrEqualTo(Date value) {
addCriterion("pay_time >=", value, "payTime");
return (Criteria) this;
}
public Criteria andPayTimeLessThan(Date value) {
addCriterion("pay_time <", value, "payTime");
return (Criteria) this;
}
public Criteria andPayTimeLessThanOrEqualTo(Date value) {
addCriterion("pay_time <=", value, "payTime");
return (Criteria) this;
}
public Criteria andPayTimeIn(List<Date> values) {
addCriterion("pay_time in", values, "payTime");
return (Criteria) this;
}
public Criteria andPayTimeNotIn(List<Date> values) {
addCriterion("pay_time not in", values, "payTime");
return (Criteria) this;
}
public Criteria andPayTimeBetween(Date value1, Date value2) {
addCriterion("pay_time between", value1, value2, "payTime");
return (Criteria) this;
}
public Criteria andPayTimeNotBetween(Date value1, Date value2) {
addCriterion("pay_time not between", value1, value2, "payTime");
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);
}
}
}
2.15、生成的 POJO 类 TradePay.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
public class TradePay {
private Long payId;
private Long orderId;
private BigDecimal payAmount;
private Integer isPaid;
public Long getPayId() {
return payId;
}
public void setPayId(Long payId) {
this.payId = payId;
}
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public BigDecimal getPayAmount() {
return payAmount;
}
public void setPayAmount(BigDecimal payAmount) {
this.payAmount = payAmount;
}
public Integer getIsPaid() {
return isPaid;
}
public void setIsPaid(Integer isPaid) {
this.isPaid = isPaid;
}
}
2.16、生成的 POJO 类 TradePayExample.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
public class TradePayExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TradePayExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andPayIdIsNull() {
addCriterion("pay_id is null");
return (Criteria) this;
}
public Criteria andPayIdIsNotNull() {
addCriterion("pay_id is not null");
return (Criteria) this;
}
public Criteria andPayIdEqualTo(Long value) {
addCriterion("pay_id =", value, "payId");
return (Criteria) this;
}
public Criteria andPayIdNotEqualTo(Long value) {
addCriterion("pay_id <>", value, "payId");
return (Criteria) this;
}
public Criteria andPayIdGreaterThan(Long value) {
addCriterion("pay_id >", value, "payId");
return (Criteria) this;
}
public Criteria andPayIdGreaterThanOrEqualTo(Long value) {
addCriterion("pay_id >=", value, "payId");
return (Criteria) this;
}
public Criteria andPayIdLessThan(Long value) {
addCriterion("pay_id <", value, "payId");
return (Criteria) this;
}
public Criteria andPayIdLessThanOrEqualTo(Long value) {
addCriterion("pay_id <=", value, "payId");
return (Criteria) this;
}
public Criteria andPayIdIn(List<Long> values) {
addCriterion("pay_id in", values, "payId");
return (Criteria) this;
}
public Criteria andPayIdNotIn(List<Long> values) {
addCriterion("pay_id not in", values, "payId");
return (Criteria) this;
}
public Criteria andPayIdBetween(Long value1, Long value2) {
addCriterion("pay_id between", value1, value2, "payId");
return (Criteria) this;
}
public Criteria andPayIdNotBetween(Long value1, Long value2) {
addCriterion("pay_id not between", value1, value2, "payId");
return (Criteria) this;
}
public Criteria andOrderIdIsNull() {
addCriterion("order_id is null");
return (Criteria) this;
}
public Criteria andOrderIdIsNotNull() {
addCriterion("order_id is not null");
return (Criteria) this;
}
public Criteria andOrderIdEqualTo(Long value) {
addCriterion("order_id =", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotEqualTo(Long value) {
addCriterion("order_id <>", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThan(Long value) {
addCriterion("order_id >", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
addCriterion("order_id >=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThan(Long value) {
addCriterion("order_id <", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThanOrEqualTo(Long value) {
addCriterion("order_id <=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdIn(List<Long> values) {
addCriterion("order_id in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotIn(List<Long> values) {
addCriterion("order_id not in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdBetween(Long value1, Long value2) {
addCriterion("order_id between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotBetween(Long value1, Long value2) {
addCriterion("order_id not between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andPayAmountIsNull() {
addCriterion("pay_amount is null");
return (Criteria) this;
}
public Criteria andPayAmountIsNotNull() {
addCriterion("pay_amount is not null");
return (Criteria) this;
}
public Criteria andPayAmountEqualTo(BigDecimal value) {
addCriterion("pay_amount =", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountNotEqualTo(BigDecimal value) {
addCriterion("pay_amount <>", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountGreaterThan(BigDecimal value) {
addCriterion("pay_amount >", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("pay_amount >=", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountLessThan(BigDecimal value) {
addCriterion("pay_amount <", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountLessThanOrEqualTo(BigDecimal value) {
addCriterion("pay_amount <=", value, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountIn(List<BigDecimal> values) {
addCriterion("pay_amount in", values, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountNotIn(List<BigDecimal> values) {
addCriterion("pay_amount not in", values, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("pay_amount between", value1, value2, "payAmount");
return (Criteria) this;
}
public Criteria andPayAmountNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("pay_amount not between", value1, value2, "payAmount");
return (Criteria) this;
}
public Criteria andIsPaidIsNull() {
addCriterion("is_paid is null");
return (Criteria) this;
}
public Criteria andIsPaidIsNotNull() {
addCriterion("is_paid is not null");
return (Criteria) this;
}
public Criteria andIsPaidEqualTo(Integer value) {
addCriterion("is_paid =", value, "isPaid");
return (Criteria) this;
}
public Criteria andIsPaidNotEqualTo(Integer value) {
addCriterion("is_paid <>", value, "isPaid");
return (Criteria) this;
}
public Criteria andIsPaidGreaterThan(Integer value) {
addCriterion("is_paid >", value, "isPaid");
return (Criteria) this;
}
public Criteria andIsPaidGreaterThanOrEqualTo(Integer value) {
addCriterion("is_paid >=", value, "isPaid");
return (Criteria) this;
}
public Criteria andIsPaidLessThan(Integer value) {
addCriterion("is_paid <", value, "isPaid");
return (Criteria) this;
}
public Criteria andIsPaidLessThanOrEqualTo(Integer value) {
addCriterion("is_paid <=", value, "isPaid");
return (Criteria) this;
}
public Criteria andIsPaidIn(List<Integer> values) {
addCriterion("is_paid in", values, "isPaid");
return (Criteria) this;
}
public Criteria andIsPaidNotIn(List<Integer> values) {
addCriterion("is_paid not in", values, "isPaid");
return (Criteria) this;
}
public Criteria andIsPaidBetween(Integer value1, Integer value2) {
addCriterion("is_paid between", value1, value2, "isPaid");
return (Criteria) this;
}
public Criteria andIsPaidNotBetween(Integer value1, Integer value2) {
addCriterion("is_paid not between", value1, value2, "isPaid");
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);
}
}
}
2.17、生成的 POJO 类 TradeUser.java
package com.itheima.shop.pojo;
import java.util.Date;
public class TradeUser {
private Long userId;
private String userName;
private String userPassword;
private String userMobile;
private Integer userScore;
private Date userRegTime;
private Long userMoney;
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName == null ? null : userName.trim();
}
public String getUserPassword() {
return userPassword;
}
public void setUserPassword(String userPassword) {
this.userPassword = userPassword == null ? null : userPassword.trim();
}
public String getUserMobile() {
return userMobile;
}
public void setUserMobile(String userMobile) {
this.userMobile = userMobile == null ? null : userMobile.trim();
}
public Integer getUserScore() {
return userScore;
}
public void setUserScore(Integer userScore) {
this.userScore = userScore;
}
public Date getUserRegTime() {
return userRegTime;
}
public void setUserRegTime(Date userRegTime) {
this.userRegTime = userRegTime;
}
public Long getUserMoney() {
return userMoney;
}
public void setUserMoney(Long userMoney) {
this.userMoney = userMoney;
}
}
2.18、生成的 POJO 类 TradeUserExample.java
package com.itheima.shop.pojo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TradeUserExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TradeUserExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserNameIsNull() {
addCriterion("user_name is null");
return (Criteria) this;
}
public Criteria andUserNameIsNotNull() {
addCriterion("user_name is not null");
return (Criteria) this;
}
public Criteria andUserNameEqualTo(String value) {
addCriterion("user_name =", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotEqualTo(String value) {
addCriterion("user_name <>", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameGreaterThan(String value) {
addCriterion("user_name >", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameGreaterThanOrEqualTo(String value) {
addCriterion("user_name >=", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameLessThan(String value) {
addCriterion("user_name <", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameLessThanOrEqualTo(String value) {
addCriterion("user_name <=", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameLike(String value) {
addCriterion("user_name like", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotLike(String value) {
addCriterion("user_name not like", value, "userName");
return (Criteria) this;
}
public Criteria andUserNameIn(List<String> values) {
addCriterion("user_name in", values, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotIn(List<String> values) {
addCriterion("user_name not in", values, "userName");
return (Criteria) this;
}
public Criteria andUserNameBetween(String value1, String value2) {
addCriterion("user_name between", value1, value2, "userName");
return (Criteria) this;
}
public Criteria andUserNameNotBetween(String value1, String value2) {
addCriterion("user_name not between", value1, value2, "userName");
return (Criteria) this;
}
public Criteria andUserPasswordIsNull() {
addCriterion("user_password is null");
return (Criteria) this;
}
public Criteria andUserPasswordIsNotNull() {
addCriterion("user_password is not null");
return (Criteria) this;
}
public Criteria andUserPasswordEqualTo(String value) {
addCriterion("user_password =", value, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordNotEqualTo(String value) {
addCriterion("user_password <>", value, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordGreaterThan(String value) {
addCriterion("user_password >", value, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordGreaterThanOrEqualTo(String value) {
addCriterion("user_password >=", value, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordLessThan(String value) {
addCriterion("user_password <", value, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordLessThanOrEqualTo(String value) {
addCriterion("user_password <=", value, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordLike(String value) {
addCriterion("user_password like", value, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordNotLike(String value) {
addCriterion("user_password not like", value, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordIn(List<String> values) {
addCriterion("user_password in", values, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordNotIn(List<String> values) {
addCriterion("user_password not in", values, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordBetween(String value1, String value2) {
addCriterion("user_password between", value1, value2, "userPassword");
return (Criteria) this;
}
public Criteria andUserPasswordNotBetween(String value1, String value2) {
addCriterion("user_password not between", value1, value2, "userPassword");
return (Criteria) this;
}
public Criteria andUserMobileIsNull() {
addCriterion("user_mobile is null");
return (Criteria) this;
}
public Criteria andUserMobileIsNotNull() {
addCriterion("user_mobile is not null");
return (Criteria) this;
}
public Criteria andUserMobileEqualTo(String value) {
addCriterion("user_mobile =", value, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileNotEqualTo(String value) {
addCriterion("user_mobile <>", value, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileGreaterThan(String value) {
addCriterion("user_mobile >", value, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileGreaterThanOrEqualTo(String value) {
addCriterion("user_mobile >=", value, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileLessThan(String value) {
addCriterion("user_mobile <", value, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileLessThanOrEqualTo(String value) {
addCriterion("user_mobile <=", value, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileLike(String value) {
addCriterion("user_mobile like", value, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileNotLike(String value) {
addCriterion("user_mobile not like", value, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileIn(List<String> values) {
addCriterion("user_mobile in", values, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileNotIn(List<String> values) {
addCriterion("user_mobile not in", values, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileBetween(String value1, String value2) {
addCriterion("user_mobile between", value1, value2, "userMobile");
return (Criteria) this;
}
public Criteria andUserMobileNotBetween(String value1, String value2) {
addCriterion("user_mobile not between", value1, value2, "userMobile");
return (Criteria) this;
}
public Criteria andUserScoreIsNull() {
addCriterion("user_score is null");
return (Criteria) this;
}
public Criteria andUserScoreIsNotNull() {
addCriterion("user_score is not null");
return (Criteria) this;
}
public Criteria andUserScoreEqualTo(Integer value) {
addCriterion("user_score =", value, "userScore");
return (Criteria) this;
}
public Criteria andUserScoreNotEqualTo(Integer value) {
addCriterion("user_score <>", value, "userScore");
return (Criteria) this;
}
public Criteria andUserScoreGreaterThan(Integer value) {
addCriterion("user_score >", value, "userScore");
return (Criteria) this;
}
public Criteria andUserScoreGreaterThanOrEqualTo(Integer value) {
addCriterion("user_score >=", value, "userScore");
return (Criteria) this;
}
public Criteria andUserScoreLessThan(Integer value) {
addCriterion("user_score <", value, "userScore");
return (Criteria) this;
}
public Criteria andUserScoreLessThanOrEqualTo(Integer value) {
addCriterion("user_score <=", value, "userScore");
return (Criteria) this;
}
public Criteria andUserScoreIn(List<Integer> values) {
addCriterion("user_score in", values, "userScore");
return (Criteria) this;
}
public Criteria andUserScoreNotIn(List<Integer> values) {
addCriterion("user_score not in", values, "userScore");
return (Criteria) this;
}
public Criteria andUserScoreBetween(Integer value1, Integer value2) {
addCriterion("user_score between", value1, value2, "userScore");
return (Criteria) this;
}
public Criteria andUserScoreNotBetween(Integer value1, Integer value2) {
addCriterion("user_score not between", value1, value2, "userScore");
return (Criteria) this;
}
public Criteria andUserRegTimeIsNull() {
addCriterion("user_reg_time is null");
return (Criteria) this;
}
public Criteria andUserRegTimeIsNotNull() {
addCriterion("user_reg_time is not null");
return (Criteria) this;
}
public Criteria andUserRegTimeEqualTo(Date value) {
addCriterion("user_reg_time =", value, "userRegTime");
return (Criteria) this;
}
public Criteria andUserRegTimeNotEqualTo(Date value) {
addCriterion("user_reg_time <>", value, "userRegTime");
return (Criteria) this;
}
public Criteria andUserRegTimeGreaterThan(Date value) {
addCriterion("user_reg_time >", value, "userRegTime");
return (Criteria) this;
}
public Criteria andUserRegTimeGreaterThanOrEqualTo(Date value) {
addCriterion("user_reg_time >=", value, "userRegTime");
return (Criteria) this;
}
public Criteria andUserRegTimeLessThan(Date value) {
addCriterion("user_reg_time <", value, "userRegTime");
return (Criteria) this;
}
public Criteria andUserRegTimeLessThanOrEqualTo(Date value) {
addCriterion("user_reg_time <=", value, "userRegTime");
return (Criteria) this;
}
public Criteria andUserRegTimeIn(List<Date> values) {
addCriterion("user_reg_time in", values, "userRegTime");
return (Criteria) this;
}
public Criteria andUserRegTimeNotIn(List<Date> values) {
addCriterion("user_reg_time not in", values, "userRegTime");
return (Criteria) this;
}
public Criteria andUserRegTimeBetween(Date value1, Date value2) {
addCriterion("user_reg_time between", value1, value2, "userRegTime");
return (Criteria) this;
}
public Criteria andUserRegTimeNotBetween(Date value1, Date value2) {
addCriterion("user_reg_time not between", value1, value2, "userRegTime");
return (Criteria) this;
}
public Criteria andUserMoneyIsNull() {
addCriterion("user_money is null");
return (Criteria) this;
}
public Criteria andUserMoneyIsNotNull() {
addCriterion("user_money is not null");
return (Criteria) this;
}
public Criteria andUserMoneyEqualTo(Long value) {
addCriterion("user_money =", value, "userMoney");
return (Criteria) this;
}
public Criteria andUserMoneyNotEqualTo(Long value) {
addCriterion("user_money <>", value, "userMoney");
return (Criteria) this;
}
public Criteria andUserMoneyGreaterThan(Long value) {
addCriterion("user_money >", value, "userMoney");
return (Criteria) this;
}
public Criteria andUserMoneyGreaterThanOrEqualTo(Long value) {
addCriterion("user_money >=", value, "userMoney");
return (Criteria) this;
}
public Criteria andUserMoneyLessThan(Long value) {
addCriterion("user_money <", value, "userMoney");
return (Criteria) this;
}
public Criteria andUserMoneyLessThanOrEqualTo(Long value) {
addCriterion("user_money <=", value, "userMoney");
return (Criteria) this;
}
public Criteria andUserMoneyIn(List<Long> values) {
addCriterion("user_money in", values, "userMoney");
return (Criteria) this;
}
public Criteria andUserMoneyNotIn(List<Long> values) {
addCriterion("user_money not in", values, "userMoney");
return (Criteria) this;
}
public Criteria andUserMoneyBetween(Long value1, Long value2) {
addCriterion("user_money between", value1, value2, "userMoney");
return (Criteria) this;
}
public Criteria andUserMoneyNotBetween(Long value1, Long value2) {
addCriterion("user_money not between", value1, value2, "userMoney");
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);
}
}
}
2.19、生成的 POJO 类 TradeUserMoneyLog.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
import java.util.Date;
public class TradeUserMoneyLog extends TradeUserMoneyLogKey {
private BigDecimal useMoney;
private Date createTime;
public BigDecimal getUseMoney() {
return useMoney;
}
public void setUseMoney(BigDecimal useMoney) {
this.useMoney = useMoney;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}
2.20、生成的 POJO 类 TradeUserMoneyLogExample.java
package com.itheima.shop.pojo;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TradeUserMoneyLogExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TradeUserMoneyLogExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andUserIdIsNull() {
addCriterion("user_id is null");
return (Criteria) this;
}
public Criteria andUserIdIsNotNull() {
addCriterion("user_id is not null");
return (Criteria) this;
}
public Criteria andUserIdEqualTo(Long value) {
addCriterion("user_id =", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotEqualTo(Long value) {
addCriterion("user_id <>", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThan(Long value) {
addCriterion("user_id >", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
addCriterion("user_id >=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThan(Long value) {
addCriterion("user_id <", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdLessThanOrEqualTo(Long value) {
addCriterion("user_id <=", value, "userId");
return (Criteria) this;
}
public Criteria andUserIdIn(List<Long> values) {
addCriterion("user_id in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotIn(List<Long> values) {
addCriterion("user_id not in", values, "userId");
return (Criteria) this;
}
public Criteria andUserIdBetween(Long value1, Long value2) {
addCriterion("user_id between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andUserIdNotBetween(Long value1, Long value2) {
addCriterion("user_id not between", value1, value2, "userId");
return (Criteria) this;
}
public Criteria andOrderIdIsNull() {
addCriterion("order_id is null");
return (Criteria) this;
}
public Criteria andOrderIdIsNotNull() {
addCriterion("order_id is not null");
return (Criteria) this;
}
public Criteria andOrderIdEqualTo(Long value) {
addCriterion("order_id =", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotEqualTo(Long value) {
addCriterion("order_id <>", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThan(Long value) {
addCriterion("order_id >", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
addCriterion("order_id >=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThan(Long value) {
addCriterion("order_id <", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdLessThanOrEqualTo(Long value) {
addCriterion("order_id <=", value, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdIn(List<Long> values) {
addCriterion("order_id in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotIn(List<Long> values) {
addCriterion("order_id not in", values, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdBetween(Long value1, Long value2) {
addCriterion("order_id between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andOrderIdNotBetween(Long value1, Long value2) {
addCriterion("order_id not between", value1, value2, "orderId");
return (Criteria) this;
}
public Criteria andMoneyLogTypeIsNull() {
addCriterion("money_log_type is null");
return (Criteria) this;
}
public Criteria andMoneyLogTypeIsNotNull() {
addCriterion("money_log_type is not null");
return (Criteria) this;
}
public Criteria andMoneyLogTypeEqualTo(Integer value) {
addCriterion("money_log_type =", value, "moneyLogType");
return (Criteria) this;
}
public Criteria andMoneyLogTypeNotEqualTo(Integer value) {
addCriterion("money_log_type <>", value, "moneyLogType");
return (Criteria) this;
}
public Criteria andMoneyLogTypeGreaterThan(Integer value) {
addCriterion("money_log_type >", value, "moneyLogType");
return (Criteria) this;
}
public Criteria andMoneyLogTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("money_log_type >=", value, "moneyLogType");
return (Criteria) this;
}
public Criteria andMoneyLogTypeLessThan(Integer value) {
addCriterion("money_log_type <", value, "moneyLogType");
return (Criteria) this;
}
public Criteria andMoneyLogTypeLessThanOrEqualTo(Integer value) {
addCriterion("money_log_type <=", value, "moneyLogType");
return (Criteria) this;
}
public Criteria andMoneyLogTypeIn(List<Integer> values) {
addCriterion("money_log_type in", values, "moneyLogType");
return (Criteria) this;
}
public Criteria andMoneyLogTypeNotIn(List<Integer> values) {
addCriterion("money_log_type not in", values, "moneyLogType");
return (Criteria) this;
}
public Criteria andMoneyLogTypeBetween(Integer value1, Integer value2) {
addCriterion("money_log_type between", value1, value2, "moneyLogType");
return (Criteria) this;
}
public Criteria andMoneyLogTypeNotBetween(Integer value1, Integer value2) {
addCriterion("money_log_type not between", value1, value2, "moneyLogType");
return (Criteria) this;
}
public Criteria andUseMoneyIsNull() {
addCriterion("use_money is null");
return (Criteria) this;
}
public Criteria andUseMoneyIsNotNull() {
addCriterion("use_money is not null");
return (Criteria) this;
}
public Criteria andUseMoneyEqualTo(BigDecimal value) {
addCriterion("use_money =", value, "useMoney");
return (Criteria) this;
}
public Criteria andUseMoneyNotEqualTo(BigDecimal value) {
addCriterion("use_money <>", value, "useMoney");
return (Criteria) this;
}
public Criteria andUseMoneyGreaterThan(BigDecimal value) {
addCriterion("use_money >", value, "useMoney");
return (Criteria) this;
}
public Criteria andUseMoneyGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("use_money >=", value, "useMoney");
return (Criteria) this;
}
public Criteria andUseMoneyLessThan(BigDecimal value) {
addCriterion("use_money <", value, "useMoney");
return (Criteria) this;
}
public Criteria andUseMoneyLessThanOrEqualTo(BigDecimal value) {
addCriterion("use_money <=", value, "useMoney");
return (Criteria) this;
}
public Criteria andUseMoneyIn(List<BigDecimal> values) {
addCriterion("use_money in", values, "useMoney");
return (Criteria) this;
}
public Criteria andUseMoneyNotIn(List<BigDecimal> values) {
addCriterion("use_money not in", values, "useMoney");
return (Criteria) this;
}
public Criteria andUseMoneyBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("use_money between", value1, value2, "useMoney");
return (Criteria) this;
}
public Criteria andUseMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("use_money not between", value1, value2, "useMoney");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
public 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);
}
}
}
2.21、生成的 POJO 类 TradeUserMoneyLogKey.java
package com.itheima.shop.pojo;
public class TradeUserMoneyLogKey {
private Long userId;
private Long orderId;
private Integer moneyLogType;
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public Integer getMoneyLogType() {
return moneyLogType;
}
public void setMoneyLogType(Integer moneyLogType) {
this.moneyLogType = moneyLogType;
}
}
3、逆向工程 生成 的 mapper 类文件。
3.1、生成的 TradeCouponMapper.java 文件。
package com.itheima.shop.mapper;
import com.itheima.shop.pojo.TradeCoupon;
import com.itheima.shop.pojo.TradeCouponExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TradeCouponMapper {
int countByExample(TradeCouponExample example);
int deleteByExample(TradeCouponExample example);
int deleteByPrimaryKey(Long couponId);
int insert(TradeCoupon record);
int insertSelective(TradeCoupon record);
List<TradeCoupon> selectByExample(TradeCouponExample example);
TradeCoupon selectByPrimaryKey(Long couponId);
int updateByExampleSelective(@Param("record") TradeCoupon record, @Param("example") TradeCouponExample example);
int updateByExample(@Param("record") TradeCoupon record, @Param("example") TradeCouponExample example);
int updateByPrimaryKeySelective(TradeCoupon record);
int updateByPrimaryKey(TradeCoupon record);
}
3.2、生成的 TradeGoodsMapper.java 文件。
package com.itheima.shop.mapper;
import com.itheima.shop.pojo.TradeGoods;
import com.itheima.shop.pojo.TradeGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TradeGoodsMapper {
int countByExample(TradeGoodsExample example);
int deleteByExample(TradeGoodsExample example);
int deleteByPrimaryKey(Long goodsId);
int insert(TradeGoods record);
int insertSelective(TradeGoods record);
List<TradeGoods> selectByExample(TradeGoodsExample example);
TradeGoods selectByPrimaryKey(Long goodsId);
int updateByExampleSelective(@Param("record") TradeGoods record, @Param("example") TradeGoodsExample example);
int updateByExample(@Param("record") TradeGoods record, @Param("example") TradeGoodsExample example);
int updateByPrimaryKeySelective(TradeGoods record);
int updateByPrimaryKey(TradeGoods record);
}
3.3、生成的 TradeGoodsNumberLogMapper.java 文件。
package com.itheima.shop.mapper;
import com.itheima.shop.pojo.TradeGoodsNumberLog;
import com.itheima.shop.pojo.TradeGoodsNumberLogExample;
import com.itheima.shop.pojo.TradeGoodsNumberLogKey;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TradeGoodsNumberLogMapper {
int countByExample(TradeGoodsNumberLogExample example);
int deleteByExample(TradeGoodsNumberLogExample example);
int deleteByPrimaryKey(TradeGoodsNumberLogKey key);
int insert(TradeGoodsNumberLog record);
int insertSelective(TradeGoodsNumberLog record);
List<TradeGoodsNumberLog> selectByExample(TradeGoodsNumberLogExample example);
TradeGoodsNumberLog selectByPrimaryKey(TradeGoodsNumberLogKey key);
int updateByExampleSelective(@Param("record") TradeGoodsNumberLog record, @Param("example") TradeGoodsNumberLogExample example);
int updateByExample(@Param("record") TradeGoodsNumberLog record, @Param("example") TradeGoodsNumberLogExample example);
int updateByPrimaryKeySelective(TradeGoodsNumberLog record);
int updateByPrimaryKey(TradeGoodsNumberLog record);
}
3.4、生成的 TradeMqConsumerLogMapper.java 文件。
package com.itheima.shop.mapper;
import com.itheima.shop.pojo.TradeMqConsumerLog;
import com.itheima.shop.pojo.TradeMqConsumerLogExample;
import com.itheima.shop.pojo.TradeMqConsumerLogKey;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TradeMqConsumerLogMapper {
int countByExample(TradeMqConsumerLogExample example);
int deleteByExample(TradeMqConsumerLogExample example);
int deleteByPrimaryKey(TradeMqConsumerLogKey key);
int insert(TradeMqConsumerLog record);
int insertSelective(TradeMqConsumerLog record);
List<TradeMqConsumerLog> selectByExample(TradeMqConsumerLogExample example);
TradeMqConsumerLog selectByPrimaryKey(TradeMqConsumerLogKey key);
int updateByExampleSelective(@Param("record") TradeMqConsumerLog record, @Param("example") TradeMqConsumerLogExample example);
int updateByExample(@Param("record") TradeMqConsumerLog record, @Param("example") TradeMqConsumerLogExample example);
int updateByPrimaryKeySelective(TradeMqConsumerLog record);
int updateByPrimaryKey(TradeMqConsumerLog record);
}
3.5、生成的 TradeMqProducerTempMapper.java 文件。
package com.itheima.shop.mapper;
import com.itheima.shop.pojo.TradeMqProducerTemp;
import com.itheima.shop.pojo.TradeMqProducerTempExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TradeMqProducerTempMapper {
int countByExample(TradeMqProducerTempExample example);
int deleteByExample(TradeMqProducerTempExample example);
int deleteByPrimaryKey(String id);
int insert(TradeMqProducerTemp record);
int insertSelective(TradeMqProducerTemp record);
List<TradeMqProducerTemp> selectByExample(TradeMqProducerTempExample example);
TradeMqProducerTemp selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") TradeMqProducerTemp record, @Param("example") TradeMqProducerTempExample example);
int updateByExample(@Param("record") TradeMqProducerTemp record, @Param("example") TradeMqProducerTempExample example);
int updateByPrimaryKeySelective(TradeMqProducerTemp record);
int updateByPrimaryKey(TradeMqProducerTemp record);
}
3.6、生成的 TradeOrderMapper.java 文件。
package com.itheima.shop.mapper;
import com.itheima.shop.pojo.TradeOrder;
import com.itheima.shop.pojo.TradeOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TradeOrderMapper {
int countByExample(TradeOrderExample example);
int deleteByExample(TradeOrderExample example);
int deleteByPrimaryKey(Long orderId);
int insert(TradeOrder record);
int insertSelective(TradeOrder record);
List<TradeOrder> selectByExample(TradeOrderExample example);
TradeOrder selectByPrimaryKey(Long orderId);
int updateByExampleSelective(@Param("record") TradeOrder record, @Param("example") TradeOrderExample example);
int updateByExample(@Param("record") TradeOrder record, @Param("example") TradeOrderExample example);
int updateByPrimaryKeySelective(TradeOrder record);
int updateByPrimaryKey(TradeOrder record);
}
3.7、生成的 TradePayMapper.java 文件。
package com.itheima.shop.mapper;
import com.itheima.shop.pojo.TradePay;
import com.itheima.shop.pojo.TradePayExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TradePayMapper {
int countByExample(TradePayExample example);
int deleteByExample(TradePayExample example);
int deleteByPrimaryKey(Long payId);
int insert(TradePay record);
int insertSelective(TradePay record);
List<TradePay> selectByExample(TradePayExample example);
TradePay selectByPrimaryKey(Long payId);
int updateByExampleSelective(@Param("record") TradePay record, @Param("example") TradePayExample example);
int updateByExample(@Param("record") TradePay record, @Param("example") TradePayExample example);
int updateByPrimaryKeySelective(TradePay record);
int updateByPrimaryKey(TradePay record);
}
3.8、生成的 TradeUserMapper.java 文件。
package com.itheima.shop.mapper;
import com.itheima.shop.pojo.TradeUser;
import com.itheima.shop.pojo.TradeUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TradeUserMapper {
int countByExample(TradeUserExample example);
int deleteByExample(TradeUserExample example);
int deleteByPrimaryKey(Long userId);
int insert(TradeUser record);
int insertSelective(TradeUser record);
List<TradeUser> selectByExample(TradeUserExample example);
TradeUser selectByPrimaryKey(Long userId);
int updateByExampleSelective(@Param("record") TradeUser record, @Param("example") TradeUserExample example);
int updateByExample(@Param("record") TradeUser record, @Param("example") TradeUserExample example);
int updateByPrimaryKeySelective(TradeUser record);
int updateByPrimaryKey(TradeUser record);
}
3.9、生成的 TradeUserMoneyLogMapper.java 文件。
package com.itheima.shop.mapper;
import com.itheima.shop.pojo.TradeUserMoneyLog;
import com.itheima.shop.pojo.TradeUserMoneyLogExample;
import com.itheima.shop.pojo.TradeUserMoneyLogKey;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TradeUserMoneyLogMapper {
int countByExample(TradeUserMoneyLogExample example);
int deleteByExample(TradeUserMoneyLogExample example);
int deleteByPrimaryKey(TradeUserMoneyLogKey key);
int insert(TradeUserMoneyLog record);
int insertSelective(TradeUserMoneyLog record);
List<TradeUserMoneyLog> selectByExample(TradeUserMoneyLogExample example);
TradeUserMoneyLog selectByPrimaryKey(TradeUserMoneyLogKey key);
int updateByExampleSelective(@Param("record") TradeUserMoneyLog record, @Param("example") TradeUserMoneyLogExample example);
int updateByExample(@Param("record") TradeUserMoneyLog record, @Param("example") TradeUserMoneyLogExample example);
int updateByPrimaryKeySelective(TradeUserMoneyLog record);
int updateByPrimaryKey(TradeUserMoneyLog record);
}
上一节关联链接请点击:
# RocketMQ 实战:模拟电商网站场景综合案例(三)