From 5273de9efb900feb07a9a4f1426976e0580c623f Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期二, 02 七月 2024 10:29:37 +0800 Subject: [PATCH] bug修改 --- ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/domain/TGoods.java | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/domain/TGoods.java b/ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/domain/TGoods.java index 7fe4807..0ad745f 100644 --- a/ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/domain/TGoods.java +++ b/ruoyi-api/ruoyi-api-goods/src/main/java/com/ruoyi/goods/api/domain/TGoods.java @@ -2,8 +2,10 @@ import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.common.core.web.domain.BaseModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -29,6 +31,12 @@ */ @TableId(value = "id", type = IdType.AUTO) private Integer id; + /** + * 已兑换数量 + */ + @ApiModelProperty(value = "已兑换数量") + @TableField(exist = false) + private Long inventory; /** * 商品名称 */ @@ -61,6 +69,11 @@ */ @ApiModelProperty(value = "单个用户可兑换数量") private Integer userCount; + /** + * 排序 + */ + @ApiModelProperty(value = "排序") + private Integer sort; /** * 商品类型id @@ -81,6 +94,7 @@ * 商品详情 */ @ApiModelProperty(value = "商品详情") + @JsonFormat() private String detail; /** -- Gitblit v1.7.1