From 38bd7bedf35d6a66a979366cb1cf3fab31b2fdcb Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Thu, 8 May 2025 10:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E5=B1=8F=E6=B6=88=E8=B4=B9=E6=9C=BA?= =?UTF-8?q?=E8=8F=9C=E5=93=81=E6=8E=A5=E5=8F=A3=E5=8A=A0=E5=85=A5=E9=99=90?= =?UTF-8?q?=E8=B4=AD=E6=95=B0=E9=87=8F=E7=AD=89=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menu/vo/IssueRecipeDetailCompressVO.java | 29 +++++++++++++++++++ .../mapper/menu/MenuRecipeMapper.xml | 5 +++- 2 files changed, 33 insertions(+), 1 deletion(-) 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}