Commit 189de1f2 by XiaHou

万科接口补充

parent 0d3f588d
package com.macro.mall.mapper;
import com.macro.mall.model.VankeGoods;
import com.macro.mall.model.VankeGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface VankeGoodsMapper {
long countByExample(VankeGoodsExample example);
int deleteByExample(VankeGoodsExample example);
int deleteByPrimaryKey(Long id);
int insert(VankeGoods record);
int insertSelective(VankeGoods record);
List<VankeGoods> selectByExample(VankeGoodsExample example);
VankeGoods selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") VankeGoods record, @Param("example") VankeGoodsExample example);
int updateByExample(@Param("record") VankeGoods record, @Param("example") VankeGoodsExample example);
int updateByPrimaryKeySelective(VankeGoods record);
int updateByPrimaryKey(VankeGoods record);
}
\ No newline at end of file
package com.macro.mall.mapper;
import com.macro.mall.model.VankeSupplier;
import com.macro.mall.model.VankeSupplierExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface VankeSupplierMapper {
long countByExample(VankeSupplierExample example);
int deleteByExample(VankeSupplierExample example);
int deleteByPrimaryKey(Long id);
int insert(VankeSupplier record);
int insertSelective(VankeSupplier record);
List<VankeSupplier> selectByExample(VankeSupplierExample example);
VankeSupplier selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") VankeSupplier record, @Param("example") VankeSupplierExample example);
int updateByExample(@Param("record") VankeSupplier record, @Param("example") VankeSupplierExample example);
int updateByPrimaryKeySelective(VankeSupplier record);
int updateByPrimaryKey(VankeSupplier record);
}
\ No newline at end of file
package com.macro.mall.model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;
import org.springframework.format.annotation.DateTimeFormat;
@Entity
public class VankeGoods implements Serializable {
@ApiModelProperty(value = "id")
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private Long id;
@ApiModelProperty(value = "物品名")
private String name;
@ApiModelProperty(value = "货号")
private String goodsNo;
@ApiModelProperty(value = "物品数量")
private Integer goodsNum;
@ApiModelProperty(value = "条形码")
private String barCode;
@ApiModelProperty(value = "物品价格")
private BigDecimal prict;
@ApiModelProperty(value = "供应商id")
private Long supplierId;
@ApiModelProperty(value = "库房id")
private Long stockRoomId;
@ApiModelProperty(value = "商品分类id")
private Long goodsCategoryId;
@ApiModelProperty(value = "备注")
private String remarks;
@ApiModelProperty(value = "1未删除 0已删除")
private Integer deleteStatus;
@ApiModelProperty(value = "1启用 0禁用")
private Integer status;
@ApiModelProperty(value = "创建人")
private Long createBy;
@ApiModelProperty(value = "修改人")
private Long updateBy;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createtime;
@ApiModelProperty(value = "更新时间")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatetime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getGoodsNo() {
return goodsNo;
}
public void setGoodsNo(String goodsNo) {
this.goodsNo = goodsNo;
}
public Integer getGoodsNum() {
return goodsNum;
}
public void setGoodsNum(Integer goodsNum) {
this.goodsNum = goodsNum;
}
public String getBarCode() {
return barCode;
}
public void setBarCode(String barCode) {
this.barCode = barCode;
}
public BigDecimal getPrict() {
return prict;
}
public void setPrict(BigDecimal prict) {
this.prict = prict;
}
public Long getSupplierId() {
return supplierId;
}
public void setSupplierId(Long supplierId) {
this.supplierId = supplierId;
}
public Long getStockRoomId() {
return stockRoomId;
}
public void setStockRoomId(Long stockRoomId) {
this.stockRoomId = stockRoomId;
}
public Long getGoodsCategoryId() {
return goodsCategoryId;
}
public void setGoodsCategoryId(Long goodsCategoryId) {
this.goodsCategoryId = goodsCategoryId;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public Integer getDeleteStatus() {
return deleteStatus;
}
public void setDeleteStatus(Integer deleteStatus) {
this.deleteStatus = deleteStatus;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Long getCreateBy() {
return createBy;
}
public void setCreateBy(Long createBy) {
this.createBy = createBy;
}
public Long getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Long updateBy) {
this.updateBy = updateBy;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public Date getUpdatetime() {
return updatetime;
}
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", name=").append(name);
sb.append(", goodsNo=").append(goodsNo);
sb.append(", goodsNum=").append(goodsNum);
sb.append(", barCode=").append(barCode);
sb.append(", prict=").append(prict);
sb.append(", supplierId=").append(supplierId);
sb.append(", stockRoomId=").append(stockRoomId);
sb.append(", goodsCategoryId=").append(goodsCategoryId);
sb.append(", remarks=").append(remarks);
sb.append(", deleteStatus=").append(deleteStatus);
sb.append(", status=").append(status);
sb.append(", createBy=").append(createBy);
sb.append(", updateBy=").append(updateBy);
sb.append(", createtime=").append(createtime);
sb.append(", updatetime=").append(updatetime);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.macro.mall.model;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class VankeGoodsExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public VankeGoodsExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
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 andGoodsNoIsNull() {
addCriterion("goods_no is null");
return (Criteria) this;
}
public Criteria andGoodsNoIsNotNull() {
addCriterion("goods_no is not null");
return (Criteria) this;
}
public Criteria andGoodsNoEqualTo(String value) {
addCriterion("goods_no =", value, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoNotEqualTo(String value) {
addCriterion("goods_no <>", value, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoGreaterThan(String value) {
addCriterion("goods_no >", value, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoGreaterThanOrEqualTo(String value) {
addCriterion("goods_no >=", value, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoLessThan(String value) {
addCriterion("goods_no <", value, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoLessThanOrEqualTo(String value) {
addCriterion("goods_no <=", value, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoLike(String value) {
addCriterion("goods_no like", value, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoNotLike(String value) {
addCriterion("goods_no not like", value, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoIn(List<String> values) {
addCriterion("goods_no in", values, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoNotIn(List<String> values) {
addCriterion("goods_no not in", values, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoBetween(String value1, String value2) {
addCriterion("goods_no between", value1, value2, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNoNotBetween(String value1, String value2) {
addCriterion("goods_no not between", value1, value2, "goodsNo");
return (Criteria) this;
}
public Criteria andGoodsNumIsNull() {
addCriterion("goods_num is null");
return (Criteria) this;
}
public Criteria andGoodsNumIsNotNull() {
addCriterion("goods_num is not null");
return (Criteria) this;
}
public Criteria andGoodsNumEqualTo(Integer value) {
addCriterion("goods_num =", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumNotEqualTo(Integer value) {
addCriterion("goods_num <>", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumGreaterThan(Integer value) {
addCriterion("goods_num >", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumGreaterThanOrEqualTo(Integer value) {
addCriterion("goods_num >=", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumLessThan(Integer value) {
addCriterion("goods_num <", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumLessThanOrEqualTo(Integer value) {
addCriterion("goods_num <=", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumIn(List<Integer> values) {
addCriterion("goods_num in", values, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumNotIn(List<Integer> values) {
addCriterion("goods_num not in", values, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumBetween(Integer value1, Integer value2) {
addCriterion("goods_num between", value1, value2, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumNotBetween(Integer value1, Integer value2) {
addCriterion("goods_num not between", value1, value2, "goodsNum");
return (Criteria) this;
}
public Criteria andBarCodeIsNull() {
addCriterion("bar_code is null");
return (Criteria) this;
}
public Criteria andBarCodeIsNotNull() {
addCriterion("bar_code is not null");
return (Criteria) this;
}
public Criteria andBarCodeEqualTo(String value) {
addCriterion("bar_code =", value, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeNotEqualTo(String value) {
addCriterion("bar_code <>", value, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeGreaterThan(String value) {
addCriterion("bar_code >", value, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeGreaterThanOrEqualTo(String value) {
addCriterion("bar_code >=", value, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeLessThan(String value) {
addCriterion("bar_code <", value, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeLessThanOrEqualTo(String value) {
addCriterion("bar_code <=", value, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeLike(String value) {
addCriterion("bar_code like", value, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeNotLike(String value) {
addCriterion("bar_code not like", value, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeIn(List<String> values) {
addCriterion("bar_code in", values, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeNotIn(List<String> values) {
addCriterion("bar_code not in", values, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeBetween(String value1, String value2) {
addCriterion("bar_code between", value1, value2, "barCode");
return (Criteria) this;
}
public Criteria andBarCodeNotBetween(String value1, String value2) {
addCriterion("bar_code not between", value1, value2, "barCode");
return (Criteria) this;
}
public Criteria andPrictIsNull() {
addCriterion("prict is null");
return (Criteria) this;
}
public Criteria andPrictIsNotNull() {
addCriterion("prict is not null");
return (Criteria) this;
}
public Criteria andPrictEqualTo(BigDecimal value) {
addCriterion("prict =", value, "prict");
return (Criteria) this;
}
public Criteria andPrictNotEqualTo(BigDecimal value) {
addCriterion("prict <>", value, "prict");
return (Criteria) this;
}
public Criteria andPrictGreaterThan(BigDecimal value) {
addCriterion("prict >", value, "prict");
return (Criteria) this;
}
public Criteria andPrictGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("prict >=", value, "prict");
return (Criteria) this;
}
public Criteria andPrictLessThan(BigDecimal value) {
addCriterion("prict <", value, "prict");
return (Criteria) this;
}
public Criteria andPrictLessThanOrEqualTo(BigDecimal value) {
addCriterion("prict <=", value, "prict");
return (Criteria) this;
}
public Criteria andPrictIn(List<BigDecimal> values) {
addCriterion("prict in", values, "prict");
return (Criteria) this;
}
public Criteria andPrictNotIn(List<BigDecimal> values) {
addCriterion("prict not in", values, "prict");
return (Criteria) this;
}
public Criteria andPrictBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("prict between", value1, value2, "prict");
return (Criteria) this;
}
public Criteria andPrictNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("prict not between", value1, value2, "prict");
return (Criteria) this;
}
public Criteria andSupplierIdIsNull() {
addCriterion("supplier_id is null");
return (Criteria) this;
}
public Criteria andSupplierIdIsNotNull() {
addCriterion("supplier_id is not null");
return (Criteria) this;
}
public Criteria andSupplierIdEqualTo(Long value) {
addCriterion("supplier_id =", value, "supplierId");
return (Criteria) this;
}
public Criteria andSupplierIdNotEqualTo(Long value) {
addCriterion("supplier_id <>", value, "supplierId");
return (Criteria) this;
}
public Criteria andSupplierIdGreaterThan(Long value) {
addCriterion("supplier_id >", value, "supplierId");
return (Criteria) this;
}
public Criteria andSupplierIdGreaterThanOrEqualTo(Long value) {
addCriterion("supplier_id >=", value, "supplierId");
return (Criteria) this;
}
public Criteria andSupplierIdLessThan(Long value) {
addCriterion("supplier_id <", value, "supplierId");
return (Criteria) this;
}
public Criteria andSupplierIdLessThanOrEqualTo(Long value) {
addCriterion("supplier_id <=", value, "supplierId");
return (Criteria) this;
}
public Criteria andSupplierIdIn(List<Long> values) {
addCriterion("supplier_id in", values, "supplierId");
return (Criteria) this;
}
public Criteria andSupplierIdNotIn(List<Long> values) {
addCriterion("supplier_id not in", values, "supplierId");
return (Criteria) this;
}
public Criteria andSupplierIdBetween(Long value1, Long value2) {
addCriterion("supplier_id between", value1, value2, "supplierId");
return (Criteria) this;
}
public Criteria andSupplierIdNotBetween(Long value1, Long value2) {
addCriterion("supplier_id not between", value1, value2, "supplierId");
return (Criteria) this;
}
public Criteria andStockRoomIdIsNull() {
addCriterion("stock_room_id is null");
return (Criteria) this;
}
public Criteria andStockRoomIdIsNotNull() {
addCriterion("stock_room_id is not null");
return (Criteria) this;
}
public Criteria andStockRoomIdEqualTo(Long value) {
addCriterion("stock_room_id =", value, "stockRoomId");
return (Criteria) this;
}
public Criteria andStockRoomIdNotEqualTo(Long value) {
addCriterion("stock_room_id <>", value, "stockRoomId");
return (Criteria) this;
}
public Criteria andStockRoomIdGreaterThan(Long value) {
addCriterion("stock_room_id >", value, "stockRoomId");
return (Criteria) this;
}
public Criteria andStockRoomIdGreaterThanOrEqualTo(Long value) {
addCriterion("stock_room_id >=", value, "stockRoomId");
return (Criteria) this;
}
public Criteria andStockRoomIdLessThan(Long value) {
addCriterion("stock_room_id <", value, "stockRoomId");
return (Criteria) this;
}
public Criteria andStockRoomIdLessThanOrEqualTo(Long value) {
addCriterion("stock_room_id <=", value, "stockRoomId");
return (Criteria) this;
}
public Criteria andStockRoomIdIn(List<Long> values) {
addCriterion("stock_room_id in", values, "stockRoomId");
return (Criteria) this;
}
public Criteria andStockRoomIdNotIn(List<Long> values) {
addCriterion("stock_room_id not in", values, "stockRoomId");
return (Criteria) this;
}
public Criteria andStockRoomIdBetween(Long value1, Long value2) {
addCriterion("stock_room_id between", value1, value2, "stockRoomId");
return (Criteria) this;
}
public Criteria andStockRoomIdNotBetween(Long value1, Long value2) {
addCriterion("stock_room_id not between", value1, value2, "stockRoomId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdIsNull() {
addCriterion("goods_category_id is null");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdIsNotNull() {
addCriterion("goods_category_id is not null");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdEqualTo(Long value) {
addCriterion("goods_category_id =", value, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdNotEqualTo(Long value) {
addCriterion("goods_category_id <>", value, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdGreaterThan(Long value) {
addCriterion("goods_category_id >", value, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdGreaterThanOrEqualTo(Long value) {
addCriterion("goods_category_id >=", value, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdLessThan(Long value) {
addCriterion("goods_category_id <", value, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdLessThanOrEqualTo(Long value) {
addCriterion("goods_category_id <=", value, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdIn(List<Long> values) {
addCriterion("goods_category_id in", values, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdNotIn(List<Long> values) {
addCriterion("goods_category_id not in", values, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdBetween(Long value1, Long value2) {
addCriterion("goods_category_id between", value1, value2, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andGoodsCategoryIdNotBetween(Long value1, Long value2) {
addCriterion("goods_category_id not between", value1, value2, "goodsCategoryId");
return (Criteria) this;
}
public Criteria andRemarksIsNull() {
addCriterion("remarks is null");
return (Criteria) this;
}
public Criteria andRemarksIsNotNull() {
addCriterion("remarks is not null");
return (Criteria) this;
}
public Criteria andRemarksEqualTo(String value) {
addCriterion("remarks =", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotEqualTo(String value) {
addCriterion("remarks <>", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksGreaterThan(String value) {
addCriterion("remarks >", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksGreaterThanOrEqualTo(String value) {
addCriterion("remarks >=", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksLessThan(String value) {
addCriterion("remarks <", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksLessThanOrEqualTo(String value) {
addCriterion("remarks <=", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksLike(String value) {
addCriterion("remarks like", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotLike(String value) {
addCriterion("remarks not like", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksIn(List<String> values) {
addCriterion("remarks in", values, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotIn(List<String> values) {
addCriterion("remarks not in", values, "remarks");
return (Criteria) this;
}
public Criteria andRemarksBetween(String value1, String value2) {
addCriterion("remarks between", value1, value2, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotBetween(String value1, String value2) {
addCriterion("remarks not between", value1, value2, "remarks");
return (Criteria) this;
}
public Criteria andDeleteStatusIsNull() {
addCriterion("delete_status is null");
return (Criteria) this;
}
public Criteria andDeleteStatusIsNotNull() {
addCriterion("delete_status is not null");
return (Criteria) this;
}
public Criteria andDeleteStatusEqualTo(Integer value) {
addCriterion("delete_status =", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusNotEqualTo(Integer value) {
addCriterion("delete_status <>", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusGreaterThan(Integer value) {
addCriterion("delete_status >", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("delete_status >=", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusLessThan(Integer value) {
addCriterion("delete_status <", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusLessThanOrEqualTo(Integer value) {
addCriterion("delete_status <=", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusIn(List<Integer> values) {
addCriterion("delete_status in", values, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusNotIn(List<Integer> values) {
addCriterion("delete_status not in", values, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusBetween(Integer value1, Integer value2) {
addCriterion("delete_status between", value1, value2, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusNotBetween(Integer value1, Integer value2) {
addCriterion("delete_status not between", value1, value2, "deleteStatus");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(Long value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(Long value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(Long value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(Long value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(Long value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(Long value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<Long> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<Long> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(Long value1, Long value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(Long value1, Long value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(Long value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(Long value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(Long value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(Long value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(Long value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(Long value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<Long> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<Long> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(Long value1, Long value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(Long value1, Long value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andCreatetimeIsNull() {
addCriterion("createtime is null");
return (Criteria) this;
}
public Criteria andCreatetimeIsNotNull() {
addCriterion("createtime is not null");
return (Criteria) this;
}
public Criteria andCreatetimeEqualTo(Date value) {
addCriterion("createtime =", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotEqualTo(Date value) {
addCriterion("createtime <>", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThan(Date value) {
addCriterion("createtime >", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
addCriterion("createtime >=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThan(Date value) {
addCriterion("createtime <", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
addCriterion("createtime <=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeIn(List<Date> values) {
addCriterion("createtime in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotIn(List<Date> values) {
addCriterion("createtime not in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeBetween(Date value1, Date value2) {
addCriterion("createtime between", value1, value2, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
addCriterion("createtime not between", value1, value2, "createtime");
return (Criteria) this;
}
public Criteria andUpdatetimeIsNull() {
addCriterion("updatetime is null");
return (Criteria) this;
}
public Criteria andUpdatetimeIsNotNull() {
addCriterion("updatetime is not null");
return (Criteria) this;
}
public Criteria andUpdatetimeEqualTo(Date value) {
addCriterion("updatetime =", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeNotEqualTo(Date value) {
addCriterion("updatetime <>", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeGreaterThan(Date value) {
addCriterion("updatetime >", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
addCriterion("updatetime >=", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeLessThan(Date value) {
addCriterion("updatetime <", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
addCriterion("updatetime <=", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeIn(List<Date> values) {
addCriterion("updatetime in", values, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeNotIn(List<Date> values) {
addCriterion("updatetime not in", values, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeBetween(Date value1, Date value2) {
addCriterion("updatetime between", value1, value2, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
addCriterion("updatetime not between", value1, value2, "updatetime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ No newline at end of file
package com.macro.mall.model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import org.springframework.format.annotation.DateTimeFormat;
@Entity
public class VankeSupplier implements Serializable {
@ApiModelProperty(value = "id")
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private Long id;
@ApiModelProperty(value = "供应商名称")
private String supplierName;
@ApiModelProperty(value = "联系人")
private String name;
@ApiModelProperty(value = "手机号")
private String tel;
@ApiModelProperty(value = "供应物品数量")
private Integer goodsNum;
@ApiModelProperty(value = "备注")
private String remarks;
@ApiModelProperty(value = "1未删除 0已删除")
private Integer deleteStatus;
@ApiModelProperty(value = "1启用 0禁用")
private Integer status;
@ApiModelProperty(value = "创建人")
private Long createBy;
@ApiModelProperty(value = "修改人")
private Long updateBy;
@ApiModelProperty(value = "创建时间")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createtime;
@ApiModelProperty(value = "更新时间")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updatetime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getSupplierName() {
return supplierName;
}
public void setSupplierName(String supplierName) {
this.supplierName = supplierName;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTel() {
return tel;
}
public void setTel(String tel) {
this.tel = tel;
}
public Integer getGoodsNum() {
return goodsNum;
}
public void setGoodsNum(Integer goodsNum) {
this.goodsNum = goodsNum;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public Integer getDeleteStatus() {
return deleteStatus;
}
public void setDeleteStatus(Integer deleteStatus) {
this.deleteStatus = deleteStatus;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Long getCreateBy() {
return createBy;
}
public void setCreateBy(Long createBy) {
this.createBy = createBy;
}
public Long getUpdateBy() {
return updateBy;
}
public void setUpdateBy(Long updateBy) {
this.updateBy = updateBy;
}
public Date getCreatetime() {
return createtime;
}
public void setCreatetime(Date createtime) {
this.createtime = createtime;
}
public Date getUpdatetime() {
return updatetime;
}
public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime;
}
@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(", supplierName=").append(supplierName);
sb.append(", name=").append(name);
sb.append(", tel=").append(tel);
sb.append(", goodsNum=").append(goodsNum);
sb.append(", remarks=").append(remarks);
sb.append(", deleteStatus=").append(deleteStatus);
sb.append(", status=").append(status);
sb.append(", createBy=").append(createBy);
sb.append(", updateBy=").append(updateBy);
sb.append(", createtime=").append(createtime);
sb.append(", updatetime=").append(updatetime);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.macro.mall.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class VankeSupplierExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public VankeSupplierExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
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 andSupplierNameIsNull() {
addCriterion("supplier_name is null");
return (Criteria) this;
}
public Criteria andSupplierNameIsNotNull() {
addCriterion("supplier_name is not null");
return (Criteria) this;
}
public Criteria andSupplierNameEqualTo(String value) {
addCriterion("supplier_name =", value, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameNotEqualTo(String value) {
addCriterion("supplier_name <>", value, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameGreaterThan(String value) {
addCriterion("supplier_name >", value, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameGreaterThanOrEqualTo(String value) {
addCriterion("supplier_name >=", value, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameLessThan(String value) {
addCriterion("supplier_name <", value, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameLessThanOrEqualTo(String value) {
addCriterion("supplier_name <=", value, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameLike(String value) {
addCriterion("supplier_name like", value, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameNotLike(String value) {
addCriterion("supplier_name not like", value, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameIn(List<String> values) {
addCriterion("supplier_name in", values, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameNotIn(List<String> values) {
addCriterion("supplier_name not in", values, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameBetween(String value1, String value2) {
addCriterion("supplier_name between", value1, value2, "supplierName");
return (Criteria) this;
}
public Criteria andSupplierNameNotBetween(String value1, String value2) {
addCriterion("supplier_name not between", value1, value2, "supplierName");
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;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
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 andTelIsNull() {
addCriterion("tel is null");
return (Criteria) this;
}
public Criteria andTelIsNotNull() {
addCriterion("tel is not null");
return (Criteria) this;
}
public Criteria andTelEqualTo(String value) {
addCriterion("tel =", value, "tel");
return (Criteria) this;
}
public Criteria andTelNotEqualTo(String value) {
addCriterion("tel <>", value, "tel");
return (Criteria) this;
}
public Criteria andTelGreaterThan(String value) {
addCriterion("tel >", value, "tel");
return (Criteria) this;
}
public Criteria andTelGreaterThanOrEqualTo(String value) {
addCriterion("tel >=", value, "tel");
return (Criteria) this;
}
public Criteria andTelLessThan(String value) {
addCriterion("tel <", value, "tel");
return (Criteria) this;
}
public Criteria andTelLessThanOrEqualTo(String value) {
addCriterion("tel <=", value, "tel");
return (Criteria) this;
}
public Criteria andTelLike(String value) {
addCriterion("tel like", value, "tel");
return (Criteria) this;
}
public Criteria andTelNotLike(String value) {
addCriterion("tel not like", value, "tel");
return (Criteria) this;
}
public Criteria andTelIn(List<String> values) {
addCriterion("tel in", values, "tel");
return (Criteria) this;
}
public Criteria andTelNotIn(List<String> values) {
addCriterion("tel not in", values, "tel");
return (Criteria) this;
}
public Criteria andTelBetween(String value1, String value2) {
addCriterion("tel between", value1, value2, "tel");
return (Criteria) this;
}
public Criteria andTelNotBetween(String value1, String value2) {
addCriterion("tel not between", value1, value2, "tel");
return (Criteria) this;
}
public Criteria andGoodsNumIsNull() {
addCriterion("goods_num is null");
return (Criteria) this;
}
public Criteria andGoodsNumIsNotNull() {
addCriterion("goods_num is not null");
return (Criteria) this;
}
public Criteria andGoodsNumEqualTo(Integer value) {
addCriterion("goods_num =", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumNotEqualTo(Integer value) {
addCriterion("goods_num <>", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumGreaterThan(Integer value) {
addCriterion("goods_num >", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumGreaterThanOrEqualTo(Integer value) {
addCriterion("goods_num >=", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumLessThan(Integer value) {
addCriterion("goods_num <", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumLessThanOrEqualTo(Integer value) {
addCriterion("goods_num <=", value, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumIn(List<Integer> values) {
addCriterion("goods_num in", values, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumNotIn(List<Integer> values) {
addCriterion("goods_num not in", values, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumBetween(Integer value1, Integer value2) {
addCriterion("goods_num between", value1, value2, "goodsNum");
return (Criteria) this;
}
public Criteria andGoodsNumNotBetween(Integer value1, Integer value2) {
addCriterion("goods_num not between", value1, value2, "goodsNum");
return (Criteria) this;
}
public Criteria andRemarksIsNull() {
addCriterion("remarks is null");
return (Criteria) this;
}
public Criteria andRemarksIsNotNull() {
addCriterion("remarks is not null");
return (Criteria) this;
}
public Criteria andRemarksEqualTo(String value) {
addCriterion("remarks =", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotEqualTo(String value) {
addCriterion("remarks <>", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksGreaterThan(String value) {
addCriterion("remarks >", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksGreaterThanOrEqualTo(String value) {
addCriterion("remarks >=", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksLessThan(String value) {
addCriterion("remarks <", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksLessThanOrEqualTo(String value) {
addCriterion("remarks <=", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksLike(String value) {
addCriterion("remarks like", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotLike(String value) {
addCriterion("remarks not like", value, "remarks");
return (Criteria) this;
}
public Criteria andRemarksIn(List<String> values) {
addCriterion("remarks in", values, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotIn(List<String> values) {
addCriterion("remarks not in", values, "remarks");
return (Criteria) this;
}
public Criteria andRemarksBetween(String value1, String value2) {
addCriterion("remarks between", value1, value2, "remarks");
return (Criteria) this;
}
public Criteria andRemarksNotBetween(String value1, String value2) {
addCriterion("remarks not between", value1, value2, "remarks");
return (Criteria) this;
}
public Criteria andDeleteStatusIsNull() {
addCriterion("delete_status is null");
return (Criteria) this;
}
public Criteria andDeleteStatusIsNotNull() {
addCriterion("delete_status is not null");
return (Criteria) this;
}
public Criteria andDeleteStatusEqualTo(Integer value) {
addCriterion("delete_status =", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusNotEqualTo(Integer value) {
addCriterion("delete_status <>", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusGreaterThan(Integer value) {
addCriterion("delete_status >", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("delete_status >=", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusLessThan(Integer value) {
addCriterion("delete_status <", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusLessThanOrEqualTo(Integer value) {
addCriterion("delete_status <=", value, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusIn(List<Integer> values) {
addCriterion("delete_status in", values, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusNotIn(List<Integer> values) {
addCriterion("delete_status not in", values, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusBetween(Integer value1, Integer value2) {
addCriterion("delete_status between", value1, value2, "deleteStatus");
return (Criteria) this;
}
public Criteria andDeleteStatusNotBetween(Integer value1, Integer value2) {
addCriterion("delete_status not between", value1, value2, "deleteStatus");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(Long value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(Long value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(Long value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(Long value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(Long value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(Long value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<Long> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<Long> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(Long value1, Long value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(Long value1, Long value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(Long value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(Long value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(Long value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(Long value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(Long value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(Long value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<Long> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<Long> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(Long value1, Long value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(Long value1, Long value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andCreatetimeIsNull() {
addCriterion("createtime is null");
return (Criteria) this;
}
public Criteria andCreatetimeIsNotNull() {
addCriterion("createtime is not null");
return (Criteria) this;
}
public Criteria andCreatetimeEqualTo(Date value) {
addCriterion("createtime =", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotEqualTo(Date value) {
addCriterion("createtime <>", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThan(Date value) {
addCriterion("createtime >", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
addCriterion("createtime >=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThan(Date value) {
addCriterion("createtime <", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
addCriterion("createtime <=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeIn(List<Date> values) {
addCriterion("createtime in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotIn(List<Date> values) {
addCriterion("createtime not in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeBetween(Date value1, Date value2) {
addCriterion("createtime between", value1, value2, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
addCriterion("createtime not between", value1, value2, "createtime");
return (Criteria) this;
}
public Criteria andUpdatetimeIsNull() {
addCriterion("updatetime is null");
return (Criteria) this;
}
public Criteria andUpdatetimeIsNotNull() {
addCriterion("updatetime is not null");
return (Criteria) this;
}
public Criteria andUpdatetimeEqualTo(Date value) {
addCriterion("updatetime =", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeNotEqualTo(Date value) {
addCriterion("updatetime <>", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeGreaterThan(Date value) {
addCriterion("updatetime >", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
addCriterion("updatetime >=", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeLessThan(Date value) {
addCriterion("updatetime <", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
addCriterion("updatetime <=", value, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeIn(List<Date> values) {
addCriterion("updatetime in", values, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeNotIn(List<Date> values) {
addCriterion("updatetime not in", values, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeBetween(Date value1, Date value2) {
addCriterion("updatetime between", value1, value2, "updatetime");
return (Criteria) this;
}
public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
addCriterion("updatetime not between", value1, value2, "updatetime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}
\ 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.macro.mall.mapper.VankeGoodsMapper">
<resultMap id="BaseResultMap" type="com.macro.mall.model.VankeGoods">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="goods_no" jdbcType="VARCHAR" property="goodsNo" />
<result column="goods_num" jdbcType="INTEGER" property="goodsNum" />
<result column="bar_code" jdbcType="VARCHAR" property="barCode" />
<result column="prict" jdbcType="DECIMAL" property="prict" />
<result column="supplier_id" jdbcType="BIGINT" property="supplierId" />
<result column="stock_room_id" jdbcType="BIGINT" property="stockRoomId" />
<result column="goods_category_id" jdbcType="BIGINT" property="goodsCategoryId" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
<result column="delete_status" jdbcType="INTEGER" property="deleteStatus" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_by" jdbcType="BIGINT" property="createBy" />
<result column="update_by" jdbcType="BIGINT" property="updateBy" />
<result column="createtime" jdbcType="TIMESTAMP" property="createtime" />
<result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, name, goods_no, goods_num, bar_code, prict, supplier_id, stock_room_id, goods_category_id,
remarks, delete_status, status, create_by, update_by, createtime, updatetime
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.VankeGoodsExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from vanke_goods
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from vanke_goods
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from vanke_goods
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.VankeGoodsExample">
delete from vanke_goods
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.VankeGoods">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into vanke_goods (name, goods_no, goods_num,
bar_code, prict, supplier_id,
stock_room_id, goods_category_id, remarks,
delete_status, status, create_by,
update_by, createtime, updatetime
)
values (#{name,jdbcType=VARCHAR}, #{goodsNo,jdbcType=VARCHAR}, #{goodsNum,jdbcType=INTEGER},
#{barCode,jdbcType=VARCHAR}, #{prict,jdbcType=DECIMAL}, #{supplierId,jdbcType=BIGINT},
#{stockRoomId,jdbcType=BIGINT}, #{goodsCategoryId,jdbcType=BIGINT}, #{remarks,jdbcType=VARCHAR},
#{deleteStatus,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createBy,jdbcType=BIGINT},
#{updateBy,jdbcType=BIGINT}, #{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.VankeGoods">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into vanke_goods
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="goodsNo != null">
goods_no,
</if>
<if test="goodsNum != null">
goods_num,
</if>
<if test="barCode != null">
bar_code,
</if>
<if test="prict != null">
prict,
</if>
<if test="supplierId != null">
supplier_id,
</if>
<if test="stockRoomId != null">
stock_room_id,
</if>
<if test="goodsCategoryId != null">
goods_category_id,
</if>
<if test="remarks != null">
remarks,
</if>
<if test="deleteStatus != null">
delete_status,
</if>
<if test="status != null">
status,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="createtime != null">
createtime,
</if>
<if test="updatetime != null">
updatetime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="goodsNo != null">
#{goodsNo,jdbcType=VARCHAR},
</if>
<if test="goodsNum != null">
#{goodsNum,jdbcType=INTEGER},
</if>
<if test="barCode != null">
#{barCode,jdbcType=VARCHAR},
</if>
<if test="prict != null">
#{prict,jdbcType=DECIMAL},
</if>
<if test="supplierId != null">
#{supplierId,jdbcType=BIGINT},
</if>
<if test="stockRoomId != null">
#{stockRoomId,jdbcType=BIGINT},
</if>
<if test="goodsCategoryId != null">
#{goodsCategoryId,jdbcType=BIGINT},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="deleteStatus != null">
#{deleteStatus,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createBy != null">
#{createBy,jdbcType=BIGINT},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=BIGINT},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
#{updatetime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.VankeGoodsExample" resultType="java.lang.Long">
select count(*) from vanke_goods
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update vanke_goods
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.goodsNo != null">
goods_no = #{record.goodsNo,jdbcType=VARCHAR},
</if>
<if test="record.goodsNum != null">
goods_num = #{record.goodsNum,jdbcType=INTEGER},
</if>
<if test="record.barCode != null">
bar_code = #{record.barCode,jdbcType=VARCHAR},
</if>
<if test="record.prict != null">
prict = #{record.prict,jdbcType=DECIMAL},
</if>
<if test="record.supplierId != null">
supplier_id = #{record.supplierId,jdbcType=BIGINT},
</if>
<if test="record.stockRoomId != null">
stock_room_id = #{record.stockRoomId,jdbcType=BIGINT},
</if>
<if test="record.goodsCategoryId != null">
goods_category_id = #{record.goodsCategoryId,jdbcType=BIGINT},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,jdbcType=VARCHAR},
</if>
<if test="record.deleteStatus != null">
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=BIGINT},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=BIGINT},
</if>
<if test="record.createtime != null">
createtime = #{record.createtime,jdbcType=TIMESTAMP},
</if>
<if test="record.updatetime != null">
updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update vanke_goods
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
goods_no = #{record.goodsNo,jdbcType=VARCHAR},
goods_num = #{record.goodsNum,jdbcType=INTEGER},
bar_code = #{record.barCode,jdbcType=VARCHAR},
prict = #{record.prict,jdbcType=DECIMAL},
supplier_id = #{record.supplierId,jdbcType=BIGINT},
stock_room_id = #{record.stockRoomId,jdbcType=BIGINT},
goods_category_id = #{record.goodsCategoryId,jdbcType=BIGINT},
remarks = #{record.remarks,jdbcType=VARCHAR},
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
status = #{record.status,jdbcType=INTEGER},
create_by = #{record.createBy,jdbcType=BIGINT},
update_by = #{record.updateBy,jdbcType=BIGINT},
createtime = #{record.createtime,jdbcType=TIMESTAMP},
updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.VankeGoods">
update vanke_goods
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="goodsNo != null">
goods_no = #{goodsNo,jdbcType=VARCHAR},
</if>
<if test="goodsNum != null">
goods_num = #{goodsNum,jdbcType=INTEGER},
</if>
<if test="barCode != null">
bar_code = #{barCode,jdbcType=VARCHAR},
</if>
<if test="prict != null">
prict = #{prict,jdbcType=DECIMAL},
</if>
<if test="supplierId != null">
supplier_id = #{supplierId,jdbcType=BIGINT},
</if>
<if test="stockRoomId != null">
stock_room_id = #{stockRoomId,jdbcType=BIGINT},
</if>
<if test="goodsCategoryId != null">
goods_category_id = #{goodsCategoryId,jdbcType=BIGINT},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="deleteStatus != null">
delete_status = #{deleteStatus,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=BIGINT},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=BIGINT},
</if>
<if test="createtime != null">
createtime = #{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
updatetime = #{updatetime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.VankeGoods">
update vanke_goods
set name = #{name,jdbcType=VARCHAR},
goods_no = #{goodsNo,jdbcType=VARCHAR},
goods_num = #{goodsNum,jdbcType=INTEGER},
bar_code = #{barCode,jdbcType=VARCHAR},
prict = #{prict,jdbcType=DECIMAL},
supplier_id = #{supplierId,jdbcType=BIGINT},
stock_room_id = #{stockRoomId,jdbcType=BIGINT},
goods_category_id = #{goodsCategoryId,jdbcType=BIGINT},
remarks = #{remarks,jdbcType=VARCHAR},
delete_status = #{deleteStatus,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=BIGINT},
update_by = #{updateBy,jdbcType=BIGINT},
createtime = #{createtime,jdbcType=TIMESTAMP},
updatetime = #{updatetime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</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.macro.mall.mapper.VankeSupplierMapper">
<resultMap id="BaseResultMap" type="com.macro.mall.model.VankeSupplier">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="supplier_name" jdbcType="VARCHAR" property="supplierName" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="tel" jdbcType="VARCHAR" property="tel" />
<result column="goods_num" jdbcType="INTEGER" property="goodsNum" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
<result column="delete_status" jdbcType="INTEGER" property="deleteStatus" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="create_by" jdbcType="BIGINT" property="createBy" />
<result column="update_by" jdbcType="BIGINT" property="updateBy" />
<result column="createtime" jdbcType="TIMESTAMP" property="createtime" />
<result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, supplier_name, name, tel, goods_num, remarks, delete_status, status, create_by,
update_by, createtime, updatetime
</sql>
<select id="selectByExample" parameterType="com.macro.mall.model.VankeSupplierExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from vanke_supplier
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from vanke_supplier
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from vanke_supplier
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.macro.mall.model.VankeSupplierExample">
delete from vanke_supplier
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.macro.mall.model.VankeSupplier">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into vanke_supplier (supplier_name, name, tel,
goods_num, remarks, delete_status,
status, create_by, update_by,
createtime, updatetime)
values (#{supplierName,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{tel,jdbcType=VARCHAR},
#{goodsNum,jdbcType=INTEGER}, #{remarks,jdbcType=VARCHAR}, #{deleteStatus,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{createBy,jdbcType=BIGINT}, #{updateBy,jdbcType=BIGINT},
#{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.macro.mall.model.VankeSupplier">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long">
SELECT LAST_INSERT_ID()
</selectKey>
insert into vanke_supplier
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="supplierName != null">
supplier_name,
</if>
<if test="name != null">
name,
</if>
<if test="tel != null">
tel,
</if>
<if test="goodsNum != null">
goods_num,
</if>
<if test="remarks != null">
remarks,
</if>
<if test="deleteStatus != null">
delete_status,
</if>
<if test="status != null">
status,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="createtime != null">
createtime,
</if>
<if test="updatetime != null">
updatetime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="supplierName != null">
#{supplierName,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="tel != null">
#{tel,jdbcType=VARCHAR},
</if>
<if test="goodsNum != null">
#{goodsNum,jdbcType=INTEGER},
</if>
<if test="remarks != null">
#{remarks,jdbcType=VARCHAR},
</if>
<if test="deleteStatus != null">
#{deleteStatus,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="createBy != null">
#{createBy,jdbcType=BIGINT},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=BIGINT},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
#{updatetime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.macro.mall.model.VankeSupplierExample" resultType="java.lang.Long">
select count(*) from vanke_supplier
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update vanke_supplier
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.supplierName != null">
supplier_name = #{record.supplierName,jdbcType=VARCHAR},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.tel != null">
tel = #{record.tel,jdbcType=VARCHAR},
</if>
<if test="record.goodsNum != null">
goods_num = #{record.goodsNum,jdbcType=INTEGER},
</if>
<if test="record.remarks != null">
remarks = #{record.remarks,jdbcType=VARCHAR},
</if>
<if test="record.deleteStatus != null">
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
</if>
<if test="record.status != null">
status = #{record.status,jdbcType=INTEGER},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=BIGINT},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=BIGINT},
</if>
<if test="record.createtime != null">
createtime = #{record.createtime,jdbcType=TIMESTAMP},
</if>
<if test="record.updatetime != null">
updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update vanke_supplier
set id = #{record.id,jdbcType=BIGINT},
supplier_name = #{record.supplierName,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
tel = #{record.tel,jdbcType=VARCHAR},
goods_num = #{record.goodsNum,jdbcType=INTEGER},
remarks = #{record.remarks,jdbcType=VARCHAR},
delete_status = #{record.deleteStatus,jdbcType=INTEGER},
status = #{record.status,jdbcType=INTEGER},
create_by = #{record.createBy,jdbcType=BIGINT},
update_by = #{record.updateBy,jdbcType=BIGINT},
createtime = #{record.createtime,jdbcType=TIMESTAMP},
updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.macro.mall.model.VankeSupplier">
update vanke_supplier
<set>
<if test="supplierName != null">
supplier_name = #{supplierName,jdbcType=VARCHAR},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="tel != null">
tel = #{tel,jdbcType=VARCHAR},
</if>
<if test="goodsNum != null">
goods_num = #{goodsNum,jdbcType=INTEGER},
</if>
<if test="remarks != null">
remarks = #{remarks,jdbcType=VARCHAR},
</if>
<if test="deleteStatus != null">
delete_status = #{deleteStatus,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=BIGINT},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=BIGINT},
</if>
<if test="createtime != null">
createtime = #{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
updatetime = #{updatetime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.macro.mall.model.VankeSupplier">
update vanke_supplier
set supplier_name = #{supplierName,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
tel = #{tel,jdbcType=VARCHAR},
goods_num = #{goodsNum,jdbcType=INTEGER},
remarks = #{remarks,jdbcType=VARCHAR},
delete_status = #{deleteStatus,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=BIGINT},
update_by = #{updateBy,jdbcType=BIGINT},
createtime = #{createtime,jdbcType=TIMESTAMP},
updatetime = #{updatetime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
</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