Commit f4815296 authored by shiyu's avatar shiyu

同步数据

parent f1f1f6a3
package com.wwdz.ch.admin.controller; package com.wwdz.ch.admin.controller;
import com.wwdz.ch.admin.annotation.RequiresPermissionsDesc; import com.wwdz.ch.admin.annotation.RequiresPermissionsDesc;
import com.wwdz.ch.admin.job.SynCoinJob;
import com.wwdz.ch.admin.service.ItemService; import com.wwdz.ch.admin.service.ItemService;
import com.wwdz.ch.admin.util.AuthSupport; import com.wwdz.ch.admin.util.AuthSupport;
import com.wwdz.ch.core.type.Result; import com.wwdz.ch.core.type.Result;
...@@ -24,6 +25,9 @@ public class ItemController { ...@@ -24,6 +25,9 @@ public class ItemController {
@Autowired @Autowired
private ItemService itemService; private ItemService itemService;
@Autowired
SynCoinJob synCoinJob;
// @RequiresPermissions("admin:item:findDetail") // @RequiresPermissions("admin:item:findDetail")
@RequiresPermissionsDesc(menu = { "钱币列表", "钱币明细" }, button = "查询") @RequiresPermissionsDesc(menu = { "钱币列表", "钱币明细" }, button = "查询")
@PostMapping("/findDetail") @PostMapping("/findDetail")
...@@ -44,4 +48,9 @@ public class ItemController { ...@@ -44,4 +48,9 @@ public class ItemController {
logger.info("【请求结束】钱币列表->钱币明细->更新"); logger.info("【请求结束】钱币列表->钱币明细->更新");
return result; return result;
} }
@GetMapping("/syn")
public void syn() {
synCoinJob.execute();
}
} }
package com.wwdz.ch.admin.impl;
import com.wwdz.ch.admin.job.SynCoinJob;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static org.junit.Assert.*;
@SpringBootTest
@RunWith(SpringJUnit4ClassRunner.class)
public class SynCoinJobTest {
@Autowired
SynCoinJob synCoinJob;
@Test
public void execute() {
synCoinJob.execute();
}
}
\ No newline at end of file
...@@ -134,16 +134,16 @@ spring: ...@@ -134,16 +134,16 @@ spring:
username: owner username: owner
password: VS1xaA37hyu1wJSw password: VS1xaA37hyu1wJSw
initial-size: 10 initial-size: 10
max-active: 50 max-active: 100
min-idle: 10 min-idle: 10
max-wait: 60000 max-wait: 600000
pool-prepared-statements: true pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20 max-pool-prepared-statement-per-connection-size: 200
validation-query: SELECT 1 FROM DUAL validation-query: SELECT 1 FROM DUAL
test-on-borrow: false test-on-borrow: false
test-on-return: false test-on-return: false
test-while-idle: true test-while-idle: true
time-between-eviction-runs-millis: 60000 time-between-eviction-runs-millis: 600000
filters: stat,wall filters: stat,wall
......
...@@ -133,11 +133,11 @@ spring: ...@@ -133,11 +133,11 @@ spring:
username: quanku username: quanku
password: 3N0W8i0b1Wm35MJ5 password: 3N0W8i0b1Wm35MJ5
initial-size: 10 initial-size: 10
max-active: 50 max-active: 100
min-idle: 10 min-idle: 10
max-wait: 60000 max-wait: 60000
pool-prepared-statements: true pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20 max-pool-prepared-statement-per-connection-size: 200
validation-query: SELECT 1 FROM DUAL validation-query: SELECT 1 FROM DUAL
test-on-borrow: false test-on-borrow: false
test-on-return: false test-on-return: false
......
package com.wwdz.ch.db.dao;
import com.github.pagehelper.PageInfo;
import com.wwdz.ch.db.domain.Coins;
import com.wwdz.ch.db.dto.request.CoinRequestDto;
import java.util.List;
public interface CoinsDao {
void insert(Coins coins);
List<Coins> findList(CoinRequestDto dto);
PageInfo<Coins> findByPage(CoinRequestDto dto);
}
package com.wwdz.ch.db.dao.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wwdz.ch.db.dao.CoinsDao;
import com.wwdz.ch.db.domain.Coins;
import com.wwdz.ch.db.domain.CoinsExample;
import com.wwdz.ch.db.domain.Favorites;
import com.wwdz.ch.db.dto.request.CoinRequestDto;
import com.wwdz.ch.db.mapper.CoinsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public class CoinsDaoImpl implements CoinsDao {
@Autowired
CoinsMapper coinsMapper;
@Override
public void insert(Coins coins) {
}
@Override
public List<Coins> findList(CoinRequestDto dto) {
CoinsExample coinsExample = new CoinsExample();
CoinsExample.Criteria criteria = coinsExample.createCriteria();
coinsExample.setOrderByClause("created asc");
PageHelper.startPage(dto.getPage(), dto.getLimit());
List<Coins> list = coinsMapper.selectByExampleWithBLOBs(coinsExample);
return list;
}
@Override
public PageInfo<Coins> findByPage(CoinRequestDto dto) {
CoinsExample coinsExample = new CoinsExample();
coinsExample.setOrderByClause("created asc");
PageHelper.startPage(dto.getPage(), dto.getLimit());
List<Coins> list = coinsMapper.selectByExampleWithBLOBs(coinsExample);
return new PageInfo<>(list);
}
}
package com.wwdz.ch.db.domain;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import com.xxdxxs.entity.Entity;
import lombok.Data;
/**
* @author shiyu
* @date 2023/07/26
*/
@Data
public class Coins implements Entity {
private Long id;
/**
* 钱币名称
*/
private String name;
/**
* 钱币所属类目ID
*/
private Integer cid;
/**
* 是否标准件
*/
private Boolean isStd;
/**
* 价格, 要除以100
*/
private Long price;
/**
* 创建时间
*/
private Date created;
/**
* 更新时间
*/
private Date updated;
/**
* 逻辑删除
*/
private Boolean isDeleted;
/**
* 成交时间
*/
private Date bidTime;
/**
* 来源url
*/
private String sourceUrl;
/**
* 来源
*/
private Integer source;
/**
* 钱币额外信息
*/
private String extra;
/**
* 商品图片,分号分隔
*/
private String images;
/**
* 商品详细介绍,是富文本格式
*/
private String detail;
private static final long serialVersionUID = 1L;
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", cid=").append(cid);
sb.append(", isStd=").append(isStd);
sb.append(", price=").append(price);
sb.append(", created=").append(created);
sb.append(", updated=").append(updated);
sb.append(", isDeleted=").append(isDeleted);
sb.append(", bidTime=").append(bidTime);
sb.append(", sourceUrl=").append(sourceUrl);
sb.append(", source=").append(source);
sb.append(", extra=").append(extra);
sb.append(", images=").append(images);
sb.append(", detail=").append(detail);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Coins other = (Coins) 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.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
&& (this.getIsStd() == null ? other.getIsStd() == null : this.getIsStd().equals(other.getIsStd()))
&& (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
&& (this.getCreated() == null ? other.getCreated() == null : this.getCreated().equals(other.getCreated()))
&& (this.getUpdated() == null ? other.getUpdated() == null : this.getUpdated().equals(other.getUpdated()))
&& (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
&& (this.getBidTime() == null ? other.getBidTime() == null : this.getBidTime().equals(other.getBidTime()))
&& (this.getSourceUrl() == null ? other.getSourceUrl() == null : this.getSourceUrl().equals(other.getSourceUrl()))
&& (this.getSource() == null ? other.getSource() == null : this.getSource().equals(other.getSource()))
&& (this.getExtra() == null ? other.getExtra() == null : this.getExtra().equals(other.getExtra()))
&& (this.getImages() == null ? other.getImages() == null : this.getImages().equals(other.getImages()))
&& (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
result = prime * result + ((getIsStd() == null) ? 0 : getIsStd().hashCode());
result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
result = prime * result + ((getBidTime() == null) ? 0 : getBidTime().hashCode());
result = prime * result + ((getSourceUrl() == null) ? 0 : getSourceUrl().hashCode());
result = prime * result + ((getSource() == null) ? 0 : getSource().hashCode());
result = prime * result + ((getExtra() == null) ? 0 : getExtra().hashCode());
result = prime * result + ((getImages() == null) ? 0 : getImages().hashCode());
result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode());
return result;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id", "id", "BIGINT", false),
name("name", "name", "VARCHAR", true),
cid("cid", "cid", "INTEGER", false),
isStd("is_std", "isStd", "BIT", false),
price("price", "price", "BIGINT", false),
created("created", "created", "TIMESTAMP", false),
updated("updated", "updated", "TIMESTAMP", false),
isDeleted("is_deleted", "isDeleted", "BIT", false),
bidTime("bid_time", "bidTime", "TIMESTAMP", false),
sourceUrl("source_url", "sourceUrl", "VARCHAR", false),
source("source", "source", "INTEGER", true),
extra("extra", "extra", "LONGVARCHAR", false),
images("images", "images", "LONGVARCHAR", false),
detail("detail", "detail", "LONGVARCHAR", false);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private static final String BEGINNING_DELIMITER = "`";
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private static final String ENDING_DELIMITER = "`";
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String column;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final boolean isColumnNameDelimited;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String javaProperty;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private final String jdbcType;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String value() {
return this.column;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getValue() {
return this.column;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJavaProperty() {
return this.javaProperty;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getJdbcType() {
return this.jdbcType;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
this.column = column;
this.javaProperty = javaProperty;
this.jdbcType = jdbcType;
this.isColumnNameDelimited = isColumnNameDelimited;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String desc() {
return this.getEscapedColumnName() + " DESC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String asc() {
return this.getEscapedColumnName() + " ASC";
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @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[]{});
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public String getEscapedColumnName() {
if (this.isColumnNameDelimited) {
return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
} else {
return this.column;
}
}
}
}
\ No newline at end of file
package com.wwdz.ch.db.domain;
import com.github.pagehelper.page.PageMethod;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class CoinsExample {
public PageMethod PageHelper;
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CoinsExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public CoinsExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public CoinsExample orderBy(String ... orderByClauses) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < orderByClauses.length; i++) {
sb.append(orderByClauses[i]);
if (i < orderByClauses.length - 1) {
sb.append(" , ");
}
}
this.setOrderByClause(sb.toString());
return this;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Criteria newAndCreateCriteria() {
CoinsExample example = new CoinsExample();
return example.createCriteria();
}
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(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("id = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("id <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("id >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("id < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("id <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("`name` is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("`name` is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("`name` =", value, "name");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("`name` = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("`name` <>", value, "name");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("`name` <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("`name` >", value, "name");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("`name` > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("`name` >=", value, "name");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("`name` >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("`name` <", value, "name");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("`name` < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("`name` <=", value, "name");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("`name` <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("`name` like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("`name` not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("`name` in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("`name` not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("`name` between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("`name` not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andCidIsNull() {
addCriterion("cid is null");
return (Criteria) this;
}
public Criteria andCidIsNotNull() {
addCriterion("cid is not null");
return (Criteria) this;
}
public Criteria andCidEqualTo(Integer value) {
addCriterion("cid =", value, "cid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("cid = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCidNotEqualTo(Integer value) {
addCriterion("cid <>", value, "cid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("cid <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCidGreaterThan(Integer value) {
addCriterion("cid >", value, "cid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("cid > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCidGreaterThanOrEqualTo(Integer value) {
addCriterion("cid >=", value, "cid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("cid >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCidLessThan(Integer value) {
addCriterion("cid <", value, "cid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("cid < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCidLessThanOrEqualTo(Integer value) {
addCriterion("cid <=", value, "cid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("cid <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCidIn(List<Integer> values) {
addCriterion("cid in", values, "cid");
return (Criteria) this;
}
public Criteria andCidNotIn(List<Integer> values) {
addCriterion("cid not in", values, "cid");
return (Criteria) this;
}
public Criteria andCidBetween(Integer value1, Integer value2) {
addCriterion("cid between", value1, value2, "cid");
return (Criteria) this;
}
public Criteria andCidNotBetween(Integer value1, Integer value2) {
addCriterion("cid not between", value1, value2, "cid");
return (Criteria) this;
}
public Criteria andIsStdIsNull() {
addCriterion("is_std is null");
return (Criteria) this;
}
public Criteria andIsStdIsNotNull() {
addCriterion("is_std is not null");
return (Criteria) this;
}
public Criteria andIsStdEqualTo(Boolean value) {
addCriterion("is_std =", value, "isStd");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsStdEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_std = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsStdNotEqualTo(Boolean value) {
addCriterion("is_std <>", value, "isStd");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsStdNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_std <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsStdGreaterThan(Boolean value) {
addCriterion("is_std >", value, "isStd");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsStdGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_std > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsStdGreaterThanOrEqualTo(Boolean value) {
addCriterion("is_std >=", value, "isStd");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsStdGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_std >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsStdLessThan(Boolean value) {
addCriterion("is_std <", value, "isStd");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsStdLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_std < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsStdLessThanOrEqualTo(Boolean value) {
addCriterion("is_std <=", value, "isStd");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsStdLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_std <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsStdIn(List<Boolean> values) {
addCriterion("is_std in", values, "isStd");
return (Criteria) this;
}
public Criteria andIsStdNotIn(List<Boolean> values) {
addCriterion("is_std not in", values, "isStd");
return (Criteria) this;
}
public Criteria andIsStdBetween(Boolean value1, Boolean value2) {
addCriterion("is_std between", value1, value2, "isStd");
return (Criteria) this;
}
public Criteria andIsStdNotBetween(Boolean value1, Boolean value2) {
addCriterion("is_std not between", value1, value2, "isStd");
return (Criteria) this;
}
public Criteria andPriceIsNull() {
addCriterion("price is null");
return (Criteria) this;
}
public Criteria andPriceIsNotNull() {
addCriterion("price is not null");
return (Criteria) this;
}
public Criteria andPriceEqualTo(Long value) {
addCriterion("price =", value, "price");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("price = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPriceNotEqualTo(Long value) {
addCriterion("price <>", value, "price");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("price <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPriceGreaterThan(Long value) {
addCriterion("price >", value, "price");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("price > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPriceGreaterThanOrEqualTo(Long value) {
addCriterion("price >=", value, "price");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("price >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPriceLessThan(Long value) {
addCriterion("price <", value, "price");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("price < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPriceLessThanOrEqualTo(Long value) {
addCriterion("price <=", value, "price");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("price <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPriceIn(List<Long> values) {
addCriterion("price in", values, "price");
return (Criteria) this;
}
public Criteria andPriceNotIn(List<Long> values) {
addCriterion("price not in", values, "price");
return (Criteria) this;
}
public Criteria andPriceBetween(Long value1, Long value2) {
addCriterion("price between", value1, value2, "price");
return (Criteria) this;
}
public Criteria andPriceNotBetween(Long value1, Long value2) {
addCriterion("price not between", value1, value2, "price");
return (Criteria) this;
}
public Criteria andCreatedIsNull() {
addCriterion("created is null");
return (Criteria) this;
}
public Criteria andCreatedIsNotNull() {
addCriterion("created is not null");
return (Criteria) this;
}
public Criteria andCreatedEqualTo(Date value) {
addCriterion("created =", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("created = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedNotEqualTo(Date value) {
addCriterion("created <>", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("created <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedGreaterThan(Date value) {
addCriterion("created >", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("created > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
addCriterion("created >=", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("created >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedLessThan(Date value) {
addCriterion("created <", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("created < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedLessThanOrEqualTo(Date value) {
addCriterion("created <=", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("created <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedIn(List<Date> values) {
addCriterion("created in", values, "created");
return (Criteria) this;
}
public Criteria andCreatedNotIn(List<Date> values) {
addCriterion("created not in", values, "created");
return (Criteria) this;
}
public Criteria andCreatedBetween(Date value1, Date value2) {
addCriterion("created between", value1, value2, "created");
return (Criteria) this;
}
public Criteria andCreatedNotBetween(Date value1, Date value2) {
addCriterion("created not between", value1, value2, "created");
return (Criteria) this;
}
public Criteria andUpdatedIsNull() {
addCriterion("updated is null");
return (Criteria) this;
}
public Criteria andUpdatedIsNotNull() {
addCriterion("updated is not null");
return (Criteria) this;
}
public Criteria andUpdatedEqualTo(Date value) {
addCriterion("updated =", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("updated = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedNotEqualTo(Date value) {
addCriterion("updated <>", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("updated <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedGreaterThan(Date value) {
addCriterion("updated >", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("updated > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedGreaterThanOrEqualTo(Date value) {
addCriterion("updated >=", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("updated >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedLessThan(Date value) {
addCriterion("updated <", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("updated < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedLessThanOrEqualTo(Date value) {
addCriterion("updated <=", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("updated <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedIn(List<Date> values) {
addCriterion("updated in", values, "updated");
return (Criteria) this;
}
public Criteria andUpdatedNotIn(List<Date> values) {
addCriterion("updated not in", values, "updated");
return (Criteria) this;
}
public Criteria andUpdatedBetween(Date value1, Date value2) {
addCriterion("updated between", value1, value2, "updated");
return (Criteria) this;
}
public Criteria andUpdatedNotBetween(Date value1, Date value2) {
addCriterion("updated not between", value1, value2, "updated");
return (Criteria) this;
}
public Criteria andIsDeletedIsNull() {
addCriterion("is_deleted is null");
return (Criteria) this;
}
public Criteria andIsDeletedIsNotNull() {
addCriterion("is_deleted is not null");
return (Criteria) this;
}
public Criteria andIsDeletedEqualTo(Boolean value) {
addCriterion("is_deleted =", value, "isDeleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_deleted = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDeletedNotEqualTo(Boolean value) {
addCriterion("is_deleted <>", value, "isDeleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_deleted <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDeletedGreaterThan(Boolean value) {
addCriterion("is_deleted >", value, "isDeleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_deleted > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDeletedGreaterThanOrEqualTo(Boolean value) {
addCriterion("is_deleted >=", value, "isDeleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_deleted >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDeletedLessThan(Boolean value) {
addCriterion("is_deleted <", value, "isDeleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_deleted < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDeletedLessThanOrEqualTo(Boolean value) {
addCriterion("is_deleted <=", value, "isDeleted");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("is_deleted <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsDeletedIn(List<Boolean> values) {
addCriterion("is_deleted in", values, "isDeleted");
return (Criteria) this;
}
public Criteria andIsDeletedNotIn(List<Boolean> values) {
addCriterion("is_deleted not in", values, "isDeleted");
return (Criteria) this;
}
public Criteria andIsDeletedBetween(Boolean value1, Boolean value2) {
addCriterion("is_deleted between", value1, value2, "isDeleted");
return (Criteria) this;
}
public Criteria andIsDeletedNotBetween(Boolean value1, Boolean value2) {
addCriterion("is_deleted not between", value1, value2, "isDeleted");
return (Criteria) this;
}
public Criteria andBidTimeIsNull() {
addCriterion("bid_time is null");
return (Criteria) this;
}
public Criteria andBidTimeIsNotNull() {
addCriterion("bid_time is not null");
return (Criteria) this;
}
public Criteria andBidTimeEqualTo(Date value) {
addCriterion("bid_time =", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("bid_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeNotEqualTo(Date value) {
addCriterion("bid_time <>", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("bid_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeGreaterThan(Date value) {
addCriterion("bid_time >", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("bid_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeGreaterThanOrEqualTo(Date value) {
addCriterion("bid_time >=", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("bid_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeLessThan(Date value) {
addCriterion("bid_time <", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("bid_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeLessThanOrEqualTo(Date value) {
addCriterion("bid_time <=", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("bid_time <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeIn(List<Date> values) {
addCriterion("bid_time in", values, "bidTime");
return (Criteria) this;
}
public Criteria andBidTimeNotIn(List<Date> values) {
addCriterion("bid_time not in", values, "bidTime");
return (Criteria) this;
}
public Criteria andBidTimeBetween(Date value1, Date value2) {
addCriterion("bid_time between", value1, value2, "bidTime");
return (Criteria) this;
}
public Criteria andBidTimeNotBetween(Date value1, Date value2) {
addCriterion("bid_time not between", value1, value2, "bidTime");
return (Criteria) this;
}
public Criteria andSourceUrlIsNull() {
addCriterion("source_url is null");
return (Criteria) this;
}
public Criteria andSourceUrlIsNotNull() {
addCriterion("source_url is not null");
return (Criteria) this;
}
public Criteria andSourceUrlEqualTo(String value) {
addCriterion("source_url =", value, "sourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceUrlEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("source_url = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceUrlNotEqualTo(String value) {
addCriterion("source_url <>", value, "sourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceUrlNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("source_url <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceUrlGreaterThan(String value) {
addCriterion("source_url >", value, "sourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceUrlGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("source_url > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceUrlGreaterThanOrEqualTo(String value) {
addCriterion("source_url >=", value, "sourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceUrlGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("source_url >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceUrlLessThan(String value) {
addCriterion("source_url <", value, "sourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceUrlLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("source_url < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceUrlLessThanOrEqualTo(String value) {
addCriterion("source_url <=", value, "sourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceUrlLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("source_url <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceUrlLike(String value) {
addCriterion("source_url like", value, "sourceUrl");
return (Criteria) this;
}
public Criteria andSourceUrlNotLike(String value) {
addCriterion("source_url not like", value, "sourceUrl");
return (Criteria) this;
}
public Criteria andSourceUrlIn(List<String> values) {
addCriterion("source_url in", values, "sourceUrl");
return (Criteria) this;
}
public Criteria andSourceUrlNotIn(List<String> values) {
addCriterion("source_url not in", values, "sourceUrl");
return (Criteria) this;
}
public Criteria andSourceUrlBetween(String value1, String value2) {
addCriterion("source_url between", value1, value2, "sourceUrl");
return (Criteria) this;
}
public Criteria andSourceUrlNotBetween(String value1, String value2) {
addCriterion("source_url not between", value1, value2, "sourceUrl");
return (Criteria) this;
}
public Criteria andSourceIsNull() {
addCriterion("`source` is null");
return (Criteria) this;
}
public Criteria andSourceIsNotNull() {
addCriterion("`source` is not null");
return (Criteria) this;
}
public Criteria andSourceEqualTo(Integer value) {
addCriterion("`source` =", value, "source");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("`source` = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceNotEqualTo(Integer value) {
addCriterion("`source` <>", value, "source");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceNotEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("`source` <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceGreaterThan(Integer value) {
addCriterion("`source` >", value, "source");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceGreaterThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("`source` > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceGreaterThanOrEqualTo(Integer value) {
addCriterion("`source` >=", value, "source");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceGreaterThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("`source` >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceLessThan(Integer value) {
addCriterion("`source` <", value, "source");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceLessThanColumn(Coins.Column column) {
addCriterion(new StringBuilder("`source` < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceLessThanOrEqualTo(Integer value) {
addCriterion("`source` <=", value, "source");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andSourceLessThanOrEqualToColumn(Coins.Column column) {
addCriterion(new StringBuilder("`source` <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andSourceIn(List<Integer> values) {
addCriterion("`source` in", values, "source");
return (Criteria) this;
}
public Criteria andSourceNotIn(List<Integer> values) {
addCriterion("`source` not in", values, "source");
return (Criteria) this;
}
public Criteria andSourceBetween(Integer value1, Integer value2) {
addCriterion("`source` between", value1, value2, "source");
return (Criteria) this;
}
public Criteria andSourceNotBetween(Integer value1, Integer value2) {
addCriterion("`source` not between", value1, value2, "source");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private CoinsExample example;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria(CoinsExample example) {
super();
this.example = example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public CoinsExample example() {
return this.example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
if (ifAdd) {
add.add(this);
}
return this;
}
/**
* This interface was generated by MyBatis Generator.
* This interface corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public interface ICriteriaAdd {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria add(Criteria add);
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
...@@ -10,7 +10,7 @@ import lombok.Data; ...@@ -10,7 +10,7 @@ import lombok.Data;
/** /**
* @author shiyu * @author shiyu
* @date 2023/07/20 * @date 2023/07/26
*/ */
@Data @Data
public class Item implements Entity { public class Item implements Entity {
...@@ -91,6 +91,11 @@ public class Item implements Entity { ...@@ -91,6 +91,11 @@ public class Item implements Entity {
*/ */
private Integer isSetted; private Integer isSetted;
/**
* 原始的资源url
*/
private String originalSourceUrl;
/** /**
* 钱币额外信息 * 钱币额外信息
*/ */
...@@ -106,6 +111,11 @@ public class Item implements Entity { ...@@ -106,6 +111,11 @@ public class Item implements Entity {
*/ */
private String detail; private String detail;
/**
* 原始额外信息
*/
private String originalExtra;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@Override @Override
...@@ -130,9 +140,11 @@ public class Item implements Entity { ...@@ -130,9 +140,11 @@ public class Item implements Entity {
sb.append(", bidTime=").append(bidTime); sb.append(", bidTime=").append(bidTime);
sb.append(", remark=").append(remark); sb.append(", remark=").append(remark);
sb.append(", isSetted=").append(isSetted); sb.append(", isSetted=").append(isSetted);
sb.append(", originalSourceUrl=").append(originalSourceUrl);
sb.append(", extra=").append(extra); sb.append(", extra=").append(extra);
sb.append(", images=").append(images); sb.append(", images=").append(images);
sb.append(", detail=").append(detail); sb.append(", detail=").append(detail);
sb.append(", originalExtra=").append(originalExtra);
sb.append(", serialVersionUID=").append(serialVersionUID); sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
...@@ -166,9 +178,11 @@ public class Item implements Entity { ...@@ -166,9 +178,11 @@ public class Item implements Entity {
&& (this.getBidTime() == null ? other.getBidTime() == null : this.getBidTime().equals(other.getBidTime())) && (this.getBidTime() == null ? other.getBidTime() == null : this.getBidTime().equals(other.getBidTime()))
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark())) && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
&& (this.getIsSetted() == null ? other.getIsSetted() == null : this.getIsSetted().equals(other.getIsSetted())) && (this.getIsSetted() == null ? other.getIsSetted() == null : this.getIsSetted().equals(other.getIsSetted()))
&& (this.getOriginalSourceUrl() == null ? other.getOriginalSourceUrl() == null : this.getOriginalSourceUrl().equals(other.getOriginalSourceUrl()))
&& (this.getExtra() == null ? other.getExtra() == null : this.getExtra().equals(other.getExtra())) && (this.getExtra() == null ? other.getExtra() == null : this.getExtra().equals(other.getExtra()))
&& (this.getImages() == null ? other.getImages() == null : this.getImages().equals(other.getImages())) && (this.getImages() == null ? other.getImages() == null : this.getImages().equals(other.getImages()))
&& (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail())); && (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail()))
&& (this.getOriginalExtra() == null ? other.getOriginalExtra() == null : this.getOriginalExtra().equals(other.getOriginalExtra()));
} }
@Override @Override
...@@ -191,9 +205,11 @@ public class Item implements Entity { ...@@ -191,9 +205,11 @@ public class Item implements Entity {
result = prime * result + ((getBidTime() == null) ? 0 : getBidTime().hashCode()); result = prime * result + ((getBidTime() == null) ? 0 : getBidTime().hashCode());
result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode()); result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
result = prime * result + ((getIsSetted() == null) ? 0 : getIsSetted().hashCode()); result = prime * result + ((getIsSetted() == null) ? 0 : getIsSetted().hashCode());
result = prime * result + ((getOriginalSourceUrl() == null) ? 0 : getOriginalSourceUrl().hashCode());
result = prime * result + ((getExtra() == null) ? 0 : getExtra().hashCode()); result = prime * result + ((getExtra() == null) ? 0 : getExtra().hashCode());
result = prime * result + ((getImages() == null) ? 0 : getImages().hashCode()); result = prime * result + ((getImages() == null) ? 0 : getImages().hashCode());
result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode()); result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode());
result = prime * result + ((getOriginalExtra() == null) ? 0 : getOriginalExtra().hashCode());
return result; return result;
} }
...@@ -221,9 +237,11 @@ public class Item implements Entity { ...@@ -221,9 +237,11 @@ public class Item implements Entity {
bidTime("bid_time", "bidTime", "VARCHAR", false), bidTime("bid_time", "bidTime", "VARCHAR", false),
remark("remark", "remark", "VARCHAR", false), remark("remark", "remark", "VARCHAR", false),
isSetted("is_setted", "isSetted", "INTEGER", false), isSetted("is_setted", "isSetted", "INTEGER", false),
originalSourceUrl("original_source_url", "originalSourceUrl", "VARCHAR", false),
extra("extra", "extra", "LONGVARCHAR", false), extra("extra", "extra", "LONGVARCHAR", false),
images("images", "images", "LONGVARCHAR", false), images("images", "images", "LONGVARCHAR", false),
detail("detail", "detail", "LONGVARCHAR", false); detail("detail", "detail", "LONGVARCHAR", false),
originalExtra("original_extra", "originalExtra", "LONGVARCHAR", false);
/** /**
* This field was generated by MyBatis Generator. * This field was generated by MyBatis Generator.
......
...@@ -2309,6 +2309,148 @@ public class ItemExample { ...@@ -2309,6 +2309,148 @@ public class ItemExample {
addCriterion("is_setted not between", value1, value2, "isSetted"); addCriterion("is_setted not between", value1, value2, "isSetted");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andOriginalSourceUrlIsNull() {
addCriterion("original_source_url is null");
return (Criteria) this;
}
public Criteria andOriginalSourceUrlIsNotNull() {
addCriterion("original_source_url is not null");
return (Criteria) this;
}
public Criteria andOriginalSourceUrlEqualTo(String value) {
addCriterion("original_source_url =", value, "originalSourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalSourceUrlEqualToColumn(Item.Column column) {
addCriterion(new StringBuilder("original_source_url = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalSourceUrlNotEqualTo(String value) {
addCriterion("original_source_url <>", value, "originalSourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalSourceUrlNotEqualToColumn(Item.Column column) {
addCriterion(new StringBuilder("original_source_url <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalSourceUrlGreaterThan(String value) {
addCriterion("original_source_url >", value, "originalSourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalSourceUrlGreaterThanColumn(Item.Column column) {
addCriterion(new StringBuilder("original_source_url > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalSourceUrlGreaterThanOrEqualTo(String value) {
addCriterion("original_source_url >=", value, "originalSourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalSourceUrlGreaterThanOrEqualToColumn(Item.Column column) {
addCriterion(new StringBuilder("original_source_url >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalSourceUrlLessThan(String value) {
addCriterion("original_source_url <", value, "originalSourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalSourceUrlLessThanColumn(Item.Column column) {
addCriterion(new StringBuilder("original_source_url < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalSourceUrlLessThanOrEqualTo(String value) {
addCriterion("original_source_url <=", value, "originalSourceUrl");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table item
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andOriginalSourceUrlLessThanOrEqualToColumn(Item.Column column) {
addCriterion(new StringBuilder("original_source_url <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andOriginalSourceUrlLike(String value) {
addCriterion("original_source_url like", value, "originalSourceUrl");
return (Criteria) this;
}
public Criteria andOriginalSourceUrlNotLike(String value) {
addCriterion("original_source_url not like", value, "originalSourceUrl");
return (Criteria) this;
}
public Criteria andOriginalSourceUrlIn(List<String> values) {
addCriterion("original_source_url in", values, "originalSourceUrl");
return (Criteria) this;
}
public Criteria andOriginalSourceUrlNotIn(List<String> values) {
addCriterion("original_source_url not in", values, "originalSourceUrl");
return (Criteria) this;
}
public Criteria andOriginalSourceUrlBetween(String value1, String value2) {
addCriterion("original_source_url between", value1, value2, "originalSourceUrl");
return (Criteria) this;
}
public Criteria andOriginalSourceUrlNotBetween(String value1, String value2) {
addCriterion("original_source_url not between", value1, value2, "originalSourceUrl");
return (Criteria) this;
}
} }
public static class Criteria extends GeneratedCriteria { public static class Criteria extends GeneratedCriteria {
......
package com.wwdz.ch.db.mapper;
import com.wwdz.ch.db.domain.Coins;
import com.wwdz.ch.db.domain.CoinsExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface CoinsMapper {
long countByExample(CoinsExample example);
int deleteByExample(CoinsExample example);
int deleteByPrimaryKey(Long id);
int insert(Coins record);
int insertSelective(Coins record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Coins selectOneByExample(CoinsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Coins selectOneByExampleSelective(@Param("example") CoinsExample example, @Param("selective") Coins.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Coins selectOneByExampleWithBLOBs(CoinsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<Coins> selectByExampleSelective(@Param("example") CoinsExample example, @Param("selective") Coins.Column ... selective);
List<Coins> selectByExampleWithBLOBs(CoinsExample example);
List<Coins> selectByExample(CoinsExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table coins
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Coins selectByPrimaryKeySelective(@Param("id") Long id, @Param("selective") Coins.Column ... selective);
Coins selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Coins record, @Param("example") CoinsExample example);
int updateByExampleWithBLOBs(@Param("record") Coins record, @Param("example") CoinsExample example);
int updateByExample(@Param("record") Coins record, @Param("example") CoinsExample example);
int updateByPrimaryKeySelective(Coins record);
int updateByPrimaryKeyWithBLOBs(Coins record);
int updateByPrimaryKey(Coins record);
}
\ No newline at end of file
...@@ -6,7 +6,6 @@ import java.util.List; ...@@ -6,7 +6,6 @@ import java.util.List;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
@Mapper @Mapper
public interface ItemMapper { public interface ItemMapper {
long countByExample(ItemExample example); long countByExample(ItemExample example);
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.wwdz.ch.db.mapper.CoinsMapper">
<resultMap id="BaseResultMap" type="com.wwdz.ch.db.domain.Coins">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="cid" jdbcType="INTEGER" property="cid" />
<result column="is_std" jdbcType="BIT" property="isStd" />
<result column="price" jdbcType="BIGINT" property="price" />
<result column="created" jdbcType="TIMESTAMP" property="created" />
<result column="updated" jdbcType="TIMESTAMP" property="updated" />
<result column="is_deleted" jdbcType="BIT" property="isDeleted" />
<result column="bid_time" jdbcType="TIMESTAMP" property="bidTime" />
<result column="source_url" jdbcType="VARCHAR" property="sourceUrl" />
<result column="source" jdbcType="INTEGER" property="source" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.wwdz.ch.db.domain.Coins">
<result column="extra" jdbcType="LONGVARCHAR" property="extra" />
<result column="images" jdbcType="LONGVARCHAR" property="images" />
<result column="detail" jdbcType="LONGVARCHAR" property="detail" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, `name`, cid, is_std, price, created, updated, is_deleted, bid_time, source_url,
`source`
</sql>
<sql id="Blob_Column_List">
extra, images, detail
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.wwdz.ch.db.domain.CoinsExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
'true' as QUERYID,
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from coins
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.wwdz.ch.db.domain.CoinsExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
'true' as QUERYID,
<include refid="Base_Column_List" />
from coins
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExampleSelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<if test="example.distinct">
distinct
</if>
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, `name`, cid, is_std, price, created, updated, is_deleted, bid_time, source_url,
`source`, extra, images, detail
</otherwise>
</choose>
from coins
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
<if test="example.orderByClause != null">
order by ${example.orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from coins
where id = #{id,jdbcType=BIGINT}
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, `name`, cid, is_std, price, created, updated, is_deleted, bid_time, source_url,
`source`, extra, images, detail
</otherwise>
</choose>
from coins
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from coins
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.wwdz.ch.db.domain.CoinsExample">
delete from coins
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.wwdz.ch.db.domain.Coins">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into coins (`name`, cid, is_std,
price, created, updated,
is_deleted, bid_time, source_url,
`source`, extra, images,
detail)
values (#{name,jdbcType=VARCHAR}, #{cid,jdbcType=INTEGER}, #{isStd,jdbcType=BIT},
#{price,jdbcType=BIGINT}, #{created,jdbcType=TIMESTAMP}, #{updated,jdbcType=TIMESTAMP},
#{isDeleted,jdbcType=BIT}, #{bidTime,jdbcType=TIMESTAMP}, #{sourceUrl,jdbcType=VARCHAR},
#{source,jdbcType=INTEGER}, #{extra,jdbcType=LONGVARCHAR}, #{images,jdbcType=LONGVARCHAR},
#{detail,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.Coins">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into coins
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
`name`,
</if>
<if test="cid != null">
cid,
</if>
<if test="isStd != null">
is_std,
</if>
<if test="price != null">
price,
</if>
<if test="created != null">
created,
</if>
<if test="updated != null">
updated,
</if>
<if test="isDeleted != null">
is_deleted,
</if>
<if test="bidTime != null">
bid_time,
</if>
<if test="sourceUrl != null">
source_url,
</if>
<if test="source != null">
`source`,
</if>
<if test="extra != null">
extra,
</if>
<if test="images != null">
images,
</if>
<if test="detail != null">
detail,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="cid != null">
#{cid,jdbcType=INTEGER},
</if>
<if test="isStd != null">
#{isStd,jdbcType=BIT},
</if>
<if test="price != null">
#{price,jdbcType=BIGINT},
</if>
<if test="created != null">
#{created,jdbcType=TIMESTAMP},
</if>
<if test="updated != null">
#{updated,jdbcType=TIMESTAMP},
</if>
<if test="isDeleted != null">
#{isDeleted,jdbcType=BIT},
</if>
<if test="bidTime != null">
#{bidTime,jdbcType=TIMESTAMP},
</if>
<if test="sourceUrl != null">
#{sourceUrl,jdbcType=VARCHAR},
</if>
<if test="source != null">
#{source,jdbcType=INTEGER},
</if>
<if test="extra != null">
#{extra,jdbcType=LONGVARCHAR},
</if>
<if test="images != null">
#{images,jdbcType=LONGVARCHAR},
</if>
<if test="detail != null">
#{detail,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.wwdz.ch.db.domain.CoinsExample" resultType="java.lang.Long">
select count(*) from coins
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update coins
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.cid != null">
cid = #{record.cid,jdbcType=INTEGER},
</if>
<if test="record.isStd != null">
is_std = #{record.isStd,jdbcType=BIT},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=BIGINT},
</if>
<if test="record.created != null">
created = #{record.created,jdbcType=TIMESTAMP},
</if>
<if test="record.updated != null">
updated = #{record.updated,jdbcType=TIMESTAMP},
</if>
<if test="record.isDeleted != null">
is_deleted = #{record.isDeleted,jdbcType=BIT},
</if>
<if test="record.bidTime != null">
bid_time = #{record.bidTime,jdbcType=TIMESTAMP},
</if>
<if test="record.sourceUrl != null">
source_url = #{record.sourceUrl,jdbcType=VARCHAR},
</if>
<if test="record.source != null">
`source` = #{record.source,jdbcType=INTEGER},
</if>
<if test="record.extra != null">
extra = #{record.extra,jdbcType=LONGVARCHAR},
</if>
<if test="record.images != null">
images = #{record.images,jdbcType=LONGVARCHAR},
</if>
<if test="record.detail != null">
detail = #{record.detail,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update coins
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
cid = #{record.cid,jdbcType=INTEGER},
is_std = #{record.isStd,jdbcType=BIT},
price = #{record.price,jdbcType=BIGINT},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
bid_time = #{record.bidTime,jdbcType=TIMESTAMP},
source_url = #{record.sourceUrl,jdbcType=VARCHAR},
`source` = #{record.source,jdbcType=INTEGER},
extra = #{record.extra,jdbcType=LONGVARCHAR},
images = #{record.images,jdbcType=LONGVARCHAR},
detail = #{record.detail,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update coins
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
cid = #{record.cid,jdbcType=INTEGER},
is_std = #{record.isStd,jdbcType=BIT},
price = #{record.price,jdbcType=BIGINT},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
bid_time = #{record.bidTime,jdbcType=TIMESTAMP},
source_url = #{record.sourceUrl,jdbcType=VARCHAR},
`source` = #{record.source,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.wwdz.ch.db.domain.Coins">
update coins
<set>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="cid != null">
cid = #{cid,jdbcType=INTEGER},
</if>
<if test="isStd != null">
is_std = #{isStd,jdbcType=BIT},
</if>
<if test="price != null">
price = #{price,jdbcType=BIGINT},
</if>
<if test="created != null">
created = #{created,jdbcType=TIMESTAMP},
</if>
<if test="updated != null">
updated = #{updated,jdbcType=TIMESTAMP},
</if>
<if test="isDeleted != null">
is_deleted = #{isDeleted,jdbcType=BIT},
</if>
<if test="bidTime != null">
bid_time = #{bidTime,jdbcType=TIMESTAMP},
</if>
<if test="sourceUrl != null">
source_url = #{sourceUrl,jdbcType=VARCHAR},
</if>
<if test="source != null">
`source` = #{source,jdbcType=INTEGER},
</if>
<if test="extra != null">
extra = #{extra,jdbcType=LONGVARCHAR},
</if>
<if test="images != null">
images = #{images,jdbcType=LONGVARCHAR},
</if>
<if test="detail != null">
detail = #{detail,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.wwdz.ch.db.domain.Coins">
update coins
set `name` = #{name,jdbcType=VARCHAR},
cid = #{cid,jdbcType=INTEGER},
is_std = #{isStd,jdbcType=BIT},
price = #{price,jdbcType=BIGINT},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
bid_time = #{bidTime,jdbcType=TIMESTAMP},
source_url = #{sourceUrl,jdbcType=VARCHAR},
`source` = #{source,jdbcType=INTEGER},
extra = #{extra,jdbcType=LONGVARCHAR},
images = #{images,jdbcType=LONGVARCHAR},
detail = #{detail,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.wwdz.ch.db.domain.Coins">
update coins
set `name` = #{name,jdbcType=VARCHAR},
cid = #{cid,jdbcType=INTEGER},
is_std = #{isStd,jdbcType=BIT},
price = #{price,jdbcType=BIGINT},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
bid_time = #{bidTime,jdbcType=TIMESTAMP},
source_url = #{sourceUrl,jdbcType=VARCHAR},
`source` = #{source,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.CoinsExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include refid="Base_Column_List" />
from coins
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
limit 1
</select>
<select id="selectOneByExampleWithBLOBs" parameterType="com.wwdz.ch.db.domain.CoinsExample" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from coins
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
limit 1
</select>
<select id="selectOneByExampleSelective" parameterType="map" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
'true' as QUERYID,
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, `name`, cid, is_std, price, created, updated, is_deleted, bid_time, source_url,
`source`, extra, images, detail
</otherwise>
</choose>
from coins
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
<if test="example.orderByClause != null">
order by ${example.orderByClause}
</if>
limit 1
</select>
</mapper>
\ No newline at end of file
...@@ -18,11 +18,13 @@ ...@@ -18,11 +18,13 @@
<result column="bid_time" jdbcType="VARCHAR" property="bidTime" /> <result column="bid_time" jdbcType="VARCHAR" property="bidTime" />
<result column="remark" jdbcType="VARCHAR" property="remark" /> <result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="is_setted" jdbcType="INTEGER" property="isSetted" /> <result column="is_setted" jdbcType="INTEGER" property="isSetted" />
<result column="original_source_url" jdbcType="VARCHAR" property="originalSourceUrl" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.wwdz.ch.db.domain.Item"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.wwdz.ch.db.domain.Item">
<result column="extra" jdbcType="LONGVARCHAR" property="extra" /> <result column="extra" jdbcType="LONGVARCHAR" property="extra" />
<result column="images" jdbcType="LONGVARCHAR" property="images" /> <result column="images" jdbcType="LONGVARCHAR" property="images" />
<result column="detail" jdbcType="LONGVARCHAR" property="detail" /> <result column="detail" jdbcType="LONGVARCHAR" property="detail" />
<result column="original_extra" jdbcType="LONGVARCHAR" property="originalExtra" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -84,10 +86,10 @@ ...@@ -84,10 +86,10 @@
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, `name`, cid, is_on_sale, is_std, sort, share_image, top_image, price, create_time, id, `name`, cid, is_on_sale, is_std, sort, share_image, top_image, price, create_time,
source_type, update_time, is_deleted, bid_time, remark, is_setted source_type, update_time, is_deleted, bid_time, remark, is_setted, original_source_url
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
extra, images, detail extra, images, detail, original_extra
</sql> </sql>
<select id="selectByExampleWithBLOBs" parameterType="com.wwdz.ch.db.domain.ItemExample" resultMap="ResultMapWithBLOBs"> <select id="selectByExampleWithBLOBs" parameterType="com.wwdz.ch.db.domain.ItemExample" resultMap="ResultMapWithBLOBs">
select select
...@@ -140,8 +142,8 @@ ...@@ -140,8 +142,8 @@
</when> </when>
<otherwise> <otherwise>
id, `name`, cid, is_on_sale, is_std, sort, share_image, top_image, price, create_time, id, `name`, cid, is_on_sale, is_std, sort, share_image, top_image, price, create_time,
source_type, update_time, is_deleted, bid_time, remark, is_setted, extra, images, source_type, update_time, is_deleted, bid_time, remark, is_setted, original_source_url,
detail extra, images, detail, original_extra
</otherwise> </otherwise>
</choose> </choose>
from item from item
...@@ -175,8 +177,8 @@ ...@@ -175,8 +177,8 @@
</when> </when>
<otherwise> <otherwise>
id, `name`, cid, is_on_sale, is_std, sort, share_image, top_image, price, create_time, id, `name`, cid, is_on_sale, is_std, sort, share_image, top_image, price, create_time,
source_type, update_time, is_deleted, bid_time, remark, is_setted, extra, images, source_type, update_time, is_deleted, bid_time, remark, is_setted, original_source_url,
detail extra, images, detail, original_extra
</otherwise> </otherwise>
</choose> </choose>
from item from item
...@@ -196,20 +198,20 @@ ...@@ -196,20 +198,20 @@
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID() SELECT LAST_INSERT_ID()
</selectKey> </selectKey>
insert into item (`name`, cid, is_on_sale, insert into item_temp (`name`, cid, is_on_sale,
is_std, sort, share_image, is_std, sort, share_image,
top_image, price, create_time, top_image, price, create_time,
source_type, update_time, is_deleted, source_type, update_time, is_deleted,
bid_time, remark, is_setted, bid_time, remark, is_setted,
extra, images, detail original_source_url, extra, images,
) detail, original_extra)
values (#{name,jdbcType=VARCHAR}, #{cid,jdbcType=INTEGER}, #{isOnSale,jdbcType=BIT}, values (#{name,jdbcType=VARCHAR}, #{cid,jdbcType=INTEGER}, #{isOnSale,jdbcType=BIT},
#{isStd,jdbcType=BIT}, #{sort,jdbcType=INTEGER}, #{shareImage,jdbcType=VARCHAR}, #{isStd,jdbcType=BIT}, #{sort,jdbcType=INTEGER}, #{shareImage,jdbcType=VARCHAR},
#{topImage,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{topImage,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{sourceType,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT}, #{sourceType,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT},
#{bidTime,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{isSetted,jdbcType=INTEGER}, #{bidTime,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{isSetted,jdbcType=INTEGER},
#{extra,jdbcType=LONGVARCHAR}, #{images,jdbcType=LONGVARCHAR}, #{detail,jdbcType=LONGVARCHAR} #{originalSourceUrl,jdbcType=VARCHAR}, #{extra,jdbcType=LONGVARCHAR}, #{images,jdbcType=LONGVARCHAR},
) #{detail,jdbcType=LONGVARCHAR}, #{originalExtra,jdbcType=LONGVARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.Item"> <insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.Item">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
...@@ -262,6 +264,9 @@ ...@@ -262,6 +264,9 @@
<if test="isSetted != null"> <if test="isSetted != null">
is_setted, is_setted,
</if> </if>
<if test="originalSourceUrl != null">
original_source_url,
</if>
<if test="extra != null"> <if test="extra != null">
extra, extra,
</if> </if>
...@@ -271,6 +276,9 @@ ...@@ -271,6 +276,9 @@
<if test="detail != null"> <if test="detail != null">
detail, detail,
</if> </if>
<if test="originalExtra != null">
original_extra,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null"> <if test="name != null">
...@@ -318,6 +326,9 @@ ...@@ -318,6 +326,9 @@
<if test="isSetted != null"> <if test="isSetted != null">
#{isSetted,jdbcType=INTEGER}, #{isSetted,jdbcType=INTEGER},
</if> </if>
<if test="originalSourceUrl != null">
#{originalSourceUrl,jdbcType=VARCHAR},
</if>
<if test="extra != null"> <if test="extra != null">
#{extra,jdbcType=LONGVARCHAR}, #{extra,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -327,6 +338,9 @@ ...@@ -327,6 +338,9 @@
<if test="detail != null"> <if test="detail != null">
#{detail,jdbcType=LONGVARCHAR}, #{detail,jdbcType=LONGVARCHAR},
</if> </if>
<if test="originalExtra != null">
#{originalExtra,jdbcType=LONGVARCHAR},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.wwdz.ch.db.domain.ItemExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.wwdz.ch.db.domain.ItemExample" resultType="java.lang.Long">
...@@ -386,6 +400,9 @@ ...@@ -386,6 +400,9 @@
<if test="record.isSetted != null"> <if test="record.isSetted != null">
is_setted = #{record.isSetted,jdbcType=INTEGER}, is_setted = #{record.isSetted,jdbcType=INTEGER},
</if> </if>
<if test="record.originalSourceUrl != null">
original_source_url = #{record.originalSourceUrl,jdbcType=VARCHAR},
</if>
<if test="record.extra != null"> <if test="record.extra != null">
extra = #{record.extra,jdbcType=LONGVARCHAR}, extra = #{record.extra,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -395,6 +412,9 @@ ...@@ -395,6 +412,9 @@
<if test="record.detail != null"> <if test="record.detail != null">
detail = #{record.detail,jdbcType=LONGVARCHAR}, detail = #{record.detail,jdbcType=LONGVARCHAR},
</if> </if>
<if test="record.originalExtra != null">
original_extra = #{record.originalExtra,jdbcType=LONGVARCHAR},
</if>
</set> </set>
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
...@@ -418,9 +438,11 @@ ...@@ -418,9 +438,11 @@
bid_time = #{record.bidTime,jdbcType=VARCHAR}, bid_time = #{record.bidTime,jdbcType=VARCHAR},
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
is_setted = #{record.isSetted,jdbcType=INTEGER}, is_setted = #{record.isSetted,jdbcType=INTEGER},
original_source_url = #{record.originalSourceUrl,jdbcType=VARCHAR},
extra = #{record.extra,jdbcType=LONGVARCHAR}, extra = #{record.extra,jdbcType=LONGVARCHAR},
images = #{record.images,jdbcType=LONGVARCHAR}, images = #{record.images,jdbcType=LONGVARCHAR},
detail = #{record.detail,jdbcType=LONGVARCHAR} detail = #{record.detail,jdbcType=LONGVARCHAR},
original_extra = #{record.originalExtra,jdbcType=LONGVARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -442,7 +464,8 @@ ...@@ -442,7 +464,8 @@
is_deleted = #{record.isDeleted,jdbcType=BIT}, is_deleted = #{record.isDeleted,jdbcType=BIT},
bid_time = #{record.bidTime,jdbcType=VARCHAR}, bid_time = #{record.bidTime,jdbcType=VARCHAR},
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
is_setted = #{record.isSetted,jdbcType=INTEGER} is_setted = #{record.isSetted,jdbcType=INTEGER},
original_source_url = #{record.originalSourceUrl,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -495,6 +518,9 @@ ...@@ -495,6 +518,9 @@
<if test="isSetted != null"> <if test="isSetted != null">
is_setted = #{isSetted,jdbcType=INTEGER}, is_setted = #{isSetted,jdbcType=INTEGER},
</if> </if>
<if test="originalSourceUrl != null">
original_source_url = #{originalSourceUrl,jdbcType=VARCHAR},
</if>
<if test="extra != null"> <if test="extra != null">
extra = #{extra,jdbcType=LONGVARCHAR}, extra = #{extra,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -504,6 +530,9 @@ ...@@ -504,6 +530,9 @@
<if test="detail != null"> <if test="detail != null">
detail = #{detail,jdbcType=LONGVARCHAR}, detail = #{detail,jdbcType=LONGVARCHAR},
</if> </if>
<if test="originalExtra != null">
original_extra = #{originalExtra,jdbcType=LONGVARCHAR},
</if>
</set> </set>
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
...@@ -524,9 +553,11 @@ ...@@ -524,9 +553,11 @@
bid_time = #{bidTime,jdbcType=VARCHAR}, bid_time = #{bidTime,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
is_setted = #{isSetted,jdbcType=INTEGER}, is_setted = #{isSetted,jdbcType=INTEGER},
original_source_url = #{originalSourceUrl,jdbcType=VARCHAR},
extra = #{extra,jdbcType=LONGVARCHAR}, extra = #{extra,jdbcType=LONGVARCHAR},
images = #{images,jdbcType=LONGVARCHAR}, images = #{images,jdbcType=LONGVARCHAR},
detail = #{detail,jdbcType=LONGVARCHAR} detail = #{detail,jdbcType=LONGVARCHAR},
original_extra = #{originalExtra,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.wwdz.ch.db.domain.Item"> <update id="updateByPrimaryKey" parameterType="com.wwdz.ch.db.domain.Item">
...@@ -545,7 +576,8 @@ ...@@ -545,7 +576,8 @@
is_deleted = #{isDeleted,jdbcType=BIT}, is_deleted = #{isDeleted,jdbcType=BIT},
bid_time = #{bidTime,jdbcType=VARCHAR}, bid_time = #{bidTime,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
is_setted = #{isSetted,jdbcType=INTEGER} is_setted = #{isSetted,jdbcType=INTEGER},
original_source_url = #{originalSourceUrl,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
<select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.ItemExample" resultMap="BaseResultMap"> <select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.ItemExample" resultMap="BaseResultMap">
...@@ -602,8 +634,8 @@ ...@@ -602,8 +634,8 @@
</when> </when>
<otherwise> <otherwise>
id, `name`, cid, is_on_sale, is_std, sort, share_image, top_image, price, create_time, id, `name`, cid, is_on_sale, is_std, sort, share_image, top_image, price, create_time,
source_type, update_time, is_deleted, bid_time, remark, is_setted, extra, images, source_type, update_time, is_deleted, bid_time, remark, is_setted, original_source_url,
detail extra, images, detail, original_extra
</otherwise> </otherwise>
</choose> </choose>
from item from item
......
Markdown is supported
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