Commit 155bd764 authored by xiaoyao's avatar xiaoyao

fix

parent 8522c7f6
......@@ -16,6 +16,18 @@
</properties>
<dependencies>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>com.wwdz</groupId>
<artifactId>ch-core</artifactId>
......
package com.wwdz.ch.admin.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import java.util.ArrayList;
@Configuration
@EnableSwagger2
public class SwaggerConfig {
@Bean
public Docket docket(Environment environment) {
return new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.select()
//指定包名 basePackage
.apis(RequestHandlerSelectors.basePackage("com.wwdz.ch.admin.web"))
//再次过滤(根据接口过滤)
.paths(PathSelectors.any())
.build();
}
private ApiInfo apiInfo() {
//contact 维护接口人信息
Contact contact = new Contact("xiaoyao", "", "");
return new ApiInfo(
//标题
"泉库后端文档",
//描述
"增加注释,实时更新,在线测试",
//版本
"v1.0",
//服务条款网址
"urn:tos",
//维护人信息
contact,
//许可
"Apache 2.0",
//许可链接
"http://www.apache.org/licenses/LICENSE-2.0",
new ArrayList());
}
}
package com.wwdz.ch.admin.dao;
import com.qiniu.util.StringUtils;
import com.wwdz.ch.db.domain.BidRecord;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
@ApiModel(value = "BidRecordVo", description = "成交记录前端交互VO")
public class BidRecordVo implements Serializable {
private static final long serialVersionUID = 4014894220574552837L;
@ApiModelProperty(value = "成交记录id", name = "id")
private Long id;
@ApiModelProperty(value = "购买人", name = "buyer")
private String buyer;
@ApiModelProperty(value = "购买平台", name = "platform")
private String platform;
@ApiModelProperty(value = "分类Id", name = "cid")
private Integer cid;
@ApiModelProperty(value = "图片", name = "images")
private List<String> images;
@ApiModelProperty(value = "成交时间", name = "bidtime")
private Integer bidtime;
@ApiModelProperty(value = "成交价格", name = "price")
private Long price;
public BidRecord toDo() {
BidRecord record = new BidRecord();
record.setBidtime(bidtime);
record.setBuyer(buyer);
record.setIsDeleted(false);
record.setCid(cid);
record.setImages(StringUtils.join(images, ";"));
record.setPlatform(platform);
record.setPrice(price);
record.setExtra("");
record.setLink("");
return record;
}
public BidRecordVo() {}
public BidRecordVo(BidRecord record) {
this.id = record.getId();
this.cid = record.getCid();
this.images = Arrays.asList(record.getImages().split(";"));
this.bidtime = record.getBidtime();
this.price = record.getPrice();
this.buyer = record.getBuyer();
this.platform = record.getPlatform();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getBuyer() {
return buyer;
}
public void setBuyer(String buyer) {
this.buyer = buyer;
}
public String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
this.platform = platform;
}
public Integer getCid() {
return cid;
}
public void setCid(Integer cid) {
this.cid = cid;
}
public List<String> getImages() {
return images;
}
public void setImages(List<String> images) {
this.images = images;
}
public Integer getBidtime() {
return bidtime;
}
public void setBidtime(Integer bidtime) {
this.bidtime = bidtime;
}
public Long getPrice() {
return price;
}
public void setPrice(Long price) {
this.price = price;
}
}
......@@ -2,6 +2,8 @@ package com.wwdz.ch.admin.dao;
import com.alibaba.druid.support.json.JSONUtils;
import com.wwdz.ch.db.domain.Category;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.util.StringUtils;
import java.io.Serializable;
......@@ -9,86 +11,98 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ApiModel
public class CategoryVo implements Serializable {
private static final long serialVersionUID = 96458407347975312L;
/**
* 类目ID
*/
@ApiModelProperty(value = "分类Id")
private Integer id;
/**
* 类目名称
*/
@ApiModelProperty(value = "分类名称")
private String name;
/**
* 类目图标
*/
@ApiModelProperty(value = "分类图片")
private String icon;
/**
* 父类目id
*/
@ApiModelProperty(value = "父类目ID")
private Integer pid;
/**
* 层级
*/
@ApiModelProperty(value = "层级")
private Integer level;
/**
* 描述
*/
@ApiModelProperty(value = "描述")
private String desc;
/**
* 铸造时间
*/
@ApiModelProperty(value = "面值")
private String parValue;
@ApiModelProperty(value = "命名来源")
private String nameSrc;
@ApiModelProperty(value = "造币厂")
private String mint;
@ApiModelProperty(value = "铸造时间")
private String publishTime;
/**
* 铸造者
*/
@ApiModelProperty(value = "铸造者")
private String publisher;
/**
* 王朝
*/
@ApiModelProperty(value = "王朝")
private String dynasty;
/**
* 品种代码
*/
@ApiModelProperty(value = "品种代码")
private String serialNo;
/**
* 分类
*/
@ApiModelProperty(value = "分类路径")
private String categoryPath;
/**
* 扩展名称
*/
@ApiModelProperty(value = "扩展名称")
private String extendName;
/**
* 直径 (mm * 100)
*/
@ApiModelProperty(value = "材质")
private String material;
@ApiModelProperty(value = "直径 (mm * 100)")
private Integer diameter;
/**
* 厚度 (mm * 100)
*/
@ApiModelProperty(value = " 厚度 (mm * 100)")
private Integer thickness;
@ApiModelProperty(value = "重量 (g * 100)")
private Integer weight;
@ApiModelProperty(value = "合金成分分析表图片路径")
private String caTableImage;
@ApiModelProperty(value = "是否叶子节点")
private Boolean isLeaf;
@ApiModelProperty(value = "存世量")
private Integer exiQuantity;
/**
*重量 (g * 100)
* 子类目
*/
private Integer weight;
private List<CategoryVo> children;
public String getCaTableImage() {
return caTableImage;
}
public void setCaTableImage(String caTableImage) {
this.caTableImage = caTableImage;
}
public Boolean getLeaf() {
return isLeaf;
......@@ -98,42 +112,37 @@ public class CategoryVo implements Serializable {
isLeaf = leaf;
}
/**
* 是否叶子节点
*/
private Boolean isLeaf;
public String getParValue() {
return parValue;
}
/**
* 当前所有人(传承链这块还要重新设计,暂时只存当前拥有人)
*/
private String owner;
public void setParValue(String parValue) {
this.parValue = parValue;
}
/**
* 面值
*/
private String parValue;
public String getNameSrc() {
return nameSrc;
}
/**
* 存世量
*/
private String exiQuantity;
public void setNameSrc(String nameSrc) {
this.nameSrc = nameSrc;
}
/**
* 材质
*/
private String material;
public String getMint() {
return mint;
}
/**
* 详细图片
*/
private String images;
public void setMint(String mint) {
this.mint = mint;
}
public String getMaterial() {
return material;
}
/**
* 子类目
*/
private List<CategoryVo> children;
public void setMaterial(String material) {
this.material = material;
}
public CategoryVo(){}
......@@ -149,18 +158,18 @@ public class CategoryVo implements Serializable {
Map<String, Object> extraData = (Map<String, Object>) JSONUtils.parse(category.getExtra());
this.publishTime = extractExtra(extraData, "publishTime");
this.publisher = extractExtra(extraData, "publisher");
this.exiQuantity = extractExtra(extraData, "exiQuantity");
this.parValue = extractExtra(extraData, "parValue");
this.material = extractExtra(extraData, "material");
this.images = extractExtra(extraData, "images");
this.exiQuantity = extractExtraInt(extraData, "exiQuantity");
this.dynasty = extractExtra(extraData, "dynasty");
this.diameter = extractExtraInt(extraData, "diameter");
this.thickness = extractExtraInt(extraData, "thickness");
this.weight = extractExtraInt(extraData, "weight");
this.owner = extractExtra(extraData, "owner");
this.extendName = extractExtra(extraData, "extendName");
this.serialNo = extractExtra(extraData, "serialNo");
this.caTableImage = extractExtra(extraData, "caTableImage");
this.nameSrc = extractExtra(extraData, "nameSrc");
this.mint = extractExtra(extraData, "mint");
this.parValue = extractExtra(extraData, "parValue");
this.material = extractExtra(extraData, "material");
}
}
......@@ -236,37 +245,14 @@ public class CategoryVo implements Serializable {
this.publisher = publisher;
}
public String getParValue() {
return parValue;
}
public void setParValue(String parValue) {
this.parValue = parValue;
}
public String getExiQuantity() {
public Integer getExiQuantity() {
return exiQuantity;
}
public void setExiQuantity(String exiQuantity) {
public void setExiQuantity(Integer exiQuantity) {
this.exiQuantity = exiQuantity;
}
public String getMaterial() {
return material;
}
public void setMaterial(String material) {
this.material = material;
}
public String getImages() {
return images;
}
public void setImages(String images) {
this.images = images;
}
public String getDynasty() {
return dynasty;
......@@ -324,14 +310,6 @@ public class CategoryVo implements Serializable {
this.weight = weight;
}
public String getOwner() {
return owner;
}
public void setOwner(String owner) {
this.owner = owner;
}
private String extractExtra(Map<String, Object> extraData, String key) {
if (null != extraData.get(key)) {
return extraData.get(key).toString();
......@@ -340,7 +318,7 @@ public class CategoryVo implements Serializable {
}
private Integer extractExtraInt(Map<String, Object> extraData, String key) {
if (null != extraData.get(key)) {
if (!StringUtils.isEmpty(extraData.get(key))) {
return Integer.valueOf(extraData.get(key).toString());
}
return null;
......@@ -362,17 +340,18 @@ public class CategoryVo implements Serializable {
Map<String, Object> extraObj = new HashMap<>();
extraObj.put("publishTime", this.publishTime);
extraObj.put("publisher", this.publisher);
extraObj.put("parValue", this.parValue);
extraObj.put("exiQuantity", this.exiQuantity);
extraObj.put("material", this.material);
extraObj.put("images", this.images);
extraObj.put("owner", this.owner);
extraObj.put("mint", this.mint);
extraObj.put("parValue", this.parValue);
extraObj.put("nameSrc",this.nameSrc);
extraObj.put("caTableImage", this.caTableImage);
extraObj.put("diameter", this.diameter);
extraObj.put("dynasty", this.dynasty);
extraObj.put("extendName", this.extendName);
extraObj.put("serialNo", this.serialNo);
extraObj.put("thickness", this.thickness);
extraObj.put("weight", this.weight);
extraObj.put("material", this.material);
return JSONUtils.toJSONString(extraObj);
}
}
package com.wwdz.ch.admin.web;
import com.wwdz.ch.admin.dao.BidRecordVo;
import com.wwdz.ch.admin.util.AuthSupport;
import com.wwdz.ch.core.type.ListResult;
import com.wwdz.ch.core.type.SimpleResult;
import com.wwdz.ch.db.domain.BidRecord;
import com.wwdz.ch.db.service.BidRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.stream.Collectors;
@RestController
@RequestMapping("/admin/bidrecord")
@Validated
@Api
public class BidRecordController {
private static final Logger logger = LoggerFactory.getLogger(CategoryController.class);
@Autowired
private BidRecordService bidRecordService;
// @RequiresPermissions("admin:category:list")
// @RequiresPermissionsDesc(menu = { "商场管理", "成交记录管理" }, button = "查询")
@GetMapping("/list")
@ApiOperation(value = "成交记录列表")
public ListResult<BidRecordVo> list(@ApiParam("分类id") Integer cid) {
logger.info("【请求开始】操作人:[" + AuthSupport.userName()+ "] 商场管理->成交记录->查询,请求参数:cid:{}", cid);
List<BidRecord> collectList = bidRecordService.queryByCid(cid);
List<BidRecordVo> data = collectList.parallelStream().map(a -> new BidRecordVo(a)).collect(Collectors.toList());
return new ListResult<BidRecordVo>(data, data.size());
}
@PostMapping("/add")
@ApiOperation(value = "添加成交记录")
public SimpleResult<Boolean> add(@ApiParam("成交记录数据") @RequestBody BidRecordVo record) {
bidRecordService.add(record.toDo());
return new SimpleResult<>(true);
}
@GetMapping("/delete")
@ApiOperation(value = "删除成交记录")
public SimpleResult<Boolean> delete(@ApiParam("成交记录ID") @NotNull Long id) {
bidRecordService.deleteById(id);
return new SimpleResult<>(true);
}
}
package com.wwdz.ch.admin.web;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.validation.constraints.NotNull;
import com.wwdz.ch.admin.annotation.RequiresPermissionsDesc;
import com.wwdz.ch.admin.dao.CategoryVo;
import com.wwdz.ch.admin.util.AuthSupport;
import com.wwdz.ch.admin.util.CatVo;
import com.wwdz.ch.core.type.ListResult;
import com.wwdz.ch.db.domain.Category;
import com.wwdz.ch.db.service.CategoryService;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
......@@ -36,8 +37,8 @@ import com.wwdz.ch.db.domain.DtsCategory;
@RestController
@RequestMapping("/admin/category")
@Validated
public class AdminCategoryController {
private static final Logger logger = LoggerFactory.getLogger(AdminCategoryController.class);
public class CategoryController {
private static final Logger logger = LoggerFactory.getLogger(CategoryController.class);
@Autowired
private CategoryService categoryService;
......@@ -45,26 +46,22 @@ public class AdminCategoryController {
@RequiresPermissions("admin:category:list")
@RequiresPermissionsDesc(menu = { "商场管理", "类目管理" }, button = "查询")
@GetMapping("/list")
public Object list(String id, String name, @RequestParam(defaultValue = "1") Integer page,
@RequestParam(defaultValue = "10") Integer limit,
@Sort @RequestParam(defaultValue = "add_time") String sort,
@Order @RequestParam(defaultValue = "desc") String order) {
public ListResult<CategoryVo> list(String id, String name, @RequestParam(defaultValue = "1") Integer page,
@RequestParam(defaultValue = "10") Integer limit,
@Sort @RequestParam(defaultValue = "add_time") String sort,
@Order @RequestParam(defaultValue = "desc") String order) {
logger.info("【请求开始】操作人:[" + AuthSupport.userName()+ "] 商场管理->类目管理->查询,请求参数:name:{},page:{}", name, page);
List<Category> collectList = categoryService.querySelective(id, name, page, limit, sort, order);
long total = PageInfo.of(collectList).getTotal();
Map<String, Object> data = new HashMap<>();
data.put("total", total);
data.put("items", collectList);
List<CategoryVo> data = collectList.parallelStream().map(a -> new CategoryVo(a)).collect(Collectors.toList());
logger.info("【请求结束】商场管理->类目管理->查询:total:{}", JSONObject.toJSONString(data));
return ResponseUtil.ok(data);
return new ListResult<>(data, data.size());
}
@RequiresPermissions("admin:category:tree")
@RequiresPermissionsDesc(menu = { "商场管理", "类目管理" }, button = "查询")
@GetMapping("/tree")
public Object tree() {
public ListResult<CategoryVo> tree() {
logger.info("【请求开始】操作人:[" + AuthSupport.userName()+ "] 查询类目树");
/**
* 获取最大深度
......@@ -91,10 +88,8 @@ public class AdminCategoryController {
--level;
}
Map<String, Object> data = new HashMap<>();
data.put("categories", parentCategoryMap.get(0));
logger.info("【请求结束】查询类目树 : {}", JSONObject.toJSONString(data));
return ResponseUtil.ok(data);
List<CategoryVo> data = parentCategoryMap.get(0);
return new ListResult<>(data, data.size());
}
@RequiresPermissions("admin:category:tree")
......@@ -105,6 +100,8 @@ public class AdminCategoryController {
List<CategoryVo> categoryVoList = new ArrayList<>();
List<Category> categoryList = categoryService.queryByPid(id);
for (Category c : categoryList) {
CategoryVo categoryVo = new CategoryVo(c);
categoryVo.setCategoryPath(StringUtils.join(categoryService.getCategoryPath(c.getId()), ">"));
categoryVoList.add(new CategoryVo(c));
}
Map<String, Object> data = new HashMap<>();
......
package com.wwdz.ch.admin.web;
public class UgcCoinController {
}
package com.wwdz.ch.core.type;
import java.io.Serializable;
public abstract class BaseResult implements Serializable {
private static final long serialVersionUID = 8908837312876434915L;
protected Integer code = 1001;
protected boolean success = true;
protected String msg = "";
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
}
package com.wwdz.ch.core.type;
import java.util.List;
public class ListResult<T> extends BaseResult{
private static final long serialVersionUID = 1534643254339611906L;
private Integer total;
/**
* 从1开始计数
*/
private Integer page;
private Integer size;
private List<T> data;
public ListResult(List<T> data, Integer total) {
this.data = data;
this.total = total;
this.page = 1;
this.size = total;
}
public ListResult(List<T> data, Integer total, Integer page, Integer size) {
this(data, total);
this.page = page;
this.size = size;
}
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
public Integer getPage() {
return page;
}
public void setPage(Integer page) {
this.page = page;
}
public Integer getSize() {
return size;
}
public void setSize(Integer size) {
this.size = size;
}
public List<T> getData() {
return data;
}
public void setData(List<T> data) {
this.data = data;
}
}
package com.wwdz.ch.core.type;
public class SimpleResult<T> extends BaseResult{
private static final long serialVersionUID = 4737633747704835886L;
private T data;
public SimpleResult(T data) {
this.data = data;
}
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
}
......@@ -125,13 +125,14 @@ pagehelper:
supportMethodsArguments: true
params: count=countSql
spring:
datasource:
druid:
url: jdbc:mysql://localhost:3306/dts-shop?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
url: jdbc:mysql://101.37.172.120:3306/dts-shop?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&allowPublicKeyRetrieval=true&verifyServerCertificate=false&useSSL=false
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 12121212zmzm
password: zhuangdian123
initial-size: 10
max-active: 50
min-idle: 10
......
......@@ -56,15 +56,18 @@
<javaClientGenerator type="XMLMAPPER" targetPackage="com.wwdz.ch.db.dao"
targetProject="src/main/java"/>
<!--表名-->
<table tableName="book">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
<table tableName="book_item">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
<table tableName="chain_node">
<table tableName="ugc_coin">
<generatedKey column="id" sqlStatement="MySql" identity="true"/>
</table>
<!-- <table tableName="book">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="book_item">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="chain_node">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- </table>-->
<!-- <table tableName="dts_admin">-->
<!-- <generatedKey column="id" sqlStatement="MySql" identity="true"/>-->
<!-- <columnOverride column="role_ids" javaType="java.lang.Integer[]"-->
......
package com.wwdz.ch.db.dao;
import com.wwdz.ch.db.domain.BidRecord;
import com.wwdz.ch.db.domain.BidRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface BidRecordMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
long countByExample(BidRecordExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int deleteByExample(BidRecordExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int insert(BidRecord record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int insertSelective(BidRecord record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BidRecord selectOneByExample(BidRecordExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BidRecord selectOneByExampleSelective(@Param("example") BidRecordExample example, @Param("selective") BidRecord.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<BidRecord> selectByExampleSelective(@Param("example") BidRecordExample example, @Param("selective") BidRecord.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
List<BidRecord> selectByExample(BidRecordExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
BidRecord selectByPrimaryKeySelective(@Param("id") Long id, @Param("selective") BidRecord.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
BidRecord selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") BidRecord record, @Param("example") BidRecordExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int updateByExample(@Param("record") BidRecord record, @Param("example") BidRecordExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(BidRecord record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
int updateByPrimaryKey(BidRecord record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_category
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByPrimaryKey(Long id);
}
\ No newline at end of file
package com.wwdz.ch.db.dao;
import com.wwdz.ch.db.domain.UgcCoin;
import com.wwdz.ch.db.domain.UgcCoinExample;
import com.wwdz.ch.db.domain.UgcCoinWithBLOBs;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UgcCoinMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
long countByExample(UgcCoinExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int deleteByExample(UgcCoinExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int insert(UgcCoinWithBLOBs record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int insertSelective(UgcCoinWithBLOBs record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
UgcCoin selectOneByExample(UgcCoinExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
UgcCoinWithBLOBs selectOneByExampleSelective(@Param("example") UgcCoinExample example, @Param("selective") UgcCoinWithBLOBs.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
UgcCoinWithBLOBs selectOneByExampleWithBLOBs(UgcCoinExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
List<UgcCoinWithBLOBs> selectByExampleSelective(@Param("example") UgcCoinExample example, @Param("selective") UgcCoinWithBLOBs.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
List<UgcCoinWithBLOBs> selectByExampleWithBLOBs(UgcCoinExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
List<UgcCoin> selectByExample(UgcCoinExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
UgcCoinWithBLOBs selectByPrimaryKeySelective(@Param("id") Long id, @Param("selective") UgcCoinWithBLOBs.Column ... selective);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
UgcCoinWithBLOBs selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") UgcCoinWithBLOBs record, @Param("example") UgcCoinExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int updateByExampleWithBLOBs(@Param("record") UgcCoinWithBLOBs record, @Param("example") UgcCoinExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int updateByExample(@Param("record") UgcCoin record, @Param("example") UgcCoinExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(UgcCoinWithBLOBs record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int updateByPrimaryKeyWithBLOBs(UgcCoinWithBLOBs record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
int updateByPrimaryKey(UgcCoin record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table dts_category
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
int logicalDeleteByPrimaryKey(Long id);
}
\ No newline at end of file
package com.wwdz.ch.db.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class BidRecord {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.id
*
* @mbg.generated
*/
private Long id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.extra
*
* @mbg.generated
*/
private String extra;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.buyer
*
* @mbg.generated
*/
private String buyer;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.platform
*
* @mbg.generated
*/
private String platform;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.link
*
* @mbg.generated
*/
private String link;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.cid
*
* @mbg.generated
*/
private Integer cid;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.images
*
* @mbg.generated
*/
private String images;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.bidTime
*
* @mbg.generated
*/
private Integer bidtime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.price
*
* @mbg.generated
*/
private Long price;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.created
*
* @mbg.generated
*/
private LocalDateTime created;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.updated
*
* @mbg.generated
*/
private LocalDateTime updated;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column bid_record.is_deleted
*
* @mbg.generated
*/
private Boolean isDeleted;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.id
*
* @return the value of bid_record.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.id
*
* @param id the value for bid_record.id
*
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.extra
*
* @return the value of bid_record.extra
*
* @mbg.generated
*/
public String getExtra() {
return extra;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.extra
*
* @param extra the value for bid_record.extra
*
* @mbg.generated
*/
public void setExtra(String extra) {
this.extra = extra;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.buyer
*
* @return the value of bid_record.buyer
*
* @mbg.generated
*/
public String getBuyer() {
return buyer;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.buyer
*
* @param buyer the value for bid_record.buyer
*
* @mbg.generated
*/
public void setBuyer(String buyer) {
this.buyer = buyer;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.platform
*
* @return the value of bid_record.platform
*
* @mbg.generated
*/
public String getPlatform() {
return platform;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.platform
*
* @param platform the value for bid_record.platform
*
* @mbg.generated
*/
public void setPlatform(String platform) {
this.platform = platform;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.link
*
* @return the value of bid_record.link
*
* @mbg.generated
*/
public String getLink() {
return link;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.link
*
* @param link the value for bid_record.link
*
* @mbg.generated
*/
public void setLink(String link) {
this.link = link;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.cid
*
* @return the value of bid_record.cid
*
* @mbg.generated
*/
public Integer getCid() {
return cid;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.cid
*
* @param cid the value for bid_record.cid
*
* @mbg.generated
*/
public void setCid(Integer cid) {
this.cid = cid;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.images
*
* @return the value of bid_record.images
*
* @mbg.generated
*/
public String getImages() {
return images;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.images
*
* @param images the value for bid_record.images
*
* @mbg.generated
*/
public void setImages(String images) {
this.images = images;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.bidTime
*
* @return the value of bid_record.bidTime
*
* @mbg.generated
*/
public Integer getBidtime() {
return bidtime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.bidTime
*
* @param bidtime the value for bid_record.bidTime
*
* @mbg.generated
*/
public void setBidtime(Integer bidtime) {
this.bidtime = bidtime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.price
*
* @return the value of bid_record.price
*
* @mbg.generated
*/
public Long getPrice() {
return price;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.price
*
* @param price the value for bid_record.price
*
* @mbg.generated
*/
public void setPrice(Long price) {
this.price = price;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.created
*
* @return the value of bid_record.created
*
* @mbg.generated
*/
public LocalDateTime getCreated() {
return created;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.created
*
* @param created the value for bid_record.created
*
* @mbg.generated
*/
public void setCreated(LocalDateTime created) {
this.created = created;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.updated
*
* @return the value of bid_record.updated
*
* @mbg.generated
*/
public LocalDateTime getUpdated() {
return updated;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.updated
*
* @param updated the value for bid_record.updated
*
* @mbg.generated
*/
public void setUpdated(LocalDateTime updated) {
this.updated = updated;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column bid_record.is_deleted
*
* @return the value of bid_record.is_deleted
*
* @mbg.generated
*/
public Boolean getIsDeleted() {
return isDeleted;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column bid_record.is_deleted
*
* @param isDeleted the value for bid_record.is_deleted
*
* @mbg.generated
*/
public void setIsDeleted(Boolean isDeleted) {
this.isDeleted = isDeleted;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
@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(", extra=").append(extra);
sb.append(", buyer=").append(buyer);
sb.append(", platform=").append(platform);
sb.append(", link=").append(link);
sb.append(", cid=").append(cid);
sb.append(", images=").append(images);
sb.append(", bidtime=").append(bidtime);
sb.append(", price=").append(price);
sb.append(", created=").append(created);
sb.append(", updated=").append(updated);
sb.append(", isDeleted=").append(isDeleted);
sb.append("]");
return sb.toString();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
BidRecord other = (BidRecord) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getExtra() == null ? other.getExtra() == null : this.getExtra().equals(other.getExtra()))
&& (this.getBuyer() == null ? other.getBuyer() == null : this.getBuyer().equals(other.getBuyer()))
&& (this.getPlatform() == null ? other.getPlatform() == null : this.getPlatform().equals(other.getPlatform()))
&& (this.getLink() == null ? other.getLink() == null : this.getLink().equals(other.getLink()))
&& (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
&& (this.getImages() == null ? other.getImages() == null : this.getImages().equals(other.getImages()))
&& (this.getBidtime() == null ? other.getBidtime() == null : this.getBidtime().equals(other.getBidtime()))
&& (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 method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getExtra() == null) ? 0 : getExtra().hashCode());
result = prime * result + ((getBuyer() == null) ? 0 : getBuyer().hashCode());
result = prime * result + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
result = prime * result + ((getLink() == null) ? 0 : getLink().hashCode());
result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
result = prime * result + ((getImages() == null) ? 0 : getImages().hashCode());
result = prime * result + ((getBidtime() == null) ? 0 : getBidtime().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());
return result;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id", "id", "BIGINT", false),
extra("extra", "extra", "VARCHAR", false),
buyer("buyer", "buyer", "VARCHAR", false),
platform("platform", "platform", "VARCHAR", false),
link("link", "link", "VARCHAR", false),
cid("cid", "cid", "INTEGER", false),
images("images", "images", "VARCHAR", false),
bidtime("bidTime", "bidtime", "INTEGER", false),
price("price", "price", "BIGINT", false),
created("created", "created", "TIMESTAMP", false),
updated("updated", "updated", "TIMESTAMP", false),
isDeleted("is_deleted", "isDeleted", "BIT", false);
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @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 java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class BidRecordExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table bid_record
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table bid_record
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table bid_record
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public BidRecordExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public BidRecordExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public BidRecordExample 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;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Criteria newAndCreateCriteria() {
BidRecordExample example = new BidRecordExample();
return example.createCriteria();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table bid_record
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdNotEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanOrEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanOrEqualToColumn(BidRecord.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 andExtraIsNull() {
addCriterion("extra is null");
return (Criteria) this;
}
public Criteria andExtraIsNotNull() {
addCriterion("extra is not null");
return (Criteria) this;
}
public Criteria andExtraEqualTo(String value) {
addCriterion("extra =", value, "extra");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExtraEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("extra = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExtraNotEqualTo(String value) {
addCriterion("extra <>", value, "extra");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExtraNotEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("extra <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExtraGreaterThan(String value) {
addCriterion("extra >", value, "extra");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExtraGreaterThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("extra > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExtraGreaterThanOrEqualTo(String value) {
addCriterion("extra >=", value, "extra");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExtraGreaterThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("extra >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExtraLessThan(String value) {
addCriterion("extra <", value, "extra");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExtraLessThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("extra < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExtraLessThanOrEqualTo(String value) {
addCriterion("extra <=", value, "extra");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andExtraLessThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("extra <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andExtraLike(String value) {
addCriterion("extra like", value, "extra");
return (Criteria) this;
}
public Criteria andExtraNotLike(String value) {
addCriterion("extra not like", value, "extra");
return (Criteria) this;
}
public Criteria andExtraIn(List<String> values) {
addCriterion("extra in", values, "extra");
return (Criteria) this;
}
public Criteria andExtraNotIn(List<String> values) {
addCriterion("extra not in", values, "extra");
return (Criteria) this;
}
public Criteria andExtraBetween(String value1, String value2) {
addCriterion("extra between", value1, value2, "extra");
return (Criteria) this;
}
public Criteria andExtraNotBetween(String value1, String value2) {
addCriterion("extra not between", value1, value2, "extra");
return (Criteria) this;
}
public Criteria andBuyerIsNull() {
addCriterion("buyer is null");
return (Criteria) this;
}
public Criteria andBuyerIsNotNull() {
addCriterion("buyer is not null");
return (Criteria) this;
}
public Criteria andBuyerEqualTo(String value) {
addCriterion("buyer =", value, "buyer");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBuyerEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("buyer = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBuyerNotEqualTo(String value) {
addCriterion("buyer <>", value, "buyer");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBuyerNotEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("buyer <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBuyerGreaterThan(String value) {
addCriterion("buyer >", value, "buyer");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBuyerGreaterThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("buyer > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBuyerGreaterThanOrEqualTo(String value) {
addCriterion("buyer >=", value, "buyer");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBuyerGreaterThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("buyer >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBuyerLessThan(String value) {
addCriterion("buyer <", value, "buyer");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBuyerLessThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("buyer < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBuyerLessThanOrEqualTo(String value) {
addCriterion("buyer <=", value, "buyer");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBuyerLessThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("buyer <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBuyerLike(String value) {
addCriterion("buyer like", value, "buyer");
return (Criteria) this;
}
public Criteria andBuyerNotLike(String value) {
addCriterion("buyer not like", value, "buyer");
return (Criteria) this;
}
public Criteria andBuyerIn(List<String> values) {
addCriterion("buyer in", values, "buyer");
return (Criteria) this;
}
public Criteria andBuyerNotIn(List<String> values) {
addCriterion("buyer not in", values, "buyer");
return (Criteria) this;
}
public Criteria andBuyerBetween(String value1, String value2) {
addCriterion("buyer between", value1, value2, "buyer");
return (Criteria) this;
}
public Criteria andBuyerNotBetween(String value1, String value2) {
addCriterion("buyer not between", value1, value2, "buyer");
return (Criteria) this;
}
public Criteria andPlatformIsNull() {
addCriterion("platform is null");
return (Criteria) this;
}
public Criteria andPlatformIsNotNull() {
addCriterion("platform is not null");
return (Criteria) this;
}
public Criteria andPlatformEqualTo(String value) {
addCriterion("platform =", value, "platform");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPlatformEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("platform = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPlatformNotEqualTo(String value) {
addCriterion("platform <>", value, "platform");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPlatformNotEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("platform <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPlatformGreaterThan(String value) {
addCriterion("platform >", value, "platform");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPlatformGreaterThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("platform > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPlatformGreaterThanOrEqualTo(String value) {
addCriterion("platform >=", value, "platform");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPlatformGreaterThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("platform >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPlatformLessThan(String value) {
addCriterion("platform <", value, "platform");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPlatformLessThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("platform < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPlatformLessThanOrEqualTo(String value) {
addCriterion("platform <=", value, "platform");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPlatformLessThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("platform <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andPlatformLike(String value) {
addCriterion("platform like", value, "platform");
return (Criteria) this;
}
public Criteria andPlatformNotLike(String value) {
addCriterion("platform not like", value, "platform");
return (Criteria) this;
}
public Criteria andPlatformIn(List<String> values) {
addCriterion("platform in", values, "platform");
return (Criteria) this;
}
public Criteria andPlatformNotIn(List<String> values) {
addCriterion("platform not in", values, "platform");
return (Criteria) this;
}
public Criteria andPlatformBetween(String value1, String value2) {
addCriterion("platform between", value1, value2, "platform");
return (Criteria) this;
}
public Criteria andPlatformNotBetween(String value1, String value2) {
addCriterion("platform not between", value1, value2, "platform");
return (Criteria) this;
}
public Criteria andLinkIsNull() {
addCriterion("link is null");
return (Criteria) this;
}
public Criteria andLinkIsNotNull() {
addCriterion("link is not null");
return (Criteria) this;
}
public Criteria andLinkEqualTo(String value) {
addCriterion("link =", value, "link");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLinkEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("link = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andLinkNotEqualTo(String value) {
addCriterion("link <>", value, "link");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLinkNotEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("link <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andLinkGreaterThan(String value) {
addCriterion("link >", value, "link");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLinkGreaterThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("link > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andLinkGreaterThanOrEqualTo(String value) {
addCriterion("link >=", value, "link");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLinkGreaterThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("link >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andLinkLessThan(String value) {
addCriterion("link <", value, "link");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLinkLessThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("link < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andLinkLessThanOrEqualTo(String value) {
addCriterion("link <=", value, "link");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andLinkLessThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("link <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andLinkLike(String value) {
addCriterion("link like", value, "link");
return (Criteria) this;
}
public Criteria andLinkNotLike(String value) {
addCriterion("link not like", value, "link");
return (Criteria) this;
}
public Criteria andLinkIn(List<String> values) {
addCriterion("link in", values, "link");
return (Criteria) this;
}
public Criteria andLinkNotIn(List<String> values) {
addCriterion("link not in", values, "link");
return (Criteria) this;
}
public Criteria andLinkBetween(String value1, String value2) {
addCriterion("link between", value1, value2, "link");
return (Criteria) this;
}
public Criteria andLinkNotBetween(String value1, String value2) {
addCriterion("link not between", value1, value2, "link");
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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidNotEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidGreaterThanColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidGreaterThanOrEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidLessThanColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCidLessThanOrEqualToColumn(BidRecord.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 andImagesIsNull() {
addCriterion("images is null");
return (Criteria) this;
}
public Criteria andImagesIsNotNull() {
addCriterion("images is not null");
return (Criteria) this;
}
public Criteria andImagesEqualTo(String value) {
addCriterion("images =", value, "images");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andImagesEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("images = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andImagesNotEqualTo(String value) {
addCriterion("images <>", value, "images");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andImagesNotEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("images <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andImagesGreaterThan(String value) {
addCriterion("images >", value, "images");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andImagesGreaterThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("images > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andImagesGreaterThanOrEqualTo(String value) {
addCriterion("images >=", value, "images");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andImagesGreaterThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("images >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andImagesLessThan(String value) {
addCriterion("images <", value, "images");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andImagesLessThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("images < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andImagesLessThanOrEqualTo(String value) {
addCriterion("images <=", value, "images");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andImagesLessThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("images <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andImagesLike(String value) {
addCriterion("images like", value, "images");
return (Criteria) this;
}
public Criteria andImagesNotLike(String value) {
addCriterion("images not like", value, "images");
return (Criteria) this;
}
public Criteria andImagesIn(List<String> values) {
addCriterion("images in", values, "images");
return (Criteria) this;
}
public Criteria andImagesNotIn(List<String> values) {
addCriterion("images not in", values, "images");
return (Criteria) this;
}
public Criteria andImagesBetween(String value1, String value2) {
addCriterion("images between", value1, value2, "images");
return (Criteria) this;
}
public Criteria andImagesNotBetween(String value1, String value2) {
addCriterion("images not between", value1, value2, "images");
return (Criteria) this;
}
public Criteria andBidtimeIsNull() {
addCriterion("bidTime is null");
return (Criteria) this;
}
public Criteria andBidtimeIsNotNull() {
addCriterion("bidTime is not null");
return (Criteria) this;
}
public Criteria andBidtimeEqualTo(Integer value) {
addCriterion("bidTime =", value, "bidtime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidtimeEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("bidTime = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidtimeNotEqualTo(Integer value) {
addCriterion("bidTime <>", value, "bidtime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidtimeNotEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("bidTime <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidtimeGreaterThan(Integer value) {
addCriterion("bidTime >", value, "bidtime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidtimeGreaterThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("bidTime > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidtimeGreaterThanOrEqualTo(Integer value) {
addCriterion("bidTime >=", value, "bidtime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidtimeGreaterThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("bidTime >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidtimeLessThan(Integer value) {
addCriterion("bidTime <", value, "bidtime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidtimeLessThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("bidTime < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidtimeLessThanOrEqualTo(Integer value) {
addCriterion("bidTime <=", value, "bidtime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidtimeLessThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("bidTime <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidtimeIn(List<Integer> values) {
addCriterion("bidTime in", values, "bidtime");
return (Criteria) this;
}
public Criteria andBidtimeNotIn(List<Integer> values) {
addCriterion("bidTime not in", values, "bidtime");
return (Criteria) this;
}
public Criteria andBidtimeBetween(Integer value1, Integer value2) {
addCriterion("bidTime between", value1, value2, "bidtime");
return (Criteria) this;
}
public Criteria andBidtimeNotBetween(Integer value1, Integer value2) {
addCriterion("bidTime not between", value1, value2, "bidtime");
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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceNotEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceGreaterThanColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceGreaterThanOrEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceLessThanColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceLessThanOrEqualToColumn(BidRecord.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(LocalDateTime value) {
addCriterion("created =", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("created = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedNotEqualTo(LocalDateTime value) {
addCriterion("created <>", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedNotEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("created <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedGreaterThan(LocalDateTime value) {
addCriterion("created >", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedGreaterThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("created > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("created >=", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedGreaterThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("created >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedLessThan(LocalDateTime value) {
addCriterion("created <", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedLessThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("created < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedLessThanOrEqualTo(LocalDateTime value) {
addCriterion("created <=", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedLessThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("created <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedIn(List<LocalDateTime> values) {
addCriterion("created in", values, "created");
return (Criteria) this;
}
public Criteria andCreatedNotIn(List<LocalDateTime> values) {
addCriterion("created not in", values, "created");
return (Criteria) this;
}
public Criteria andCreatedBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("created between", value1, value2, "created");
return (Criteria) this;
}
public Criteria andCreatedNotBetween(LocalDateTime value1, LocalDateTime 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(LocalDateTime value) {
addCriterion("updated =", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("updated = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedNotEqualTo(LocalDateTime value) {
addCriterion("updated <>", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedNotEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("updated <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedGreaterThan(LocalDateTime value) {
addCriterion("updated >", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedGreaterThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("updated > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("updated >=", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedGreaterThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("updated >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedLessThan(LocalDateTime value) {
addCriterion("updated <", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedLessThanColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("updated < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedLessThanOrEqualTo(LocalDateTime value) {
addCriterion("updated <=", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedLessThanOrEqualToColumn(BidRecord.Column column) {
addCriterion(new StringBuilder("updated <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedIn(List<LocalDateTime> values) {
addCriterion("updated in", values, "updated");
return (Criteria) this;
}
public Criteria andUpdatedNotIn(List<LocalDateTime> values) {
addCriterion("updated not in", values, "updated");
return (Criteria) this;
}
public Criteria andUpdatedBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("updated between", value1, value2, "updated");
return (Criteria) this;
}
public Criteria andUpdatedNotBetween(LocalDateTime value1, LocalDateTime 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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedNotEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedGreaterThanColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedGreaterThanOrEqualToColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedLessThanColumn(BidRecord.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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedLessThanOrEqualToColumn(BidRecord.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;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table bid_record
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private BidRecordExample example;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria(BidRecordExample example) {
super();
this.example = example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public BidRecordExample example() {
return this.example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table bid_record
*
* @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 bid_record
*
* @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 bid_record
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria add(Criteria add);
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table bid_record
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.wwdz.ch.db.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class UgcCoin {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.id
*
* @mbg.generated
*/
private Long id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.uid
*
* @mbg.generated
*/
private Long uid;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.name
*
* @mbg.generated
*/
private String name;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.tags
*
* @mbg.generated
*/
private String tags;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.price
*
* @mbg.generated
*/
private Long price;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.bid_time
*
* @mbg.generated
*/
private LocalDateTime bidTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.created
*
* @mbg.generated
*/
private LocalDateTime created;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.updated
*
* @mbg.generated
*/
private LocalDateTime updated;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.is_deleted
*
* @mbg.generated
*/
private Boolean isDeleted;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.id
*
* @return the value of ugc_coin.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.id
*
* @param id the value for ugc_coin.id
*
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.uid
*
* @return the value of ugc_coin.uid
*
* @mbg.generated
*/
public Long getUid() {
return uid;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.uid
*
* @param uid the value for ugc_coin.uid
*
* @mbg.generated
*/
public void setUid(Long uid) {
this.uid = uid;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.name
*
* @return the value of ugc_coin.name
*
* @mbg.generated
*/
public String getName() {
return name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.name
*
* @param name the value for ugc_coin.name
*
* @mbg.generated
*/
public void setName(String name) {
this.name = name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.tags
*
* @return the value of ugc_coin.tags
*
* @mbg.generated
*/
public String getTags() {
return tags;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.tags
*
* @param tags the value for ugc_coin.tags
*
* @mbg.generated
*/
public void setTags(String tags) {
this.tags = tags;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.price
*
* @return the value of ugc_coin.price
*
* @mbg.generated
*/
public Long getPrice() {
return price;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.price
*
* @param price the value for ugc_coin.price
*
* @mbg.generated
*/
public void setPrice(Long price) {
this.price = price;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.bid_time
*
* @return the value of ugc_coin.bid_time
*
* @mbg.generated
*/
public LocalDateTime getBidTime() {
return bidTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.bid_time
*
* @param bidTime the value for ugc_coin.bid_time
*
* @mbg.generated
*/
public void setBidTime(LocalDateTime bidTime) {
this.bidTime = bidTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.created
*
* @return the value of ugc_coin.created
*
* @mbg.generated
*/
public LocalDateTime getCreated() {
return created;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.created
*
* @param created the value for ugc_coin.created
*
* @mbg.generated
*/
public void setCreated(LocalDateTime created) {
this.created = created;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.updated
*
* @return the value of ugc_coin.updated
*
* @mbg.generated
*/
public LocalDateTime getUpdated() {
return updated;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.updated
*
* @param updated the value for ugc_coin.updated
*
* @mbg.generated
*/
public void setUpdated(LocalDateTime updated) {
this.updated = updated;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.is_deleted
*
* @return the value of ugc_coin.is_deleted
*
* @mbg.generated
*/
public Boolean getIsDeleted() {
return isDeleted;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.is_deleted
*
* @param isDeleted the value for ugc_coin.is_deleted
*
* @mbg.generated
*/
public void setIsDeleted(Boolean isDeleted) {
this.isDeleted = isDeleted;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
@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(", uid=").append(uid);
sb.append(", name=").append(name);
sb.append(", tags=").append(tags);
sb.append(", price=").append(price);
sb.append(", bidTime=").append(bidTime);
sb.append(", created=").append(created);
sb.append(", updated=").append(updated);
sb.append(", isDeleted=").append(isDeleted);
sb.append("]");
return sb.toString();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
UgcCoin other = (UgcCoin) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getTags() == null ? other.getTags() == null : this.getTags().equals(other.getTags()))
&& (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
&& (this.getBidTime() == null ? other.getBidTime() == null : this.getBidTime().equals(other.getBidTime()))
&& (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 method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getTags() == null) ? 0 : getTags().hashCode());
result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
result = prime * result + ((getBidTime() == null) ? 0 : getBidTime().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());
return result;
}
/**
* This enum was generated by MyBatis Generator.
* This enum corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id", "id", "BIGINT", false),
uid("uid", "uid", "BIGINT", true),
name("name", "name", "VARCHAR", true),
tags("tags", "tags", "VARCHAR", false),
price("price", "price", "BIGINT", false),
bidTime("bid_time", "bidTime", "TIMESTAMP", false),
created("created", "created", "TIMESTAMP", false),
updated("updated", "updated", "TIMESTAMP", false),
isDeleted("is_deleted", "isDeleted", "BIT", false),
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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class UgcCoinExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table ugc_coin
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table ugc_coin
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table ugc_coin
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public UgcCoinExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public UgcCoinExample orderBy(String orderByClause) {
this.setOrderByClause(orderByClause);
return this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public UgcCoinExample 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;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(this);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public static Criteria newAndCreateCriteria() {
UgcCoinExample example = new UgcCoinExample();
return example.createCriteria();
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table ugc_coin
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdNotEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdGreaterThanOrEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIdLessThanOrEqualToColumn(UgcCoinWithBLOBs.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 andUidIsNull() {
addCriterion("`uid` is null");
return (Criteria) this;
}
public Criteria andUidIsNotNull() {
addCriterion("`uid` is not null");
return (Criteria) this;
}
public Criteria andUidEqualTo(Long value) {
addCriterion("`uid` =", value, "uid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUidEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("`uid` = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUidNotEqualTo(Long value) {
addCriterion("`uid` <>", value, "uid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUidNotEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("`uid` <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUidGreaterThan(Long value) {
addCriterion("`uid` >", value, "uid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUidGreaterThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("`uid` > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUidGreaterThanOrEqualTo(Long value) {
addCriterion("`uid` >=", value, "uid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUidGreaterThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("`uid` >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUidLessThan(Long value) {
addCriterion("`uid` <", value, "uid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUidLessThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("`uid` < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUidLessThanOrEqualTo(Long value) {
addCriterion("`uid` <=", value, "uid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUidLessThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("`uid` <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUidIn(List<Long> values) {
addCriterion("`uid` in", values, "uid");
return (Criteria) this;
}
public Criteria andUidNotIn(List<Long> values) {
addCriterion("`uid` not in", values, "uid");
return (Criteria) this;
}
public Criteria andUidBetween(Long value1, Long value2) {
addCriterion("`uid` between", value1, value2, "uid");
return (Criteria) this;
}
public Criteria andUidNotBetween(Long value1, Long value2) {
addCriterion("`uid` not between", value1, value2, "uid");
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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameNotEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameGreaterThanColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameGreaterThanOrEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameLessThanColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andNameLessThanOrEqualToColumn(UgcCoinWithBLOBs.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 andTagsIsNull() {
addCriterion("tags is null");
return (Criteria) this;
}
public Criteria andTagsIsNotNull() {
addCriterion("tags is not null");
return (Criteria) this;
}
public Criteria andTagsEqualTo(String value) {
addCriterion("tags =", value, "tags");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTagsEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("tags = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTagsNotEqualTo(String value) {
addCriterion("tags <>", value, "tags");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTagsNotEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("tags <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTagsGreaterThan(String value) {
addCriterion("tags >", value, "tags");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTagsGreaterThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("tags > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTagsGreaterThanOrEqualTo(String value) {
addCriterion("tags >=", value, "tags");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTagsGreaterThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("tags >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTagsLessThan(String value) {
addCriterion("tags <", value, "tags");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTagsLessThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("tags < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTagsLessThanOrEqualTo(String value) {
addCriterion("tags <=", value, "tags");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andTagsLessThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("tags <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andTagsLike(String value) {
addCriterion("tags like", value, "tags");
return (Criteria) this;
}
public Criteria andTagsNotLike(String value) {
addCriterion("tags not like", value, "tags");
return (Criteria) this;
}
public Criteria andTagsIn(List<String> values) {
addCriterion("tags in", values, "tags");
return (Criteria) this;
}
public Criteria andTagsNotIn(List<String> values) {
addCriterion("tags not in", values, "tags");
return (Criteria) this;
}
public Criteria andTagsBetween(String value1, String value2) {
addCriterion("tags between", value1, value2, "tags");
return (Criteria) this;
}
public Criteria andTagsNotBetween(String value1, String value2) {
addCriterion("tags not between", value1, value2, "tags");
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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceNotEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceGreaterThanColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceGreaterThanOrEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceLessThanColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andPriceLessThanOrEqualToColumn(UgcCoinWithBLOBs.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 andBidTimeIsNull() {
addCriterion("bid_time is null");
return (Criteria) this;
}
public Criteria andBidTimeIsNotNull() {
addCriterion("bid_time is not null");
return (Criteria) this;
}
public Criteria andBidTimeEqualTo(LocalDateTime value) {
addCriterion("bid_time =", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("bid_time = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeNotEqualTo(LocalDateTime value) {
addCriterion("bid_time <>", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeNotEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("bid_time <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeGreaterThan(LocalDateTime value) {
addCriterion("bid_time >", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeGreaterThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("bid_time > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("bid_time >=", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeGreaterThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("bid_time >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeLessThan(LocalDateTime value) {
addCriterion("bid_time <", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeLessThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("bid_time < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeLessThanOrEqualTo(LocalDateTime value) {
addCriterion("bid_time <=", value, "bidTime");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andBidTimeLessThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("bid_time <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andBidTimeIn(List<LocalDateTime> values) {
addCriterion("bid_time in", values, "bidTime");
return (Criteria) this;
}
public Criteria andBidTimeNotIn(List<LocalDateTime> values) {
addCriterion("bid_time not in", values, "bidTime");
return (Criteria) this;
}
public Criteria andBidTimeBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("bid_time between", value1, value2, "bidTime");
return (Criteria) this;
}
public Criteria andBidTimeNotBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("bid_time not between", value1, value2, "bidTime");
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(LocalDateTime value) {
addCriterion("created =", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("created = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedNotEqualTo(LocalDateTime value) {
addCriterion("created <>", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedNotEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("created <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedGreaterThan(LocalDateTime value) {
addCriterion("created >", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedGreaterThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("created > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("created >=", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedGreaterThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("created >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedLessThan(LocalDateTime value) {
addCriterion("created <", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedLessThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("created < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedLessThanOrEqualTo(LocalDateTime value) {
addCriterion("created <=", value, "created");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andCreatedLessThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("created <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andCreatedIn(List<LocalDateTime> values) {
addCriterion("created in", values, "created");
return (Criteria) this;
}
public Criteria andCreatedNotIn(List<LocalDateTime> values) {
addCriterion("created not in", values, "created");
return (Criteria) this;
}
public Criteria andCreatedBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("created between", value1, value2, "created");
return (Criteria) this;
}
public Criteria andCreatedNotBetween(LocalDateTime value1, LocalDateTime 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(LocalDateTime value) {
addCriterion("updated =", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("updated = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedNotEqualTo(LocalDateTime value) {
addCriterion("updated <>", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedNotEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("updated <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedGreaterThan(LocalDateTime value) {
addCriterion("updated >", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedGreaterThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("updated > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedGreaterThanOrEqualTo(LocalDateTime value) {
addCriterion("updated >=", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedGreaterThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("updated >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedLessThan(LocalDateTime value) {
addCriterion("updated <", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedLessThanColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("updated < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedLessThanOrEqualTo(LocalDateTime value) {
addCriterion("updated <=", value, "updated");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andUpdatedLessThanOrEqualToColumn(UgcCoinWithBLOBs.Column column) {
addCriterion(new StringBuilder("updated <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andUpdatedIn(List<LocalDateTime> values) {
addCriterion("updated in", values, "updated");
return (Criteria) this;
}
public Criteria andUpdatedNotIn(List<LocalDateTime> values) {
addCriterion("updated not in", values, "updated");
return (Criteria) this;
}
public Criteria andUpdatedBetween(LocalDateTime value1, LocalDateTime value2) {
addCriterion("updated between", value1, value2, "updated");
return (Criteria) this;
}
public Criteria andUpdatedNotBetween(LocalDateTime value1, LocalDateTime 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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedNotEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedGreaterThanColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedGreaterThanOrEqualToColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedLessThanColumn(UgcCoinWithBLOBs.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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsDeletedLessThanOrEqualToColumn(UgcCoinWithBLOBs.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;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table ugc_coin
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
private UgcCoinExample example;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
protected Criteria(UgcCoinExample example) {
super();
this.example = example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public UgcCoinExample example() {
return this.example;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
Criteria add(Criteria add);
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table ugc_coin
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.wwdz.ch.db.domain;
import java.util.ArrayList;
import java.util.Arrays;
public class UgcCoinWithBLOBs extends UgcCoin {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.extra
*
* @mbg.generated
*/
private String extra;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.images
*
* @mbg.generated
*/
private String images;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column ugc_coin.detail
*
* @mbg.generated
*/
private String detail;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.extra
*
* @return the value of ugc_coin.extra
*
* @mbg.generated
*/
public String getExtra() {
return extra;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.extra
*
* @param extra the value for ugc_coin.extra
*
* @mbg.generated
*/
public void setExtra(String extra) {
this.extra = extra;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.images
*
* @return the value of ugc_coin.images
*
* @mbg.generated
*/
public String getImages() {
return images;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.images
*
* @param images the value for ugc_coin.images
*
* @mbg.generated
*/
public void setImages(String images) {
this.images = images;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column ugc_coin.detail
*
* @return the value of ugc_coin.detail
*
* @mbg.generated
*/
public String getDetail() {
return detail;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column ugc_coin.detail
*
* @param detail the value for ugc_coin.detail
*
* @mbg.generated
*/
public void setDetail(String detail) {
this.detail = detail;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", extra=").append(extra);
sb.append(", images=").append(images);
sb.append(", detail=").append(detail);
sb.append("]");
return sb.toString();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
UgcCoinWithBLOBs other = (UgcCoinWithBLOBs) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
&& (this.getTags() == null ? other.getTags() == null : this.getTags().equals(other.getTags()))
&& (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
&& (this.getBidTime() == null ? other.getBidTime() == null : this.getBidTime().equals(other.getBidTime()))
&& (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.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()));
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ugc_coin
*
* @mbg.generated
*/
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
result = prime * result + ((getTags() == null) ? 0 : getTags().hashCode());
result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
result = prime * result + ((getBidTime() == null) ? 0 : getBidTime().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 + ((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 ugc_coin
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public enum Column {
id("id", "id", "BIGINT", false),
uid("uid", "uid", "BIGINT", true),
name("name", "name", "VARCHAR", true),
tags("tags", "tags", "VARCHAR", false),
price("price", "price", "BIGINT", false),
bidTime("bid_time", "bidTime", "TIMESTAMP", false),
created("created", "created", "TIMESTAMP", false),
updated("updated", "updated", "TIMESTAMP", false),
isDeleted("is_deleted", "isDeleted", "BIT", false),
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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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 ugc_coin
*
* @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.service;
import com.wwdz.ch.db.dao.BidRecordMapper;
import com.wwdz.ch.db.domain.BidRecord;
import com.wwdz.ch.db.domain.BidRecordExample;
import com.wwdz.ch.db.domain.Category;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;
@Service
public class BidRecordService {
@Resource
private BidRecordMapper bidRecordMapper;
public void add(BidRecord record) {
record.setCreated(LocalDateTime.now());
record.setUpdated(LocalDateTime.now());
bidRecordMapper.insertSelective(record);
}
public int updateById(BidRecord record) {
record.setUpdated(LocalDateTime.now());
return bidRecordMapper.updateByPrimaryKeySelective(record);
}
public List<BidRecord> queryByCid(Integer cid) {
BidRecordExample example = new BidRecordExample();
example.createCriteria().andCidEqualTo(cid).andIsDeletedEqualTo(false);
example.setOrderByClause("created desc");
return bidRecordMapper.selectByExample(example);
}
public void deleteById(Long id) {
bidRecordMapper.logicalDeleteByPrimaryKey(id);
}
}
package com.wwdz.ch.db.service;
import com.github.pagehelper.PageHelper;
import com.wwdz.ch.db.dao.UgcCoinMapper;
import com.wwdz.ch.db.domain.*;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;
@Service
public class UgcCoinService {
@Resource
private UgcCoinMapper ugcCoinMapper;
public List<UgcCoin> queryByUserId(Long userId, Integer page, Integer size) {
UgcCoinExample example = new UgcCoinExample();
example.or().andUidEqualTo(userId).andIsDeletedEqualTo(false);
page = null != page ? page : 1;
size = null != size ? size : 10;
PageHelper.startPage(page, size);
return ugcCoinMapper.selectByExample(example);
}
public void add(UgcCoinWithBLOBs coin) {
coin.setCreated(LocalDateTime.now());
coin.setUpdated(LocalDateTime.now());
ugcCoinMapper.insertSelective(coin);
}
public int updateById(UgcCoinWithBLOBs coin) {
coin.setUpdated(LocalDateTime.now());
return ugcCoinMapper.updateByPrimaryKeySelective(coin);
}
public void deleteById(Long id) {
ugcCoinMapper.logicalDeleteByPrimaryKey(id);
}
}
<?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.dao.BidRecordMapper">
<resultMap id="BaseResultMap" type="com.wwdz.ch.db.domain.BidRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="extra" jdbcType="VARCHAR" property="extra" />
<result column="buyer" jdbcType="VARCHAR" property="buyer" />
<result column="platform" jdbcType="VARCHAR" property="platform" />
<result column="link" jdbcType="VARCHAR" property="link" />
<result column="cid" jdbcType="INTEGER" property="cid" />
<result column="images" jdbcType="VARCHAR" property="images" />
<result column="bidTime" jdbcType="INTEGER" property="bidtime" />
<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" />
</resultMap>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, extra, buyer, platform, link, cid, images, bidTime, price, created, updated,
is_deleted
</sql>
<select id="selectByExample" parameterType="com.wwdz.ch.db.domain.BidRecordExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from bid_record
<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="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<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, extra, buyer, platform, link, cid, images, bidTime, price, created, updated,
is_deleted
</otherwise>
</choose>
from bid_record
<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="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from bid_record
where id = #{id,jdbcType=BIGINT}
</select>
<select id="selectByPrimaryKeySelective" parameterType="map" 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
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, extra, buyer, platform, link, cid, images, bidTime, price, created, updated,
is_deleted
</otherwise>
</choose>
from bid_record
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from bid_record
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.wwdz.ch.db.domain.BidRecordExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from bid_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.wwdz.ch.db.domain.BidRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into bid_record (extra, buyer, platform,
link, cid, images,
bidTime, price, created,
updated, is_deleted)
values (#{extra,jdbcType=VARCHAR}, #{buyer,jdbcType=VARCHAR}, #{platform,jdbcType=VARCHAR},
#{link,jdbcType=VARCHAR}, #{cid,jdbcType=INTEGER}, #{images,jdbcType=VARCHAR},
#{bidtime,jdbcType=INTEGER}, #{price,jdbcType=BIGINT}, #{created,jdbcType=TIMESTAMP},
#{updated,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT})
</insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.BidRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into bid_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="extra != null">
extra,
</if>
<if test="buyer != null">
buyer,
</if>
<if test="platform != null">
platform,
</if>
<if test="link != null">
link,
</if>
<if test="cid != null">
cid,
</if>
<if test="images != null">
images,
</if>
<if test="bidtime != null">
bidTime,
</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>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="extra != null">
#{extra,jdbcType=VARCHAR},
</if>
<if test="buyer != null">
#{buyer,jdbcType=VARCHAR},
</if>
<if test="platform != null">
#{platform,jdbcType=VARCHAR},
</if>
<if test="link != null">
#{link,jdbcType=VARCHAR},
</if>
<if test="cid != null">
#{cid,jdbcType=INTEGER},
</if>
<if test="images != null">
#{images,jdbcType=VARCHAR},
</if>
<if test="bidtime != null">
#{bidtime,jdbcType=INTEGER},
</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>
</trim>
</insert>
<select id="countByExample" parameterType="com.wwdz.ch.db.domain.BidRecordExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from bid_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update bid_record
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.extra != null">
extra = #{record.extra,jdbcType=VARCHAR},
</if>
<if test="record.buyer != null">
buyer = #{record.buyer,jdbcType=VARCHAR},
</if>
<if test="record.platform != null">
platform = #{record.platform,jdbcType=VARCHAR},
</if>
<if test="record.link != null">
link = #{record.link,jdbcType=VARCHAR},
</if>
<if test="record.cid != null">
cid = #{record.cid,jdbcType=INTEGER},
</if>
<if test="record.images != null">
images = #{record.images,jdbcType=VARCHAR},
</if>
<if test="record.bidtime != null">
bidTime = #{record.bidtime,jdbcType=INTEGER},
</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>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update bid_record
set id = #{record.id,jdbcType=BIGINT},
extra = #{record.extra,jdbcType=VARCHAR},
buyer = #{record.buyer,jdbcType=VARCHAR},
platform = #{record.platform,jdbcType=VARCHAR},
link = #{record.link,jdbcType=VARCHAR},
cid = #{record.cid,jdbcType=INTEGER},
images = #{record.images,jdbcType=VARCHAR},
bidTime = #{record.bidtime,jdbcType=INTEGER},
price = #{record.price,jdbcType=BIGINT},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.wwdz.ch.db.domain.BidRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update bid_record
<set>
<if test="extra != null">
extra = #{extra,jdbcType=VARCHAR},
</if>
<if test="buyer != null">
buyer = #{buyer,jdbcType=VARCHAR},
</if>
<if test="platform != null">
platform = #{platform,jdbcType=VARCHAR},
</if>
<if test="link != null">
link = #{link,jdbcType=VARCHAR},
</if>
<if test="cid != null">
cid = #{cid,jdbcType=INTEGER},
</if>
<if test="images != null">
images = #{images,jdbcType=VARCHAR},
</if>
<if test="bidtime != null">
bidTime = #{bidtime,jdbcType=INTEGER},
</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>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.wwdz.ch.db.domain.BidRecord">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update bid_record
set extra = #{extra,jdbcType=VARCHAR},
buyer = #{buyer,jdbcType=VARCHAR},
platform = #{platform,jdbcType=VARCHAR},
link = #{link,jdbcType=VARCHAR},
cid = #{cid,jdbcType=INTEGER},
images = #{images,jdbcType=VARCHAR},
bidTime = #{bidtime,jdbcType=INTEGER},
price = #{price,jdbcType=BIGINT},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.BidRecordExample" 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
<include refid="Base_Column_List" />
from bid_record
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
limit 1
</select>
<update id="logicalDeleteByPrimaryKey" parameterType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update bid_record set is_deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectOneByExampleSelective" parameterType="map" 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
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, extra, buyer, platform, link, cid, images, bidTime, price, created, updated,
is_deleted
</otherwise>
</choose>
from bid_record
<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
<?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.dao.UgcCoinMapper">
<resultMap id="BaseResultMap" type="com.wwdz.ch.db.domain.UgcCoin">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="uid" jdbcType="BIGINT" property="uid" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="tags" jdbcType="VARCHAR" property="tags" />
<result column="price" jdbcType="BIGINT" property="price" />
<result column="bid_time" jdbcType="TIMESTAMP" property="bidTime" />
<result column="created" jdbcType="TIMESTAMP" property="created" />
<result column="updated" jdbcType="TIMESTAMP" property="updated" />
<result column="is_deleted" jdbcType="BIT" property="isDeleted" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.wwdz.ch.db.domain.UgcCoinWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<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">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, `uid`, `name`, tags, price, bid_time, created, updated, is_deleted
</sql>
<sql id="Blob_Column_List">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
extra, images, detail
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.wwdz.ch.db.domain.UgcCoinExample" resultMap="ResultMapWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from ugc_coin
<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.UgcCoinExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from ugc_coin
<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
<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, `uid`, `name`, tags, price, bid_time, created, updated, is_deleted, extra, images,
detail
</otherwise>
</choose>
from ugc_coin
<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">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from ugc_coin
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, `uid`, `name`, tags, price, bid_time, created, updated, is_deleted, extra, images,
detail
</otherwise>
</choose>
from ugc_coin
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from ugc_coin
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.wwdz.ch.db.domain.UgcCoinExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from ugc_coin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.wwdz.ch.db.domain.UgcCoinWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ugc_coin (`uid`, `name`, tags,
price, bid_time, created,
updated, is_deleted, extra,
images, detail)
values (#{uid,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{tags,jdbcType=VARCHAR},
#{price,jdbcType=BIGINT}, #{bidTime,jdbcType=TIMESTAMP}, #{created,jdbcType=TIMESTAMP},
#{updated,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT}, #{extra,jdbcType=LONGVARCHAR},
#{images,jdbcType=LONGVARCHAR}, #{detail,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.UgcCoinWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into ugc_coin
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uid != null">
`uid`,
</if>
<if test="name != null">
`name`,
</if>
<if test="tags != null">
tags,
</if>
<if test="price != null">
price,
</if>
<if test="bidTime != null">
bid_time,
</if>
<if test="created != null">
created,
</if>
<if test="updated != null">
updated,
</if>
<if test="isDeleted != null">
is_deleted,
</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="uid != null">
#{uid,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="tags != null">
#{tags,jdbcType=VARCHAR},
</if>
<if test="price != null">
#{price,jdbcType=BIGINT},
</if>
<if test="bidTime != null">
#{bidTime,jdbcType=TIMESTAMP},
</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="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.UgcCoinExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from ugc_coin
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update ugc_coin
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.uid != null">
`uid` = #{record.uid,jdbcType=BIGINT},
</if>
<if test="record.name != null">
`name` = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.tags != null">
tags = #{record.tags,jdbcType=VARCHAR},
</if>
<if test="record.price != null">
price = #{record.price,jdbcType=BIGINT},
</if>
<if test="record.bidTime != null">
bid_time = #{record.bidTime,jdbcType=TIMESTAMP},
</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.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">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update ugc_coin
set id = #{record.id,jdbcType=BIGINT},
`uid` = #{record.uid,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
tags = #{record.tags,jdbcType=VARCHAR},
price = #{record.price,jdbcType=BIGINT},
bid_time = #{record.bidTime,jdbcType=TIMESTAMP},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
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="logicalDeleteByPrimaryKey" parameterType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
@project https://github.com/itfsw/mybatis-generator-plugin
-->
update ugc_coin set is_deleted = 1
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByExample" parameterType="map">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update ugc_coin
set id = #{record.id,jdbcType=BIGINT},
`uid` = #{record.uid,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
tags = #{record.tags,jdbcType=VARCHAR},
price = #{record.price,jdbcType=BIGINT},
bid_time = #{record.bidTime,jdbcType=TIMESTAMP},
created = #{record.created,jdbcType=TIMESTAMP},
updated = #{record.updated,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.wwdz.ch.db.domain.UgcCoinWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update ugc_coin
<set>
<if test="uid != null">
`uid` = #{uid,jdbcType=BIGINT},
</if>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
</if>
<if test="tags != null">
tags = #{tags,jdbcType=VARCHAR},
</if>
<if test="price != null">
price = #{price,jdbcType=BIGINT},
</if>
<if test="bidTime != null">
bid_time = #{bidTime,jdbcType=TIMESTAMP},
</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="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.UgcCoinWithBLOBs">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update ugc_coin
set `uid` = #{uid,jdbcType=BIGINT},
`name` = #{name,jdbcType=VARCHAR},
tags = #{tags,jdbcType=VARCHAR},
price = #{price,jdbcType=BIGINT},
bid_time = #{bidTime,jdbcType=TIMESTAMP},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
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.UgcCoin">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update ugc_coin
set `uid` = #{uid,jdbcType=BIGINT},
`name` = #{name,jdbcType=VARCHAR},
tags = #{tags,jdbcType=VARCHAR},
price = #{price,jdbcType=BIGINT},
bid_time = #{bidTime,jdbcType=TIMESTAMP},
created = #{created,jdbcType=TIMESTAMP},
updated = #{updated,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.UgcCoinExample" 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
<include refid="Base_Column_List" />
from ugc_coin
<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.UgcCoinExample" 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
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from ugc_coin
<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
<choose>
<when test="selective != null and selective.length > 0">
<foreach collection="selective" item="column" separator=",">
${column.escapedColumnName}
</foreach>
</when>
<otherwise>
id, `uid`, `name`, tags, price, bid_time, created, updated, is_deleted, extra, images,
detail
</otherwise>
</choose>
from ugc_coin
<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
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