Merge branch 'main' of http://118.31.7.2:3000/tzjy-code/digital_trade
# Conflicts: # src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java # src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java # src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.javamain
commit
4473840c1b
@ -0,0 +1,112 @@
|
||||
package com.sztzjy.trade.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
* 商品类型信息表
|
||||
*
|
||||
* @author whb
|
||||
* admin_goods_type_info
|
||||
*/
|
||||
public class AdminGoodsTypeInfo {
|
||||
@ApiModelProperty(notes = "ID")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(notes = "商品类型")
|
||||
private String goodsType;
|
||||
|
||||
@ApiModelProperty(notes = "商品小类")
|
||||
private String goodsSubclass;
|
||||
|
||||
@ApiModelProperty(notes = "计价单位")
|
||||
private String pricingUnit;
|
||||
|
||||
@ApiModelProperty(notes = "成本价")
|
||||
private BigDecimal costPrice;
|
||||
|
||||
@ApiModelProperty(notes = "毛利率")
|
||||
private String grossMargin;
|
||||
|
||||
@ApiModelProperty(notes = "学校ID")
|
||||
private String schoolId;
|
||||
|
||||
@ApiModelProperty(notes = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(notes = "更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getGoodsType() {
|
||||
return goodsType;
|
||||
}
|
||||
|
||||
public void setGoodsType(String goodsType) {
|
||||
this.goodsType = goodsType == null ? null : goodsType.trim();
|
||||
}
|
||||
|
||||
public String getGoodsSubclass() {
|
||||
return goodsSubclass;
|
||||
}
|
||||
|
||||
public void setGoodsSubclass(String goodsSubclass) {
|
||||
this.goodsSubclass = goodsSubclass == null ? null : goodsSubclass.trim();
|
||||
}
|
||||
|
||||
public String getPricingUnit() {
|
||||
return pricingUnit;
|
||||
}
|
||||
|
||||
public void setPricingUnit(String pricingUnit) {
|
||||
this.pricingUnit = pricingUnit == null ? null : pricingUnit.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getCostPrice() {
|
||||
return costPrice;
|
||||
}
|
||||
|
||||
public void setCostPrice(BigDecimal costPrice) {
|
||||
this.costPrice = costPrice;
|
||||
}
|
||||
|
||||
public String getGrossMargin() {
|
||||
return grossMargin;
|
||||
}
|
||||
|
||||
public void setGrossMargin(String grossMargin) {
|
||||
this.grossMargin = grossMargin == null ? null : grossMargin.trim();
|
||||
}
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId == null ? null : schoolId.trim();
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
@ -0,0 +1,791 @@
|
||||
package com.sztzjy.trade.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class AdminGoodsTypeInfoExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public AdminGoodsTypeInfoExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
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<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeIsNull() {
|
||||
addCriterion("goods_type is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeIsNotNull() {
|
||||
addCriterion("goods_type is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeEqualTo(String value) {
|
||||
addCriterion("goods_type =", value, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeNotEqualTo(String value) {
|
||||
addCriterion("goods_type <>", value, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeGreaterThan(String value) {
|
||||
addCriterion("goods_type >", value, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("goods_type >=", value, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeLessThan(String value) {
|
||||
addCriterion("goods_type <", value, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeLessThanOrEqualTo(String value) {
|
||||
addCriterion("goods_type <=", value, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeLike(String value) {
|
||||
addCriterion("goods_type like", value, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeNotLike(String value) {
|
||||
addCriterion("goods_type not like", value, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeIn(List<String> values) {
|
||||
addCriterion("goods_type in", values, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeNotIn(List<String> values) {
|
||||
addCriterion("goods_type not in", values, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeBetween(String value1, String value2) {
|
||||
addCriterion("goods_type between", value1, value2, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsTypeNotBetween(String value1, String value2) {
|
||||
addCriterion("goods_type not between", value1, value2, "goodsType");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassIsNull() {
|
||||
addCriterion("goods_subclass is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassIsNotNull() {
|
||||
addCriterion("goods_subclass is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassEqualTo(String value) {
|
||||
addCriterion("goods_subclass =", value, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassNotEqualTo(String value) {
|
||||
addCriterion("goods_subclass <>", value, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassGreaterThan(String value) {
|
||||
addCriterion("goods_subclass >", value, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("goods_subclass >=", value, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassLessThan(String value) {
|
||||
addCriterion("goods_subclass <", value, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassLessThanOrEqualTo(String value) {
|
||||
addCriterion("goods_subclass <=", value, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassLike(String value) {
|
||||
addCriterion("goods_subclass like", value, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassNotLike(String value) {
|
||||
addCriterion("goods_subclass not like", value, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassIn(List<String> values) {
|
||||
addCriterion("goods_subclass in", values, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassNotIn(List<String> values) {
|
||||
addCriterion("goods_subclass not in", values, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassBetween(String value1, String value2) {
|
||||
addCriterion("goods_subclass between", value1, value2, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsSubclassNotBetween(String value1, String value2) {
|
||||
addCriterion("goods_subclass not between", value1, value2, "goodsSubclass");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitIsNull() {
|
||||
addCriterion("pricing_unit is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitIsNotNull() {
|
||||
addCriterion("pricing_unit is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitEqualTo(String value) {
|
||||
addCriterion("pricing_unit =", value, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitNotEqualTo(String value) {
|
||||
addCriterion("pricing_unit <>", value, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitGreaterThan(String value) {
|
||||
addCriterion("pricing_unit >", value, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("pricing_unit >=", value, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitLessThan(String value) {
|
||||
addCriterion("pricing_unit <", value, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitLessThanOrEqualTo(String value) {
|
||||
addCriterion("pricing_unit <=", value, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitLike(String value) {
|
||||
addCriterion("pricing_unit like", value, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitNotLike(String value) {
|
||||
addCriterion("pricing_unit not like", value, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitIn(List<String> values) {
|
||||
addCriterion("pricing_unit in", values, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitNotIn(List<String> values) {
|
||||
addCriterion("pricing_unit not in", values, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitBetween(String value1, String value2) {
|
||||
addCriterion("pricing_unit between", value1, value2, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPricingUnitNotBetween(String value1, String value2) {
|
||||
addCriterion("pricing_unit not between", value1, value2, "pricingUnit");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceIsNull() {
|
||||
addCriterion("cost_price is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceIsNotNull() {
|
||||
addCriterion("cost_price is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceEqualTo(BigDecimal value) {
|
||||
addCriterion("cost_price =", value, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceNotEqualTo(BigDecimal value) {
|
||||
addCriterion("cost_price <>", value, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceGreaterThan(BigDecimal value) {
|
||||
addCriterion("cost_price >", value, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("cost_price >=", value, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceLessThan(BigDecimal value) {
|
||||
addCriterion("cost_price <", value, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("cost_price <=", value, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceIn(List<BigDecimal> values) {
|
||||
addCriterion("cost_price in", values, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceNotIn(List<BigDecimal> values) {
|
||||
addCriterion("cost_price not in", values, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("cost_price between", value1, value2, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCostPriceNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("cost_price not between", value1, value2, "costPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginIsNull() {
|
||||
addCriterion("gross_margin is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginIsNotNull() {
|
||||
addCriterion("gross_margin is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginEqualTo(String value) {
|
||||
addCriterion("gross_margin =", value, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginNotEqualTo(String value) {
|
||||
addCriterion("gross_margin <>", value, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginGreaterThan(String value) {
|
||||
addCriterion("gross_margin >", value, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("gross_margin >=", value, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginLessThan(String value) {
|
||||
addCriterion("gross_margin <", value, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginLessThanOrEqualTo(String value) {
|
||||
addCriterion("gross_margin <=", value, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginLike(String value) {
|
||||
addCriterion("gross_margin like", value, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginNotLike(String value) {
|
||||
addCriterion("gross_margin not like", value, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginIn(List<String> values) {
|
||||
addCriterion("gross_margin in", values, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginNotIn(List<String> values) {
|
||||
addCriterion("gross_margin not in", values, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginBetween(String value1, String value2) {
|
||||
addCriterion("gross_margin between", value1, value2, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGrossMarginNotBetween(String value1, String value2) {
|
||||
addCriterion("gross_margin not between", value1, value2, "grossMargin");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdIsNull() {
|
||||
addCriterion("school_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdIsNotNull() {
|
||||
addCriterion("school_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdEqualTo(String value) {
|
||||
addCriterion("school_id =", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotEqualTo(String value) {
|
||||
addCriterion("school_id <>", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdGreaterThan(String value) {
|
||||
addCriterion("school_id >", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("school_id >=", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdLessThan(String value) {
|
||||
addCriterion("school_id <", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("school_id <=", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdLike(String value) {
|
||||
addCriterion("school_id like", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotLike(String value) {
|
||||
addCriterion("school_id not like", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdIn(List<String> values) {
|
||||
addCriterion("school_id in", values, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotIn(List<String> values) {
|
||||
addCriterion("school_id not in", values, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdBetween(String value1, String value2) {
|
||||
addCriterion("school_id between", value1, value2, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotBetween(String value1, String value2) {
|
||||
addCriterion("school_id not between", value1, value2, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNull() {
|
||||
addCriterion("update_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIsNotNull() {
|
||||
addCriterion("update_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeEqualTo(Date value) {
|
||||
addCriterion("update_time =", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotEqualTo(Date value) {
|
||||
addCriterion("update_time <>", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThan(Date value) {
|
||||
addCriterion("update_time >", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time >=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThan(Date value) {
|
||||
addCriterion("update_time <", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("update_time <=", value, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeIn(List<Date> values) {
|
||||
addCriterion("update_time in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotIn(List<Date> values) {
|
||||
addCriterion("update_time not in", values, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time between", value1, value2, "updateTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("update_time 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);
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,840 @@
|
||||
package com.sztzjy.trade.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class StuShoppingCartInfoExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public StuShoppingCartInfoExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
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<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdIsNull() {
|
||||
addCriterion("goods_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdIsNotNull() {
|
||||
addCriterion("goods_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdEqualTo(Integer value) {
|
||||
addCriterion("goods_id =", value, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdNotEqualTo(Integer value) {
|
||||
addCriterion("goods_id <>", value, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdGreaterThan(Integer value) {
|
||||
addCriterion("goods_id >", value, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("goods_id >=", value, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdLessThan(Integer value) {
|
||||
addCriterion("goods_id <", value, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("goods_id <=", value, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdIn(List<Integer> values) {
|
||||
addCriterion("goods_id in", values, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdNotIn(List<Integer> values) {
|
||||
addCriterion("goods_id not in", values, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("goods_id between", value1, value2, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("goods_id not between", value1, value2, "goodsId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameIsNull() {
|
||||
addCriterion("goods_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameIsNotNull() {
|
||||
addCriterion("goods_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameEqualTo(String value) {
|
||||
addCriterion("goods_name =", value, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameNotEqualTo(String value) {
|
||||
addCriterion("goods_name <>", value, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameGreaterThan(String value) {
|
||||
addCriterion("goods_name >", value, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("goods_name >=", value, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameLessThan(String value) {
|
||||
addCriterion("goods_name <", value, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("goods_name <=", value, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameLike(String value) {
|
||||
addCriterion("goods_name like", value, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameNotLike(String value) {
|
||||
addCriterion("goods_name not like", value, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameIn(List<String> values) {
|
||||
addCriterion("goods_name in", values, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameNotIn(List<String> values) {
|
||||
addCriterion("goods_name not in", values, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameBetween(String value1, String value2) {
|
||||
addCriterion("goods_name between", value1, value2, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsNameNotBetween(String value1, String value2) {
|
||||
addCriterion("goods_name not between", value1, value2, "goodsName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageIsNull() {
|
||||
addCriterion("goods_image is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageIsNotNull() {
|
||||
addCriterion("goods_image is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageEqualTo(String value) {
|
||||
addCriterion("goods_image =", value, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageNotEqualTo(String value) {
|
||||
addCriterion("goods_image <>", value, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageGreaterThan(String value) {
|
||||
addCriterion("goods_image >", value, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("goods_image >=", value, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageLessThan(String value) {
|
||||
addCriterion("goods_image <", value, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageLessThanOrEqualTo(String value) {
|
||||
addCriterion("goods_image <=", value, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageLike(String value) {
|
||||
addCriterion("goods_image like", value, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageNotLike(String value) {
|
||||
addCriterion("goods_image not like", value, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageIn(List<String> values) {
|
||||
addCriterion("goods_image in", values, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageNotIn(List<String> values) {
|
||||
addCriterion("goods_image not in", values, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageBetween(String value1, String value2) {
|
||||
addCriterion("goods_image between", value1, value2, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andGoodsImageNotBetween(String value1, String value2) {
|
||||
addCriterion("goods_image not between", value1, value2, "goodsImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceIsNull() {
|
||||
addCriterion("unit_price is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceIsNotNull() {
|
||||
addCriterion("unit_price is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceEqualTo(BigDecimal value) {
|
||||
addCriterion("unit_price =", value, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceNotEqualTo(BigDecimal value) {
|
||||
addCriterion("unit_price <>", value, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceGreaterThan(BigDecimal value) {
|
||||
addCriterion("unit_price >", value, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("unit_price >=", value, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceLessThan(BigDecimal value) {
|
||||
addCriterion("unit_price <", value, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("unit_price <=", value, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceIn(List<BigDecimal> values) {
|
||||
addCriterion("unit_price in", values, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceNotIn(List<BigDecimal> values) {
|
||||
addCriterion("unit_price not in", values, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("unit_price between", value1, value2, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitPriceNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("unit_price not between", value1, value2, "unitPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberIsNull() {
|
||||
addCriterion("number is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberIsNotNull() {
|
||||
addCriterion("number is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberEqualTo(Integer value) {
|
||||
addCriterion("number =", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberNotEqualTo(Integer value) {
|
||||
addCriterion("number <>", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberGreaterThan(Integer value) {
|
||||
addCriterion("number >", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("number >=", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberLessThan(Integer value) {
|
||||
addCriterion("number <", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("number <=", value, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberIn(List<Integer> values) {
|
||||
addCriterion("number in", values, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberNotIn(List<Integer> values) {
|
||||
addCriterion("number not in", values, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberBetween(Integer value1, Integer value2) {
|
||||
addCriterion("number between", value1, value2, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNumberNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("number not between", value1, value2, "number");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalIsNull() {
|
||||
addCriterion("subtotal is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalIsNotNull() {
|
||||
addCriterion("subtotal is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalEqualTo(BigDecimal value) {
|
||||
addCriterion("subtotal =", value, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalNotEqualTo(BigDecimal value) {
|
||||
addCriterion("subtotal <>", value, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalGreaterThan(BigDecimal value) {
|
||||
addCriterion("subtotal >", value, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("subtotal >=", value, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalLessThan(BigDecimal value) {
|
||||
addCriterion("subtotal <", value, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("subtotal <=", value, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalIn(List<BigDecimal> values) {
|
||||
addCriterion("subtotal in", values, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalNotIn(List<BigDecimal> values) {
|
||||
addCriterion("subtotal not in", values, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("subtotal between", value1, value2, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSubtotalNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("subtotal not between", value1, value2, "subtotal");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameIsNull() {
|
||||
addCriterion("shop_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameIsNotNull() {
|
||||
addCriterion("shop_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameEqualTo(String value) {
|
||||
addCriterion("shop_name =", value, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameNotEqualTo(String value) {
|
||||
addCriterion("shop_name <>", value, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameGreaterThan(String value) {
|
||||
addCriterion("shop_name >", value, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("shop_name >=", value, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameLessThan(String value) {
|
||||
addCriterion("shop_name <", value, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("shop_name <=", value, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameLike(String value) {
|
||||
addCriterion("shop_name like", value, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameNotLike(String value) {
|
||||
addCriterion("shop_name not like", value, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameIn(List<String> values) {
|
||||
addCriterion("shop_name in", values, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameNotIn(List<String> values) {
|
||||
addCriterion("shop_name not in", values, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameBetween(String value1, String value2) {
|
||||
addCriterion("shop_name between", value1, value2, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShopNameNotBetween(String value1, String value2) {
|
||||
addCriterion("shop_name not between", value1, value2, "shopName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateIsNull() {
|
||||
addCriterion("attention_state is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateIsNotNull() {
|
||||
addCriterion("attention_state is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateEqualTo(Integer value) {
|
||||
addCriterion("attention_state =", value, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateNotEqualTo(Integer value) {
|
||||
addCriterion("attention_state <>", value, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateGreaterThan(Integer value) {
|
||||
addCriterion("attention_state >", value, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("attention_state >=", value, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateLessThan(Integer value) {
|
||||
addCriterion("attention_state <", value, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("attention_state <=", value, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateIn(List<Integer> values) {
|
||||
addCriterion("attention_state in", values, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateNotIn(List<Integer> values) {
|
||||
addCriterion("attention_state not in", values, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateBetween(Integer value1, Integer value2) {
|
||||
addCriterion("attention_state between", value1, value2, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAttentionStateNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("attention_state not between", value1, value2, "attentionState");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNull() {
|
||||
addCriterion("user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNotNull() {
|
||||
addCriterion("user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdEqualTo(String value) {
|
||||
addCriterion("user_id =", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotEqualTo(String value) {
|
||||
addCriterion("user_id <>", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThan(String value) {
|
||||
addCriterion("user_id >", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("user_id >=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThan(String value) {
|
||||
addCriterion("user_id <", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("user_id <=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLike(String value) {
|
||||
addCriterion("user_id like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotLike(String value) {
|
||||
addCriterion("user_id not like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIn(List<String> values) {
|
||||
addCriterion("user_id in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotIn(List<String> values) {
|
||||
addCriterion("user_id not in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdBetween(String value1, String value2) {
|
||||
addCriterion("user_id between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotBetween(String value1, String value2) {
|
||||
addCriterion("user_id not between", value1, value2, "userId");
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.sztzjy.trade.mapper;
|
||||
|
||||
import com.sztzjy.trade.entity.AdminGoodsTypeInfo;
|
||||
import com.sztzjy.trade.entity.AdminGoodsTypeInfoExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface AdminGoodsTypeInfoMapper {
|
||||
long countByExample(AdminGoodsTypeInfoExample example);
|
||||
|
||||
int deleteByExample(AdminGoodsTypeInfoExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(AdminGoodsTypeInfo record);
|
||||
|
||||
int insertSelective(AdminGoodsTypeInfo record);
|
||||
|
||||
List<AdminGoodsTypeInfo> selectByExample(AdminGoodsTypeInfoExample example);
|
||||
|
||||
AdminGoodsTypeInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") AdminGoodsTypeInfo record, @Param("example") AdminGoodsTypeInfoExample example);
|
||||
|
||||
int updateByExample(@Param("record") AdminGoodsTypeInfo record, @Param("example") AdminGoodsTypeInfoExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(AdminGoodsTypeInfo record);
|
||||
|
||||
int updateByPrimaryKey(AdminGoodsTypeInfo record);
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.sztzjy.trade.mapper;
|
||||
|
||||
import com.sztzjy.trade.entity.StuGoodsSalesManage;
|
||||
import com.sztzjy.trade.entity.StuGoodsSalesManageExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface StuGoodsSalesManageMapper {
|
||||
long countByExample(StuGoodsSalesManageExample example);
|
||||
|
||||
int deleteByExample(StuGoodsSalesManageExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(StuGoodsSalesManage record);
|
||||
|
||||
int insertSelective(StuGoodsSalesManage record);
|
||||
|
||||
List<StuGoodsSalesManage> selectByExample(StuGoodsSalesManageExample example);
|
||||
|
||||
StuGoodsSalesManage selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuGoodsSalesManage record, @Param("example") StuGoodsSalesManageExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuGoodsSalesManage record, @Param("example") StuGoodsSalesManageExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuGoodsSalesManage record);
|
||||
|
||||
int updateByPrimaryKey(StuGoodsSalesManage record);
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package com.sztzjy.trade.mapper;
|
||||
|
||||
import com.sztzjy.trade.entity.StuShoppingCartInfo;
|
||||
import com.sztzjy.trade.entity.StuShoppingCartInfoExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface StuShoppingCartInfoMapper {
|
||||
long countByExample(StuShoppingCartInfoExample example);
|
||||
|
||||
int deleteByExample(StuShoppingCartInfoExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(StuShoppingCartInfo record);
|
||||
|
||||
int insertSelective(StuShoppingCartInfo record);
|
||||
|
||||
List<StuShoppingCartInfo> selectByExampleWithBLOBs(StuShoppingCartInfoExample example);
|
||||
|
||||
List<StuShoppingCartInfo> selectByExample(StuShoppingCartInfoExample example);
|
||||
|
||||
StuShoppingCartInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuShoppingCartInfo record, @Param("example") StuShoppingCartInfoExample example);
|
||||
|
||||
int updateByExampleWithBLOBs(@Param("record") StuShoppingCartInfo record, @Param("example") StuShoppingCartInfoExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuShoppingCartInfo record, @Param("example") StuShoppingCartInfoExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuShoppingCartInfo record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(StuShoppingCartInfo record);
|
||||
|
||||
int updateByPrimaryKey(StuShoppingCartInfo record);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,276 @@
|
||||
<?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.sztzjy.trade.mapper.AdminGoodsTypeInfoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.trade.entity.AdminGoodsTypeInfo">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="goods_type" jdbcType="VARCHAR" property="goodsType" />
|
||||
<result column="goods_subclass" jdbcType="VARCHAR" property="goodsSubclass" />
|
||||
<result column="pricing_unit" jdbcType="VARCHAR" property="pricingUnit" />
|
||||
<result column="cost_price" jdbcType="DECIMAL" property="costPrice" />
|
||||
<result column="gross_margin" jdbcType="VARCHAR" property="grossMargin" />
|
||||
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" 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, goods_type, goods_subclass, pricing_unit, cost_price, gross_margin, school_id,
|
||||
create_time, update_time
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.trade.entity.AdminGoodsTypeInfoExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from admin_goods_type_info
|
||||
<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.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from admin_goods_type_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from admin_goods_type_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.trade.entity.AdminGoodsTypeInfoExample">
|
||||
delete from admin_goods_type_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.trade.entity.AdminGoodsTypeInfo">
|
||||
insert into admin_goods_type_info (id, goods_type, goods_subclass,
|
||||
pricing_unit, cost_price, gross_margin,
|
||||
school_id, create_time, update_time
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{goodsType,jdbcType=VARCHAR}, #{goodsSubclass,jdbcType=VARCHAR},
|
||||
#{pricingUnit,jdbcType=VARCHAR}, #{costPrice,jdbcType=DECIMAL}, #{grossMargin,jdbcType=VARCHAR},
|
||||
#{schoolId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.AdminGoodsTypeInfo">
|
||||
insert into admin_goods_type_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="goodsType != null">
|
||||
goods_type,
|
||||
</if>
|
||||
<if test="goodsSubclass != null">
|
||||
goods_subclass,
|
||||
</if>
|
||||
<if test="pricingUnit != null">
|
||||
pricing_unit,
|
||||
</if>
|
||||
<if test="costPrice != null">
|
||||
cost_price,
|
||||
</if>
|
||||
<if test="grossMargin != null">
|
||||
gross_margin,
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsType != null">
|
||||
#{goodsType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsSubclass != null">
|
||||
#{goodsSubclass,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="pricingUnit != null">
|
||||
#{pricingUnit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="costPrice != null">
|
||||
#{costPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="grossMargin != null">
|
||||
#{grossMargin,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
#{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.trade.entity.AdminGoodsTypeInfoExample" resultType="java.lang.Long">
|
||||
select count(*) from admin_goods_type_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update admin_goods_type_info
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.goodsType != null">
|
||||
goods_type = #{record.goodsType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.goodsSubclass != null">
|
||||
goods_subclass = #{record.goodsSubclass,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.pricingUnit != null">
|
||||
pricing_unit = #{record.pricingUnit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.costPrice != null">
|
||||
cost_price = #{record.costPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.grossMargin != null">
|
||||
gross_margin = #{record.grossMargin,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.schoolId != null">
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.updateTime != null">
|
||||
update_time = #{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 admin_goods_type_info
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
goods_type = #{record.goodsType,jdbcType=VARCHAR},
|
||||
goods_subclass = #{record.goodsSubclass,jdbcType=VARCHAR},
|
||||
pricing_unit = #{record.pricingUnit,jdbcType=VARCHAR},
|
||||
cost_price = #{record.costPrice,jdbcType=DECIMAL},
|
||||
gross_margin = #{record.grossMargin,jdbcType=VARCHAR},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.trade.entity.AdminGoodsTypeInfo">
|
||||
update admin_goods_type_info
|
||||
<set>
|
||||
<if test="goodsType != null">
|
||||
goods_type = #{goodsType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsSubclass != null">
|
||||
goods_subclass = #{goodsSubclass,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="pricingUnit != null">
|
||||
pricing_unit = #{pricingUnit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="costPrice != null">
|
||||
cost_price = #{costPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="grossMargin != null">
|
||||
gross_margin = #{grossMargin,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.trade.entity.AdminGoodsTypeInfo">
|
||||
update admin_goods_type_info
|
||||
set goods_type = #{goodsType,jdbcType=VARCHAR},
|
||||
goods_subclass = #{goodsSubclass,jdbcType=VARCHAR},
|
||||
pricing_unit = #{pricingUnit,jdbcType=VARCHAR},
|
||||
cost_price = #{costPrice,jdbcType=DECIMAL},
|
||||
gross_margin = #{grossMargin,jdbcType=VARCHAR},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,403 @@
|
||||
<?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.sztzjy.trade.mapper.StuGoodsSalesManageMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.trade.entity.StuGoodsSalesManage">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="goods_id" jdbcType="INTEGER" property="goodsId" />
|
||||
<result column="goods_name" jdbcType="VARCHAR" property="goodsName" />
|
||||
<result column="goods_type" jdbcType="VARCHAR" property="goodsType" />
|
||||
<result column="goods_subclass" jdbcType="VARCHAR" property="goodsSubclass" />
|
||||
<result column="online_total" jdbcType="VARCHAR" property="onlineTotal" />
|
||||
<result column="available_inventory_quantity" jdbcType="INTEGER" property="availableInventoryQuantity" />
|
||||
<result column="sold_quantity" jdbcType="VARCHAR" property="soldQuantity" />
|
||||
<result column="sales_volume" jdbcType="VARCHAR" property="salesVolume" />
|
||||
<result column="gross_margin" jdbcType="VARCHAR" property="grossMargin" />
|
||||
<result column="number_of_comments" jdbcType="INTEGER" property="numberOfComments" />
|
||||
<result column="number_of_likes" jdbcType="INTEGER" property="numberOfLikes" />
|
||||
<result column="number_of_collections" jdbcType="INTEGER" property="numberOfCollections" />
|
||||
<result column="number_of_shares" jdbcType="INTEGER" property="numberOfShares" />
|
||||
<result column="online_time" jdbcType="TIMESTAMP" property="onlineTime" />
|
||||
<result column="state" jdbcType="INTEGER" property="state" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
</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, goods_id, goods_name, goods_type, goods_subclass, online_total, available_inventory_quantity,
|
||||
sold_quantity, sales_volume, gross_margin, number_of_comments, number_of_likes, number_of_collections,
|
||||
number_of_shares, online_time, state, user_id
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.trade.entity.StuGoodsSalesManageExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_goods_sales_manage
|
||||
<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.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_goods_sales_manage
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from stu_goods_sales_manage
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.trade.entity.StuGoodsSalesManageExample">
|
||||
delete from stu_goods_sales_manage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.trade.entity.StuGoodsSalesManage">
|
||||
insert into stu_goods_sales_manage (id, goods_id, goods_name,
|
||||
goods_type, goods_subclass, online_total,
|
||||
available_inventory_quantity, sold_quantity,
|
||||
sales_volume, gross_margin, number_of_comments,
|
||||
number_of_likes, number_of_collections, number_of_shares,
|
||||
online_time, state, user_id
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, #{goodsName,jdbcType=VARCHAR},
|
||||
#{goodsType,jdbcType=VARCHAR}, #{goodsSubclass,jdbcType=VARCHAR}, #{onlineTotal,jdbcType=VARCHAR},
|
||||
#{availableInventoryQuantity,jdbcType=INTEGER}, #{soldQuantity,jdbcType=VARCHAR},
|
||||
#{salesVolume,jdbcType=VARCHAR}, #{grossMargin,jdbcType=VARCHAR}, #{numberOfComments,jdbcType=INTEGER},
|
||||
#{numberOfLikes,jdbcType=INTEGER}, #{numberOfCollections,jdbcType=INTEGER}, #{numberOfShares,jdbcType=INTEGER},
|
||||
#{onlineTime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.StuGoodsSalesManage">
|
||||
insert into stu_goods_sales_manage
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="goodsId != null">
|
||||
goods_id,
|
||||
</if>
|
||||
<if test="goodsName != null">
|
||||
goods_name,
|
||||
</if>
|
||||
<if test="goodsType != null">
|
||||
goods_type,
|
||||
</if>
|
||||
<if test="goodsSubclass != null">
|
||||
goods_subclass,
|
||||
</if>
|
||||
<if test="onlineTotal != null">
|
||||
online_total,
|
||||
</if>
|
||||
<if test="availableInventoryQuantity != null">
|
||||
available_inventory_quantity,
|
||||
</if>
|
||||
<if test="soldQuantity != null">
|
||||
sold_quantity,
|
||||
</if>
|
||||
<if test="salesVolume != null">
|
||||
sales_volume,
|
||||
</if>
|
||||
<if test="grossMargin != null">
|
||||
gross_margin,
|
||||
</if>
|
||||
<if test="numberOfComments != null">
|
||||
number_of_comments,
|
||||
</if>
|
||||
<if test="numberOfLikes != null">
|
||||
number_of_likes,
|
||||
</if>
|
||||
<if test="numberOfCollections != null">
|
||||
number_of_collections,
|
||||
</if>
|
||||
<if test="numberOfShares != null">
|
||||
number_of_shares,
|
||||
</if>
|
||||
<if test="onlineTime != null">
|
||||
online_time,
|
||||
</if>
|
||||
<if test="state != null">
|
||||
state,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsId != null">
|
||||
#{goodsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsName != null">
|
||||
#{goodsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsType != null">
|
||||
#{goodsType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsSubclass != null">
|
||||
#{goodsSubclass,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="onlineTotal != null">
|
||||
#{onlineTotal,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="availableInventoryQuantity != null">
|
||||
#{availableInventoryQuantity,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="soldQuantity != null">
|
||||
#{soldQuantity,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="salesVolume != null">
|
||||
#{salesVolume,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="grossMargin != null">
|
||||
#{grossMargin,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numberOfComments != null">
|
||||
#{numberOfComments,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfLikes != null">
|
||||
#{numberOfLikes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfCollections != null">
|
||||
#{numberOfCollections,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfShares != null">
|
||||
#{numberOfShares,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="onlineTime != null">
|
||||
#{onlineTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="state != null">
|
||||
#{state,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.trade.entity.StuGoodsSalesManageExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_goods_sales_manage
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_goods_sales_manage
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.goodsId != null">
|
||||
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.goodsName != null">
|
||||
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.goodsType != null">
|
||||
goods_type = #{record.goodsType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.goodsSubclass != null">
|
||||
goods_subclass = #{record.goodsSubclass,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.onlineTotal != null">
|
||||
online_total = #{record.onlineTotal,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.availableInventoryQuantity != null">
|
||||
available_inventory_quantity = #{record.availableInventoryQuantity,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.soldQuantity != null">
|
||||
sold_quantity = #{record.soldQuantity,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.salesVolume != null">
|
||||
sales_volume = #{record.salesVolume,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.grossMargin != null">
|
||||
gross_margin = #{record.grossMargin,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.numberOfComments != null">
|
||||
number_of_comments = #{record.numberOfComments,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.numberOfLikes != null">
|
||||
number_of_likes = #{record.numberOfLikes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.numberOfCollections != null">
|
||||
number_of_collections = #{record.numberOfCollections,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.numberOfShares != null">
|
||||
number_of_shares = #{record.numberOfShares,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.onlineTime != null">
|
||||
online_time = #{record.onlineTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.state != null">
|
||||
state = #{record.state,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_goods_sales_manage
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
||||
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
||||
goods_type = #{record.goodsType,jdbcType=VARCHAR},
|
||||
goods_subclass = #{record.goodsSubclass,jdbcType=VARCHAR},
|
||||
online_total = #{record.onlineTotal,jdbcType=VARCHAR},
|
||||
available_inventory_quantity = #{record.availableInventoryQuantity,jdbcType=INTEGER},
|
||||
sold_quantity = #{record.soldQuantity,jdbcType=VARCHAR},
|
||||
sales_volume = #{record.salesVolume,jdbcType=VARCHAR},
|
||||
gross_margin = #{record.grossMargin,jdbcType=VARCHAR},
|
||||
number_of_comments = #{record.numberOfComments,jdbcType=INTEGER},
|
||||
number_of_likes = #{record.numberOfLikes,jdbcType=INTEGER},
|
||||
number_of_collections = #{record.numberOfCollections,jdbcType=INTEGER},
|
||||
number_of_shares = #{record.numberOfShares,jdbcType=INTEGER},
|
||||
online_time = #{record.onlineTime,jdbcType=TIMESTAMP},
|
||||
state = #{record.state,jdbcType=INTEGER},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.trade.entity.StuGoodsSalesManage">
|
||||
update stu_goods_sales_manage
|
||||
<set>
|
||||
<if test="goodsId != null">
|
||||
goods_id = #{goodsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsName != null">
|
||||
goods_name = #{goodsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsType != null">
|
||||
goods_type = #{goodsType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsSubclass != null">
|
||||
goods_subclass = #{goodsSubclass,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="onlineTotal != null">
|
||||
online_total = #{onlineTotal,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="availableInventoryQuantity != null">
|
||||
available_inventory_quantity = #{availableInventoryQuantity,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="soldQuantity != null">
|
||||
sold_quantity = #{soldQuantity,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="salesVolume != null">
|
||||
sales_volume = #{salesVolume,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="grossMargin != null">
|
||||
gross_margin = #{grossMargin,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="numberOfComments != null">
|
||||
number_of_comments = #{numberOfComments,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfLikes != null">
|
||||
number_of_likes = #{numberOfLikes,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfCollections != null">
|
||||
number_of_collections = #{numberOfCollections,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="numberOfShares != null">
|
||||
number_of_shares = #{numberOfShares,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="onlineTime != null">
|
||||
online_time = #{onlineTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="state != null">
|
||||
state = #{state,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.trade.entity.StuGoodsSalesManage">
|
||||
update stu_goods_sales_manage
|
||||
set goods_id = #{goodsId,jdbcType=INTEGER},
|
||||
goods_name = #{goodsName,jdbcType=VARCHAR},
|
||||
goods_type = #{goodsType,jdbcType=VARCHAR},
|
||||
goods_subclass = #{goodsSubclass,jdbcType=VARCHAR},
|
||||
online_total = #{onlineTotal,jdbcType=VARCHAR},
|
||||
available_inventory_quantity = #{availableInventoryQuantity,jdbcType=INTEGER},
|
||||
sold_quantity = #{soldQuantity,jdbcType=VARCHAR},
|
||||
sales_volume = #{salesVolume,jdbcType=VARCHAR},
|
||||
gross_margin = #{grossMargin,jdbcType=VARCHAR},
|
||||
number_of_comments = #{numberOfComments,jdbcType=INTEGER},
|
||||
number_of_likes = #{numberOfLikes,jdbcType=INTEGER},
|
||||
number_of_collections = #{numberOfCollections,jdbcType=INTEGER},
|
||||
number_of_shares = #{numberOfShares,jdbcType=INTEGER},
|
||||
online_time = #{onlineTime,jdbcType=TIMESTAMP},
|
||||
state = #{state,jdbcType=INTEGER},
|
||||
user_id = #{userId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,358 @@
|
||||
<?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.sztzjy.trade.mapper.StuShoppingCartInfoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.trade.entity.StuShoppingCartInfo">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="goods_id" jdbcType="INTEGER" property="goodsId" />
|
||||
<result column="goods_name" jdbcType="VARCHAR" property="goodsName" />
|
||||
<result column="goods_image" jdbcType="VARCHAR" property="goodsImage" />
|
||||
<result column="unit_price" jdbcType="DECIMAL" property="unitPrice" />
|
||||
<result column="number" jdbcType="INTEGER" property="number" />
|
||||
<result column="subtotal" jdbcType="DECIMAL" property="subtotal" />
|
||||
<result column="shop_name" jdbcType="VARCHAR" property="shopName" />
|
||||
<result column="attention_state" jdbcType="INTEGER" property="attentionState" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.trade.entity.StuShoppingCartInfo">
|
||||
<result column="goods_specification" jdbcType="LONGVARCHAR" property="goodsSpecification" />
|
||||
</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, goods_id, goods_name, goods_image, unit_price, number, subtotal, shop_name, attention_state,
|
||||
user_id
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
goods_specification
|
||||
</sql>
|
||||
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.trade.entity.StuShoppingCartInfoExample" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from stu_shopping_cart_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.trade.entity.StuShoppingCartInfoExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_shopping_cart_info
|
||||
<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.Integer" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from stu_shopping_cart_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from stu_shopping_cart_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.trade.entity.StuShoppingCartInfoExample">
|
||||
delete from stu_shopping_cart_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.trade.entity.StuShoppingCartInfo">
|
||||
insert into stu_shopping_cart_info (id, goods_id, goods_name,
|
||||
goods_image, unit_price, number,
|
||||
subtotal, shop_name, attention_state,
|
||||
user_id, goods_specification)
|
||||
values (#{id,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER}, #{goodsName,jdbcType=VARCHAR},
|
||||
#{goodsImage,jdbcType=VARCHAR}, #{unitPrice,jdbcType=DECIMAL}, #{number,jdbcType=INTEGER},
|
||||
#{subtotal,jdbcType=DECIMAL}, #{shopName,jdbcType=VARCHAR}, #{attentionState,jdbcType=INTEGER},
|
||||
#{userId,jdbcType=VARCHAR}, #{goodsSpecification,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.StuShoppingCartInfo">
|
||||
insert into stu_shopping_cart_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="goodsId != null">
|
||||
goods_id,
|
||||
</if>
|
||||
<if test="goodsName != null">
|
||||
goods_name,
|
||||
</if>
|
||||
<if test="goodsImage != null">
|
||||
goods_image,
|
||||
</if>
|
||||
<if test="unitPrice != null">
|
||||
unit_price,
|
||||
</if>
|
||||
<if test="number != null">
|
||||
number,
|
||||
</if>
|
||||
<if test="subtotal != null">
|
||||
subtotal,
|
||||
</if>
|
||||
<if test="shopName != null">
|
||||
shop_name,
|
||||
</if>
|
||||
<if test="attentionState != null">
|
||||
attention_state,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="goodsSpecification != null">
|
||||
goods_specification,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsId != null">
|
||||
#{goodsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsName != null">
|
||||
#{goodsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsImage != null">
|
||||
#{goodsImage,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="unitPrice != null">
|
||||
#{unitPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="number != null">
|
||||
#{number,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="subtotal != null">
|
||||
#{subtotal,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="shopName != null">
|
||||
#{shopName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="attentionState != null">
|
||||
#{attentionState,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsSpecification != null">
|
||||
#{goodsSpecification,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.trade.entity.StuShoppingCartInfoExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_shopping_cart_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_shopping_cart_info
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.goodsId != null">
|
||||
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.goodsName != null">
|
||||
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.goodsImage != null">
|
||||
goods_image = #{record.goodsImage,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.unitPrice != null">
|
||||
unit_price = #{record.unitPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.number != null">
|
||||
number = #{record.number,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.subtotal != null">
|
||||
subtotal = #{record.subtotal,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.shopName != null">
|
||||
shop_name = #{record.shopName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.attentionState != null">
|
||||
attention_state = #{record.attentionState,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.goodsSpecification != null">
|
||||
goods_specification = #{record.goodsSpecification,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||
update stu_shopping_cart_info
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
||||
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
||||
goods_image = #{record.goodsImage,jdbcType=VARCHAR},
|
||||
unit_price = #{record.unitPrice,jdbcType=DECIMAL},
|
||||
number = #{record.number,jdbcType=INTEGER},
|
||||
subtotal = #{record.subtotal,jdbcType=DECIMAL},
|
||||
shop_name = #{record.shopName,jdbcType=VARCHAR},
|
||||
attention_state = #{record.attentionState,jdbcType=INTEGER},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
goods_specification = #{record.goodsSpecification,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_shopping_cart_info
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
goods_id = #{record.goodsId,jdbcType=INTEGER},
|
||||
goods_name = #{record.goodsName,jdbcType=VARCHAR},
|
||||
goods_image = #{record.goodsImage,jdbcType=VARCHAR},
|
||||
unit_price = #{record.unitPrice,jdbcType=DECIMAL},
|
||||
number = #{record.number,jdbcType=INTEGER},
|
||||
subtotal = #{record.subtotal,jdbcType=DECIMAL},
|
||||
shop_name = #{record.shopName,jdbcType=VARCHAR},
|
||||
attention_state = #{record.attentionState,jdbcType=INTEGER},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.trade.entity.StuShoppingCartInfo">
|
||||
update stu_shopping_cart_info
|
||||
<set>
|
||||
<if test="goodsId != null">
|
||||
goods_id = #{goodsId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="goodsName != null">
|
||||
goods_name = #{goodsName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsImage != null">
|
||||
goods_image = #{goodsImage,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="unitPrice != null">
|
||||
unit_price = #{unitPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="number != null">
|
||||
number = #{number,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="subtotal != null">
|
||||
subtotal = #{subtotal,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="shopName != null">
|
||||
shop_name = #{shopName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="attentionState != null">
|
||||
attention_state = #{attentionState,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="goodsSpecification != null">
|
||||
goods_specification = #{goodsSpecification,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.trade.entity.StuShoppingCartInfo">
|
||||
update stu_shopping_cart_info
|
||||
set goods_id = #{goodsId,jdbcType=INTEGER},
|
||||
goods_name = #{goodsName,jdbcType=VARCHAR},
|
||||
goods_image = #{goodsImage,jdbcType=VARCHAR},
|
||||
unit_price = #{unitPrice,jdbcType=DECIMAL},
|
||||
number = #{number,jdbcType=INTEGER},
|
||||
subtotal = #{subtotal,jdbcType=DECIMAL},
|
||||
shop_name = #{shopName,jdbcType=VARCHAR},
|
||||
attention_state = #{attentionState,jdbcType=INTEGER},
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
goods_specification = #{goodsSpecification,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.trade.entity.StuShoppingCartInfo">
|
||||
update stu_shopping_cart_info
|
||||
set goods_id = #{goodsId,jdbcType=INTEGER},
|
||||
goods_name = #{goodsName,jdbcType=VARCHAR},
|
||||
goods_image = #{goodsImage,jdbcType=VARCHAR},
|
||||
unit_price = #{unitPrice,jdbcType=DECIMAL},
|
||||
number = #{number,jdbcType=INTEGER},
|
||||
subtotal = #{subtotal,jdbcType=DECIMAL},
|
||||
shop_name = #{shopName,jdbcType=VARCHAR},
|
||||
attention_state = #{attentionState,jdbcType=INTEGER},
|
||||
user_id = #{userId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue