mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-21 01:10:39 +08:00
添加查询书籍;BookDO映射文件更新;DOMapper添加@Repository注解;添加自定义业务异常处理;添加Validation验证
This commit is contained in:
@@ -0,0 +1,902 @@
|
||||
package plus.bookshelf.Dao.DO;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class BookDOExample {
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected String orderByClause;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected boolean distinct;
|
||||
|
||||
/**
|
||||
* This field was generated by MyBatis Generator.
|
||||
* This field corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public BookDOExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameIsNull() {
|
||||
addCriterion("book_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameIsNotNull() {
|
||||
addCriterion("book_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameEqualTo(String value) {
|
||||
addCriterion("book_name =", value, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameNotEqualTo(String value) {
|
||||
addCriterion("book_name <>", value, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameGreaterThan(String value) {
|
||||
addCriterion("book_name >", value, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("book_name >=", value, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameLessThan(String value) {
|
||||
addCriterion("book_name <", value, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("book_name <=", value, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameLike(String value) {
|
||||
addCriterion("book_name like", value, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameNotLike(String value) {
|
||||
addCriterion("book_name not like", value, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameIn(List<String> values) {
|
||||
addCriterion("book_name in", values, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameNotIn(List<String> values) {
|
||||
addCriterion("book_name not in", values, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameBetween(String value1, String value2) {
|
||||
addCriterion("book_name between", value1, value2, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBookNameNotBetween(String value1, String value2) {
|
||||
addCriterion("book_name not between", value1, value2, "bookName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdIsNull() {
|
||||
addCriterion("category_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdIsNotNull() {
|
||||
addCriterion("category_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdEqualTo(Integer value) {
|
||||
addCriterion("category_id =", value, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdNotEqualTo(Integer value) {
|
||||
addCriterion("category_id <>", value, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdGreaterThan(Integer value) {
|
||||
addCriterion("category_id >", value, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("category_id >=", value, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdLessThan(Integer value) {
|
||||
addCriterion("category_id <", value, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("category_id <=", value, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdIn(List<Integer> values) {
|
||||
addCriterion("category_id in", values, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdNotIn(List<Integer> values) {
|
||||
addCriterion("category_id not in", values, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("category_id between", value1, value2, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCategoryIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("category_id not between", value1, value2, "categoryId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseIsNull() {
|
||||
addCriterion("publishing_house is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseIsNotNull() {
|
||||
addCriterion("publishing_house is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseEqualTo(String value) {
|
||||
addCriterion("publishing_house =", value, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseNotEqualTo(String value) {
|
||||
addCriterion("publishing_house <>", value, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseGreaterThan(String value) {
|
||||
addCriterion("publishing_house >", value, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("publishing_house >=", value, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseLessThan(String value) {
|
||||
addCriterion("publishing_house <", value, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseLessThanOrEqualTo(String value) {
|
||||
addCriterion("publishing_house <=", value, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseLike(String value) {
|
||||
addCriterion("publishing_house like", value, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseNotLike(String value) {
|
||||
addCriterion("publishing_house not like", value, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseIn(List<String> values) {
|
||||
addCriterion("publishing_house in", values, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseNotIn(List<String> values) {
|
||||
addCriterion("publishing_house not in", values, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseBetween(String value1, String value2) {
|
||||
addCriterion("publishing_house between", value1, value2, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPublishingHouseNotBetween(String value1, String value2) {
|
||||
addCriterion("publishing_house not between", value1, value2, "publishingHouse");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageIsNull() {
|
||||
addCriterion("`language` is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageIsNotNull() {
|
||||
addCriterion("`language` is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageEqualTo(String value) {
|
||||
addCriterion("`language` =", value, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageNotEqualTo(String value) {
|
||||
addCriterion("`language` <>", value, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageGreaterThan(String value) {
|
||||
addCriterion("`language` >", value, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("`language` >=", value, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageLessThan(String value) {
|
||||
addCriterion("`language` <", value, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageLessThanOrEqualTo(String value) {
|
||||
addCriterion("`language` <=", value, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageLike(String value) {
|
||||
addCriterion("`language` like", value, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageNotLike(String value) {
|
||||
addCriterion("`language` not like", value, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageIn(List<String> values) {
|
||||
addCriterion("`language` in", values, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageNotIn(List<String> values) {
|
||||
addCriterion("`language` not in", values, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageBetween(String value1, String value2) {
|
||||
addCriterion("`language` between", value1, value2, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLanguageNotBetween(String value1, String value2) {
|
||||
addCriterion("`language` not between", value1, value2, "language");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightIsNull() {
|
||||
addCriterion("copyright is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightIsNotNull() {
|
||||
addCriterion("copyright is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightEqualTo(String value) {
|
||||
addCriterion("copyright =", value, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightNotEqualTo(String value) {
|
||||
addCriterion("copyright <>", value, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightGreaterThan(String value) {
|
||||
addCriterion("copyright >", value, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("copyright >=", value, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightLessThan(String value) {
|
||||
addCriterion("copyright <", value, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightLessThanOrEqualTo(String value) {
|
||||
addCriterion("copyright <=", value, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightLike(String value) {
|
||||
addCriterion("copyright like", value, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightNotLike(String value) {
|
||||
addCriterion("copyright not like", value, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightIn(List<String> values) {
|
||||
addCriterion("copyright in", values, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightNotIn(List<String> values) {
|
||||
addCriterion("copyright not in", values, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightBetween(String value1, String value2) {
|
||||
addCriterion("copyright between", value1, value2, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCopyrightNotBetween(String value1, String value2) {
|
||||
addCriterion("copyright not between", value1, value2, "copyright");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteIsNull() {
|
||||
addCriterion("is_delete is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteIsNotNull() {
|
||||
addCriterion("is_delete is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteEqualTo(Boolean value) {
|
||||
addCriterion("is_delete =", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotEqualTo(Boolean value) {
|
||||
addCriterion("is_delete <>", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteGreaterThan(Boolean value) {
|
||||
addCriterion("is_delete >", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteGreaterThanOrEqualTo(Boolean value) {
|
||||
addCriterion("is_delete >=", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteLessThan(Boolean value) {
|
||||
addCriterion("is_delete <", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteLessThanOrEqualTo(Boolean value) {
|
||||
addCriterion("is_delete <=", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteIn(List<Boolean> values) {
|
||||
addCriterion("is_delete in", values, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotIn(List<Boolean> values) {
|
||||
addCriterion("is_delete not in", values, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("is_delete between", value1, value2, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotBetween(Boolean value1, Boolean value2) {
|
||||
addCriterion("is_delete not between", value1, value2, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailIsNull() {
|
||||
addCriterion("thumbnail is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailIsNotNull() {
|
||||
addCriterion("thumbnail is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailEqualTo(String value) {
|
||||
addCriterion("thumbnail =", value, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailNotEqualTo(String value) {
|
||||
addCriterion("thumbnail <>", value, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailGreaterThan(String value) {
|
||||
addCriterion("thumbnail >", value, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("thumbnail >=", value, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailLessThan(String value) {
|
||||
addCriterion("thumbnail <", value, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailLessThanOrEqualTo(String value) {
|
||||
addCriterion("thumbnail <=", value, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailLike(String value) {
|
||||
addCriterion("thumbnail like", value, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailNotLike(String value) {
|
||||
addCriterion("thumbnail not like", value, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailIn(List<String> values) {
|
||||
addCriterion("thumbnail in", values, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailNotIn(List<String> values) {
|
||||
addCriterion("thumbnail not in", values, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailBetween(String value1, String value2) {
|
||||
addCriterion("thumbnail between", value1, value2, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThumbnailNotBetween(String value1, String value2) {
|
||||
addCriterion("thumbnail not between", value1, value2, "thumbnail");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorIsNull() {
|
||||
addCriterion("author is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorIsNotNull() {
|
||||
addCriterion("author is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorEqualTo(String value) {
|
||||
addCriterion("author =", value, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorNotEqualTo(String value) {
|
||||
addCriterion("author <>", value, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorGreaterThan(String value) {
|
||||
addCriterion("author >", value, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("author >=", value, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorLessThan(String value) {
|
||||
addCriterion("author <", value, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorLessThanOrEqualTo(String value) {
|
||||
addCriterion("author <=", value, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorLike(String value) {
|
||||
addCriterion("author like", value, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorNotLike(String value) {
|
||||
addCriterion("author not like", value, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorIn(List<String> values) {
|
||||
addCriterion("author in", values, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorNotIn(List<String> values) {
|
||||
addCriterion("author not in", values, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorBetween(String value1, String value2) {
|
||||
addCriterion("author between", value1, value2, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAuthorNotBetween(String value1, String value2) {
|
||||
addCriterion("author not between", value1, value2, "author");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated do_not_delete_during_merge
|
||||
*/
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* This class was generated by MyBatis Generator.
|
||||
* This class corresponds to the database table book_info
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user