diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/vo/IssueRecipeDetailCompressVO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/vo/IssueRecipeDetailCompressVO.java index ec59fe9..1f43dbb 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/vo/IssueRecipeDetailCompressVO.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/vo/IssueRecipeDetailCompressVO.java @@ -15,6 +15,12 @@ public class IssueRecipeDetailCompressVO implements Serializable { private Integer prefPrice; @ApiModelProperty("销售价格") private Integer salePrice; + @ApiModelProperty("供应数量") + private Integer supplyNum; + @ApiModelProperty("剩余数量") + private Integer surplusNum; + @ApiModelProperty("个人限购数量") + private Integer restrictNum; public Long getDetailId() { return this.detailId; @@ -48,4 +54,27 @@ public class IssueRecipeDetailCompressVO implements Serializable { this.salePrice = salePrice; } + public Integer getSupplyNum() { + return supplyNum; + } + + public void setSupplyNum(Integer supplyNum) { + this.supplyNum = supplyNum; + } + + public Integer getSurplusNum() { + return surplusNum; + } + + public void setSurplusNum(Integer surplusNum) { + this.surplusNum = surplusNum; + } + + public Integer getRestrictNum() { + return restrictNum; + } + + public void setRestrictNum(Integer restrictNum) { + this.restrictNum = restrictNum; + } } \ No newline at end of file diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/menu/MenuRecipeMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/menu/MenuRecipeMapper.xml index e0168ee..a0bd180 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/menu/MenuRecipeMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/menu/MenuRecipeMapper.xml @@ -758,7 +758,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" detail_id as detailId, dishes_id as dishesId, price as salePrice, - sale_price as prefPrice + sale_price as prefPrice, + supply_num as supplyNum, + surplus_num as surplusNum, + restrict_num as restrictNum from menu_recipe_dishes where detail_id in #{detailId}