Commit 936b5511 authored by Junling Bu's avatar Junling Bu
Browse files

[litemall-db]: 自动生成代码进行相应调整。

parent 64b74e3b
......@@ -67,7 +67,6 @@
<table tableName="litemall_admin">
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride javaType="java.time.LocalDateTime" column="last_login_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="update_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
</table>
<table tableName="litemall_brand">
......@@ -76,7 +75,7 @@
</table>
<table tableName="litemall_cart">
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="goods_specification_ids" javaType="java.lang.Integer[]" typeHandler="org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler"/>
<columnOverride column="specifications" javaType="java.lang.String[]" typeHandler="org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler"/>
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
</table>
<table tableName="litemall_category">
......@@ -92,14 +91,6 @@
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
<columnOverride column="pic_urls" javaType="java.lang.String[]" typeHandler="org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler"/>
</table>
<table tableName="litemall_coupon">
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride javaType="java.time.LocalDateTime" column="send_start"/>
<columnOverride javaType="java.time.LocalDateTime" column="send_end"/>
<columnOverride javaType="java.time.LocalDateTime" column="use_start"/>
<columnOverride javaType="java.time.LocalDateTime" column="use_end"/>
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
</table>
<table tableName="litemall_footprint">
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
......@@ -129,19 +120,18 @@
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="pay_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="ship_start_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="ship_end_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="ship_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="confirm_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="end_time"/>
</table>
<table tableName="litemall_order_goods">
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="goods_specification_ids" javaType="java.lang.Integer[]" typeHandler="org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler"/>
<columnOverride column="specifications" javaType="java.lang.String[]" typeHandler="org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler"/>
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
</table>
<table tableName="litemall_product">
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="goods_specification_ids" javaType="java.lang.Integer[]" typeHandler="org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler"/>
<columnOverride column="specifications" javaType="java.lang.String[]" typeHandler="org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler"/>
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
</table>
<table tableName="litemall_region">
......@@ -158,6 +148,7 @@
</table>
<table tableName="litemall_topic">
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride column="goods" javaType="java.lang.Integer[]" typeHandler="org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler"/>
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
</table>
<table tableName="litemall_user">
......@@ -166,12 +157,5 @@
<columnOverride javaType="java.time.LocalDateTime" column="last_login_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
</table>
<table tableName="litemall_user_coupon">
<generatedKey column="id" sqlStatement="MySql" identity="true" />
<columnOverride javaType="java.time.LocalDateTime" column="used_time"/>
<columnOverride javaType="java.time.LocalDateTime" column="add_time"/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file
......@@ -78,7 +78,7 @@
<dependency>
<groupId>com.itfsw</groupId>
<artifactId>mybatis-generator-plugin</artifactId>
<version>1.2.3</version>
<version>1.2.6</version>
</dependency>
</dependencies>
</plugin>
......
package org.linlinjava.litemall.db.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallCoupon;
import org.linlinjava.litemall.db.domain.LitemallCouponExample;
public interface LitemallCouponMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
long countByExample(LitemallCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
int deleteByExample(LitemallCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
int insert(LitemallCoupon record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
int insertSelective(LitemallCoupon record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
LitemallCoupon selectOneByExample(LitemallCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
LitemallCoupon selectOneByExampleSelective(@Param("example") LitemallCouponExample example, @Param("selective") LitemallCoupon.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<LitemallCoupon> selectByExampleSelective(@Param("example") LitemallCouponExample example, @Param("selective") LitemallCoupon.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
List<LitemallCoupon> selectByExample(LitemallCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
LitemallCoupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallCoupon.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
LitemallCoupon selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
LitemallCoupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") LitemallCoupon record, @Param("example") LitemallCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
int updateByExample(@Param("record") LitemallCoupon record, @Param("example") LitemallCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(LitemallCoupon record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
*/
int updateByPrimaryKey(LitemallCoupon record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByExample(@Param("example") LitemallCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByPrimaryKey(Integer id);
}
\ No newline at end of file
package org.linlinjava.litemall.db.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LitemallUserCoupon;
import org.linlinjava.litemall.db.domain.LitemallUserCouponExample;
public interface LitemallUserCouponMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
long countByExample(LitemallUserCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
int deleteByExample(LitemallUserCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
int insert(LitemallUserCoupon record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
int insertSelective(LitemallUserCoupon record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
LitemallUserCoupon selectOneByExample(LitemallUserCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
LitemallUserCoupon selectOneByExampleSelective(@Param("example") LitemallUserCouponExample example, @Param("selective") LitemallUserCoupon.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<LitemallUserCoupon> selectByExampleSelective(@Param("example") LitemallUserCouponExample example, @Param("selective") LitemallUserCoupon.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
List<LitemallUserCoupon> selectByExample(LitemallUserCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
LitemallUserCoupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") LitemallUserCoupon.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
LitemallUserCoupon selectByPrimaryKey(Integer id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
LitemallUserCoupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") LitemallUserCoupon record, @Param("example") LitemallUserCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
int updateByExample(@Param("record") LitemallUserCoupon record, @Param("example") LitemallUserCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(LitemallUserCoupon record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
*/
int updateByPrimaryKey(LitemallUserCoupon record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByExample(@Param("example") LitemallUserCouponExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_user_coupon
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByPrimaryKey(Integer id);
}
\ No newline at end of file
package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class LitemallAd {
/**
......@@ -12,16 +14,6 @@ public class LitemallAd {
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_ad
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_ad
......@@ -31,16 +23,6 @@ public class LitemallAd {
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_ad
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -53,38 +35,38 @@ public class LitemallAd {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_ad.position
* This field corresponds to the database column litemall_ad.name
*
* @mbg.generated
*/
private Integer position;
private String name;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_ad.name
* This field corresponds to the database column litemall_ad.link
*
* @mbg.generated
*/
private String name;
private String link;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_ad.link
* This field corresponds to the database column litemall_ad.url
*
* @mbg.generated
*/
private String link;
private String url;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_ad.url
* This field corresponds to the database column litemall_ad.position
*
* @mbg.generated
*/
private String url;
private Byte position;
/**
*
......@@ -164,30 +146,6 @@ public class LitemallAd {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_ad.position
*
* @return the value of litemall_ad.position
*
* @mbg.generated
*/
public Integer getPosition() {
return position;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_ad.position
*
* @param position the value for litemall_ad.position
*
* @mbg.generated
*/
public void setPosition(Integer position) {
this.position = position;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_ad.name
......@@ -260,6 +218,30 @@ public class LitemallAd {
this.url = url;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_ad.position
*
* @return the value of litemall_ad.position
*
* @mbg.generated
*/
public Byte getPosition() {
return position;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_ad.position
*
* @param position the value for litemall_ad.position
*
* @mbg.generated
*/
public void setPosition(Byte position) {
this.position = position;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_ad.content
......@@ -417,10 +399,10 @@ public class LitemallAd {
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", position=").append(position);
sb.append(", name=").append(name);
sb.append(", link=").append(link);
sb.append(", url=").append(url);
sb.append(", position=").append(position);
sb.append(", content=").append(content);
sb.append(", startTime=").append(startTime);
sb.append(", endTime=").append(endTime);
......@@ -450,10 +432,10 @@ public class LitemallAd {
}
LitemallAd other = (LitemallAd) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getPosition() == null ? other.getPosition() == null : this.getPosition().equals(other.getPosition()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getLink() == null ? other.getLink() == null : this.getLink().equals(other.getLink()))
&& (this.getUrl() == null ? other.getUrl() == null : this.getUrl().equals(other.getUrl()))
&& (this.getPosition() == null ? other.getPosition() == null : this.getPosition().equals(other.getPosition()))
&& (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
&& (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
&& (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
......@@ -473,10 +455,10 @@ public class LitemallAd {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getLink() == null) ? 0 : getLink().hashCode());
result = prime * result + ((getUrl() == null) ? 0 : getUrl().hashCode());
result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
......@@ -506,10 +488,10 @@ public class LitemallAd {
*/
public enum Column {
id("id", "id", "INTEGER"),
position("position", "position", "INTEGER"),
name("name", "name", "VARCHAR"),
link("link", "link", "VARCHAR"),
url("url", "url", "VARCHAR"),
position("position", "position", "TINYINT"),
content("content", "content", "VARCHAR"),
startTime("start_time", "startTime", "TIMESTAMP"),
endTime("end_time", "endTime", "TIMESTAMP"),
......@@ -622,5 +604,20 @@ public class LitemallAd {
public String asc() {
return this.column + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_ad
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
}
}
\ No newline at end of file
......@@ -286,66 +286,6 @@ public class LitemallAdExample {
return (Criteria) this;
}
public Criteria andPositionIsNull() {
addCriterion("`position` is null");
return (Criteria) this;
}
public Criteria andPositionIsNotNull() {
addCriterion("`position` is not null");
return (Criteria) this;
}
public Criteria andPositionEqualTo(Integer value) {
addCriterion("`position` =", value, "position");
return (Criteria) this;
}
public Criteria andPositionNotEqualTo(Integer value) {
addCriterion("`position` <>", value, "position");
return (Criteria) this;
}
public Criteria andPositionGreaterThan(Integer value) {
addCriterion("`position` >", value, "position");
return (Criteria) this;
}
public Criteria andPositionGreaterThanOrEqualTo(Integer value) {
addCriterion("`position` >=", value, "position");
return (Criteria) this;
}
public Criteria andPositionLessThan(Integer value) {
addCriterion("`position` <", value, "position");
return (Criteria) this;
}
public Criteria andPositionLessThanOrEqualTo(Integer value) {
addCriterion("`position` <=", value, "position");
return (Criteria) this;
}
public Criteria andPositionIn(List<Integer> values) {
addCriterion("`position` in", values, "position");
return (Criteria) this;
}
public Criteria andPositionNotIn(List<Integer> values) {
addCriterion("`position` not in", values, "position");
return (Criteria) this;
}
public Criteria andPositionBetween(Integer value1, Integer value2) {
addCriterion("`position` between", value1, value2, "position");
return (Criteria) this;
}
public Criteria andPositionNotBetween(Integer value1, Integer value2) {
addCriterion("`position` not between", value1, value2, "position");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("`name` is null");
return (Criteria) this;
......@@ -556,6 +496,66 @@ public class LitemallAdExample {
return (Criteria) this;
}
public Criteria andPositionIsNull() {
addCriterion("`position` is null");
return (Criteria) this;
}
public Criteria andPositionIsNotNull() {
addCriterion("`position` is not null");
return (Criteria) this;
}
public Criteria andPositionEqualTo(Byte value) {
addCriterion("`position` =", value, "position");
return (Criteria) this;
}
public Criteria andPositionNotEqualTo(Byte value) {
addCriterion("`position` <>", value, "position");
return (Criteria) this;
}
public Criteria andPositionGreaterThan(Byte value) {
addCriterion("`position` >", value, "position");
return (Criteria) this;
}
public Criteria andPositionGreaterThanOrEqualTo(Byte value) {
addCriterion("`position` >=", value, "position");
return (Criteria) this;
}
public Criteria andPositionLessThan(Byte value) {
addCriterion("`position` <", value, "position");
return (Criteria) this;
}
public Criteria andPositionLessThanOrEqualTo(Byte value) {
addCriterion("`position` <=", value, "position");
return (Criteria) this;
}
public Criteria andPositionIn(List<Byte> values) {
addCriterion("`position` in", values, "position");
return (Criteria) this;
}
public Criteria andPositionNotIn(List<Byte> values) {
addCriterion("`position` not in", values, "position");
return (Criteria) this;
}
public Criteria andPositionBetween(Byte value1, Byte value2) {
addCriterion("`position` between", value1, value2, "position");
return (Criteria) this;
}
public Criteria andPositionNotBetween(Byte value1, Byte value2) {
addCriterion("`position` not between", value1, value2, "position");
return (Criteria) this;
}
public Criteria andContentIsNull() {
addCriterion("content is null");
return (Criteria) this;
......@@ -991,18 +991,6 @@ public class LitemallAdExample {
return deleted ? andDeletedEqualTo(LitemallAd.IS_DELETED) : andDeletedNotEqualTo(LitemallAd.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_ad
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallAd.IS_DELETED) : andDeletedNotEqualTo(LitemallAd.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_ad
......
package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class LitemallAddress {
/**
......@@ -12,16 +14,6 @@ public class LitemallAddress {
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_address
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_address
......@@ -31,16 +23,6 @@ public class LitemallAddress {
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_address
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -622,5 +604,20 @@ public class LitemallAddress {
public String asc() {
return this.column + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_address
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
}
}
\ No newline at end of file
......@@ -981,18 +981,6 @@ public class LitemallAddressExample {
return deleted ? andDeletedEqualTo(LitemallAddress.IS_DELETED) : andDeletedNotEqualTo(LitemallAddress.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_address
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallAddress.IS_DELETED) : andDeletedNotEqualTo(LitemallAddress.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_address
......
package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class LitemallAdmin {
/**
......@@ -12,16 +14,6 @@ public class LitemallAdmin {
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_admin
......@@ -31,16 +23,6 @@ public class LitemallAdmin {
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -86,15 +68,6 @@ public class LitemallAdmin {
*/
private LocalDateTime lastLoginTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_admin.update_time
*
* @mbg.generated
*/
private LocalDateTime updateTime;
/**
*
* This field was generated by MyBatis Generator.
......@@ -242,30 +215,6 @@ public class LitemallAdmin {
this.lastLoginTime = lastLoginTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_admin.update_time
*
* @return the value of litemall_admin.update_time
*
* @mbg.generated
*/
public LocalDateTime getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_admin.update_time
*
* @param updateTime the value for litemall_admin.update_time
*
* @mbg.generated
*/
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_admin.avatar
......@@ -355,7 +304,6 @@ public class LitemallAdmin {
sb.append(", password=").append(password);
sb.append(", lastLoginIp=").append(lastLoginIp);
sb.append(", lastLoginTime=").append(lastLoginTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", avatar=").append(avatar);
sb.append(", addTime=").append(addTime);
sb.append(", deleted=").append(deleted);
......@@ -386,7 +334,6 @@ public class LitemallAdmin {
&& (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
&& (this.getLastLoginIp() == null ? other.getLastLoginIp() == null : this.getLastLoginIp().equals(other.getLastLoginIp()))
&& (this.getLastLoginTime() == null ? other.getLastLoginTime() == null : this.getLastLoginTime().equals(other.getLastLoginTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
......@@ -407,7 +354,6 @@ public class LitemallAdmin {
result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
result = prime * result + ((getLastLoginIp() == null) ? 0 : getLastLoginIp().hashCode());
result = prime * result + ((getLastLoginTime() == null) ? 0 : getLastLoginTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
......@@ -438,7 +384,6 @@ public class LitemallAdmin {
password("password", "password", "VARCHAR"),
lastLoginIp("last_login_ip", "lastLoginIp", "VARCHAR"),
lastLoginTime("last_login_time", "lastLoginTime", "TIMESTAMP"),
updateTime("update_time", "updateTime", "TIMESTAMP"),
avatar("avatar", "avatar", "VARCHAR"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT");
......@@ -548,5 +493,20 @@ public class LitemallAdmin {
public String asc() {
return this.column + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
}
}
\ No newline at end of file
......@@ -556,66 +556,6 @@ public class LitemallAdminExample {
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(LocalDateTime value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(LocalDateTime value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(LocalDateTime value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(LocalDateTime value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<LocalDateTime> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<LocalDateTime> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andAvatarIsNull() {
addCriterion("avatar is null");
return (Criteria) this;
......@@ -871,18 +811,6 @@ public class LitemallAdminExample {
return deleted ? andDeletedEqualTo(LitemallAdmin.IS_DELETED) : andDeletedNotEqualTo(LitemallAdmin.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_admin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallAdmin.IS_DELETED) : andDeletedNotEqualTo(LitemallAdmin.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_admin
......
......@@ -2,6 +2,8 @@ package org.linlinjava.litemall.db.domain;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class LitemallBrand {
/**
......@@ -13,16 +15,6 @@ public class LitemallBrand {
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_brand
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_brand
......@@ -32,16 +24,6 @@ public class LitemallBrand {
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_brand
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -63,20 +45,11 @@ public class LitemallBrand {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_brand.list_pic_url
* This field corresponds to the database column litemall_brand.desc
*
* @mbg.generated
*/
private String listPicUrl;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_brand.simple_desc
*
* @mbg.generated
*/
private String simpleDesc;
private String desc;
/**
*
......@@ -96,15 +69,6 @@ public class LitemallBrand {
*/
private Byte sortOrder;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_brand.is_show
*
* @mbg.generated
*/
private Boolean isShow;
/**
*
* This field was generated by MyBatis Generator.
......@@ -114,42 +78,6 @@ public class LitemallBrand {
*/
private BigDecimal floorPrice;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_brand.app_list_pic_url
*
* @mbg.generated
*/
private String appListPicUrl;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_brand.is_new
*
* @mbg.generated
*/
private Boolean isNew;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_brand.new_pic_url
*
* @mbg.generated
*/
private String newPicUrl;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_brand.new_sort_order
*
* @mbg.generated
*/
private Byte newSortOrder;
/**
*
* This field was generated by MyBatis Generator.
......@@ -218,50 +146,26 @@ public class LitemallBrand {
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.list_pic_url
* This method returns the value of the database column litemall_brand.desc
*
* @return the value of litemall_brand.list_pic_url
* @return the value of litemall_brand.desc
*
* @mbg.generated
*/
public String getListPicUrl() {
return listPicUrl;
public String getDesc() {
return desc;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_brand.list_pic_url
* This method sets the value of the database column litemall_brand.desc
*
* @param listPicUrl the value for litemall_brand.list_pic_url
* @param desc the value for litemall_brand.desc
*
* @mbg.generated
*/
public void setListPicUrl(String listPicUrl) {
this.listPicUrl = listPicUrl;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.simple_desc
*
* @return the value of litemall_brand.simple_desc
*
* @mbg.generated
*/
public String getSimpleDesc() {
return simpleDesc;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_brand.simple_desc
*
* @param simpleDesc the value for litemall_brand.simple_desc
*
* @mbg.generated
*/
public void setSimpleDesc(String simpleDesc) {
this.simpleDesc = simpleDesc;
public void setDesc(String desc) {
this.desc = desc;
}
/**
......@@ -312,30 +216,6 @@ public class LitemallBrand {
this.sortOrder = sortOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.is_show
*
* @return the value of litemall_brand.is_show
*
* @mbg.generated
*/
public Boolean getIsShow() {
return isShow;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_brand.is_show
*
* @param isShow the value for litemall_brand.is_show
*
* @mbg.generated
*/
public void setIsShow(Boolean isShow) {
this.isShow = isShow;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.floor_price
......@@ -360,102 +240,6 @@ public class LitemallBrand {
this.floorPrice = floorPrice;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.app_list_pic_url
*
* @return the value of litemall_brand.app_list_pic_url
*
* @mbg.generated
*/
public String getAppListPicUrl() {
return appListPicUrl;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_brand.app_list_pic_url
*
* @param appListPicUrl the value for litemall_brand.app_list_pic_url
*
* @mbg.generated
*/
public void setAppListPicUrl(String appListPicUrl) {
this.appListPicUrl = appListPicUrl;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.is_new
*
* @return the value of litemall_brand.is_new
*
* @mbg.generated
*/
public Boolean getIsNew() {
return isNew;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_brand.is_new
*
* @param isNew the value for litemall_brand.is_new
*
* @mbg.generated
*/
public void setIsNew(Boolean isNew) {
this.isNew = isNew;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.new_pic_url
*
* @return the value of litemall_brand.new_pic_url
*
* @mbg.generated
*/
public String getNewPicUrl() {
return newPicUrl;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_brand.new_pic_url
*
* @param newPicUrl the value for litemall_brand.new_pic_url
*
* @mbg.generated
*/
public void setNewPicUrl(String newPicUrl) {
this.newPicUrl = newPicUrl;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.new_sort_order
*
* @return the value of litemall_brand.new_sort_order
*
* @mbg.generated
*/
public Byte getNewSortOrder() {
return newSortOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_brand.new_sort_order
*
* @param newSortOrder the value for litemall_brand.new_sort_order
*
* @mbg.generated
*/
public void setNewSortOrder(Byte newSortOrder) {
this.newSortOrder = newSortOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_brand.add_time
......@@ -518,16 +302,10 @@ public class LitemallBrand {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", listPicUrl=").append(listPicUrl);
sb.append(", simpleDesc=").append(simpleDesc);
sb.append(", desc=").append(desc);
sb.append(", picUrl=").append(picUrl);
sb.append(", sortOrder=").append(sortOrder);
sb.append(", isShow=").append(isShow);
sb.append(", floorPrice=").append(floorPrice);
sb.append(", appListPicUrl=").append(appListPicUrl);
sb.append(", isNew=").append(isNew);
sb.append(", newPicUrl=").append(newPicUrl);
sb.append(", newSortOrder=").append(newSortOrder);
sb.append(", addTime=").append(addTime);
sb.append(", deleted=").append(deleted);
sb.append("]");
......@@ -554,16 +332,10 @@ public class LitemallBrand {
LitemallBrand other = (LitemallBrand) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getListPicUrl() == null ? other.getListPicUrl() == null : this.getListPicUrl().equals(other.getListPicUrl()))
&& (this.getSimpleDesc() == null ? other.getSimpleDesc() == null : this.getSimpleDesc().equals(other.getSimpleDesc()))
&& (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
&& (this.getPicUrl() == null ? other.getPicUrl() == null : this.getPicUrl().equals(other.getPicUrl()))
&& (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder()))
&& (this.getIsShow() == null ? other.getIsShow() == null : this.getIsShow().equals(other.getIsShow()))
&& (this.getFloorPrice() == null ? other.getFloorPrice() == null : this.getFloorPrice().equals(other.getFloorPrice()))
&& (this.getAppListPicUrl() == null ? other.getAppListPicUrl() == null : this.getAppListPicUrl().equals(other.getAppListPicUrl()))
&& (this.getIsNew() == null ? other.getIsNew() == null : this.getIsNew().equals(other.getIsNew()))
&& (this.getNewPicUrl() == null ? other.getNewPicUrl() == null : this.getNewPicUrl().equals(other.getNewPicUrl()))
&& (this.getNewSortOrder() == null ? other.getNewSortOrder() == null : this.getNewSortOrder().equals(other.getNewSortOrder()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
......@@ -580,16 +352,10 @@ public class LitemallBrand {
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getListPicUrl() == null) ? 0 : getListPicUrl().hashCode());
result = prime * result + ((getSimpleDesc() == null) ? 0 : getSimpleDesc().hashCode());
result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
result = prime * result + ((getPicUrl() == null) ? 0 : getPicUrl().hashCode());
result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
result = prime * result + ((getIsShow() == null) ? 0 : getIsShow().hashCode());
result = prime * result + ((getFloorPrice() == null) ? 0 : getFloorPrice().hashCode());
result = prime * result + ((getAppListPicUrl() == null) ? 0 : getAppListPicUrl().hashCode());
result = prime * result + ((getIsNew() == null) ? 0 : getIsNew().hashCode());
result = prime * result + ((getNewPicUrl() == null) ? 0 : getNewPicUrl().hashCode());
result = prime * result + ((getNewSortOrder() == null) ? 0 : getNewSortOrder().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
return result;
......@@ -616,16 +382,10 @@ public class LitemallBrand {
public enum Column {
id("id", "id", "INTEGER"),
name("name", "name", "VARCHAR"),
listPicUrl("list_pic_url", "listPicUrl", "VARCHAR"),
simpleDesc("simple_desc", "simpleDesc", "VARCHAR"),
desc("desc", "desc", "VARCHAR"),
picUrl("pic_url", "picUrl", "VARCHAR"),
sortOrder("sort_order", "sortOrder", "TINYINT"),
isShow("is_show", "isShow", "BIT"),
floorPrice("floor_price", "floorPrice", "DECIMAL"),
appListPicUrl("app_list_pic_url", "appListPicUrl", "VARCHAR"),
isNew("is_new", "isNew", "BIT"),
newPicUrl("new_pic_url", "newPicUrl", "VARCHAR"),
newSortOrder("new_sort_order", "newSortOrder", "TINYINT"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT");
......@@ -734,5 +494,20 @@ public class LitemallBrand {
public String asc() {
return this.column + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_brand
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
}
}
\ No newline at end of file
......@@ -357,143 +357,73 @@ public class LitemallBrandExample {
return (Criteria) this;
}
public Criteria andListPicUrlIsNull() {
addCriterion("list_pic_url is null");
public Criteria andDescIsNull() {
addCriterion("`desc` is null");
return (Criteria) this;
}
public Criteria andListPicUrlIsNotNull() {
addCriterion("list_pic_url is not null");
public Criteria andDescIsNotNull() {
addCriterion("`desc` is not null");
return (Criteria) this;
}
public Criteria andListPicUrlEqualTo(String value) {
addCriterion("list_pic_url =", value, "listPicUrl");
public Criteria andDescEqualTo(String value) {
addCriterion("`desc` =", value, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlNotEqualTo(String value) {
addCriterion("list_pic_url <>", value, "listPicUrl");
public Criteria andDescNotEqualTo(String value) {
addCriterion("`desc` <>", value, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlGreaterThan(String value) {
addCriterion("list_pic_url >", value, "listPicUrl");
public Criteria andDescGreaterThan(String value) {
addCriterion("`desc` >", value, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlGreaterThanOrEqualTo(String value) {
addCriterion("list_pic_url >=", value, "listPicUrl");
public Criteria andDescGreaterThanOrEqualTo(String value) {
addCriterion("`desc` >=", value, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlLessThan(String value) {
addCriterion("list_pic_url <", value, "listPicUrl");
public Criteria andDescLessThan(String value) {
addCriterion("`desc` <", value, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlLessThanOrEqualTo(String value) {
addCriterion("list_pic_url <=", value, "listPicUrl");
public Criteria andDescLessThanOrEqualTo(String value) {
addCriterion("`desc` <=", value, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlLike(String value) {
addCriterion("list_pic_url like", value, "listPicUrl");
public Criteria andDescLike(String value) {
addCriterion("`desc` like", value, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlNotLike(String value) {
addCriterion("list_pic_url not like", value, "listPicUrl");
public Criteria andDescNotLike(String value) {
addCriterion("`desc` not like", value, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlIn(List<String> values) {
addCriterion("list_pic_url in", values, "listPicUrl");
public Criteria andDescIn(List<String> values) {
addCriterion("`desc` in", values, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlNotIn(List<String> values) {
addCriterion("list_pic_url not in", values, "listPicUrl");
public Criteria andDescNotIn(List<String> values) {
addCriterion("`desc` not in", values, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlBetween(String value1, String value2) {
addCriterion("list_pic_url between", value1, value2, "listPicUrl");
public Criteria andDescBetween(String value1, String value2) {
addCriterion("`desc` between", value1, value2, "desc");
return (Criteria) this;
}
public Criteria andListPicUrlNotBetween(String value1, String value2) {
addCriterion("list_pic_url not between", value1, value2, "listPicUrl");
return (Criteria) this;
}
public Criteria andSimpleDescIsNull() {
addCriterion("simple_desc is null");
return (Criteria) this;
}
public Criteria andSimpleDescIsNotNull() {
addCriterion("simple_desc is not null");
return (Criteria) this;
}
public Criteria andSimpleDescEqualTo(String value) {
addCriterion("simple_desc =", value, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescNotEqualTo(String value) {
addCriterion("simple_desc <>", value, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescGreaterThan(String value) {
addCriterion("simple_desc >", value, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescGreaterThanOrEqualTo(String value) {
addCriterion("simple_desc >=", value, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescLessThan(String value) {
addCriterion("simple_desc <", value, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescLessThanOrEqualTo(String value) {
addCriterion("simple_desc <=", value, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescLike(String value) {
addCriterion("simple_desc like", value, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescNotLike(String value) {
addCriterion("simple_desc not like", value, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescIn(List<String> values) {
addCriterion("simple_desc in", values, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescNotIn(List<String> values) {
addCriterion("simple_desc not in", values, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescBetween(String value1, String value2) {
addCriterion("simple_desc between", value1, value2, "simpleDesc");
return (Criteria) this;
}
public Criteria andSimpleDescNotBetween(String value1, String value2) {
addCriterion("simple_desc not between", value1, value2, "simpleDesc");
public Criteria andDescNotBetween(String value1, String value2) {
addCriterion("`desc` not between", value1, value2, "desc");
return (Criteria) this;
}
......@@ -627,66 +557,6 @@ public class LitemallBrandExample {
return (Criteria) this;
}
public Criteria andIsShowIsNull() {
addCriterion("is_show is null");
return (Criteria) this;
}
public Criteria andIsShowIsNotNull() {
addCriterion("is_show is not null");
return (Criteria) this;
}
public Criteria andIsShowEqualTo(Boolean value) {
addCriterion("is_show =", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotEqualTo(Boolean value) {
addCriterion("is_show <>", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowGreaterThan(Boolean value) {
addCriterion("is_show >", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowGreaterThanOrEqualTo(Boolean value) {
addCriterion("is_show >=", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowLessThan(Boolean value) {
addCriterion("is_show <", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowLessThanOrEqualTo(Boolean value) {
addCriterion("is_show <=", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowIn(List<Boolean> values) {
addCriterion("is_show in", values, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotIn(List<Boolean> values) {
addCriterion("is_show not in", values, "isShow");
return (Criteria) this;
}
public Criteria andIsShowBetween(Boolean value1, Boolean value2) {
addCriterion("is_show between", value1, value2, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotBetween(Boolean value1, Boolean value2) {
addCriterion("is_show not between", value1, value2, "isShow");
return (Criteria) this;
}
public Criteria andFloorPriceIsNull() {
addCriterion("floor_price is null");
return (Criteria) this;
......@@ -747,266 +617,6 @@ public class LitemallBrandExample {
return (Criteria) this;
}
public Criteria andAppListPicUrlIsNull() {
addCriterion("app_list_pic_url is null");
return (Criteria) this;
}
public Criteria andAppListPicUrlIsNotNull() {
addCriterion("app_list_pic_url is not null");
return (Criteria) this;
}
public Criteria andAppListPicUrlEqualTo(String value) {
addCriterion("app_list_pic_url =", value, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlNotEqualTo(String value) {
addCriterion("app_list_pic_url <>", value, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlGreaterThan(String value) {
addCriterion("app_list_pic_url >", value, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlGreaterThanOrEqualTo(String value) {
addCriterion("app_list_pic_url >=", value, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlLessThan(String value) {
addCriterion("app_list_pic_url <", value, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlLessThanOrEqualTo(String value) {
addCriterion("app_list_pic_url <=", value, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlLike(String value) {
addCriterion("app_list_pic_url like", value, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlNotLike(String value) {
addCriterion("app_list_pic_url not like", value, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlIn(List<String> values) {
addCriterion("app_list_pic_url in", values, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlNotIn(List<String> values) {
addCriterion("app_list_pic_url not in", values, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlBetween(String value1, String value2) {
addCriterion("app_list_pic_url between", value1, value2, "appListPicUrl");
return (Criteria) this;
}
public Criteria andAppListPicUrlNotBetween(String value1, String value2) {
addCriterion("app_list_pic_url not between", value1, value2, "appListPicUrl");
return (Criteria) this;
}
public Criteria andIsNewIsNull() {
addCriterion("is_new is null");
return (Criteria) this;
}
public Criteria andIsNewIsNotNull() {
addCriterion("is_new is not null");
return (Criteria) this;
}
public Criteria andIsNewEqualTo(Boolean value) {
addCriterion("is_new =", value, "isNew");
return (Criteria) this;
}
public Criteria andIsNewNotEqualTo(Boolean value) {
addCriterion("is_new <>", value, "isNew");
return (Criteria) this;
}
public Criteria andIsNewGreaterThan(Boolean value) {
addCriterion("is_new >", value, "isNew");
return (Criteria) this;
}
public Criteria andIsNewGreaterThanOrEqualTo(Boolean value) {
addCriterion("is_new >=", value, "isNew");
return (Criteria) this;
}
public Criteria andIsNewLessThan(Boolean value) {
addCriterion("is_new <", value, "isNew");
return (Criteria) this;
}
public Criteria andIsNewLessThanOrEqualTo(Boolean value) {
addCriterion("is_new <=", value, "isNew");
return (Criteria) this;
}
public Criteria andIsNewIn(List<Boolean> values) {
addCriterion("is_new in", values, "isNew");
return (Criteria) this;
}
public Criteria andIsNewNotIn(List<Boolean> values) {
addCriterion("is_new not in", values, "isNew");
return (Criteria) this;
}
public Criteria andIsNewBetween(Boolean value1, Boolean value2) {
addCriterion("is_new between", value1, value2, "isNew");
return (Criteria) this;
}
public Criteria andIsNewNotBetween(Boolean value1, Boolean value2) {
addCriterion("is_new not between", value1, value2, "isNew");
return (Criteria) this;
}
public Criteria andNewPicUrlIsNull() {
addCriterion("new_pic_url is null");
return (Criteria) this;
}
public Criteria andNewPicUrlIsNotNull() {
addCriterion("new_pic_url is not null");
return (Criteria) this;
}
public Criteria andNewPicUrlEqualTo(String value) {
addCriterion("new_pic_url =", value, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlNotEqualTo(String value) {
addCriterion("new_pic_url <>", value, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlGreaterThan(String value) {
addCriterion("new_pic_url >", value, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlGreaterThanOrEqualTo(String value) {
addCriterion("new_pic_url >=", value, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlLessThan(String value) {
addCriterion("new_pic_url <", value, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlLessThanOrEqualTo(String value) {
addCriterion("new_pic_url <=", value, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlLike(String value) {
addCriterion("new_pic_url like", value, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlNotLike(String value) {
addCriterion("new_pic_url not like", value, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlIn(List<String> values) {
addCriterion("new_pic_url in", values, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlNotIn(List<String> values) {
addCriterion("new_pic_url not in", values, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlBetween(String value1, String value2) {
addCriterion("new_pic_url between", value1, value2, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewPicUrlNotBetween(String value1, String value2) {
addCriterion("new_pic_url not between", value1, value2, "newPicUrl");
return (Criteria) this;
}
public Criteria andNewSortOrderIsNull() {
addCriterion("new_sort_order is null");
return (Criteria) this;
}
public Criteria andNewSortOrderIsNotNull() {
addCriterion("new_sort_order is not null");
return (Criteria) this;
}
public Criteria andNewSortOrderEqualTo(Byte value) {
addCriterion("new_sort_order =", value, "newSortOrder");
return (Criteria) this;
}
public Criteria andNewSortOrderNotEqualTo(Byte value) {
addCriterion("new_sort_order <>", value, "newSortOrder");
return (Criteria) this;
}
public Criteria andNewSortOrderGreaterThan(Byte value) {
addCriterion("new_sort_order >", value, "newSortOrder");
return (Criteria) this;
}
public Criteria andNewSortOrderGreaterThanOrEqualTo(Byte value) {
addCriterion("new_sort_order >=", value, "newSortOrder");
return (Criteria) this;
}
public Criteria andNewSortOrderLessThan(Byte value) {
addCriterion("new_sort_order <", value, "newSortOrder");
return (Criteria) this;
}
public Criteria andNewSortOrderLessThanOrEqualTo(Byte value) {
addCriterion("new_sort_order <=", value, "newSortOrder");
return (Criteria) this;
}
public Criteria andNewSortOrderIn(List<Byte> values) {
addCriterion("new_sort_order in", values, "newSortOrder");
return (Criteria) this;
}
public Criteria andNewSortOrderNotIn(List<Byte> values) {
addCriterion("new_sort_order not in", values, "newSortOrder");
return (Criteria) this;
}
public Criteria andNewSortOrderBetween(Byte value1, Byte value2) {
addCriterion("new_sort_order between", value1, value2, "newSortOrder");
return (Criteria) this;
}
public Criteria andNewSortOrderNotBetween(Byte value1, Byte value2) {
addCriterion("new_sort_order not between", value1, value2, "newSortOrder");
return (Criteria) this;
}
public Criteria andAddTimeIsNull() {
addCriterion("add_time is null");
return (Criteria) this;
......@@ -1192,18 +802,6 @@ public class LitemallBrandExample {
return deleted ? andDeletedEqualTo(LitemallBrand.IS_DELETED) : andDeletedNotEqualTo(LitemallBrand.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_brand
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallBrand.IS_DELETED) : andDeletedNotEqualTo(LitemallBrand.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_brand
......
......@@ -2,6 +2,7 @@ package org.linlinjava.litemall.db.domain;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class LitemallCart {
......@@ -14,16 +15,6 @@ public class LitemallCart {
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_cart
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_cart
......@@ -33,16 +24,6 @@ public class LitemallCart {
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_cart
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -79,15 +60,6 @@ public class LitemallCart {
*/
private String goodsSn;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_cart.product_id
*
* @mbg.generated
*/
private Integer productId;
/**
*
* This field was generated by MyBatis Generator.
......@@ -100,38 +72,38 @@ public class LitemallCart {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_cart.retail_price
* This field corresponds to the database column litemall_cart.product_id
*
* @mbg.generated
*/
private BigDecimal retailPrice;
private Integer productId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_cart.number
* This field corresponds to the database column litemall_cart.price
*
* @mbg.generated
*/
private Short number;
private BigDecimal price;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_cart.goods_specification_values
* This field corresponds to the database column litemall_cart.number
*
* @mbg.generated
*/
private String goodsSpecificationValues;
private Short number;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_cart.goods_specification_ids
* This field corresponds to the database column litemall_cart.specifications
*
* @mbg.generated
*/
private Integer[] goodsSpecificationIds;
private String[] specifications;
/**
*
......@@ -265,30 +237,6 @@ public class LitemallCart {
this.goodsSn = goodsSn;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_cart.product_id
*
* @return the value of litemall_cart.product_id
*
* @mbg.generated
*/
public Integer getProductId() {
return productId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_cart.product_id
*
* @param productId the value for litemall_cart.product_id
*
* @mbg.generated
*/
public void setProductId(Integer productId) {
this.productId = productId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_cart.goods_name
......@@ -315,98 +263,98 @@ public class LitemallCart {
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_cart.retail_price
* This method returns the value of the database column litemall_cart.product_id
*
* @return the value of litemall_cart.retail_price
* @return the value of litemall_cart.product_id
*
* @mbg.generated
*/
public BigDecimal getRetailPrice() {
return retailPrice;
public Integer getProductId() {
return productId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_cart.retail_price
* This method sets the value of the database column litemall_cart.product_id
*
* @param retailPrice the value for litemall_cart.retail_price
* @param productId the value for litemall_cart.product_id
*
* @mbg.generated
*/
public void setRetailPrice(BigDecimal retailPrice) {
this.retailPrice = retailPrice;
public void setProductId(Integer productId) {
this.productId = productId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_cart.number
* This method returns the value of the database column litemall_cart.price
*
* @return the value of litemall_cart.number
* @return the value of litemall_cart.price
*
* @mbg.generated
*/
public Short getNumber() {
return number;
public BigDecimal getPrice() {
return price;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_cart.number
* This method sets the value of the database column litemall_cart.price
*
* @param number the value for litemall_cart.number
* @param price the value for litemall_cart.price
*
* @mbg.generated
*/
public void setNumber(Short number) {
this.number = number;
public void setPrice(BigDecimal price) {
this.price = price;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_cart.goods_specification_values
* This method returns the value of the database column litemall_cart.number
*
* @return the value of litemall_cart.goods_specification_values
* @return the value of litemall_cart.number
*
* @mbg.generated
*/
public String getGoodsSpecificationValues() {
return goodsSpecificationValues;
public Short getNumber() {
return number;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_cart.goods_specification_values
* This method sets the value of the database column litemall_cart.number
*
* @param goodsSpecificationValues the value for litemall_cart.goods_specification_values
* @param number the value for litemall_cart.number
*
* @mbg.generated
*/
public void setGoodsSpecificationValues(String goodsSpecificationValues) {
this.goodsSpecificationValues = goodsSpecificationValues;
public void setNumber(Short number) {
this.number = number;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_cart.goods_specification_ids
* This method returns the value of the database column litemall_cart.specifications
*
* @return the value of litemall_cart.goods_specification_ids
* @return the value of litemall_cart.specifications
*
* @mbg.generated
*/
public Integer[] getGoodsSpecificationIds() {
return goodsSpecificationIds;
public String[] getSpecifications() {
return specifications;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_cart.goods_specification_ids
* This method sets the value of the database column litemall_cart.specifications
*
* @param goodsSpecificationIds the value for litemall_cart.goods_specification_ids
* @param specifications the value for litemall_cart.specifications
*
* @mbg.generated
*/
public void setGoodsSpecificationIds(Integer[] goodsSpecificationIds) {
this.goodsSpecificationIds = goodsSpecificationIds;
public void setSpecifications(String[] specifications) {
this.specifications = specifications;
}
/**
......@@ -521,12 +469,11 @@ public class LitemallCart {
sb.append(", userId=").append(userId);
sb.append(", goodsId=").append(goodsId);
sb.append(", goodsSn=").append(goodsSn);
sb.append(", productId=").append(productId);
sb.append(", goodsName=").append(goodsName);
sb.append(", retailPrice=").append(retailPrice);
sb.append(", productId=").append(productId);
sb.append(", price=").append(price);
sb.append(", number=").append(number);
sb.append(", goodsSpecificationValues=").append(goodsSpecificationValues);
sb.append(", goodsSpecificationIds=").append(goodsSpecificationIds);
sb.append(", specifications=").append(specifications);
sb.append(", checked=").append(checked);
sb.append(", picUrl=").append(picUrl);
sb.append(", addTime=").append(addTime);
......@@ -557,12 +504,11 @@ public class LitemallCart {
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))
&& (this.getGoodsSn() == null ? other.getGoodsSn() == null : this.getGoodsSn().equals(other.getGoodsSn()))
&& (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
&& (this.getGoodsName() == null ? other.getGoodsName() == null : this.getGoodsName().equals(other.getGoodsName()))
&& (this.getRetailPrice() == null ? other.getRetailPrice() == null : this.getRetailPrice().equals(other.getRetailPrice()))
&& (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
&& (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
&& (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
&& (this.getGoodsSpecificationValues() == null ? other.getGoodsSpecificationValues() == null : this.getGoodsSpecificationValues().equals(other.getGoodsSpecificationValues()))
&& (Arrays.equals(this.getGoodsSpecificationIds(), other.getGoodsSpecificationIds()))
&& (Arrays.equals(this.getSpecifications(), other.getSpecifications()))
&& (this.getChecked() == null ? other.getChecked() == null : this.getChecked().equals(other.getChecked()))
&& (this.getPicUrl() == null ? other.getPicUrl() == null : this.getPicUrl().equals(other.getPicUrl()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
......@@ -583,12 +529,11 @@ public class LitemallCart {
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getGoodsId() == null) ? 0 : getGoodsId().hashCode());
result = prime * result + ((getGoodsSn() == null) ? 0 : getGoodsSn().hashCode());
result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
result = prime * result + ((getGoodsName() == null) ? 0 : getGoodsName().hashCode());
result = prime * result + ((getRetailPrice() == null) ? 0 : getRetailPrice().hashCode());
result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
result = prime * result + ((getGoodsSpecificationValues() == null) ? 0 : getGoodsSpecificationValues().hashCode());
result = prime * result + (Arrays.hashCode(getGoodsSpecificationIds()));
result = prime * result + (Arrays.hashCode(getSpecifications()));
result = prime * result + ((getChecked() == null) ? 0 : getChecked().hashCode());
result = prime * result + ((getPicUrl() == null) ? 0 : getPicUrl().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
......@@ -619,12 +564,11 @@ public class LitemallCart {
userId("user_id", "userId", "INTEGER"),
goodsId("goods_id", "goodsId", "INTEGER"),
goodsSn("goods_sn", "goodsSn", "VARCHAR"),
productId("product_id", "productId", "INTEGER"),
goodsName("goods_name", "goodsName", "VARCHAR"),
retailPrice("retail_price", "retailPrice", "DECIMAL"),
productId("product_id", "productId", "INTEGER"),
price("price", "price", "DECIMAL"),
number("number", "number", "SMALLINT"),
goodsSpecificationValues("goods_specification_values", "goodsSpecificationValues", "VARCHAR"),
goodsSpecificationIds("goods_specification_ids", "goodsSpecificationIds", "CHAR"),
specifications("specifications", "specifications", "VARCHAR"),
checked("checked", "checked", "BIT"),
picUrl("pic_url", "picUrl", "VARCHAR"),
addTime("add_time", "addTime", "TIMESTAMP"),
......@@ -735,5 +679,20 @@ public class LitemallCart {
public String asc() {
return this.column + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_cart
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
}
}
\ No newline at end of file
......@@ -187,7 +187,7 @@ public class LitemallCartExample {
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> goodsSpecificationIdsCriteria;
protected List<Criterion> specificationsCriteria;
protected List<Criterion> allCriteria;
......@@ -196,39 +196,39 @@ public class LitemallCartExample {
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
goodsSpecificationIdsCriteria = new ArrayList<Criterion>();
specificationsCriteria = new ArrayList<Criterion>();
}
public List<Criterion> getGoodsSpecificationIdsCriteria() {
return goodsSpecificationIdsCriteria;
public List<Criterion> getSpecificationsCriteria() {
return specificationsCriteria;
}
protected void addGoodsSpecificationIdsCriterion(String condition, Object value, String property) {
protected void addSpecificationsCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
goodsSpecificationIdsCriteria.add(new Criterion(condition, value, "org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler"));
specificationsCriteria.add(new Criterion(condition, value, "org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler"));
allCriteria = null;
}
protected void addGoodsSpecificationIdsCriterion(String condition, Integer[] value1, Integer[] value2, String property) {
protected void addSpecificationsCriterion(String condition, String[] value1, String[] value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
goodsSpecificationIdsCriteria.add(new Criterion(condition, value1, value2, "org.linlinjava.litemall.db.mybatis.JsonIntegerArrayTypeHandler"));
specificationsCriteria.add(new Criterion(condition, value1, value2, "org.linlinjava.litemall.db.mybatis.JsonStringArrayTypeHandler"));
allCriteria = null;
}
public boolean isValid() {
return criteria.size() > 0
|| goodsSpecificationIdsCriteria.size() > 0;
|| specificationsCriteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
if (allCriteria == null) {
allCriteria = new ArrayList<Criterion>();
allCriteria.addAll(criteria);
allCriteria.addAll(goodsSpecificationIdsCriteria);
allCriteria.addAll(specificationsCriteria);
}
return allCriteria;
}
......@@ -511,66 +511,6 @@ public class LitemallCartExample {
return (Criteria) this;
}
public Criteria andProductIdIsNull() {
addCriterion("product_id is null");
return (Criteria) this;
}
public Criteria andProductIdIsNotNull() {
addCriterion("product_id is not null");
return (Criteria) this;
}
public Criteria andProductIdEqualTo(Integer value) {
addCriterion("product_id =", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotEqualTo(Integer value) {
addCriterion("product_id <>", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThan(Integer value) {
addCriterion("product_id >", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
addCriterion("product_id >=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThan(Integer value) {
addCriterion("product_id <", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdLessThanOrEqualTo(Integer value) {
addCriterion("product_id <=", value, "productId");
return (Criteria) this;
}
public Criteria andProductIdIn(List<Integer> values) {
addCriterion("product_id in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotIn(List<Integer> values) {
addCriterion("product_id not in", values, "productId");
return (Criteria) this;
}
public Criteria andProductIdBetween(Integer value1, Integer value2) {
addCriterion("product_id between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
addCriterion("product_id not between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andGoodsNameIsNull() {
addCriterion("goods_name is null");
return (Criteria) this;
......@@ -641,263 +581,253 @@ public class LitemallCartExample {
return (Criteria) this;
}
public Criteria andRetailPriceIsNull() {
addCriterion("retail_price is null");
return (Criteria) this;
}
public Criteria andRetailPriceIsNotNull() {
addCriterion("retail_price is not null");
return (Criteria) this;
}
public Criteria andRetailPriceEqualTo(BigDecimal value) {
addCriterion("retail_price =", value, "retailPrice");
public Criteria andProductIdIsNull() {
addCriterion("product_id is null");
return (Criteria) this;
}
public Criteria andRetailPriceNotEqualTo(BigDecimal value) {
addCriterion("retail_price <>", value, "retailPrice");
public Criteria andProductIdIsNotNull() {
addCriterion("product_id is not null");
return (Criteria) this;
}
public Criteria andRetailPriceGreaterThan(BigDecimal value) {
addCriterion("retail_price >", value, "retailPrice");
public Criteria andProductIdEqualTo(Integer value) {
addCriterion("product_id =", value, "productId");
return (Criteria) this;
}
public Criteria andRetailPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("retail_price >=", value, "retailPrice");
public Criteria andProductIdNotEqualTo(Integer value) {
addCriterion("product_id <>", value, "productId");
return (Criteria) this;
}
public Criteria andRetailPriceLessThan(BigDecimal value) {
addCriterion("retail_price <", value, "retailPrice");
public Criteria andProductIdGreaterThan(Integer value) {
addCriterion("product_id >", value, "productId");
return (Criteria) this;
}
public Criteria andRetailPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("retail_price <=", value, "retailPrice");
public Criteria andProductIdGreaterThanOrEqualTo(Integer value) {
addCriterion("product_id >=", value, "productId");
return (Criteria) this;
}
public Criteria andRetailPriceIn(List<BigDecimal> values) {
addCriterion("retail_price in", values, "retailPrice");
public Criteria andProductIdLessThan(Integer value) {
addCriterion("product_id <", value, "productId");
return (Criteria) this;
}
public Criteria andRetailPriceNotIn(List<BigDecimal> values) {
addCriterion("retail_price not in", values, "retailPrice");
public Criteria andProductIdLessThanOrEqualTo(Integer value) {
addCriterion("product_id <=", value, "productId");
return (Criteria) this;
}
public Criteria andRetailPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("retail_price between", value1, value2, "retailPrice");
public Criteria andProductIdIn(List<Integer> values) {
addCriterion("product_id in", values, "productId");
return (Criteria) this;
}
public Criteria andRetailPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("retail_price not between", value1, value2, "retailPrice");
public Criteria andProductIdNotIn(List<Integer> values) {
addCriterion("product_id not in", values, "productId");
return (Criteria) this;
}
public Criteria andNumberIsNull() {
addCriterion("`number` is null");
public Criteria andProductIdBetween(Integer value1, Integer value2) {
addCriterion("product_id between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andNumberIsNotNull() {
addCriterion("`number` is not null");
public Criteria andProductIdNotBetween(Integer value1, Integer value2) {
addCriterion("product_id not between", value1, value2, "productId");
return (Criteria) this;
}
public Criteria andNumberEqualTo(Short value) {
addCriterion("`number` =", value, "number");
public Criteria andPriceIsNull() {
addCriterion("price is null");
return (Criteria) this;
}
public Criteria andNumberNotEqualTo(Short value) {
addCriterion("`number` <>", value, "number");
public Criteria andPriceIsNotNull() {
addCriterion("price is not null");
return (Criteria) this;
}
public Criteria andNumberGreaterThan(Short value) {
addCriterion("`number` >", value, "number");
public Criteria andPriceEqualTo(BigDecimal value) {
addCriterion("price =", value, "price");
return (Criteria) this;
}
public Criteria andNumberGreaterThanOrEqualTo(Short value) {
addCriterion("`number` >=", value, "number");
public Criteria andPriceNotEqualTo(BigDecimal value) {
addCriterion("price <>", value, "price");
return (Criteria) this;
}
public Criteria andNumberLessThan(Short value) {
addCriterion("`number` <", value, "number");
public Criteria andPriceGreaterThan(BigDecimal value) {
addCriterion("price >", value, "price");
return (Criteria) this;
}
public Criteria andNumberLessThanOrEqualTo(Short value) {
addCriterion("`number` <=", value, "number");
public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("price >=", value, "price");
return (Criteria) this;
}
public Criteria andNumberIn(List<Short> values) {
addCriterion("`number` in", values, "number");
public Criteria andPriceLessThan(BigDecimal value) {
addCriterion("price <", value, "price");
return (Criteria) this;
}
public Criteria andNumberNotIn(List<Short> values) {
addCriterion("`number` not in", values, "number");
public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("price <=", value, "price");
return (Criteria) this;
}
public Criteria andNumberBetween(Short value1, Short value2) {
addCriterion("`number` between", value1, value2, "number");
public Criteria andPriceIn(List<BigDecimal> values) {
addCriterion("price in", values, "price");
return (Criteria) this;
}
public Criteria andNumberNotBetween(Short value1, Short value2) {
addCriterion("`number` not between", value1, value2, "number");
public Criteria andPriceNotIn(List<BigDecimal> values) {
addCriterion("price not in", values, "price");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesIsNull() {
addCriterion("goods_specification_values is null");
public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("price between", value1, value2, "price");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesIsNotNull() {
addCriterion("goods_specification_values is not null");
public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("price not between", value1, value2, "price");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesEqualTo(String value) {
addCriterion("goods_specification_values =", value, "goodsSpecificationValues");
public Criteria andNumberIsNull() {
addCriterion("`number` is null");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesNotEqualTo(String value) {
addCriterion("goods_specification_values <>", value, "goodsSpecificationValues");
public Criteria andNumberIsNotNull() {
addCriterion("`number` is not null");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesGreaterThan(String value) {
addCriterion("goods_specification_values >", value, "goodsSpecificationValues");
public Criteria andNumberEqualTo(Short value) {
addCriterion("`number` =", value, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesGreaterThanOrEqualTo(String value) {
addCriterion("goods_specification_values >=", value, "goodsSpecificationValues");
public Criteria andNumberNotEqualTo(Short value) {
addCriterion("`number` <>", value, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesLessThan(String value) {
addCriterion("goods_specification_values <", value, "goodsSpecificationValues");
public Criteria andNumberGreaterThan(Short value) {
addCriterion("`number` >", value, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesLessThanOrEqualTo(String value) {
addCriterion("goods_specification_values <=", value, "goodsSpecificationValues");
public Criteria andNumberGreaterThanOrEqualTo(Short value) {
addCriterion("`number` >=", value, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesLike(String value) {
addCriterion("goods_specification_values like", value, "goodsSpecificationValues");
public Criteria andNumberLessThan(Short value) {
addCriterion("`number` <", value, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesNotLike(String value) {
addCriterion("goods_specification_values not like", value, "goodsSpecificationValues");
public Criteria andNumberLessThanOrEqualTo(Short value) {
addCriterion("`number` <=", value, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesIn(List<String> values) {
addCriterion("goods_specification_values in", values, "goodsSpecificationValues");
public Criteria andNumberIn(List<Short> values) {
addCriterion("`number` in", values, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesNotIn(List<String> values) {
addCriterion("goods_specification_values not in", values, "goodsSpecificationValues");
public Criteria andNumberNotIn(List<Short> values) {
addCriterion("`number` not in", values, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesBetween(String value1, String value2) {
addCriterion("goods_specification_values between", value1, value2, "goodsSpecificationValues");
public Criteria andNumberBetween(Short value1, Short value2) {
addCriterion("`number` between", value1, value2, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationValuesNotBetween(String value1, String value2) {
addCriterion("goods_specification_values not between", value1, value2, "goodsSpecificationValues");
public Criteria andNumberNotBetween(Short value1, Short value2) {
addCriterion("`number` not between", value1, value2, "number");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsIsNull() {
addCriterion("goods_specification_ids is null");
public Criteria andSpecificationsIsNull() {
addCriterion("specifications is null");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsIsNotNull() {
addCriterion("goods_specification_ids is not null");
public Criteria andSpecificationsIsNotNull() {
addCriterion("specifications is not null");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsEqualTo(Integer[] value) {
addGoodsSpecificationIdsCriterion("goods_specification_ids =", value, "goodsSpecificationIds");
public Criteria andSpecificationsEqualTo(String[] value) {
addSpecificationsCriterion("specifications =", value, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsNotEqualTo(Integer[] value) {
addGoodsSpecificationIdsCriterion("goods_specification_ids <>", value, "goodsSpecificationIds");
public Criteria andSpecificationsNotEqualTo(String[] value) {
addSpecificationsCriterion("specifications <>", value, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsGreaterThan(Integer[] value) {
addGoodsSpecificationIdsCriterion("goods_specification_ids >", value, "goodsSpecificationIds");
public Criteria andSpecificationsGreaterThan(String[] value) {
addSpecificationsCriterion("specifications >", value, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsGreaterThanOrEqualTo(Integer[] value) {
addGoodsSpecificationIdsCriterion("goods_specification_ids >=", value, "goodsSpecificationIds");
public Criteria andSpecificationsGreaterThanOrEqualTo(String[] value) {
addSpecificationsCriterion("specifications >=", value, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsLessThan(Integer[] value) {
addGoodsSpecificationIdsCriterion("goods_specification_ids <", value, "goodsSpecificationIds");
public Criteria andSpecificationsLessThan(String[] value) {
addSpecificationsCriterion("specifications <", value, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsLessThanOrEqualTo(Integer[] value) {
addGoodsSpecificationIdsCriterion("goods_specification_ids <=", value, "goodsSpecificationIds");
public Criteria andSpecificationsLessThanOrEqualTo(String[] value) {
addSpecificationsCriterion("specifications <=", value, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsLike(Integer[] value) {
addGoodsSpecificationIdsCriterion("goods_specification_ids like", value, "goodsSpecificationIds");
public Criteria andSpecificationsLike(String[] value) {
addSpecificationsCriterion("specifications like", value, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsNotLike(Integer[] value) {
addGoodsSpecificationIdsCriterion("goods_specification_ids not like", value, "goodsSpecificationIds");
public Criteria andSpecificationsNotLike(String[] value) {
addSpecificationsCriterion("specifications not like", value, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsIn(List<Integer[]> values) {
addGoodsSpecificationIdsCriterion("goods_specification_ids in", values, "goodsSpecificationIds");
public Criteria andSpecificationsIn(List<String[]> values) {
addSpecificationsCriterion("specifications in", values, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsNotIn(List<Integer[]> values) {
addGoodsSpecificationIdsCriterion("goods_specification_ids not in", values, "goodsSpecificationIds");
public Criteria andSpecificationsNotIn(List<String[]> values) {
addSpecificationsCriterion("specifications not in", values, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsBetween(Integer[] value1, Integer[] value2) {
addGoodsSpecificationIdsCriterion("goods_specification_ids between", value1, value2, "goodsSpecificationIds");
public Criteria andSpecificationsBetween(String[] value1, String[] value2) {
addSpecificationsCriterion("specifications between", value1, value2, "specifications");
return (Criteria) this;
}
public Criteria andGoodsSpecificationIdsNotBetween(Integer[] value1, Integer[] value2) {
addGoodsSpecificationIdsCriterion("goods_specification_ids not between", value1, value2, "goodsSpecificationIds");
public Criteria andSpecificationsNotBetween(String[] value1, String[] value2) {
addSpecificationsCriterion("specifications not between", value1, value2, "specifications");
return (Criteria) this;
}
......@@ -1216,18 +1146,6 @@ public class LitemallCartExample {
return deleted ? andDeletedEqualTo(LitemallCart.IS_DELETED) : andDeletedNotEqualTo(LitemallCart.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_cart
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallCart.IS_DELETED) : andDeletedNotEqualTo(LitemallCart.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_cart
......
package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class LitemallCategory {
/**
......@@ -12,16 +14,6 @@ public class LitemallCategory {
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_category
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_category
......@@ -31,16 +23,6 @@ public class LitemallCategory {
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_category
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -71,56 +53,20 @@ public class LitemallCategory {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.front_desc
*
* @mbg.generated
*/
private String frontDesc;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.parent_id
*
* @mbg.generated
*/
private Integer parentId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.sort_order
*
* @mbg.generated
*/
private Byte sortOrder;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.show_index
*
* @mbg.generated
*/
private Byte showIndex;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.is_show
* This field corresponds to the database column litemall_category.desc
*
* @mbg.generated
*/
private Boolean isShow;
private String desc;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.banner_url
* This field corresponds to the database column litemall_category.pid
*
* @mbg.generated
*/
private String bannerUrl;
private Integer pid;
/**
*
......@@ -134,20 +80,11 @@ public class LitemallCategory {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.img_url
*
* @mbg.generated
*/
private String imgUrl;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.wap_banner_url
* This field corresponds to the database column litemall_category.pic_url
*
* @mbg.generated
*/
private String wapBannerUrl;
private String picUrl;
/**
*
......@@ -161,20 +98,11 @@ public class LitemallCategory {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.type
*
* @mbg.generated
*/
private Integer type;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_category.front_name
* This field corresponds to the database column litemall_category.sort_order
*
* @mbg.generated
*/
private String frontName;
private Byte sortOrder;
/**
*
......@@ -268,146 +196,50 @@ public class LitemallCategory {
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.front_desc
*
* @return the value of litemall_category.front_desc
*
* @mbg.generated
*/
public String getFrontDesc() {
return frontDesc;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.front_desc
*
* @param frontDesc the value for litemall_category.front_desc
*
* @mbg.generated
*/
public void setFrontDesc(String frontDesc) {
this.frontDesc = frontDesc;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.parent_id
*
* @return the value of litemall_category.parent_id
*
* @mbg.generated
*/
public Integer getParentId() {
return parentId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.parent_id
*
* @param parentId the value for litemall_category.parent_id
*
* @mbg.generated
*/
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.sort_order
*
* @return the value of litemall_category.sort_order
*
* @mbg.generated
*/
public Byte getSortOrder() {
return sortOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.sort_order
*
* @param sortOrder the value for litemall_category.sort_order
*
* @mbg.generated
*/
public void setSortOrder(Byte sortOrder) {
this.sortOrder = sortOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.show_index
*
* @return the value of litemall_category.show_index
*
* @mbg.generated
*/
public Byte getShowIndex() {
return showIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.show_index
*
* @param showIndex the value for litemall_category.show_index
*
* @mbg.generated
*/
public void setShowIndex(Byte showIndex) {
this.showIndex = showIndex;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.is_show
* This method returns the value of the database column litemall_category.desc
*
* @return the value of litemall_category.is_show
* @return the value of litemall_category.desc
*
* @mbg.generated
*/
public Boolean getIsShow() {
return isShow;
public String getDesc() {
return desc;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.is_show
* This method sets the value of the database column litemall_category.desc
*
* @param isShow the value for litemall_category.is_show
* @param desc the value for litemall_category.desc
*
* @mbg.generated
*/
public void setIsShow(Boolean isShow) {
this.isShow = isShow;
public void setDesc(String desc) {
this.desc = desc;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.banner_url
* This method returns the value of the database column litemall_category.pid
*
* @return the value of litemall_category.banner_url
* @return the value of litemall_category.pid
*
* @mbg.generated
*/
public String getBannerUrl() {
return bannerUrl;
public Integer getPid() {
return pid;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.banner_url
* This method sets the value of the database column litemall_category.pid
*
* @param bannerUrl the value for litemall_category.banner_url
* @param pid the value for litemall_category.pid
*
* @mbg.generated
*/
public void setBannerUrl(String bannerUrl) {
this.bannerUrl = bannerUrl;
public void setPid(Integer pid) {
this.pid = pid;
}
/**
......@@ -436,50 +268,26 @@ public class LitemallCategory {
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.img_url
*
* @return the value of litemall_category.img_url
*
* @mbg.generated
*/
public String getImgUrl() {
return imgUrl;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.img_url
*
* @param imgUrl the value for litemall_category.img_url
*
* @mbg.generated
*/
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.wap_banner_url
* This method returns the value of the database column litemall_category.pic_url
*
* @return the value of litemall_category.wap_banner_url
* @return the value of litemall_category.pic_url
*
* @mbg.generated
*/
public String getWapBannerUrl() {
return wapBannerUrl;
public String getPicUrl() {
return picUrl;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.wap_banner_url
* This method sets the value of the database column litemall_category.pic_url
*
* @param wapBannerUrl the value for litemall_category.wap_banner_url
* @param picUrl the value for litemall_category.pic_url
*
* @mbg.generated
*/
public void setWapBannerUrl(String wapBannerUrl) {
this.wapBannerUrl = wapBannerUrl;
public void setPicUrl(String picUrl) {
this.picUrl = picUrl;
}
/**
......@@ -508,50 +316,26 @@ public class LitemallCategory {
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.type
*
* @return the value of litemall_category.type
*
* @mbg.generated
*/
public Integer getType() {
return type;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.type
*
* @param type the value for litemall_category.type
*
* @mbg.generated
*/
public void setType(Integer type) {
this.type = type;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_category.front_name
* This method returns the value of the database column litemall_category.sort_order
*
* @return the value of litemall_category.front_name
* @return the value of litemall_category.sort_order
*
* @mbg.generated
*/
public String getFrontName() {
return frontName;
public Byte getSortOrder() {
return sortOrder;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_category.front_name
* This method sets the value of the database column litemall_category.sort_order
*
* @param frontName the value for litemall_category.front_name
* @param sortOrder the value for litemall_category.sort_order
*
* @mbg.generated
*/
public void setFrontName(String frontName) {
this.frontName = frontName;
public void setSortOrder(Byte sortOrder) {
this.sortOrder = sortOrder;
}
/**
......@@ -617,18 +401,12 @@ public class LitemallCategory {
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", keywords=").append(keywords);
sb.append(", frontDesc=").append(frontDesc);
sb.append(", parentId=").append(parentId);
sb.append(", sortOrder=").append(sortOrder);
sb.append(", showIndex=").append(showIndex);
sb.append(", isShow=").append(isShow);
sb.append(", bannerUrl=").append(bannerUrl);
sb.append(", desc=").append(desc);
sb.append(", pid=").append(pid);
sb.append(", iconUrl=").append(iconUrl);
sb.append(", imgUrl=").append(imgUrl);
sb.append(", wapBannerUrl=").append(wapBannerUrl);
sb.append(", picUrl=").append(picUrl);
sb.append(", level=").append(level);
sb.append(", type=").append(type);
sb.append(", frontName=").append(frontName);
sb.append(", sortOrder=").append(sortOrder);
sb.append(", addTime=").append(addTime);
sb.append(", deleted=").append(deleted);
sb.append("]");
......@@ -656,18 +434,12 @@ public class LitemallCategory {
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getKeywords() == null ? other.getKeywords() == null : this.getKeywords().equals(other.getKeywords()))
&& (this.getFrontDesc() == null ? other.getFrontDesc() == null : this.getFrontDesc().equals(other.getFrontDesc()))
&& (this.getParentId() == null ? other.getParentId() == null : this.getParentId().equals(other.getParentId()))
&& (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder()))
&& (this.getShowIndex() == null ? other.getShowIndex() == null : this.getShowIndex().equals(other.getShowIndex()))
&& (this.getIsShow() == null ? other.getIsShow() == null : this.getIsShow().equals(other.getIsShow()))
&& (this.getBannerUrl() == null ? other.getBannerUrl() == null : this.getBannerUrl().equals(other.getBannerUrl()))
&& (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
&& (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
&& (this.getIconUrl() == null ? other.getIconUrl() == null : this.getIconUrl().equals(other.getIconUrl()))
&& (this.getImgUrl() == null ? other.getImgUrl() == null : this.getImgUrl().equals(other.getImgUrl()))
&& (this.getWapBannerUrl() == null ? other.getWapBannerUrl() == null : this.getWapBannerUrl().equals(other.getWapBannerUrl()))
&& (this.getPicUrl() == null ? other.getPicUrl() == null : this.getPicUrl().equals(other.getPicUrl()))
&& (this.getLevel() == null ? other.getLevel() == null : this.getLevel().equals(other.getLevel()))
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
&& (this.getFrontName() == null ? other.getFrontName() == null : this.getFrontName().equals(other.getFrontName()))
&& (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
......@@ -685,18 +457,12 @@ public class LitemallCategory {
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getKeywords() == null) ? 0 : getKeywords().hashCode());
result = prime * result + ((getFrontDesc() == null) ? 0 : getFrontDesc().hashCode());
result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
result = prime * result + ((getShowIndex() == null) ? 0 : getShowIndex().hashCode());
result = prime * result + ((getIsShow() == null) ? 0 : getIsShow().hashCode());
result = prime * result + ((getBannerUrl() == null) ? 0 : getBannerUrl().hashCode());
result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
result = prime * result + ((getIconUrl() == null) ? 0 : getIconUrl().hashCode());
result = prime * result + ((getImgUrl() == null) ? 0 : getImgUrl().hashCode());
result = prime * result + ((getWapBannerUrl() == null) ? 0 : getWapBannerUrl().hashCode());
result = prime * result + ((getPicUrl() == null) ? 0 : getPicUrl().hashCode());
result = prime * result + ((getLevel() == null) ? 0 : getLevel().hashCode());
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
result = prime * result + ((getFrontName() == null) ? 0 : getFrontName().hashCode());
result = prime * result + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
return result;
......@@ -724,18 +490,12 @@ public class LitemallCategory {
id("id", "id", "INTEGER"),
name("name", "name", "VARCHAR"),
keywords("keywords", "keywords", "VARCHAR"),
frontDesc("front_desc", "frontDesc", "VARCHAR"),
parentId("parent_id", "parentId", "INTEGER"),
sortOrder("sort_order", "sortOrder", "TINYINT"),
showIndex("show_index", "showIndex", "TINYINT"),
isShow("is_show", "isShow", "BIT"),
bannerUrl("banner_url", "bannerUrl", "VARCHAR"),
desc("desc", "desc", "VARCHAR"),
pid("pid", "pid", "INTEGER"),
iconUrl("icon_url", "iconUrl", "VARCHAR"),
imgUrl("img_url", "imgUrl", "VARCHAR"),
wapBannerUrl("wap_banner_url", "wapBannerUrl", "VARCHAR"),
picUrl("pic_url", "picUrl", "VARCHAR"),
level("level", "level", "VARCHAR"),
type("type", "type", "INTEGER"),
frontName("front_name", "frontName", "VARCHAR"),
sortOrder("sort_order", "sortOrder", "TINYINT"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT");
......@@ -844,5 +604,20 @@ public class LitemallCategory {
public String asc() {
return this.column + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_category
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
}
}
\ No newline at end of file
......@@ -426,383 +426,133 @@ public class LitemallCategoryExample {
return (Criteria) this;
}
public Criteria andFrontDescIsNull() {
addCriterion("front_desc is null");
public Criteria andDescIsNull() {
addCriterion("`desc` is null");
return (Criteria) this;
}
public Criteria andFrontDescIsNotNull() {
addCriterion("front_desc is not null");
public Criteria andDescIsNotNull() {
addCriterion("`desc` is not null");
return (Criteria) this;
}
public Criteria andFrontDescEqualTo(String value) {
addCriterion("front_desc =", value, "frontDesc");
public Criteria andDescEqualTo(String value) {
addCriterion("`desc` =", value, "desc");
return (Criteria) this;
}
public Criteria andFrontDescNotEqualTo(String value) {
addCriterion("front_desc <>", value, "frontDesc");
public Criteria andDescNotEqualTo(String value) {
addCriterion("`desc` <>", value, "desc");
return (Criteria) this;
}
public Criteria andFrontDescGreaterThan(String value) {
addCriterion("front_desc >", value, "frontDesc");
public Criteria andDescGreaterThan(String value) {
addCriterion("`desc` >", value, "desc");
return (Criteria) this;
}
public Criteria andFrontDescGreaterThanOrEqualTo(String value) {
addCriterion("front_desc >=", value, "frontDesc");
public Criteria andDescGreaterThanOrEqualTo(String value) {
addCriterion("`desc` >=", value, "desc");
return (Criteria) this;
}
public Criteria andFrontDescLessThan(String value) {
addCriterion("front_desc <", value, "frontDesc");
public Criteria andDescLessThan(String value) {
addCriterion("`desc` <", value, "desc");
return (Criteria) this;
}
public Criteria andFrontDescLessThanOrEqualTo(String value) {
addCriterion("front_desc <=", value, "frontDesc");
public Criteria andDescLessThanOrEqualTo(String value) {
addCriterion("`desc` <=", value, "desc");
return (Criteria) this;
}
public Criteria andFrontDescLike(String value) {
addCriterion("front_desc like", value, "frontDesc");
public Criteria andDescLike(String value) {
addCriterion("`desc` like", value, "desc");
return (Criteria) this;
}
public Criteria andFrontDescNotLike(String value) {
addCriterion("front_desc not like", value, "frontDesc");
public Criteria andDescNotLike(String value) {
addCriterion("`desc` not like", value, "desc");
return (Criteria) this;
}
public Criteria andFrontDescIn(List<String> values) {
addCriterion("front_desc in", values, "frontDesc");
public Criteria andDescIn(List<String> values) {
addCriterion("`desc` in", values, "desc");
return (Criteria) this;
}
public Criteria andFrontDescNotIn(List<String> values) {
addCriterion("front_desc not in", values, "frontDesc");
public Criteria andDescNotIn(List<String> values) {
addCriterion("`desc` not in", values, "desc");
return (Criteria) this;
}
public Criteria andFrontDescBetween(String value1, String value2) {
addCriterion("front_desc between", value1, value2, "frontDesc");
public Criteria andDescBetween(String value1, String value2) {
addCriterion("`desc` between", value1, value2, "desc");
return (Criteria) this;
}
public Criteria andFrontDescNotBetween(String value1, String value2) {
addCriterion("front_desc not between", value1, value2, "frontDesc");
public Criteria andDescNotBetween(String value1, String value2) {
addCriterion("`desc` not between", value1, value2, "desc");
return (Criteria) this;
}
public Criteria andParentIdIsNull() {
addCriterion("parent_id is null");
public Criteria andPidIsNull() {
addCriterion("pid is null");
return (Criteria) this;
}
public Criteria andParentIdIsNotNull() {
addCriterion("parent_id is not null");
public Criteria andPidIsNotNull() {
addCriterion("pid is not null");
return (Criteria) this;
}
public Criteria andParentIdEqualTo(Integer value) {
addCriterion("parent_id =", value, "parentId");
public Criteria andPidEqualTo(Integer value) {
addCriterion("pid =", value, "pid");
return (Criteria) this;
}
public Criteria andParentIdNotEqualTo(Integer value) {
addCriterion("parent_id <>", value, "parentId");
public Criteria andPidNotEqualTo(Integer value) {
addCriterion("pid <>", value, "pid");
return (Criteria) this;
}
public Criteria andParentIdGreaterThan(Integer value) {
addCriterion("parent_id >", value, "parentId");
public Criteria andPidGreaterThan(Integer value) {
addCriterion("pid >", value, "pid");
return (Criteria) this;
}
public Criteria andParentIdGreaterThanOrEqualTo(Integer value) {
addCriterion("parent_id >=", value, "parentId");
public Criteria andPidGreaterThanOrEqualTo(Integer value) {
addCriterion("pid >=", value, "pid");
return (Criteria) this;
}
public Criteria andParentIdLessThan(Integer value) {
addCriterion("parent_id <", value, "parentId");
public Criteria andPidLessThan(Integer value) {
addCriterion("pid <", value, "pid");
return (Criteria) this;
}
public Criteria andParentIdLessThanOrEqualTo(Integer value) {
addCriterion("parent_id <=", value, "parentId");
public Criteria andPidLessThanOrEqualTo(Integer value) {
addCriterion("pid <=", value, "pid");
return (Criteria) this;
}
public Criteria andParentIdIn(List<Integer> values) {
addCriterion("parent_id in", values, "parentId");
public Criteria andPidIn(List<Integer> values) {
addCriterion("pid in", values, "pid");
return (Criteria) this;
}
public Criteria andParentIdNotIn(List<Integer> values) {
addCriterion("parent_id not in", values, "parentId");
public Criteria andPidNotIn(List<Integer> values) {
addCriterion("pid not in", values, "pid");
return (Criteria) this;
}
public Criteria andParentIdBetween(Integer value1, Integer value2) {
addCriterion("parent_id between", value1, value2, "parentId");
public Criteria andPidBetween(Integer value1, Integer value2) {
addCriterion("pid between", value1, value2, "pid");
return (Criteria) this;
}
public Criteria andParentIdNotBetween(Integer value1, Integer value2) {
addCriterion("parent_id not between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andSortOrderIsNull() {
addCriterion("sort_order is null");
return (Criteria) this;
}
public Criteria andSortOrderIsNotNull() {
addCriterion("sort_order is not null");
return (Criteria) this;
}
public Criteria andSortOrderEqualTo(Byte value) {
addCriterion("sort_order =", value, "sortOrder");
return (Criteria) this;
}
public Criteria andSortOrderNotEqualTo(Byte value) {
addCriterion("sort_order <>", value, "sortOrder");
return (Criteria) this;
}
public Criteria andSortOrderGreaterThan(Byte value) {
addCriterion("sort_order >", value, "sortOrder");
return (Criteria) this;
}
public Criteria andSortOrderGreaterThanOrEqualTo(Byte value) {
addCriterion("sort_order >=", value, "sortOrder");
return (Criteria) this;
}
public Criteria andSortOrderLessThan(Byte value) {
addCriterion("sort_order <", value, "sortOrder");
return (Criteria) this;
}
public Criteria andSortOrderLessThanOrEqualTo(Byte value) {
addCriterion("sort_order <=", value, "sortOrder");
return (Criteria) this;
}
public Criteria andSortOrderIn(List<Byte> values) {
addCriterion("sort_order in", values, "sortOrder");
return (Criteria) this;
}
public Criteria andSortOrderNotIn(List<Byte> values) {
addCriterion("sort_order not in", values, "sortOrder");
return (Criteria) this;
}
public Criteria andSortOrderBetween(Byte value1, Byte value2) {
addCriterion("sort_order between", value1, value2, "sortOrder");
return (Criteria) this;
}
public Criteria andSortOrderNotBetween(Byte value1, Byte value2) {
addCriterion("sort_order not between", value1, value2, "sortOrder");
return (Criteria) this;
}
public Criteria andShowIndexIsNull() {
addCriterion("show_index is null");
return (Criteria) this;
}
public Criteria andShowIndexIsNotNull() {
addCriterion("show_index is not null");
return (Criteria) this;
}
public Criteria andShowIndexEqualTo(Byte value) {
addCriterion("show_index =", value, "showIndex");
return (Criteria) this;
}
public Criteria andShowIndexNotEqualTo(Byte value) {
addCriterion("show_index <>", value, "showIndex");
return (Criteria) this;
}
public Criteria andShowIndexGreaterThan(Byte value) {
addCriterion("show_index >", value, "showIndex");
return (Criteria) this;
}
public Criteria andShowIndexGreaterThanOrEqualTo(Byte value) {
addCriterion("show_index >=", value, "showIndex");
return (Criteria) this;
}
public Criteria andShowIndexLessThan(Byte value) {
addCriterion("show_index <", value, "showIndex");
return (Criteria) this;
}
public Criteria andShowIndexLessThanOrEqualTo(Byte value) {
addCriterion("show_index <=", value, "showIndex");
return (Criteria) this;
}
public Criteria andShowIndexIn(List<Byte> values) {
addCriterion("show_index in", values, "showIndex");
return (Criteria) this;
}
public Criteria andShowIndexNotIn(List<Byte> values) {
addCriterion("show_index not in", values, "showIndex");
return (Criteria) this;
}
public Criteria andShowIndexBetween(Byte value1, Byte value2) {
addCriterion("show_index between", value1, value2, "showIndex");
return (Criteria) this;
}
public Criteria andShowIndexNotBetween(Byte value1, Byte value2) {
addCriterion("show_index not between", value1, value2, "showIndex");
return (Criteria) this;
}
public Criteria andIsShowIsNull() {
addCriterion("is_show is null");
return (Criteria) this;
}
public Criteria andIsShowIsNotNull() {
addCriterion("is_show is not null");
return (Criteria) this;
}
public Criteria andIsShowEqualTo(Boolean value) {
addCriterion("is_show =", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotEqualTo(Boolean value) {
addCriterion("is_show <>", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowGreaterThan(Boolean value) {
addCriterion("is_show >", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowGreaterThanOrEqualTo(Boolean value) {
addCriterion("is_show >=", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowLessThan(Boolean value) {
addCriterion("is_show <", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowLessThanOrEqualTo(Boolean value) {
addCriterion("is_show <=", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowIn(List<Boolean> values) {
addCriterion("is_show in", values, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotIn(List<Boolean> values) {
addCriterion("is_show not in", values, "isShow");
return (Criteria) this;
}
public Criteria andIsShowBetween(Boolean value1, Boolean value2) {
addCriterion("is_show between", value1, value2, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotBetween(Boolean value1, Boolean value2) {
addCriterion("is_show not between", value1, value2, "isShow");
return (Criteria) this;
}
public Criteria andBannerUrlIsNull() {
addCriterion("banner_url is null");
return (Criteria) this;
}
public Criteria andBannerUrlIsNotNull() {
addCriterion("banner_url is not null");
return (Criteria) this;
}
public Criteria andBannerUrlEqualTo(String value) {
addCriterion("banner_url =", value, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlNotEqualTo(String value) {
addCriterion("banner_url <>", value, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlGreaterThan(String value) {
addCriterion("banner_url >", value, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlGreaterThanOrEqualTo(String value) {
addCriterion("banner_url >=", value, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlLessThan(String value) {
addCriterion("banner_url <", value, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlLessThanOrEqualTo(String value) {
addCriterion("banner_url <=", value, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlLike(String value) {
addCriterion("banner_url like", value, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlNotLike(String value) {
addCriterion("banner_url not like", value, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlIn(List<String> values) {
addCriterion("banner_url in", values, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlNotIn(List<String> values) {
addCriterion("banner_url not in", values, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlBetween(String value1, String value2) {
addCriterion("banner_url between", value1, value2, "bannerUrl");
return (Criteria) this;
}
public Criteria andBannerUrlNotBetween(String value1, String value2) {
addCriterion("banner_url not between", value1, value2, "bannerUrl");
public Criteria andPidNotBetween(Integer value1, Integer value2) {
addCriterion("pid not between", value1, value2, "pid");
return (Criteria) this;
}
......@@ -876,143 +626,73 @@ public class LitemallCategoryExample {
return (Criteria) this;
}
public Criteria andImgUrlIsNull() {
addCriterion("img_url is null");
return (Criteria) this;
}
public Criteria andImgUrlIsNotNull() {
addCriterion("img_url is not null");
return (Criteria) this;
}
public Criteria andImgUrlEqualTo(String value) {
addCriterion("img_url =", value, "imgUrl");
return (Criteria) this;
}
public Criteria andImgUrlNotEqualTo(String value) {
addCriterion("img_url <>", value, "imgUrl");
public Criteria andPicUrlIsNull() {
addCriterion("pic_url is null");
return (Criteria) this;
}
public Criteria andImgUrlGreaterThan(String value) {
addCriterion("img_url >", value, "imgUrl");
public Criteria andPicUrlIsNotNull() {
addCriterion("pic_url is not null");
return (Criteria) this;
}
public Criteria andImgUrlGreaterThanOrEqualTo(String value) {
addCriterion("img_url >=", value, "imgUrl");
public Criteria andPicUrlEqualTo(String value) {
addCriterion("pic_url =", value, "picUrl");
return (Criteria) this;
}
public Criteria andImgUrlLessThan(String value) {
addCriterion("img_url <", value, "imgUrl");
public Criteria andPicUrlNotEqualTo(String value) {
addCriterion("pic_url <>", value, "picUrl");
return (Criteria) this;
}
public Criteria andImgUrlLessThanOrEqualTo(String value) {
addCriterion("img_url <=", value, "imgUrl");
public Criteria andPicUrlGreaterThan(String value) {
addCriterion("pic_url >", value, "picUrl");
return (Criteria) this;
}
public Criteria andImgUrlLike(String value) {
addCriterion("img_url like", value, "imgUrl");
public Criteria andPicUrlGreaterThanOrEqualTo(String value) {
addCriterion("pic_url >=", value, "picUrl");
return (Criteria) this;
}
public Criteria andImgUrlNotLike(String value) {
addCriterion("img_url not like", value, "imgUrl");
public Criteria andPicUrlLessThan(String value) {
addCriterion("pic_url <", value, "picUrl");
return (Criteria) this;
}
public Criteria andImgUrlIn(List<String> values) {
addCriterion("img_url in", values, "imgUrl");
public Criteria andPicUrlLessThanOrEqualTo(String value) {
addCriterion("pic_url <=", value, "picUrl");
return (Criteria) this;
}
public Criteria andImgUrlNotIn(List<String> values) {
addCriterion("img_url not in", values, "imgUrl");
public Criteria andPicUrlLike(String value) {
addCriterion("pic_url like", value, "picUrl");
return (Criteria) this;
}
public Criteria andImgUrlBetween(String value1, String value2) {
addCriterion("img_url between", value1, value2, "imgUrl");
public Criteria andPicUrlNotLike(String value) {
addCriterion("pic_url not like", value, "picUrl");
return (Criteria) this;
}
public Criteria andImgUrlNotBetween(String value1, String value2) {
addCriterion("img_url not between", value1, value2, "imgUrl");
public Criteria andPicUrlIn(List<String> values) {
addCriterion("pic_url in", values, "picUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlIsNull() {
addCriterion("wap_banner_url is null");
public Criteria andPicUrlNotIn(List<String> values) {
addCriterion("pic_url not in", values, "picUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlIsNotNull() {
addCriterion("wap_banner_url is not null");
public Criteria andPicUrlBetween(String value1, String value2) {
addCriterion("pic_url between", value1, value2, "picUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlEqualTo(String value) {
addCriterion("wap_banner_url =", value, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlNotEqualTo(String value) {
addCriterion("wap_banner_url <>", value, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlGreaterThan(String value) {
addCriterion("wap_banner_url >", value, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlGreaterThanOrEqualTo(String value) {
addCriterion("wap_banner_url >=", value, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlLessThan(String value) {
addCriterion("wap_banner_url <", value, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlLessThanOrEqualTo(String value) {
addCriterion("wap_banner_url <=", value, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlLike(String value) {
addCriterion("wap_banner_url like", value, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlNotLike(String value) {
addCriterion("wap_banner_url not like", value, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlIn(List<String> values) {
addCriterion("wap_banner_url in", values, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlNotIn(List<String> values) {
addCriterion("wap_banner_url not in", values, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlBetween(String value1, String value2) {
addCriterion("wap_banner_url between", value1, value2, "wapBannerUrl");
return (Criteria) this;
}
public Criteria andWapBannerUrlNotBetween(String value1, String value2) {
addCriterion("wap_banner_url not between", value1, value2, "wapBannerUrl");
public Criteria andPicUrlNotBetween(String value1, String value2) {
addCriterion("pic_url not between", value1, value2, "picUrl");
return (Criteria) this;
}
......@@ -1086,133 +766,63 @@ public class LitemallCategoryExample {
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("`type` is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("`type` is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Integer value) {
addCriterion("`type` =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Integer value) {
addCriterion("`type` <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Integer value) {
addCriterion("`type` >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("`type` >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Integer value) {
addCriterion("`type` <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Integer value) {
addCriterion("`type` <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Integer> values) {
addCriterion("`type` in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Integer> values) {
addCriterion("`type` not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Integer value1, Integer value2) {
addCriterion("`type` between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Integer value1, Integer value2) {
addCriterion("`type` not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andFrontNameIsNull() {
addCriterion("front_name is null");
return (Criteria) this;
}
public Criteria andFrontNameIsNotNull() {
addCriterion("front_name is not null");
return (Criteria) this;
}
public Criteria andFrontNameEqualTo(String value) {
addCriterion("front_name =", value, "frontName");
public Criteria andSortOrderIsNull() {
addCriterion("sort_order is null");
return (Criteria) this;
}
public Criteria andFrontNameNotEqualTo(String value) {
addCriterion("front_name <>", value, "frontName");
public Criteria andSortOrderIsNotNull() {
addCriterion("sort_order is not null");
return (Criteria) this;
}
public Criteria andFrontNameGreaterThan(String value) {
addCriterion("front_name >", value, "frontName");
public Criteria andSortOrderEqualTo(Byte value) {
addCriterion("sort_order =", value, "sortOrder");
return (Criteria) this;
}
public Criteria andFrontNameGreaterThanOrEqualTo(String value) {
addCriterion("front_name >=", value, "frontName");
public Criteria andSortOrderNotEqualTo(Byte value) {
addCriterion("sort_order <>", value, "sortOrder");
return (Criteria) this;
}
public Criteria andFrontNameLessThan(String value) {
addCriterion("front_name <", value, "frontName");
public Criteria andSortOrderGreaterThan(Byte value) {
addCriterion("sort_order >", value, "sortOrder");
return (Criteria) this;
}
public Criteria andFrontNameLessThanOrEqualTo(String value) {
addCriterion("front_name <=", value, "frontName");
public Criteria andSortOrderGreaterThanOrEqualTo(Byte value) {
addCriterion("sort_order >=", value, "sortOrder");
return (Criteria) this;
}
public Criteria andFrontNameLike(String value) {
addCriterion("front_name like", value, "frontName");
public Criteria andSortOrderLessThan(Byte value) {
addCriterion("sort_order <", value, "sortOrder");
return (Criteria) this;
}
public Criteria andFrontNameNotLike(String value) {
addCriterion("front_name not like", value, "frontName");
public Criteria andSortOrderLessThanOrEqualTo(Byte value) {
addCriterion("sort_order <=", value, "sortOrder");
return (Criteria) this;
}
public Criteria andFrontNameIn(List<String> values) {
addCriterion("front_name in", values, "frontName");
public Criteria andSortOrderIn(List<Byte> values) {
addCriterion("sort_order in", values, "sortOrder");
return (Criteria) this;
}
public Criteria andFrontNameNotIn(List<String> values) {
addCriterion("front_name not in", values, "frontName");
public Criteria andSortOrderNotIn(List<Byte> values) {
addCriterion("sort_order not in", values, "sortOrder");
return (Criteria) this;
}
public Criteria andFrontNameBetween(String value1, String value2) {
addCriterion("front_name between", value1, value2, "frontName");
public Criteria andSortOrderBetween(Byte value1, Byte value2) {
addCriterion("sort_order between", value1, value2, "sortOrder");
return (Criteria) this;
}
public Criteria andFrontNameNotBetween(String value1, String value2) {
addCriterion("front_name not between", value1, value2, "frontName");
public Criteria andSortOrderNotBetween(Byte value1, Byte value2) {
addCriterion("sort_order not between", value1, value2, "sortOrder");
return (Criteria) this;
}
......@@ -1401,18 +1011,6 @@ public class LitemallCategoryExample {
return deleted ? andDeletedEqualTo(LitemallCategory.IS_DELETED) : andDeletedNotEqualTo(LitemallCategory.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_category
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallCategory.IS_DELETED) : andDeletedNotEqualTo(LitemallCategory.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_category
......
package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class LitemallCollect {
/**
......@@ -12,16 +14,6 @@ public class LitemallCollect {
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_collect
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_collect
......@@ -31,16 +23,6 @@ public class LitemallCollect {
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_collect
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -71,20 +53,11 @@ public class LitemallCollect {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_collect.is_attention
*
* @mbg.generated
*/
private Boolean isAttention;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_collect.type_id
* This field corresponds to the database column litemall_collect.type
*
* @mbg.generated
*/
private Integer typeId;
private Byte type;
/**
*
......@@ -178,50 +151,26 @@ public class LitemallCollect {
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_collect.is_attention
* This method returns the value of the database column litemall_collect.type
*
* @return the value of litemall_collect.is_attention
* @return the value of litemall_collect.type
*
* @mbg.generated
*/
public Boolean getIsAttention() {
return isAttention;
public Byte getType() {
return type;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_collect.is_attention
* This method sets the value of the database column litemall_collect.type
*
* @param isAttention the value for litemall_collect.is_attention
* @param type the value for litemall_collect.type
*
* @mbg.generated
*/
public void setIsAttention(Boolean isAttention) {
this.isAttention = isAttention;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_collect.type_id
*
* @return the value of litemall_collect.type_id
*
* @mbg.generated
*/
public Integer getTypeId() {
return typeId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_collect.type_id
*
* @param typeId the value for litemall_collect.type_id
*
* @mbg.generated
*/
public void setTypeId(Integer typeId) {
this.typeId = typeId;
public void setType(Byte type) {
this.type = type;
}
/**
......@@ -287,8 +236,7 @@ public class LitemallCollect {
sb.append(", id=").append(id);
sb.append(", userId=").append(userId);
sb.append(", valueId=").append(valueId);
sb.append(", isAttention=").append(isAttention);
sb.append(", typeId=").append(typeId);
sb.append(", type=").append(type);
sb.append(", addTime=").append(addTime);
sb.append(", deleted=").append(deleted);
sb.append("]");
......@@ -316,8 +264,7 @@ public class LitemallCollect {
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getValueId() == null ? other.getValueId() == null : this.getValueId().equals(other.getValueId()))
&& (this.getIsAttention() == null ? other.getIsAttention() == null : this.getIsAttention().equals(other.getIsAttention()))
&& (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
&& (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))
&& (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()));
}
......@@ -335,8 +282,7 @@ public class LitemallCollect {
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getValueId() == null) ? 0 : getValueId().hashCode());
result = prime * result + ((getIsAttention() == null) ? 0 : getIsAttention().hashCode());
result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
result = prime * result + ((getAddTime() == null) ? 0 : getAddTime().hashCode());
result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
return result;
......@@ -364,8 +310,7 @@ public class LitemallCollect {
id("id", "id", "INTEGER"),
userId("user_id", "userId", "INTEGER"),
valueId("value_id", "valueId", "INTEGER"),
isAttention("is_attention", "isAttention", "BIT"),
typeId("type_id", "typeId", "INTEGER"),
type("type", "type", "TINYINT"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT");
......@@ -474,5 +419,20 @@ public class LitemallCollect {
public String asc() {
return this.column + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_collect
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
}
}
\ No newline at end of file
......@@ -406,123 +406,63 @@ public class LitemallCollectExample {
return (Criteria) this;
}
public Criteria andIsAttentionIsNull() {
addCriterion("is_attention is null");
public Criteria andTypeIsNull() {
addCriterion("`type` is null");
return (Criteria) this;
}
public Criteria andIsAttentionIsNotNull() {
addCriterion("is_attention is not null");
public Criteria andTypeIsNotNull() {
addCriterion("`type` is not null");
return (Criteria) this;
}
public Criteria andIsAttentionEqualTo(Boolean value) {
addCriterion("is_attention =", value, "isAttention");
public Criteria andTypeEqualTo(Byte value) {
addCriterion("`type` =", value, "type");
return (Criteria) this;
}
public Criteria andIsAttentionNotEqualTo(Boolean value) {
addCriterion("is_attention <>", value, "isAttention");
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("`type` <>", value, "type");
return (Criteria) this;
}
public Criteria andIsAttentionGreaterThan(Boolean value) {
addCriterion("is_attention >", value, "isAttention");
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("`type` >", value, "type");
return (Criteria) this;
}
public Criteria andIsAttentionGreaterThanOrEqualTo(Boolean value) {
addCriterion("is_attention >=", value, "isAttention");
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("`type` >=", value, "type");
return (Criteria) this;
}
public Criteria andIsAttentionLessThan(Boolean value) {
addCriterion("is_attention <", value, "isAttention");
public Criteria andTypeLessThan(Byte value) {
addCriterion("`type` <", value, "type");
return (Criteria) this;
}
public Criteria andIsAttentionLessThanOrEqualTo(Boolean value) {
addCriterion("is_attention <=", value, "isAttention");
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("`type` <=", value, "type");
return (Criteria) this;
}
public Criteria andIsAttentionIn(List<Boolean> values) {
addCriterion("is_attention in", values, "isAttention");
public Criteria andTypeIn(List<Byte> values) {
addCriterion("`type` in", values, "type");
return (Criteria) this;
}
public Criteria andIsAttentionNotIn(List<Boolean> values) {
addCriterion("is_attention not in", values, "isAttention");
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("`type` not in", values, "type");
return (Criteria) this;
}
public Criteria andIsAttentionBetween(Boolean value1, Boolean value2) {
addCriterion("is_attention between", value1, value2, "isAttention");
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("`type` between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andIsAttentionNotBetween(Boolean value1, Boolean value2) {
addCriterion("is_attention not between", value1, value2, "isAttention");
return (Criteria) this;
}
public Criteria andTypeIdIsNull() {
addCriterion("type_id is null");
return (Criteria) this;
}
public Criteria andTypeIdIsNotNull() {
addCriterion("type_id is not null");
return (Criteria) this;
}
public Criteria andTypeIdEqualTo(Integer value) {
addCriterion("type_id =", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdNotEqualTo(Integer value) {
addCriterion("type_id <>", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdGreaterThan(Integer value) {
addCriterion("type_id >", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdGreaterThanOrEqualTo(Integer value) {
addCriterion("type_id >=", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdLessThan(Integer value) {
addCriterion("type_id <", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdLessThanOrEqualTo(Integer value) {
addCriterion("type_id <=", value, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdIn(List<Integer> values) {
addCriterion("type_id in", values, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdNotIn(List<Integer> values) {
addCriterion("type_id not in", values, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdBetween(Integer value1, Integer value2) {
addCriterion("type_id between", value1, value2, "typeId");
return (Criteria) this;
}
public Criteria andTypeIdNotBetween(Integer value1, Integer value2) {
addCriterion("type_id not between", value1, value2, "typeId");
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("`type` not between", value1, value2, "type");
return (Criteria) this;
}
......@@ -711,18 +651,6 @@ public class LitemallCollectExample {
return deleted ? andDeletedEqualTo(LitemallCollect.IS_DELETED) : andDeletedNotEqualTo(LitemallCollect.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_collect
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallCollect.IS_DELETED) : andDeletedNotEqualTo(LitemallCollect.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_collect
......
package org.linlinjava.litemall.db.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class LitemallComment {
......@@ -13,16 +14,6 @@ public class LitemallComment {
*/
public static final Boolean NOT_DELETED = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_ON = false;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
......@@ -32,16 +23,6 @@ public class LitemallComment {
*/
public static final Boolean IS_DELETED = true;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public static final Boolean DEL_FLAG_OFF = true;
/**
*
* This field was generated by MyBatis Generator.
......@@ -54,20 +35,20 @@ public class LitemallComment {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_comment.type_id
* This field corresponds to the database column litemall_comment.value_id
*
* @mbg.generated
*/
private Byte typeId;
private Integer valueId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column litemall_comment.value_id
* This field corresponds to the database column litemall_comment.type
*
* @mbg.generated
*/
private Integer valueId;
private Byte type;
/**
*
......@@ -158,50 +139,50 @@ public class LitemallComment {
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_comment.type_id
* This method returns the value of the database column litemall_comment.value_id
*
* @return the value of litemall_comment.type_id
* @return the value of litemall_comment.value_id
*
* @mbg.generated
*/
public Byte getTypeId() {
return typeId;
public Integer getValueId() {
return valueId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_comment.type_id
* This method sets the value of the database column litemall_comment.value_id
*
* @param typeId the value for litemall_comment.type_id
* @param valueId the value for litemall_comment.value_id
*
* @mbg.generated
*/
public void setTypeId(Byte typeId) {
this.typeId = typeId;
public void setValueId(Integer valueId) {
this.valueId = valueId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column litemall_comment.value_id
* This method returns the value of the database column litemall_comment.type
*
* @return the value of litemall_comment.value_id
* @return the value of litemall_comment.type
*
* @mbg.generated
*/
public Integer getValueId() {
return valueId;
public Byte getType() {
return type;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column litemall_comment.value_id
* This method sets the value of the database column litemall_comment.type
*
* @param valueId the value for litemall_comment.value_id
* @param type the value for litemall_comment.type
*
* @mbg.generated
*/
public void setValueId(Integer valueId) {
this.valueId = valueId;
public void setType(Byte type) {
this.type = type;
}
/**
......@@ -385,8 +366,8 @@ public class LitemallComment {
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", typeId=").append(typeId);
sb.append(", valueId=").append(valueId);
sb.append(", type=").append(type);
sb.append(", content=").append(content);
sb.append(", userId=").append(userId);
sb.append(", hasPicture=").append(hasPicture);
......@@ -417,8 +398,8 @@ public class LitemallComment {
}
LitemallComment other = (LitemallComment) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
&& (this.getValueId() == null ? other.getValueId() == null : this.getValueId().equals(other.getValueId()))
&& (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
&& (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
&& (this.getHasPicture() == null ? other.getHasPicture() == null : this.getHasPicture().equals(other.getHasPicture()))
......@@ -439,8 +420,8 @@ public class LitemallComment {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
result = prime * result + ((getValueId() == null) ? 0 : getValueId().hashCode());
result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
result = prime * result + ((getHasPicture() == null) ? 0 : getHasPicture().hashCode());
......@@ -471,12 +452,12 @@ public class LitemallComment {
*/
public enum Column {
id("id", "id", "INTEGER"),
typeId("type_id", "typeId", "TINYINT"),
valueId("value_id", "valueId", "INTEGER"),
type("type", "type", "TINYINT"),
content("content", "content", "VARCHAR"),
userId("user_id", "userId", "INTEGER"),
hasPicture("has_picture", "hasPicture", "BIT"),
picUrls("pic_urls", "picUrls", "CHAR"),
picUrls("pic_urls", "picUrls", "VARCHAR"),
star("star", "star", "SMALLINT"),
addTime("add_time", "addTime", "TIMESTAMP"),
deleted("deleted", "deleted", "BIT");
......@@ -586,5 +567,20 @@ public class LitemallComment {
public String asc() {
return this.column + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Column[] excludes(Column ... excludes) {
ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
if (excludes != null && excludes.length > 0) {
columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
}
return columns.toArray(new Column[]{});
}
}
}
\ No newline at end of file
......@@ -320,123 +320,123 @@ public class LitemallCommentExample {
return (Criteria) this;
}
public Criteria andTypeIdIsNull() {
addCriterion("type_id is null");
public Criteria andValueIdIsNull() {
addCriterion("value_id is null");
return (Criteria) this;
}
public Criteria andTypeIdIsNotNull() {
addCriterion("type_id is not null");
public Criteria andValueIdIsNotNull() {
addCriterion("value_id is not null");
return (Criteria) this;
}
public Criteria andTypeIdEqualTo(Byte value) {
addCriterion("type_id =", value, "typeId");
public Criteria andValueIdEqualTo(Integer value) {
addCriterion("value_id =", value, "valueId");
return (Criteria) this;
}
public Criteria andTypeIdNotEqualTo(Byte value) {
addCriterion("type_id <>", value, "typeId");
public Criteria andValueIdNotEqualTo(Integer value) {
addCriterion("value_id <>", value, "valueId");
return (Criteria) this;
}
public Criteria andTypeIdGreaterThan(Byte value) {
addCriterion("type_id >", value, "typeId");
public Criteria andValueIdGreaterThan(Integer value) {
addCriterion("value_id >", value, "valueId");
return (Criteria) this;
}
public Criteria andTypeIdGreaterThanOrEqualTo(Byte value) {
addCriterion("type_id >=", value, "typeId");
public Criteria andValueIdGreaterThanOrEqualTo(Integer value) {
addCriterion("value_id >=", value, "valueId");
return (Criteria) this;
}
public Criteria andTypeIdLessThan(Byte value) {
addCriterion("type_id <", value, "typeId");
public Criteria andValueIdLessThan(Integer value) {
addCriterion("value_id <", value, "valueId");
return (Criteria) this;
}
public Criteria andTypeIdLessThanOrEqualTo(Byte value) {
addCriterion("type_id <=", value, "typeId");
public Criteria andValueIdLessThanOrEqualTo(Integer value) {
addCriterion("value_id <=", value, "valueId");
return (Criteria) this;
}
public Criteria andTypeIdIn(List<Byte> values) {
addCriterion("type_id in", values, "typeId");
public Criteria andValueIdIn(List<Integer> values) {
addCriterion("value_id in", values, "valueId");
return (Criteria) this;
}
public Criteria andTypeIdNotIn(List<Byte> values) {
addCriterion("type_id not in", values, "typeId");
public Criteria andValueIdNotIn(List<Integer> values) {
addCriterion("value_id not in", values, "valueId");
return (Criteria) this;
}
public Criteria andTypeIdBetween(Byte value1, Byte value2) {
addCriterion("type_id between", value1, value2, "typeId");
public Criteria andValueIdBetween(Integer value1, Integer value2) {
addCriterion("value_id between", value1, value2, "valueId");
return (Criteria) this;
}
public Criteria andTypeIdNotBetween(Byte value1, Byte value2) {
addCriterion("type_id not between", value1, value2, "typeId");
public Criteria andValueIdNotBetween(Integer value1, Integer value2) {
addCriterion("value_id not between", value1, value2, "valueId");
return (Criteria) this;
}
public Criteria andValueIdIsNull() {
addCriterion("value_id is null");
public Criteria andTypeIsNull() {
addCriterion("`type` is null");
return (Criteria) this;
}
public Criteria andValueIdIsNotNull() {
addCriterion("value_id is not null");
public Criteria andTypeIsNotNull() {
addCriterion("`type` is not null");
return (Criteria) this;
}
public Criteria andValueIdEqualTo(Integer value) {
addCriterion("value_id =", value, "valueId");
public Criteria andTypeEqualTo(Byte value) {
addCriterion("`type` =", value, "type");
return (Criteria) this;
}
public Criteria andValueIdNotEqualTo(Integer value) {
addCriterion("value_id <>", value, "valueId");
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("`type` <>", value, "type");
return (Criteria) this;
}
public Criteria andValueIdGreaterThan(Integer value) {
addCriterion("value_id >", value, "valueId");
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("`type` >", value, "type");
return (Criteria) this;
}
public Criteria andValueIdGreaterThanOrEqualTo(Integer value) {
addCriterion("value_id >=", value, "valueId");
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("`type` >=", value, "type");
return (Criteria) this;
}
public Criteria andValueIdLessThan(Integer value) {
addCriterion("value_id <", value, "valueId");
public Criteria andTypeLessThan(Byte value) {
addCriterion("`type` <", value, "type");
return (Criteria) this;
}
public Criteria andValueIdLessThanOrEqualTo(Integer value) {
addCriterion("value_id <=", value, "valueId");
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("`type` <=", value, "type");
return (Criteria) this;
}
public Criteria andValueIdIn(List<Integer> values) {
addCriterion("value_id in", values, "valueId");
public Criteria andTypeIn(List<Byte> values) {
addCriterion("`type` in", values, "type");
return (Criteria) this;
}
public Criteria andValueIdNotIn(List<Integer> values) {
addCriterion("value_id not in", values, "valueId");
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("`type` not in", values, "type");
return (Criteria) this;
}
public Criteria andValueIdBetween(Integer value1, Integer value2) {
addCriterion("value_id between", value1, value2, "valueId");
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("`type` between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andValueIdNotBetween(Integer value1, Integer value2) {
addCriterion("value_id not between", value1, value2, "valueId");
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("`type` not between", value1, value2, "type");
return (Criteria) this;
}
......@@ -945,18 +945,6 @@ public class LitemallCommentExample {
return deleted ? andDeletedEqualTo(LitemallComment.IS_DELETED) : andDeletedNotEqualTo(LitemallComment.IS_DELETED);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table litemall_comment
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
@Deprecated
public Criteria andDeleted(boolean deleted) {
return deleted ? andDeletedEqualTo(LitemallComment.IS_DELETED) : andDeletedNotEqualTo(LitemallComment.IS_DELETED);
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table litemall_comment
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment