From 0a757f0eb0a026fbd438aac15af72d5485893306 Mon Sep 17 00:00:00 2001 From: whb <17803890193@163.com> Date: Mon, 28 Oct 2024 15:30:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=95=86=E5=93=81?= =?UTF-8?q?=E4=BA=A4=E6=98=93=E4=B8=AD=E5=BF=83=E5=A4=A7=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=E4=BD=8D=EF=BC=8C=E5=B0=8F=E5=B9=BF=E5=91=8A=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=EF=BC=8C=E6=8C=89=E7=85=A7=E7=B1=BB=E5=9E=8B=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=EF=BC=8C=E5=95=86=E5=93=81=E6=A8=A1=E7=B3=8A=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stu/StuExpermentTrainingController.java | 7 - .../stu/StuGoodsTradingCenterController.java | 71 + .../trade/entity/StuGoodSalesManage.java | 199 ++ .../entity/StuGoodSalesManageExample.java | 1300 +++++++++++ .../com/sztzjy/trade/entity/StuGoodsInfo.java | 331 +++ .../trade/entity/StuGoodsInfoExample.java | 1991 +++++++++++++++++ .../mapper/StuGoodSalesManageMapper.java | 30 + .../trade/mapper/StuGoodsInfoMapper.java | 36 + .../service/StuGoodsTradingCenterService.java | 23 + .../StuGoodsTradingCenterServiceImpl.java | 135 ++ .../mappers/StuGoodSalesManageMapper.xml | 403 ++++ .../resources/mappers/StuGoodsInfoMapper.xml | 679 ++++++ 12 files changed, 5198 insertions(+), 7 deletions(-) create mode 100644 src/main/java/com/sztzjy/trade/entity/StuGoodSalesManage.java create mode 100644 src/main/java/com/sztzjy/trade/entity/StuGoodSalesManageExample.java create mode 100644 src/main/java/com/sztzjy/trade/entity/StuGoodsInfo.java create mode 100644 src/main/java/com/sztzjy/trade/entity/StuGoodsInfoExample.java create mode 100644 src/main/java/com/sztzjy/trade/mapper/StuGoodSalesManageMapper.java create mode 100644 src/main/java/com/sztzjy/trade/mapper/StuGoodsInfoMapper.java create mode 100644 src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java create mode 100644 src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java create mode 100644 src/main/resources/mappers/StuGoodSalesManageMapper.xml create mode 100644 src/main/resources/mappers/StuGoodsInfoMapper.xml diff --git a/src/main/java/com/sztzjy/trade/controller/stu/StuExpermentTrainingController.java b/src/main/java/com/sztzjy/trade/controller/stu/StuExpermentTrainingController.java index 3a3812b..535f718 100644 --- a/src/main/java/com/sztzjy/trade/controller/stu/StuExpermentTrainingController.java +++ b/src/main/java/com/sztzjy/trade/controller/stu/StuExpermentTrainingController.java @@ -68,7 +68,6 @@ public class StuExpermentTrainingController { return service.academicRecordInfo(schoolId, module, page, size); - } @AnonymousAccess @@ -78,7 +77,6 @@ public class StuExpermentTrainingController { return service.trainingTaskDetails(userId, module, page, size); - } @@ -110,9 +108,4 @@ public class StuExpermentTrainingController { } - - - - - } diff --git a/src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java b/src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java index 0bc3fbd..042d42a 100644 --- a/src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java +++ b/src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java @@ -1,6 +1,12 @@ package com.sztzjy.trade.controller.stu; +import com.sztzjy.trade.annotation.AnonymousAccess; +import com.sztzjy.trade.service.StuGoodsTradingCenterService; +import com.sztzjy.trade.util.ResultEntity; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -12,4 +18,69 @@ import org.springframework.web.bind.annotation.RestController; @RestController @Api(tags = "商品交易中心") public class StuGoodsTradingCenterController { + + @Autowired + private StuGoodsTradingCenterService stuGoodsTradingCenterService; + + + + @ApiOperation("小广告位招租") + @AnonymousAccess + @GetMapping("/smallAdPlacement") + public ResultEntity getSmallAdPlacement(String userId) { + + //销量前10位的商品 + return stuGoodsTradingCenterService.getSmallAdPlacement(userId); + } + + + @ApiOperation("所有商品展示") + @AnonymousAccess + @GetMapping("/allProductInquiries") + public ResultEntity getAllProductInquiries(String userId) { + + + return stuGoodsTradingCenterService.AllProductInquiries(userId); + } + + + + @ApiOperation("商品查询") + @AnonymousAccess + @GetMapping("/productInquiry") + public ResultEntity getProductInquiry(String userId,String keyWord) { + + return stuGoodsTradingCenterService.getProductInquiry(userId,keyWord); + + } + + + + //todo 查询购物车数量 + + + //大广告招租 + + @ApiOperation("大广告位招租 随机两条数据") + @AnonymousAccess + @GetMapping("/bigAdPlacement") + public ResultEntity getBigAdPlacement(String userId) { + + return stuGoodsTradingCenterService.getBigAdPlacement(userId); + + } + + @ApiOperation("根据类型展示数据") + @AnonymousAccess + @GetMapping("/getTypeQuery") + public ResultEntity getTypeQuery(String userId,String type) { + + return stuGoodsTradingCenterService.getTypeQuery(userId,type); + + } + + + + + } diff --git a/src/main/java/com/sztzjy/trade/entity/StuGoodSalesManage.java b/src/main/java/com/sztzjy/trade/entity/StuGoodSalesManage.java new file mode 100644 index 0000000..dd7e60d --- /dev/null +++ b/src/main/java/com/sztzjy/trade/entity/StuGoodSalesManage.java @@ -0,0 +1,199 @@ +package com.sztzjy.trade.entity; + +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +/** + * 商品销售管理 + * + * @author whb + * stu_goods_sales_manage + */ +public class StuGoodSalesManage { + @ApiModelProperty(notes = "ID") + private Integer id; + + @ApiModelProperty(notes = "商品ID") + private Integer goodsId; + + @ApiModelProperty(notes = "商品名称") + private String goodsName; + + @ApiModelProperty(notes = "商品类型") + private String goodsType; + + @ApiModelProperty(notes = "商品小类") + private String goodsSubclass; + + @ApiModelProperty(notes = "上架数量") + private String onlineTotal; + + @ApiModelProperty(notes = "可用库存数量") + private Integer availableInventoryQuantity; + + @ApiModelProperty(notes = "已售数量") + private String soldQuantity; + + @ApiModelProperty(notes = "销售额") + private String salesVolume; + + @ApiModelProperty(notes = "毛利率") + private String grossMargin; + + @ApiModelProperty(notes = "评论数") + private Integer numberOfComments; + + @ApiModelProperty(notes = "点赞数") + private Integer numberOfLikes; + + @ApiModelProperty(notes = "收藏数") + private Integer numberOfCollections; + + @ApiModelProperty(notes = "分享数") + private Integer numberOfShares; + + @ApiModelProperty(notes = "上架时间") + private Date onlineTime; + + @ApiModelProperty(notes = "是否展示(1上架展示 0下架不展示)") + private Integer state; + + @ApiModelProperty(notes = "用户ID") + private String userId; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getGoodsId() { + return goodsId; + } + + public void setGoodsId(Integer goodsId) { + this.goodsId = goodsId; + } + + public String getGoodsName() { + return goodsName; + } + + public void setGoodsName(String goodsName) { + this.goodsName = goodsName == null ? null : goodsName.trim(); + } + + 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 getOnlineTotal() { + return onlineTotal; + } + + public void setOnlineTotal(String onlineTotal) { + this.onlineTotal = onlineTotal == null ? null : onlineTotal.trim(); + } + + public Integer getAvailableInventoryQuantity() { + return availableInventoryQuantity; + } + + public void setAvailableInventoryQuantity(Integer availableInventoryQuantity) { + this.availableInventoryQuantity = availableInventoryQuantity; + } + + public String getSoldQuantity() { + return soldQuantity; + } + + public void setSoldQuantity(String soldQuantity) { + this.soldQuantity = soldQuantity == null ? null : soldQuantity.trim(); + } + + public String getSalesVolume() { + return salesVolume; + } + + public void setSalesVolume(String salesVolume) { + this.salesVolume = salesVolume == null ? null : salesVolume.trim(); + } + + public String getGrossMargin() { + return grossMargin; + } + + public void setGrossMargin(String grossMargin) { + this.grossMargin = grossMargin == null ? null : grossMargin.trim(); + } + + public Integer getNumberOfComments() { + return numberOfComments; + } + + public void setNumberOfComments(Integer numberOfComments) { + this.numberOfComments = numberOfComments; + } + + public Integer getNumberOfLikes() { + return numberOfLikes; + } + + public void setNumberOfLikes(Integer numberOfLikes) { + this.numberOfLikes = numberOfLikes; + } + + public Integer getNumberOfCollections() { + return numberOfCollections; + } + + public void setNumberOfCollections(Integer numberOfCollections) { + this.numberOfCollections = numberOfCollections; + } + + public Integer getNumberOfShares() { + return numberOfShares; + } + + public void setNumberOfShares(Integer numberOfShares) { + this.numberOfShares = numberOfShares; + } + + public Date getOnlineTime() { + return onlineTime; + } + + public void setOnlineTime(Date onlineTime) { + this.onlineTime = onlineTime; + } + + public Integer getState() { + return state; + } + + public void setState(Integer state) { + this.state = state; + } + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId == null ? null : userId.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/trade/entity/StuGoodSalesManageExample.java b/src/main/java/com/sztzjy/trade/entity/StuGoodSalesManageExample.java new file mode 100644 index 0000000..a3b4965 --- /dev/null +++ b/src/main/java/com/sztzjy/trade/entity/StuGoodSalesManageExample.java @@ -0,0 +1,1300 @@ +package com.sztzjy.trade.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class StuGoodSalesManageExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public StuGoodSalesManageExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("goods_id in", values, "goodsId"); + return (Criteria) this; + } + + public Criteria andGoodsIdNotIn(List 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 values) { + addCriterion("goods_name in", values, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameNotIn(List 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 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 values) { + addCriterion("goods_type in", values, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeNotIn(List 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 values) { + addCriterion("goods_subclass in", values, "goodsSubclass"); + return (Criteria) this; + } + + public Criteria andGoodsSubclassNotIn(List 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 andOnlineTotalIsNull() { + addCriterion("online_total is null"); + return (Criteria) this; + } + + public Criteria andOnlineTotalIsNotNull() { + addCriterion("online_total is not null"); + return (Criteria) this; + } + + public Criteria andOnlineTotalEqualTo(String value) { + addCriterion("online_total =", value, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalNotEqualTo(String value) { + addCriterion("online_total <>", value, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalGreaterThan(String value) { + addCriterion("online_total >", value, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalGreaterThanOrEqualTo(String value) { + addCriterion("online_total >=", value, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalLessThan(String value) { + addCriterion("online_total <", value, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalLessThanOrEqualTo(String value) { + addCriterion("online_total <=", value, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalLike(String value) { + addCriterion("online_total like", value, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalNotLike(String value) { + addCriterion("online_total not like", value, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalIn(List values) { + addCriterion("online_total in", values, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalNotIn(List values) { + addCriterion("online_total not in", values, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalBetween(String value1, String value2) { + addCriterion("online_total between", value1, value2, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andOnlineTotalNotBetween(String value1, String value2) { + addCriterion("online_total not between", value1, value2, "onlineTotal"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityIsNull() { + addCriterion("available_inventory_quantity is null"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityIsNotNull() { + addCriterion("available_inventory_quantity is not null"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityEqualTo(Integer value) { + addCriterion("available_inventory_quantity =", value, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityNotEqualTo(Integer value) { + addCriterion("available_inventory_quantity <>", value, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityGreaterThan(Integer value) { + addCriterion("available_inventory_quantity >", value, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityGreaterThanOrEqualTo(Integer value) { + addCriterion("available_inventory_quantity >=", value, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityLessThan(Integer value) { + addCriterion("available_inventory_quantity <", value, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityLessThanOrEqualTo(Integer value) { + addCriterion("available_inventory_quantity <=", value, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityIn(List values) { + addCriterion("available_inventory_quantity in", values, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityNotIn(List values) { + addCriterion("available_inventory_quantity not in", values, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityBetween(Integer value1, Integer value2) { + addCriterion("available_inventory_quantity between", value1, value2, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andAvailableInventoryQuantityNotBetween(Integer value1, Integer value2) { + addCriterion("available_inventory_quantity not between", value1, value2, "availableInventoryQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityIsNull() { + addCriterion("sold_quantity is null"); + return (Criteria) this; + } + + public Criteria andSoldQuantityIsNotNull() { + addCriterion("sold_quantity is not null"); + return (Criteria) this; + } + + public Criteria andSoldQuantityEqualTo(String value) { + addCriterion("sold_quantity =", value, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityNotEqualTo(String value) { + addCriterion("sold_quantity <>", value, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityGreaterThan(String value) { + addCriterion("sold_quantity >", value, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityGreaterThanOrEqualTo(String value) { + addCriterion("sold_quantity >=", value, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityLessThan(String value) { + addCriterion("sold_quantity <", value, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityLessThanOrEqualTo(String value) { + addCriterion("sold_quantity <=", value, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityLike(String value) { + addCriterion("sold_quantity like", value, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityNotLike(String value) { + addCriterion("sold_quantity not like", value, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityIn(List values) { + addCriterion("sold_quantity in", values, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityNotIn(List values) { + addCriterion("sold_quantity not in", values, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityBetween(String value1, String value2) { + addCriterion("sold_quantity between", value1, value2, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSoldQuantityNotBetween(String value1, String value2) { + addCriterion("sold_quantity not between", value1, value2, "soldQuantity"); + return (Criteria) this; + } + + public Criteria andSalesVolumeIsNull() { + addCriterion("sales_volume is null"); + return (Criteria) this; + } + + public Criteria andSalesVolumeIsNotNull() { + addCriterion("sales_volume is not null"); + return (Criteria) this; + } + + public Criteria andSalesVolumeEqualTo(String value) { + addCriterion("sales_volume =", value, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeNotEqualTo(String value) { + addCriterion("sales_volume <>", value, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeGreaterThan(String value) { + addCriterion("sales_volume >", value, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeGreaterThanOrEqualTo(String value) { + addCriterion("sales_volume >=", value, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeLessThan(String value) { + addCriterion("sales_volume <", value, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeLessThanOrEqualTo(String value) { + addCriterion("sales_volume <=", value, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeLike(String value) { + addCriterion("sales_volume like", value, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeNotLike(String value) { + addCriterion("sales_volume not like", value, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeIn(List values) { + addCriterion("sales_volume in", values, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeNotIn(List values) { + addCriterion("sales_volume not in", values, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeBetween(String value1, String value2) { + addCriterion("sales_volume between", value1, value2, "salesVolume"); + return (Criteria) this; + } + + public Criteria andSalesVolumeNotBetween(String value1, String value2) { + addCriterion("sales_volume not between", value1, value2, "salesVolume"); + 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 values) { + addCriterion("gross_margin in", values, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginNotIn(List 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 andNumberOfCommentsIsNull() { + addCriterion("number_of_comments is null"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsIsNotNull() { + addCriterion("number_of_comments is not null"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsEqualTo(Integer value) { + addCriterion("number_of_comments =", value, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsNotEqualTo(Integer value) { + addCriterion("number_of_comments <>", value, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsGreaterThan(Integer value) { + addCriterion("number_of_comments >", value, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsGreaterThanOrEqualTo(Integer value) { + addCriterion("number_of_comments >=", value, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsLessThan(Integer value) { + addCriterion("number_of_comments <", value, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsLessThanOrEqualTo(Integer value) { + addCriterion("number_of_comments <=", value, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsIn(List values) { + addCriterion("number_of_comments in", values, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsNotIn(List values) { + addCriterion("number_of_comments not in", values, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsBetween(Integer value1, Integer value2) { + addCriterion("number_of_comments between", value1, value2, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfCommentsNotBetween(Integer value1, Integer value2) { + addCriterion("number_of_comments not between", value1, value2, "numberOfComments"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesIsNull() { + addCriterion("number_of_likes is null"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesIsNotNull() { + addCriterion("number_of_likes is not null"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesEqualTo(Integer value) { + addCriterion("number_of_likes =", value, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesNotEqualTo(Integer value) { + addCriterion("number_of_likes <>", value, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesGreaterThan(Integer value) { + addCriterion("number_of_likes >", value, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesGreaterThanOrEqualTo(Integer value) { + addCriterion("number_of_likes >=", value, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesLessThan(Integer value) { + addCriterion("number_of_likes <", value, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesLessThanOrEqualTo(Integer value) { + addCriterion("number_of_likes <=", value, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesIn(List values) { + addCriterion("number_of_likes in", values, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesNotIn(List values) { + addCriterion("number_of_likes not in", values, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesBetween(Integer value1, Integer value2) { + addCriterion("number_of_likes between", value1, value2, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfLikesNotBetween(Integer value1, Integer value2) { + addCriterion("number_of_likes not between", value1, value2, "numberOfLikes"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsIsNull() { + addCriterion("number_of_collections is null"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsIsNotNull() { + addCriterion("number_of_collections is not null"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsEqualTo(Integer value) { + addCriterion("number_of_collections =", value, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsNotEqualTo(Integer value) { + addCriterion("number_of_collections <>", value, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsGreaterThan(Integer value) { + addCriterion("number_of_collections >", value, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsGreaterThanOrEqualTo(Integer value) { + addCriterion("number_of_collections >=", value, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsLessThan(Integer value) { + addCriterion("number_of_collections <", value, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsLessThanOrEqualTo(Integer value) { + addCriterion("number_of_collections <=", value, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsIn(List values) { + addCriterion("number_of_collections in", values, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsNotIn(List values) { + addCriterion("number_of_collections not in", values, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsBetween(Integer value1, Integer value2) { + addCriterion("number_of_collections between", value1, value2, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfCollectionsNotBetween(Integer value1, Integer value2) { + addCriterion("number_of_collections not between", value1, value2, "numberOfCollections"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesIsNull() { + addCriterion("number_of_shares is null"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesIsNotNull() { + addCriterion("number_of_shares is not null"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesEqualTo(Integer value) { + addCriterion("number_of_shares =", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesNotEqualTo(Integer value) { + addCriterion("number_of_shares <>", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesGreaterThan(Integer value) { + addCriterion("number_of_shares >", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesGreaterThanOrEqualTo(Integer value) { + addCriterion("number_of_shares >=", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesLessThan(Integer value) { + addCriterion("number_of_shares <", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesLessThanOrEqualTo(Integer value) { + addCriterion("number_of_shares <=", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesIn(List values) { + addCriterion("number_of_shares in", values, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesNotIn(List values) { + addCriterion("number_of_shares not in", values, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesBetween(Integer value1, Integer value2) { + addCriterion("number_of_shares between", value1, value2, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesNotBetween(Integer value1, Integer value2) { + addCriterion("number_of_shares not between", value1, value2, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andOnlineTimeIsNull() { + addCriterion("online_time is null"); + return (Criteria) this; + } + + public Criteria andOnlineTimeIsNotNull() { + addCriterion("online_time is not null"); + return (Criteria) this; + } + + public Criteria andOnlineTimeEqualTo(Date value) { + addCriterion("online_time =", value, "onlineTime"); + return (Criteria) this; + } + + public Criteria andOnlineTimeNotEqualTo(Date value) { + addCriterion("online_time <>", value, "onlineTime"); + return (Criteria) this; + } + + public Criteria andOnlineTimeGreaterThan(Date value) { + addCriterion("online_time >", value, "onlineTime"); + return (Criteria) this; + } + + public Criteria andOnlineTimeGreaterThanOrEqualTo(Date value) { + addCriterion("online_time >=", value, "onlineTime"); + return (Criteria) this; + } + + public Criteria andOnlineTimeLessThan(Date value) { + addCriterion("online_time <", value, "onlineTime"); + return (Criteria) this; + } + + public Criteria andOnlineTimeLessThanOrEqualTo(Date value) { + addCriterion("online_time <=", value, "onlineTime"); + return (Criteria) this; + } + + public Criteria andOnlineTimeIn(List values) { + addCriterion("online_time in", values, "onlineTime"); + return (Criteria) this; + } + + public Criteria andOnlineTimeNotIn(List values) { + addCriterion("online_time not in", values, "onlineTime"); + return (Criteria) this; + } + + public Criteria andOnlineTimeBetween(Date value1, Date value2) { + addCriterion("online_time between", value1, value2, "onlineTime"); + return (Criteria) this; + } + + public Criteria andOnlineTimeNotBetween(Date value1, Date value2) { + addCriterion("online_time not between", value1, value2, "onlineTime"); + return (Criteria) this; + } + + public Criteria andStateIsNull() { + addCriterion("state is null"); + return (Criteria) this; + } + + public Criteria andStateIsNotNull() { + addCriterion("state is not null"); + return (Criteria) this; + } + + public Criteria andStateEqualTo(Integer value) { + addCriterion("state =", value, "state"); + return (Criteria) this; + } + + public Criteria andStateNotEqualTo(Integer value) { + addCriterion("state <>", value, "state"); + return (Criteria) this; + } + + public Criteria andStateGreaterThan(Integer value) { + addCriterion("state >", value, "state"); + return (Criteria) this; + } + + public Criteria andStateGreaterThanOrEqualTo(Integer value) { + addCriterion("state >=", value, "state"); + return (Criteria) this; + } + + public Criteria andStateLessThan(Integer value) { + addCriterion("state <", value, "state"); + return (Criteria) this; + } + + public Criteria andStateLessThanOrEqualTo(Integer value) { + addCriterion("state <=", value, "state"); + return (Criteria) this; + } + + public Criteria andStateIn(List values) { + addCriterion("state in", values, "state"); + return (Criteria) this; + } + + public Criteria andStateNotIn(List values) { + addCriterion("state not in", values, "state"); + return (Criteria) this; + } + + public Criteria andStateBetween(Integer value1, Integer value2) { + addCriterion("state between", value1, value2, "state"); + return (Criteria) this; + } + + public Criteria andStateNotBetween(Integer value1, Integer value2) { + addCriterion("state not between", value1, value2, "state"); + 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 values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/trade/entity/StuGoodsInfo.java b/src/main/java/com/sztzjy/trade/entity/StuGoodsInfo.java new file mode 100644 index 0000000..9083b04 --- /dev/null +++ b/src/main/java/com/sztzjy/trade/entity/StuGoodsInfo.java @@ -0,0 +1,331 @@ +package com.sztzjy.trade.entity; + +import java.math.BigDecimal; +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +/** + * + * @author whb + * stu_goods_info + */ +public class StuGoodsInfo { + @ApiModelProperty(notes = "ID") + private Integer id; + + @ApiModelProperty(notes = "商品名称") + private String goodsName; + + @ApiModelProperty(notes = "商品类型") + private String goodsType; + + @ApiModelProperty(notes = "商品小类") + private String goodsSubclass; + + @ApiModelProperty(notes = "计价单位") + private String pricingUnit; + + @ApiModelProperty(notes = "单位成本价") + private BigDecimal unitCostPrice; + + @ApiModelProperty(notes = "毛利率") + private String grossMargin; + + @ApiModelProperty(notes = "商品主图片") + private String goodsMainImage; + + @ApiModelProperty(notes = "轮播图(多个逗号隔开)") + private String carouselImage; + + @ApiModelProperty(notes = "定价种类名称") + private String pricingCategoryName; + + @ApiModelProperty(notes = "重量") + private Double weight; + + @ApiModelProperty(notes = "促销成本价") + private BigDecimal promotionCostPrice; + + @ApiModelProperty(notes = "最高价") + private BigDecimal maximumPrice; + + @ApiModelProperty(notes = "定价") + private BigDecimal fixAPrice; + + @ApiModelProperty(notes = "匹配群体") + private String matchingGroups; + + @ApiModelProperty(notes = "商品链接") + private String goodsUrl; + + @ApiModelProperty(notes = "分享数") + private Integer numberOfShares; + + @ApiModelProperty(notes = "分享折扣") + private String shareDiscounts; + + @ApiModelProperty(notes = "分享分销提成") + private String shareCommission; + + @ApiModelProperty(notes = "短视频分销提成") + private String shortVideoCommission; + + @ApiModelProperty(notes = "内容分销提成") + private String contentCommission; + + @ApiModelProperty(notes = "产品关键字(多个逗号隔开)") + private String productKeyword; + + @ApiModelProperty(notes = "创建时间") + private Date createTime; + + @ApiModelProperty(notes = "更新时间") + private Date updateTime; + + @ApiModelProperty(notes = "上架状态(0下架 1上架)") + private Integer onlineState; + + @ApiModelProperty(notes = "用户ID") + private String userId; + + @ApiModelProperty(notes = "学校ID") + private String schoolId; + + @ApiModelProperty(notes = "商品介绍") + private String goodsIntroduction; + + @ApiModelProperty(notes = "规格与包装") + private String specificationPackaging; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getGoodsName() { + return goodsName; + } + + public void setGoodsName(String goodsName) { + this.goodsName = goodsName == null ? null : goodsName.trim(); + } + + 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 getUnitCostPrice() { + return unitCostPrice; + } + + public void setUnitCostPrice(BigDecimal unitCostPrice) { + this.unitCostPrice = unitCostPrice; + } + + public String getGrossMargin() { + return grossMargin; + } + + public void setGrossMargin(String grossMargin) { + this.grossMargin = grossMargin == null ? null : grossMargin.trim(); + } + + public String getGoodsMainImage() { + return goodsMainImage; + } + + public void setGoodsMainImage(String goodsMainImage) { + this.goodsMainImage = goodsMainImage == null ? null : goodsMainImage.trim(); + } + + public String getCarouselImage() { + return carouselImage; + } + + public void setCarouselImage(String carouselImage) { + this.carouselImage = carouselImage == null ? null : carouselImage.trim(); + } + + public String getPricingCategoryName() { + return pricingCategoryName; + } + + public void setPricingCategoryName(String pricingCategoryName) { + this.pricingCategoryName = pricingCategoryName == null ? null : pricingCategoryName.trim(); + } + + public Double getWeight() { + return weight; + } + + public void setWeight(Double weight) { + this.weight = weight; + } + + public BigDecimal getPromotionCostPrice() { + return promotionCostPrice; + } + + public void setPromotionCostPrice(BigDecimal promotionCostPrice) { + this.promotionCostPrice = promotionCostPrice; + } + + public BigDecimal getMaximumPrice() { + return maximumPrice; + } + + public void setMaximumPrice(BigDecimal maximumPrice) { + this.maximumPrice = maximumPrice; + } + + public BigDecimal getFixAPrice() { + return fixAPrice; + } + + public void setFixAPrice(BigDecimal fixAPrice) { + this.fixAPrice = fixAPrice; + } + + public String getMatchingGroups() { + return matchingGroups; + } + + public void setMatchingGroups(String matchingGroups) { + this.matchingGroups = matchingGroups == null ? null : matchingGroups.trim(); + } + + public String getGoodsUrl() { + return goodsUrl; + } + + public void setGoodsUrl(String goodsUrl) { + this.goodsUrl = goodsUrl == null ? null : goodsUrl.trim(); + } + + public Integer getNumberOfShares() { + return numberOfShares; + } + + public void setNumberOfShares(Integer numberOfShares) { + this.numberOfShares = numberOfShares; + } + + public String getShareDiscounts() { + return shareDiscounts; + } + + public void setShareDiscounts(String shareDiscounts) { + this.shareDiscounts = shareDiscounts == null ? null : shareDiscounts.trim(); + } + + public String getShareCommission() { + return shareCommission; + } + + public void setShareCommission(String shareCommission) { + this.shareCommission = shareCommission == null ? null : shareCommission.trim(); + } + + public String getShortVideoCommission() { + return shortVideoCommission; + } + + public void setShortVideoCommission(String shortVideoCommission) { + this.shortVideoCommission = shortVideoCommission == null ? null : shortVideoCommission.trim(); + } + + public String getContentCommission() { + return contentCommission; + } + + public void setContentCommission(String contentCommission) { + this.contentCommission = contentCommission == null ? null : contentCommission.trim(); + } + + public String getProductKeyword() { + return productKeyword; + } + + public void setProductKeyword(String productKeyword) { + this.productKeyword = productKeyword == null ? null : productKeyword.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; + } + + public Integer getOnlineState() { + return onlineState; + } + + public void setOnlineState(Integer onlineState) { + this.onlineState = onlineState; + } + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId == null ? null : userId.trim(); + } + + public String getSchoolId() { + return schoolId; + } + + public void setSchoolId(String schoolId) { + this.schoolId = schoolId == null ? null : schoolId.trim(); + } + + public String getGoodsIntroduction() { + return goodsIntroduction; + } + + public void setGoodsIntroduction(String goodsIntroduction) { + this.goodsIntroduction = goodsIntroduction == null ? null : goodsIntroduction.trim(); + } + + public String getSpecificationPackaging() { + return specificationPackaging; + } + + public void setSpecificationPackaging(String specificationPackaging) { + this.specificationPackaging = specificationPackaging == null ? null : specificationPackaging.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/trade/entity/StuGoodsInfoExample.java b/src/main/java/com/sztzjy/trade/entity/StuGoodsInfoExample.java new file mode 100644 index 0000000..2789974 --- /dev/null +++ b/src/main/java/com/sztzjy/trade/entity/StuGoodsInfoExample.java @@ -0,0 +1,1991 @@ +package com.sztzjy.trade.entity; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class StuGoodsInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public StuGoodsInfoExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 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 values) { + addCriterion("goods_name in", values, "goodsName"); + return (Criteria) this; + } + + public Criteria andGoodsNameNotIn(List 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 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 values) { + addCriterion("goods_type in", values, "goodsType"); + return (Criteria) this; + } + + public Criteria andGoodsTypeNotIn(List 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 values) { + addCriterion("goods_subclass in", values, "goodsSubclass"); + return (Criteria) this; + } + + public Criteria andGoodsSubclassNotIn(List 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 values) { + addCriterion("pricing_unit in", values, "pricingUnit"); + return (Criteria) this; + } + + public Criteria andPricingUnitNotIn(List 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 andUnitCostPriceIsNull() { + addCriterion("unit_cost_price is null"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceIsNotNull() { + addCriterion("unit_cost_price is not null"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceEqualTo(BigDecimal value) { + addCriterion("unit_cost_price =", value, "unitCostPrice"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceNotEqualTo(BigDecimal value) { + addCriterion("unit_cost_price <>", value, "unitCostPrice"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceGreaterThan(BigDecimal value) { + addCriterion("unit_cost_price >", value, "unitCostPrice"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("unit_cost_price >=", value, "unitCostPrice"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceLessThan(BigDecimal value) { + addCriterion("unit_cost_price <", value, "unitCostPrice"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("unit_cost_price <=", value, "unitCostPrice"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceIn(List values) { + addCriterion("unit_cost_price in", values, "unitCostPrice"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceNotIn(List values) { + addCriterion("unit_cost_price not in", values, "unitCostPrice"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("unit_cost_price between", value1, value2, "unitCostPrice"); + return (Criteria) this; + } + + public Criteria andUnitCostPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("unit_cost_price not between", value1, value2, "unitCostPrice"); + 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 values) { + addCriterion("gross_margin in", values, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginNotIn(List 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 andGoodsMainImageIsNull() { + addCriterion("goods_main_image is null"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageIsNotNull() { + addCriterion("goods_main_image is not null"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageEqualTo(String value) { + addCriterion("goods_main_image =", value, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageNotEqualTo(String value) { + addCriterion("goods_main_image <>", value, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageGreaterThan(String value) { + addCriterion("goods_main_image >", value, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageGreaterThanOrEqualTo(String value) { + addCriterion("goods_main_image >=", value, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageLessThan(String value) { + addCriterion("goods_main_image <", value, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageLessThanOrEqualTo(String value) { + addCriterion("goods_main_image <=", value, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageLike(String value) { + addCriterion("goods_main_image like", value, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageNotLike(String value) { + addCriterion("goods_main_image not like", value, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageIn(List values) { + addCriterion("goods_main_image in", values, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageNotIn(List values) { + addCriterion("goods_main_image not in", values, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageBetween(String value1, String value2) { + addCriterion("goods_main_image between", value1, value2, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andGoodsMainImageNotBetween(String value1, String value2) { + addCriterion("goods_main_image not between", value1, value2, "goodsMainImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageIsNull() { + addCriterion("carousel_image is null"); + return (Criteria) this; + } + + public Criteria andCarouselImageIsNotNull() { + addCriterion("carousel_image is not null"); + return (Criteria) this; + } + + public Criteria andCarouselImageEqualTo(String value) { + addCriterion("carousel_image =", value, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageNotEqualTo(String value) { + addCriterion("carousel_image <>", value, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageGreaterThan(String value) { + addCriterion("carousel_image >", value, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageGreaterThanOrEqualTo(String value) { + addCriterion("carousel_image >=", value, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageLessThan(String value) { + addCriterion("carousel_image <", value, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageLessThanOrEqualTo(String value) { + addCriterion("carousel_image <=", value, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageLike(String value) { + addCriterion("carousel_image like", value, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageNotLike(String value) { + addCriterion("carousel_image not like", value, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageIn(List values) { + addCriterion("carousel_image in", values, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageNotIn(List values) { + addCriterion("carousel_image not in", values, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageBetween(String value1, String value2) { + addCriterion("carousel_image between", value1, value2, "carouselImage"); + return (Criteria) this; + } + + public Criteria andCarouselImageNotBetween(String value1, String value2) { + addCriterion("carousel_image not between", value1, value2, "carouselImage"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameIsNull() { + addCriterion("pricing_category_name is null"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameIsNotNull() { + addCriterion("pricing_category_name is not null"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameEqualTo(String value) { + addCriterion("pricing_category_name =", value, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameNotEqualTo(String value) { + addCriterion("pricing_category_name <>", value, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameGreaterThan(String value) { + addCriterion("pricing_category_name >", value, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameGreaterThanOrEqualTo(String value) { + addCriterion("pricing_category_name >=", value, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameLessThan(String value) { + addCriterion("pricing_category_name <", value, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameLessThanOrEqualTo(String value) { + addCriterion("pricing_category_name <=", value, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameLike(String value) { + addCriterion("pricing_category_name like", value, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameNotLike(String value) { + addCriterion("pricing_category_name not like", value, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameIn(List values) { + addCriterion("pricing_category_name in", values, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameNotIn(List values) { + addCriterion("pricing_category_name not in", values, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameBetween(String value1, String value2) { + addCriterion("pricing_category_name between", value1, value2, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andPricingCategoryNameNotBetween(String value1, String value2) { + addCriterion("pricing_category_name not between", value1, value2, "pricingCategoryName"); + return (Criteria) this; + } + + public Criteria andWeightIsNull() { + addCriterion("weight is null"); + return (Criteria) this; + } + + public Criteria andWeightIsNotNull() { + addCriterion("weight is not null"); + return (Criteria) this; + } + + public Criteria andWeightEqualTo(Double value) { + addCriterion("weight =", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightNotEqualTo(Double value) { + addCriterion("weight <>", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightGreaterThan(Double value) { + addCriterion("weight >", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightGreaterThanOrEqualTo(Double value) { + addCriterion("weight >=", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightLessThan(Double value) { + addCriterion("weight <", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightLessThanOrEqualTo(Double value) { + addCriterion("weight <=", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightIn(List values) { + addCriterion("weight in", values, "weight"); + return (Criteria) this; + } + + public Criteria andWeightNotIn(List values) { + addCriterion("weight not in", values, "weight"); + return (Criteria) this; + } + + public Criteria andWeightBetween(Double value1, Double value2) { + addCriterion("weight between", value1, value2, "weight"); + return (Criteria) this; + } + + public Criteria andWeightNotBetween(Double value1, Double value2) { + addCriterion("weight not between", value1, value2, "weight"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceIsNull() { + addCriterion("promotion_cost_price is null"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceIsNotNull() { + addCriterion("promotion_cost_price is not null"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceEqualTo(BigDecimal value) { + addCriterion("promotion_cost_price =", value, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceNotEqualTo(BigDecimal value) { + addCriterion("promotion_cost_price <>", value, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceGreaterThan(BigDecimal value) { + addCriterion("promotion_cost_price >", value, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("promotion_cost_price >=", value, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceLessThan(BigDecimal value) { + addCriterion("promotion_cost_price <", value, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("promotion_cost_price <=", value, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceIn(List values) { + addCriterion("promotion_cost_price in", values, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceNotIn(List values) { + addCriterion("promotion_cost_price not in", values, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("promotion_cost_price between", value1, value2, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andPromotionCostPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("promotion_cost_price not between", value1, value2, "promotionCostPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceIsNull() { + addCriterion("maximum_price is null"); + return (Criteria) this; + } + + public Criteria andMaximumPriceIsNotNull() { + addCriterion("maximum_price is not null"); + return (Criteria) this; + } + + public Criteria andMaximumPriceEqualTo(BigDecimal value) { + addCriterion("maximum_price =", value, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceNotEqualTo(BigDecimal value) { + addCriterion("maximum_price <>", value, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceGreaterThan(BigDecimal value) { + addCriterion("maximum_price >", value, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("maximum_price >=", value, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceLessThan(BigDecimal value) { + addCriterion("maximum_price <", value, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("maximum_price <=", value, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceIn(List values) { + addCriterion("maximum_price in", values, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceNotIn(List values) { + addCriterion("maximum_price not in", values, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("maximum_price between", value1, value2, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andMaximumPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("maximum_price not between", value1, value2, "maximumPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceIsNull() { + addCriterion("fix_a_price is null"); + return (Criteria) this; + } + + public Criteria andFixAPriceIsNotNull() { + addCriterion("fix_a_price is not null"); + return (Criteria) this; + } + + public Criteria andFixAPriceEqualTo(BigDecimal value) { + addCriterion("fix_a_price =", value, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceNotEqualTo(BigDecimal value) { + addCriterion("fix_a_price <>", value, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceGreaterThan(BigDecimal value) { + addCriterion("fix_a_price >", value, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("fix_a_price >=", value, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceLessThan(BigDecimal value) { + addCriterion("fix_a_price <", value, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceLessThanOrEqualTo(BigDecimal value) { + addCriterion("fix_a_price <=", value, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceIn(List values) { + addCriterion("fix_a_price in", values, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceNotIn(List values) { + addCriterion("fix_a_price not in", values, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("fix_a_price between", value1, value2, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andFixAPriceNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("fix_a_price not between", value1, value2, "fixAPrice"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsIsNull() { + addCriterion("matching_groups is null"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsIsNotNull() { + addCriterion("matching_groups is not null"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsEqualTo(String value) { + addCriterion("matching_groups =", value, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsNotEqualTo(String value) { + addCriterion("matching_groups <>", value, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsGreaterThan(String value) { + addCriterion("matching_groups >", value, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsGreaterThanOrEqualTo(String value) { + addCriterion("matching_groups >=", value, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsLessThan(String value) { + addCriterion("matching_groups <", value, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsLessThanOrEqualTo(String value) { + addCriterion("matching_groups <=", value, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsLike(String value) { + addCriterion("matching_groups like", value, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsNotLike(String value) { + addCriterion("matching_groups not like", value, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsIn(List values) { + addCriterion("matching_groups in", values, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsNotIn(List values) { + addCriterion("matching_groups not in", values, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsBetween(String value1, String value2) { + addCriterion("matching_groups between", value1, value2, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andMatchingGroupsNotBetween(String value1, String value2) { + addCriterion("matching_groups not between", value1, value2, "matchingGroups"); + return (Criteria) this; + } + + public Criteria andGoodsUrlIsNull() { + addCriterion("goods_url is null"); + return (Criteria) this; + } + + public Criteria andGoodsUrlIsNotNull() { + addCriterion("goods_url is not null"); + return (Criteria) this; + } + + public Criteria andGoodsUrlEqualTo(String value) { + addCriterion("goods_url =", value, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlNotEqualTo(String value) { + addCriterion("goods_url <>", value, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlGreaterThan(String value) { + addCriterion("goods_url >", value, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlGreaterThanOrEqualTo(String value) { + addCriterion("goods_url >=", value, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlLessThan(String value) { + addCriterion("goods_url <", value, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlLessThanOrEqualTo(String value) { + addCriterion("goods_url <=", value, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlLike(String value) { + addCriterion("goods_url like", value, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlNotLike(String value) { + addCriterion("goods_url not like", value, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlIn(List values) { + addCriterion("goods_url in", values, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlNotIn(List values) { + addCriterion("goods_url not in", values, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlBetween(String value1, String value2) { + addCriterion("goods_url between", value1, value2, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andGoodsUrlNotBetween(String value1, String value2) { + addCriterion("goods_url not between", value1, value2, "goodsUrl"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesIsNull() { + addCriterion("number_of_shares is null"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesIsNotNull() { + addCriterion("number_of_shares is not null"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesEqualTo(Integer value) { + addCriterion("number_of_shares =", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesNotEqualTo(Integer value) { + addCriterion("number_of_shares <>", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesGreaterThan(Integer value) { + addCriterion("number_of_shares >", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesGreaterThanOrEqualTo(Integer value) { + addCriterion("number_of_shares >=", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesLessThan(Integer value) { + addCriterion("number_of_shares <", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesLessThanOrEqualTo(Integer value) { + addCriterion("number_of_shares <=", value, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesIn(List values) { + addCriterion("number_of_shares in", values, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesNotIn(List values) { + addCriterion("number_of_shares not in", values, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesBetween(Integer value1, Integer value2) { + addCriterion("number_of_shares between", value1, value2, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andNumberOfSharesNotBetween(Integer value1, Integer value2) { + addCriterion("number_of_shares not between", value1, value2, "numberOfShares"); + return (Criteria) this; + } + + public Criteria andShareDiscountsIsNull() { + addCriterion("share_discounts is null"); + return (Criteria) this; + } + + public Criteria andShareDiscountsIsNotNull() { + addCriterion("share_discounts is not null"); + return (Criteria) this; + } + + public Criteria andShareDiscountsEqualTo(String value) { + addCriterion("share_discounts =", value, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsNotEqualTo(String value) { + addCriterion("share_discounts <>", value, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsGreaterThan(String value) { + addCriterion("share_discounts >", value, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsGreaterThanOrEqualTo(String value) { + addCriterion("share_discounts >=", value, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsLessThan(String value) { + addCriterion("share_discounts <", value, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsLessThanOrEqualTo(String value) { + addCriterion("share_discounts <=", value, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsLike(String value) { + addCriterion("share_discounts like", value, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsNotLike(String value) { + addCriterion("share_discounts not like", value, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsIn(List values) { + addCriterion("share_discounts in", values, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsNotIn(List values) { + addCriterion("share_discounts not in", values, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsBetween(String value1, String value2) { + addCriterion("share_discounts between", value1, value2, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareDiscountsNotBetween(String value1, String value2) { + addCriterion("share_discounts not between", value1, value2, "shareDiscounts"); + return (Criteria) this; + } + + public Criteria andShareCommissionIsNull() { + addCriterion("share_commission is null"); + return (Criteria) this; + } + + public Criteria andShareCommissionIsNotNull() { + addCriterion("share_commission is not null"); + return (Criteria) this; + } + + public Criteria andShareCommissionEqualTo(String value) { + addCriterion("share_commission =", value, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionNotEqualTo(String value) { + addCriterion("share_commission <>", value, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionGreaterThan(String value) { + addCriterion("share_commission >", value, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionGreaterThanOrEqualTo(String value) { + addCriterion("share_commission >=", value, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionLessThan(String value) { + addCriterion("share_commission <", value, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionLessThanOrEqualTo(String value) { + addCriterion("share_commission <=", value, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionLike(String value) { + addCriterion("share_commission like", value, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionNotLike(String value) { + addCriterion("share_commission not like", value, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionIn(List values) { + addCriterion("share_commission in", values, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionNotIn(List values) { + addCriterion("share_commission not in", values, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionBetween(String value1, String value2) { + addCriterion("share_commission between", value1, value2, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShareCommissionNotBetween(String value1, String value2) { + addCriterion("share_commission not between", value1, value2, "shareCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionIsNull() { + addCriterion("short_video_commission is null"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionIsNotNull() { + addCriterion("short_video_commission is not null"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionEqualTo(String value) { + addCriterion("short_video_commission =", value, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionNotEqualTo(String value) { + addCriterion("short_video_commission <>", value, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionGreaterThan(String value) { + addCriterion("short_video_commission >", value, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionGreaterThanOrEqualTo(String value) { + addCriterion("short_video_commission >=", value, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionLessThan(String value) { + addCriterion("short_video_commission <", value, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionLessThanOrEqualTo(String value) { + addCriterion("short_video_commission <=", value, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionLike(String value) { + addCriterion("short_video_commission like", value, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionNotLike(String value) { + addCriterion("short_video_commission not like", value, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionIn(List values) { + addCriterion("short_video_commission in", values, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionNotIn(List values) { + addCriterion("short_video_commission not in", values, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionBetween(String value1, String value2) { + addCriterion("short_video_commission between", value1, value2, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andShortVideoCommissionNotBetween(String value1, String value2) { + addCriterion("short_video_commission not between", value1, value2, "shortVideoCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionIsNull() { + addCriterion("content_commission is null"); + return (Criteria) this; + } + + public Criteria andContentCommissionIsNotNull() { + addCriterion("content_commission is not null"); + return (Criteria) this; + } + + public Criteria andContentCommissionEqualTo(String value) { + addCriterion("content_commission =", value, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionNotEqualTo(String value) { + addCriterion("content_commission <>", value, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionGreaterThan(String value) { + addCriterion("content_commission >", value, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionGreaterThanOrEqualTo(String value) { + addCriterion("content_commission >=", value, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionLessThan(String value) { + addCriterion("content_commission <", value, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionLessThanOrEqualTo(String value) { + addCriterion("content_commission <=", value, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionLike(String value) { + addCriterion("content_commission like", value, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionNotLike(String value) { + addCriterion("content_commission not like", value, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionIn(List values) { + addCriterion("content_commission in", values, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionNotIn(List values) { + addCriterion("content_commission not in", values, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionBetween(String value1, String value2) { + addCriterion("content_commission between", value1, value2, "contentCommission"); + return (Criteria) this; + } + + public Criteria andContentCommissionNotBetween(String value1, String value2) { + addCriterion("content_commission not between", value1, value2, "contentCommission"); + return (Criteria) this; + } + + public Criteria andProductKeywordIsNull() { + addCriterion("product_keyword is null"); + return (Criteria) this; + } + + public Criteria andProductKeywordIsNotNull() { + addCriterion("product_keyword is not null"); + return (Criteria) this; + } + + public Criteria andProductKeywordEqualTo(String value) { + addCriterion("product_keyword =", value, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordNotEqualTo(String value) { + addCriterion("product_keyword <>", value, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordGreaterThan(String value) { + addCriterion("product_keyword >", value, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordGreaterThanOrEqualTo(String value) { + addCriterion("product_keyword >=", value, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordLessThan(String value) { + addCriterion("product_keyword <", value, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordLessThanOrEqualTo(String value) { + addCriterion("product_keyword <=", value, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordLike(String value) { + addCriterion("product_keyword like", value, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordNotLike(String value) { + addCriterion("product_keyword not like", value, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordIn(List values) { + addCriterion("product_keyword in", values, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordNotIn(List values) { + addCriterion("product_keyword not in", values, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordBetween(String value1, String value2) { + addCriterion("product_keyword between", value1, value2, "productKeyword"); + return (Criteria) this; + } + + public Criteria andProductKeywordNotBetween(String value1, String value2) { + addCriterion("product_keyword not between", value1, value2, "productKeyword"); + 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List 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 Criteria andOnlineStateIsNull() { + addCriterion("online_state is null"); + return (Criteria) this; + } + + public Criteria andOnlineStateIsNotNull() { + addCriterion("online_state is not null"); + return (Criteria) this; + } + + public Criteria andOnlineStateEqualTo(Integer value) { + addCriterion("online_state =", value, "onlineState"); + return (Criteria) this; + } + + public Criteria andOnlineStateNotEqualTo(Integer value) { + addCriterion("online_state <>", value, "onlineState"); + return (Criteria) this; + } + + public Criteria andOnlineStateGreaterThan(Integer value) { + addCriterion("online_state >", value, "onlineState"); + return (Criteria) this; + } + + public Criteria andOnlineStateGreaterThanOrEqualTo(Integer value) { + addCriterion("online_state >=", value, "onlineState"); + return (Criteria) this; + } + + public Criteria andOnlineStateLessThan(Integer value) { + addCriterion("online_state <", value, "onlineState"); + return (Criteria) this; + } + + public Criteria andOnlineStateLessThanOrEqualTo(Integer value) { + addCriterion("online_state <=", value, "onlineState"); + return (Criteria) this; + } + + public Criteria andOnlineStateIn(List values) { + addCriterion("online_state in", values, "onlineState"); + return (Criteria) this; + } + + public Criteria andOnlineStateNotIn(List values) { + addCriterion("online_state not in", values, "onlineState"); + return (Criteria) this; + } + + public Criteria andOnlineStateBetween(Integer value1, Integer value2) { + addCriterion("online_state between", value1, value2, "onlineState"); + return (Criteria) this; + } + + public Criteria andOnlineStateNotBetween(Integer value1, Integer value2) { + addCriterion("online_state not between", value1, value2, "onlineState"); + 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 values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List 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 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 values) { + addCriterion("school_id in", values, "schoolId"); + return (Criteria) this; + } + + public Criteria andSchoolIdNotIn(List 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 static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/trade/mapper/StuGoodSalesManageMapper.java b/src/main/java/com/sztzjy/trade/mapper/StuGoodSalesManageMapper.java new file mode 100644 index 0000000..0676997 --- /dev/null +++ b/src/main/java/com/sztzjy/trade/mapper/StuGoodSalesManageMapper.java @@ -0,0 +1,30 @@ +package com.sztzjy.trade.mapper; + +import com.sztzjy.trade.entity.StuGoodSalesManage; +import com.sztzjy.trade.entity.StuGoodSalesManageExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface StuGoodSalesManageMapper { + long countByExample(StuGoodSalesManageExample example); + + int deleteByExample(StuGoodSalesManageExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(StuGoodSalesManage record); + + int insertSelective(StuGoodSalesManage record); + + List selectByExample(StuGoodSalesManageExample example); + + StuGoodSalesManage selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") StuGoodSalesManage record, @Param("example") StuGoodSalesManageExample example); + + int updateByExample(@Param("record") StuGoodSalesManage record, @Param("example") StuGoodSalesManageExample example); + + int updateByPrimaryKeySelective(StuGoodSalesManage record); + + int updateByPrimaryKey(StuGoodSalesManage record); +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/trade/mapper/StuGoodsInfoMapper.java b/src/main/java/com/sztzjy/trade/mapper/StuGoodsInfoMapper.java new file mode 100644 index 0000000..d6ee4f2 --- /dev/null +++ b/src/main/java/com/sztzjy/trade/mapper/StuGoodsInfoMapper.java @@ -0,0 +1,36 @@ +package com.sztzjy.trade.mapper; + +import com.sztzjy.trade.entity.StuGoodsInfo; +import com.sztzjy.trade.entity.StuGoodsInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface StuGoodsInfoMapper { + long countByExample(StuGoodsInfoExample example); + + int deleteByExample(StuGoodsInfoExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(StuGoodsInfo record); + + int insertSelective(StuGoodsInfo record); + + List selectByExampleWithBLOBs(StuGoodsInfoExample example); + + List selectByExample(StuGoodsInfoExample example); + + StuGoodsInfo selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") StuGoodsInfo record, @Param("example") StuGoodsInfoExample example); + + int updateByExampleWithBLOBs(@Param("record") StuGoodsInfo record, @Param("example") StuGoodsInfoExample example); + + int updateByExample(@Param("record") StuGoodsInfo record, @Param("example") StuGoodsInfoExample example); + + int updateByPrimaryKeySelective(StuGoodsInfo record); + + int updateByPrimaryKeyWithBLOBs(StuGoodsInfo record); + + int updateByPrimaryKey(StuGoodsInfo record); +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java b/src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java new file mode 100644 index 0000000..8bd37e8 --- /dev/null +++ b/src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java @@ -0,0 +1,23 @@ +package com.sztzjy.trade.service; + +import com.sztzjy.trade.util.ResultEntity; + +/** + * @author 17803 + * @date 2024-10-28 09:15 + */ +public interface StuGoodsTradingCenterService { + ResultEntity getSmallAdPlacement(String userId); + + //所有商品查询 + ResultEntity AllProductInquiries(String userId); + + //商品查询 + ResultEntity getProductInquiry(String userId, String keyWord); + + //大广告招租 + ResultEntity getBigAdPlacement(String userId); + + //根据类型展示数据 + ResultEntity getTypeQuery(String userId, String type); +} diff --git a/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java b/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java new file mode 100644 index 0000000..9ae2649 --- /dev/null +++ b/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java @@ -0,0 +1,135 @@ +package com.sztzjy.trade.service.impl; + +import com.sztzjy.trade.entity.StuGoodSalesManage; +import com.sztzjy.trade.entity.StuGoodSalesManageExample; +import com.sztzjy.trade.entity.StuGoodsInfo; +import com.sztzjy.trade.entity.StuGoodsInfoExample; +import com.sztzjy.trade.mapper.StuGoodSalesManageMapper; +import com.sztzjy.trade.mapper.StuGoodsInfoMapper; +import com.sztzjy.trade.service.StuGoodsTradingCenterService; +import com.sztzjy.trade.util.ResultEntity; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.stereotype.Service; + +import java.util.Collections; +import java.util.Comparator; +import java.util.List; +import java.util.Random; +import java.util.stream.Collectors; + + +/** + * @author 17803 + * @date 2024-10-28 09:15 + */ +@Service +public class StuGoodsTradingCenterServiceImpl implements StuGoodsTradingCenterService { + + @Autowired + private StuGoodSalesManageMapper stuGoodSalesManageMapper; + + @Autowired + private StuGoodsInfoMapper stuGoodsInfoMapper; + + //小广告位招租 + @Override + public ResultEntity getSmallAdPlacement(String userId) { + //查询用户商品销售管理数据 + + StuGoodSalesManageExample goodSalesManageExample = new StuGoodSalesManageExample(); + goodSalesManageExample.createCriteria().andUserIdEqualTo(userId).andStateEqualTo(1); + List goodSalesManageList = stuGoodSalesManageMapper.selectByExample(goodSalesManageExample); + + //如果为空 默认展示前十位数据,不为空按照销量展示数据 + if (goodSalesManageList != null && goodSalesManageList.size() > 0) { + + List manageSaleTenList = goodSalesManageList.stream(). + sorted(Comparator.comparing(StuGoodSalesManage::getSoldQuantity).reversed()) + .limit(10) + .collect(Collectors.toList()); + return new ResultEntity<>(HttpStatus.OK,manageSaleTenList); + } + //内置16个商品以及相关信息,一般不为空 + return new ResultEntity<>(HttpStatus.NO_CONTENT); + + + } + + //所有商品查询 + @Override + public ResultEntity AllProductInquiries(String userId) { + + StuGoodsInfoExample example = new StuGoodsInfoExample(); + example.createCriteria().andUserIdEqualTo(userId).andOnlineStateEqualTo(1); + List stuGoodsInfoList = stuGoodsInfoMapper.selectByExample(example); + + if (stuGoodsInfoList != null && stuGoodsInfoList.size() > 0) { + return new ResultEntity<>(HttpStatus.OK,stuGoodsInfoList); + }else { + return new ResultEntity<>(HttpStatus.NO_CONTENT); + } + + + } + + //商品查询 + @Override + public ResultEntity getProductInquiry(String userId, String keyWord) { + + StuGoodsInfoExample example = new StuGoodsInfoExample(); + example.createCriteria().andUserIdEqualTo(userId).andOnlineStateEqualTo(1); + if(keyWord!=null && keyWord.length()>0){ + example.createCriteria().andGoodsNameLike("%"+keyWord+"%"); + } + List stuGoodsInfoList = stuGoodsInfoMapper.selectByExample(example); + if (stuGoodsInfoList != null && stuGoodsInfoList.size() > 0) { + return new ResultEntity<>(HttpStatus.OK,stuGoodsInfoList); + }else { + return new ResultEntity<>(HttpStatus.NO_CONTENT); + } + + } + + //大广告招租 + @Override + public ResultEntity getBigAdPlacement(String userId) { + //查询用户商品销售管理数据 + + StuGoodSalesManageExample goodSalesManageExample = new StuGoodSalesManageExample(); + goodSalesManageExample.createCriteria().andUserIdEqualTo(userId).andStateEqualTo(1); + List goodSalesManageList = stuGoodSalesManageMapper.selectByExample(goodSalesManageExample); + if (goodSalesManageList != null && goodSalesManageList.size() > 0) { + + if (goodSalesManageList.size() >= 2) { + Collections.shuffle(goodSalesManageList, new Random(System.currentTimeMillis())); + List goodSalesManageList1 = goodSalesManageList.subList(0, 2); + return new ResultEntity<>(HttpStatus.OK,goodSalesManageList1); + }else { + return new ResultEntity<>(goodSalesManageList); + } + } + + return new ResultEntity<>(HttpStatus.NO_CONTENT); + } + + //根据类型展示数据 + @Override + public ResultEntity getTypeQuery(String userId, String type) { + + + StuGoodsInfoExample example = new StuGoodsInfoExample(); + example.createCriteria().andUserIdEqualTo(userId).andOnlineStateEqualTo(1); + if(type!=null && type.length()>0){ + example.createCriteria().andGoodsNameLike("%"+type+"%"); + } + List stuGoodsInfoList = stuGoodsInfoMapper.selectByExample(example); + if (stuGoodsInfoList != null && stuGoodsInfoList.size() > 0) { + return new ResultEntity<>(HttpStatus.OK,stuGoodsInfoList); + }else { + return new ResultEntity<>(HttpStatus.NO_CONTENT); + } + + } + +} diff --git a/src/main/resources/mappers/StuGoodSalesManageMapper.xml b/src/main/resources/mappers/StuGoodSalesManageMapper.xml new file mode 100644 index 0000000..8ee8ff5 --- /dev/null +++ b/src/main/resources/mappers/StuGoodSalesManageMapper.xml @@ -0,0 +1,403 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + 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 + + + + + delete from stu_goods_sales_manage + where id = #{id,jdbcType=INTEGER} + + + delete from stu_goods_sales_manage + + + + + + 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 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, + + + + + #{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}, + + + + + + update stu_goods_sales_manage + + + 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}, + + + + + + + + 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} + + + + + + update stu_goods_sales_manage + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mappers/StuGoodsInfoMapper.xml b/src/main/resources/mappers/StuGoodsInfoMapper.xml new file mode 100644 index 0000000..6e13613 --- /dev/null +++ b/src/main/resources/mappers/StuGoodsInfoMapper.xml @@ -0,0 +1,679 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, goods_name, goods_type, goods_subclass, pricing_unit, unit_cost_price, gross_margin, + goods_main_image, carousel_image, pricing_category_name, weight, promotion_cost_price, + maximum_price, fix_a_price, matching_groups, goods_url, number_of_shares, share_discounts, + share_commission, short_video_commission, content_commission, product_keyword, create_time, + update_time, online_state, user_id, school_id + + + goods_Introduction, specification_packaging + + + + + + delete from stu_goods_info + where id = #{id,jdbcType=INTEGER} + + + delete from stu_goods_info + + + + + + insert into stu_goods_info (id, goods_name, goods_type, + goods_subclass, pricing_unit, unit_cost_price, + gross_margin, goods_main_image, carousel_image, + pricing_category_name, weight, promotion_cost_price, + maximum_price, fix_a_price, matching_groups, + goods_url, number_of_shares, share_discounts, + share_commission, short_video_commission, + content_commission, product_keyword, create_time, + update_time, online_state, user_id, + school_id, goods_Introduction, specification_packaging + ) + values (#{id,jdbcType=INTEGER}, #{goodsName,jdbcType=VARCHAR}, #{goodsType,jdbcType=VARCHAR}, + #{goodsSubclass,jdbcType=VARCHAR}, #{pricingUnit,jdbcType=VARCHAR}, #{unitCostPrice,jdbcType=DECIMAL}, + #{grossMargin,jdbcType=VARCHAR}, #{goodsMainImage,jdbcType=VARCHAR}, #{carouselImage,jdbcType=VARCHAR}, + #{pricingCategoryName,jdbcType=VARCHAR}, #{weight,jdbcType=DOUBLE}, #{promotionCostPrice,jdbcType=DECIMAL}, + #{maximumPrice,jdbcType=DECIMAL}, #{fixAPrice,jdbcType=DECIMAL}, #{matchingGroups,jdbcType=VARCHAR}, + #{goodsUrl,jdbcType=VARCHAR}, #{numberOfShares,jdbcType=INTEGER}, #{shareDiscounts,jdbcType=VARCHAR}, + #{shareCommission,jdbcType=VARCHAR}, #{shortVideoCommission,jdbcType=VARCHAR}, + #{contentCommission,jdbcType=VARCHAR}, #{productKeyword,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{updateTime,jdbcType=TIMESTAMP}, #{onlineState,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, + #{schoolId,jdbcType=VARCHAR}, #{goodsIntroduction,jdbcType=LONGVARCHAR}, #{specificationPackaging,jdbcType=LONGVARCHAR} + ) + + + insert into stu_goods_info + + + id, + + + goods_name, + + + goods_type, + + + goods_subclass, + + + pricing_unit, + + + unit_cost_price, + + + gross_margin, + + + goods_main_image, + + + carousel_image, + + + pricing_category_name, + + + weight, + + + promotion_cost_price, + + + maximum_price, + + + fix_a_price, + + + matching_groups, + + + goods_url, + + + number_of_shares, + + + share_discounts, + + + share_commission, + + + short_video_commission, + + + content_commission, + + + product_keyword, + + + create_time, + + + update_time, + + + online_state, + + + user_id, + + + school_id, + + + goods_Introduction, + + + specification_packaging, + + + + + #{id,jdbcType=INTEGER}, + + + #{goodsName,jdbcType=VARCHAR}, + + + #{goodsType,jdbcType=VARCHAR}, + + + #{goodsSubclass,jdbcType=VARCHAR}, + + + #{pricingUnit,jdbcType=VARCHAR}, + + + #{unitCostPrice,jdbcType=DECIMAL}, + + + #{grossMargin,jdbcType=VARCHAR}, + + + #{goodsMainImage,jdbcType=VARCHAR}, + + + #{carouselImage,jdbcType=VARCHAR}, + + + #{pricingCategoryName,jdbcType=VARCHAR}, + + + #{weight,jdbcType=DOUBLE}, + + + #{promotionCostPrice,jdbcType=DECIMAL}, + + + #{maximumPrice,jdbcType=DECIMAL}, + + + #{fixAPrice,jdbcType=DECIMAL}, + + + #{matchingGroups,jdbcType=VARCHAR}, + + + #{goodsUrl,jdbcType=VARCHAR}, + + + #{numberOfShares,jdbcType=INTEGER}, + + + #{shareDiscounts,jdbcType=VARCHAR}, + + + #{shareCommission,jdbcType=VARCHAR}, + + + #{shortVideoCommission,jdbcType=VARCHAR}, + + + #{contentCommission,jdbcType=VARCHAR}, + + + #{productKeyword,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{onlineState,jdbcType=INTEGER}, + + + #{userId,jdbcType=VARCHAR}, + + + #{schoolId,jdbcType=VARCHAR}, + + + #{goodsIntroduction,jdbcType=LONGVARCHAR}, + + + #{specificationPackaging,jdbcType=LONGVARCHAR}, + + + + + + update stu_goods_info + + + id = #{record.id,jdbcType=INTEGER}, + + + goods_name = #{record.goodsName,jdbcType=VARCHAR}, + + + goods_type = #{record.goodsType,jdbcType=VARCHAR}, + + + goods_subclass = #{record.goodsSubclass,jdbcType=VARCHAR}, + + + pricing_unit = #{record.pricingUnit,jdbcType=VARCHAR}, + + + unit_cost_price = #{record.unitCostPrice,jdbcType=DECIMAL}, + + + gross_margin = #{record.grossMargin,jdbcType=VARCHAR}, + + + goods_main_image = #{record.goodsMainImage,jdbcType=VARCHAR}, + + + carousel_image = #{record.carouselImage,jdbcType=VARCHAR}, + + + pricing_category_name = #{record.pricingCategoryName,jdbcType=VARCHAR}, + + + weight = #{record.weight,jdbcType=DOUBLE}, + + + promotion_cost_price = #{record.promotionCostPrice,jdbcType=DECIMAL}, + + + maximum_price = #{record.maximumPrice,jdbcType=DECIMAL}, + + + fix_a_price = #{record.fixAPrice,jdbcType=DECIMAL}, + + + matching_groups = #{record.matchingGroups,jdbcType=VARCHAR}, + + + goods_url = #{record.goodsUrl,jdbcType=VARCHAR}, + + + number_of_shares = #{record.numberOfShares,jdbcType=INTEGER}, + + + share_discounts = #{record.shareDiscounts,jdbcType=VARCHAR}, + + + share_commission = #{record.shareCommission,jdbcType=VARCHAR}, + + + short_video_commission = #{record.shortVideoCommission,jdbcType=VARCHAR}, + + + content_commission = #{record.contentCommission,jdbcType=VARCHAR}, + + + product_keyword = #{record.productKeyword,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + online_state = #{record.onlineState,jdbcType=INTEGER}, + + + user_id = #{record.userId,jdbcType=VARCHAR}, + + + school_id = #{record.schoolId,jdbcType=VARCHAR}, + + + goods_Introduction = #{record.goodsIntroduction,jdbcType=LONGVARCHAR}, + + + specification_packaging = #{record.specificationPackaging,jdbcType=LONGVARCHAR}, + + + + + + + + update stu_goods_info + set id = #{record.id,jdbcType=INTEGER}, + goods_name = #{record.goodsName,jdbcType=VARCHAR}, + goods_type = #{record.goodsType,jdbcType=VARCHAR}, + goods_subclass = #{record.goodsSubclass,jdbcType=VARCHAR}, + pricing_unit = #{record.pricingUnit,jdbcType=VARCHAR}, + unit_cost_price = #{record.unitCostPrice,jdbcType=DECIMAL}, + gross_margin = #{record.grossMargin,jdbcType=VARCHAR}, + goods_main_image = #{record.goodsMainImage,jdbcType=VARCHAR}, + carousel_image = #{record.carouselImage,jdbcType=VARCHAR}, + pricing_category_name = #{record.pricingCategoryName,jdbcType=VARCHAR}, + weight = #{record.weight,jdbcType=DOUBLE}, + promotion_cost_price = #{record.promotionCostPrice,jdbcType=DECIMAL}, + maximum_price = #{record.maximumPrice,jdbcType=DECIMAL}, + fix_a_price = #{record.fixAPrice,jdbcType=DECIMAL}, + matching_groups = #{record.matchingGroups,jdbcType=VARCHAR}, + goods_url = #{record.goodsUrl,jdbcType=VARCHAR}, + number_of_shares = #{record.numberOfShares,jdbcType=INTEGER}, + share_discounts = #{record.shareDiscounts,jdbcType=VARCHAR}, + share_commission = #{record.shareCommission,jdbcType=VARCHAR}, + short_video_commission = #{record.shortVideoCommission,jdbcType=VARCHAR}, + content_commission = #{record.contentCommission,jdbcType=VARCHAR}, + product_keyword = #{record.productKeyword,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + online_state = #{record.onlineState,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=VARCHAR}, + school_id = #{record.schoolId,jdbcType=VARCHAR}, + goods_Introduction = #{record.goodsIntroduction,jdbcType=LONGVARCHAR}, + specification_packaging = #{record.specificationPackaging,jdbcType=LONGVARCHAR} + + + + + + update stu_goods_info + set id = #{record.id,jdbcType=INTEGER}, + goods_name = #{record.goodsName,jdbcType=VARCHAR}, + goods_type = #{record.goodsType,jdbcType=VARCHAR}, + goods_subclass = #{record.goodsSubclass,jdbcType=VARCHAR}, + pricing_unit = #{record.pricingUnit,jdbcType=VARCHAR}, + unit_cost_price = #{record.unitCostPrice,jdbcType=DECIMAL}, + gross_margin = #{record.grossMargin,jdbcType=VARCHAR}, + goods_main_image = #{record.goodsMainImage,jdbcType=VARCHAR}, + carousel_image = #{record.carouselImage,jdbcType=VARCHAR}, + pricing_category_name = #{record.pricingCategoryName,jdbcType=VARCHAR}, + weight = #{record.weight,jdbcType=DOUBLE}, + promotion_cost_price = #{record.promotionCostPrice,jdbcType=DECIMAL}, + maximum_price = #{record.maximumPrice,jdbcType=DECIMAL}, + fix_a_price = #{record.fixAPrice,jdbcType=DECIMAL}, + matching_groups = #{record.matchingGroups,jdbcType=VARCHAR}, + goods_url = #{record.goodsUrl,jdbcType=VARCHAR}, + number_of_shares = #{record.numberOfShares,jdbcType=INTEGER}, + share_discounts = #{record.shareDiscounts,jdbcType=VARCHAR}, + share_commission = #{record.shareCommission,jdbcType=VARCHAR}, + short_video_commission = #{record.shortVideoCommission,jdbcType=VARCHAR}, + content_commission = #{record.contentCommission,jdbcType=VARCHAR}, + product_keyword = #{record.productKeyword,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + online_state = #{record.onlineState,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=VARCHAR}, + school_id = #{record.schoolId,jdbcType=VARCHAR} + + + + + + update stu_goods_info + + + goods_name = #{goodsName,jdbcType=VARCHAR}, + + + goods_type = #{goodsType,jdbcType=VARCHAR}, + + + goods_subclass = #{goodsSubclass,jdbcType=VARCHAR}, + + + pricing_unit = #{pricingUnit,jdbcType=VARCHAR}, + + + unit_cost_price = #{unitCostPrice,jdbcType=DECIMAL}, + + + gross_margin = #{grossMargin,jdbcType=VARCHAR}, + + + goods_main_image = #{goodsMainImage,jdbcType=VARCHAR}, + + + carousel_image = #{carouselImage,jdbcType=VARCHAR}, + + + pricing_category_name = #{pricingCategoryName,jdbcType=VARCHAR}, + + + weight = #{weight,jdbcType=DOUBLE}, + + + promotion_cost_price = #{promotionCostPrice,jdbcType=DECIMAL}, + + + maximum_price = #{maximumPrice,jdbcType=DECIMAL}, + + + fix_a_price = #{fixAPrice,jdbcType=DECIMAL}, + + + matching_groups = #{matchingGroups,jdbcType=VARCHAR}, + + + goods_url = #{goodsUrl,jdbcType=VARCHAR}, + + + number_of_shares = #{numberOfShares,jdbcType=INTEGER}, + + + share_discounts = #{shareDiscounts,jdbcType=VARCHAR}, + + + share_commission = #{shareCommission,jdbcType=VARCHAR}, + + + short_video_commission = #{shortVideoCommission,jdbcType=VARCHAR}, + + + content_commission = #{contentCommission,jdbcType=VARCHAR}, + + + product_keyword = #{productKeyword,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + online_state = #{onlineState,jdbcType=INTEGER}, + + + user_id = #{userId,jdbcType=VARCHAR}, + + + school_id = #{schoolId,jdbcType=VARCHAR}, + + + goods_Introduction = #{goodsIntroduction,jdbcType=LONGVARCHAR}, + + + specification_packaging = #{specificationPackaging,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + update stu_goods_info + set goods_name = #{goodsName,jdbcType=VARCHAR}, + goods_type = #{goodsType,jdbcType=VARCHAR}, + goods_subclass = #{goodsSubclass,jdbcType=VARCHAR}, + pricing_unit = #{pricingUnit,jdbcType=VARCHAR}, + unit_cost_price = #{unitCostPrice,jdbcType=DECIMAL}, + gross_margin = #{grossMargin,jdbcType=VARCHAR}, + goods_main_image = #{goodsMainImage,jdbcType=VARCHAR}, + carousel_image = #{carouselImage,jdbcType=VARCHAR}, + pricing_category_name = #{pricingCategoryName,jdbcType=VARCHAR}, + weight = #{weight,jdbcType=DOUBLE}, + promotion_cost_price = #{promotionCostPrice,jdbcType=DECIMAL}, + maximum_price = #{maximumPrice,jdbcType=DECIMAL}, + fix_a_price = #{fixAPrice,jdbcType=DECIMAL}, + matching_groups = #{matchingGroups,jdbcType=VARCHAR}, + goods_url = #{goodsUrl,jdbcType=VARCHAR}, + number_of_shares = #{numberOfShares,jdbcType=INTEGER}, + share_discounts = #{shareDiscounts,jdbcType=VARCHAR}, + share_commission = #{shareCommission,jdbcType=VARCHAR}, + short_video_commission = #{shortVideoCommission,jdbcType=VARCHAR}, + content_commission = #{contentCommission,jdbcType=VARCHAR}, + product_keyword = #{productKeyword,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + online_state = #{onlineState,jdbcType=INTEGER}, + user_id = #{userId,jdbcType=VARCHAR}, + school_id = #{schoolId,jdbcType=VARCHAR}, + goods_Introduction = #{goodsIntroduction,jdbcType=LONGVARCHAR}, + specification_packaging = #{specificationPackaging,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=INTEGER} + + + update stu_goods_info + set goods_name = #{goodsName,jdbcType=VARCHAR}, + goods_type = #{goodsType,jdbcType=VARCHAR}, + goods_subclass = #{goodsSubclass,jdbcType=VARCHAR}, + pricing_unit = #{pricingUnit,jdbcType=VARCHAR}, + unit_cost_price = #{unitCostPrice,jdbcType=DECIMAL}, + gross_margin = #{grossMargin,jdbcType=VARCHAR}, + goods_main_image = #{goodsMainImage,jdbcType=VARCHAR}, + carousel_image = #{carouselImage,jdbcType=VARCHAR}, + pricing_category_name = #{pricingCategoryName,jdbcType=VARCHAR}, + weight = #{weight,jdbcType=DOUBLE}, + promotion_cost_price = #{promotionCostPrice,jdbcType=DECIMAL}, + maximum_price = #{maximumPrice,jdbcType=DECIMAL}, + fix_a_price = #{fixAPrice,jdbcType=DECIMAL}, + matching_groups = #{matchingGroups,jdbcType=VARCHAR}, + goods_url = #{goodsUrl,jdbcType=VARCHAR}, + number_of_shares = #{numberOfShares,jdbcType=INTEGER}, + share_discounts = #{shareDiscounts,jdbcType=VARCHAR}, + share_commission = #{shareCommission,jdbcType=VARCHAR}, + short_video_commission = #{shortVideoCommission,jdbcType=VARCHAR}, + content_commission = #{contentCommission,jdbcType=VARCHAR}, + product_keyword = #{productKeyword,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + online_state = #{onlineState,jdbcType=INTEGER}, + user_id = #{userId,jdbcType=VARCHAR}, + school_id = #{schoolId,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file From ce275c1d1219667b1360d87ce09625d19a587f2a Mon Sep 17 00:00:00 2001 From: whb <17803890193@163.com> Date: Mon, 28 Oct 2024 15:37:26 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=87=BA=E7=8E=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StuGoodsTradingCenterServiceImpl.java | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java b/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java index 5367539..2ebcf4d 100644 --- a/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java +++ b/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java @@ -40,6 +40,9 @@ public class StuGoodsTradingCenterServiceImpl implements StuGoodsTradingCenterSe @Autowired private StuGoodsInfoMapper stuGoodsInfoMapper; + @Resource + StuShoppingCartInfoMapper shoppingCartInfoMapper; + //小广告位招租 @Override public ResultEntity getSmallAdPlacement(String userId) { @@ -100,8 +103,17 @@ public class StuGoodsTradingCenterServiceImpl implements StuGoodsTradingCenterSe } //大广告招租 - @Resource - StuShoppingCartInfoMapper shoppingCartInfoMapper; + public PageInfo getShoppingCartInfo(String userId, Integer index, Integer size) { + StuShoppingCartInfoExample cartInfoExample=new StuShoppingCartInfoExample(); + + cartInfoExample.createCriteria().andUserIdEqualTo(userId); + + List stuShoppingCartInfos = shoppingCartInfoMapper.selectByExample(cartInfoExample); + return PageUtil.pageHelper(stuShoppingCartInfos,index,size); + } + + + @Override public ResultEntity getBigAdPlacement(String userId) { //查询用户商品销售管理数据 @@ -110,9 +122,6 @@ public class StuGoodsTradingCenterServiceImpl implements StuGoodsTradingCenterSe goodSalesManageExample.createCriteria().andUserIdEqualTo(userId).andStateEqualTo(1); List goodSalesManageList = stuGoodSalesManageMapper.selectByExample(goodSalesManageExample); if (goodSalesManageList != null && goodSalesManageList.size() > 0) { - public PageInfo getShoppingCartInfo(String userId, Integer index, Integer size) { - StuShoppingCartInfoExample cartInfoExample=new StuShoppingCartInfoExample(); - cartInfoExample.createCriteria().andUserIdEqualTo(userId); if (goodSalesManageList.size() >= 2) { Collections.shuffle(goodSalesManageList, new Random(System.currentTimeMillis())); @@ -122,10 +131,10 @@ public class StuGoodsTradingCenterServiceImpl implements StuGoodsTradingCenterSe return new ResultEntity<>(goodSalesManageList); } } - List stuShoppingCartInfos = shoppingCartInfoMapper.selectByExample(cartInfoExample); + return new ResultEntity<>(HttpStatus.NO_CONTENT); - return PageUtil.pageHelper(stuShoppingCartInfos,index,size); + } //根据类型展示数据 From ac9d24e475c237b9a3f9d01e896bd79551ab12ea Mon Sep 17 00:00:00 2001 From: whb <17803890193@163.com> Date: Mon, 28 Oct 2024 15:44:01 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=87=BA=E7=8E=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stu/StuGoodsTradingCenterController.java | 30 +++++++++++++------ .../service/StuGoodsTradingCenterService.java | 3 ++ .../StuGoodsTradingCenterServiceImpl.java | 23 ++++++++++++-- 3 files changed, 45 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java b/src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java index 85a20a3..7ab7a7c 100644 --- a/src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java +++ b/src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java @@ -30,8 +30,8 @@ import java.util.List; @Api(tags = "商品交易中心") public class StuGoodsTradingCenterController { - @Autowired - private StuGoodsTradingCenterService stuGoodsTradingCenterService; + @Resource + StuGoodsTradingCenterService tradingCenterService; @@ -41,7 +41,7 @@ public class StuGoodsTradingCenterController { public ResultEntity getSmallAdPlacement(String userId) { //销量前10位的商品 - return stuGoodsTradingCenterService.getSmallAdPlacement(userId); + return tradingCenterService.getSmallAdPlacement(userId); } @@ -51,7 +51,7 @@ public class StuGoodsTradingCenterController { public ResultEntity getAllProductInquiries(String userId) { - return stuGoodsTradingCenterService.AllProductInquiries(userId); + return tradingCenterService.AllProductInquiries(userId); } @@ -61,7 +61,7 @@ public class StuGoodsTradingCenterController { @GetMapping("/productInquiry") public ResultEntity getProductInquiry(String userId,String keyWord) { - return stuGoodsTradingCenterService.getProductInquiry(userId,keyWord); + return tradingCenterService.getProductInquiry(userId,keyWord); } @@ -69,6 +69,14 @@ public class StuGoodsTradingCenterController { //todo 查询购物车数量 + @ApiOperation("购物车数量") + @AnonymousAccess + @GetMapping("/numberOfShopping") + public ResultEntity getNumberOfShopping(String userId) { + + + return tradingCenterService.getNumberOfShopping(userId); + } //大广告招租 @@ -77,7 +85,7 @@ public class StuGoodsTradingCenterController { @GetMapping("/bigAdPlacement") public ResultEntity getBigAdPlacement(String userId) { - return stuGoodsTradingCenterService.getBigAdPlacement(userId); + return tradingCenterService.getBigAdPlacement(userId); } @@ -86,7 +94,7 @@ public class StuGoodsTradingCenterController { @GetMapping("/getTypeQuery") public ResultEntity getTypeQuery(String userId,String type) { - return stuGoodsTradingCenterService.getTypeQuery(userId,type); + return tradingCenterService.getTypeQuery(userId,type); } @@ -94,8 +102,7 @@ public class StuGoodsTradingCenterController { - @Resource - StuGoodsTradingCenterService tradingCenterService; + @ApiOperation("购物车信息展示") @PostMapping("/getShoppingCartInfo") @@ -106,4 +113,9 @@ public class StuGoodsTradingCenterController { return new ResultEntity(HttpStatus.OK,"购物车信息", tradingCenterService.getShoppingCartInfo(userId,index,size)); } + + + + + } diff --git a/src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java b/src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java index 16f04a9..d3da4b8 100644 --- a/src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java +++ b/src/main/java/com/sztzjy/trade/service/StuGoodsTradingCenterService.java @@ -27,4 +27,7 @@ public interface StuGoodsTradingCenterService { //根据类型展示数据 ResultEntity getTypeQuery(String userId, String type); + + //购物车数量 + ResultEntity getNumberOfShopping(String userId); } diff --git a/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java b/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java index 2ebcf4d..5a31afc 100644 --- a/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java +++ b/src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java @@ -102,7 +102,7 @@ public class StuGoodsTradingCenterServiceImpl implements StuGoodsTradingCenterSe } - //大广告招租 + @Override public PageInfo getShoppingCartInfo(String userId, Integer index, Integer size) { StuShoppingCartInfoExample cartInfoExample=new StuShoppingCartInfoExample(); @@ -113,7 +113,7 @@ public class StuGoodsTradingCenterServiceImpl implements StuGoodsTradingCenterSe } - + //大广告招租 @Override public ResultEntity getBigAdPlacement(String userId) { //查询用户商品销售管理数据 @@ -156,4 +156,23 @@ public class StuGoodsTradingCenterServiceImpl implements StuGoodsTradingCenterSe } + //购物车数量 + @Override + public ResultEntity getNumberOfShopping(String userId) { + + StuShoppingCartInfoExample cartInfoExample=new StuShoppingCartInfoExample(); + + cartInfoExample.createCriteria().andUserIdEqualTo(userId); + + List stuShoppingCartInfos = shoppingCartInfoMapper.selectByExample(cartInfoExample); + if (stuShoppingCartInfos != null && stuShoppingCartInfos.size() > 0) { + return new ResultEntity(HttpStatus.OK,stuShoppingCartInfos.size()); + }else { + return new ResultEntity<>(HttpStatus.OK,0); + } + + + + } + }