From 54ce84f534db0eee733c246f83df6ec9e6f3d50f Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Mon, 7 Jul 2025 16:50:40 +0800 Subject: [PATCH] =?UTF-8?q?i=E5=9B=BD=E7=BD=91=EF=BC=9A=E4=B8=80=E5=91=A8?= =?UTF-8?q?=E8=8F=9C=E8=B0=B1=E6=8E=A5=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/zhhq/domain/WeekRecipeDetailVO.java | 13 ++++++++++++- .../resources/mapper/zhhq/ZhhqCookRecipeMapper.xml | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/zhhq/domain/WeekRecipeDetailVO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/zhhq/domain/WeekRecipeDetailVO.java index d00db39..77b0027 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/zhhq/domain/WeekRecipeDetailVO.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/zhhq/domain/WeekRecipeDetailVO.java @@ -1,6 +1,7 @@ package com.bonus.canteen.core.zhhq.domain; +import com.bonus.canteen.core.common.utils.FileUrlUtil; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -50,10 +51,20 @@ public class WeekRecipeDetailVO { @ApiModelProperty(value = "菜肴单价") private BigDecimal price; + @ApiModelProperty(value = "图片地址") + private String imgUrl; + @ApiModelProperty(value = "图片") - private String cookPic; + private Base64 cookPic; @ApiModelProperty(value = "配料") private List ingredients; + public String getImgUrl() { + return FileUrlUtil.getFileUrl(this.imgUrl); + } + + public Base64 getCookPic() { + return cookPic; + } } diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/zhhq/ZhhqCookRecipeMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/zhhq/ZhhqCookRecipeMapper.xml index ef8a7e3..78f73e6 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/zhhq/ZhhqCookRecipeMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/zhhq/ZhhqCookRecipeMapper.xml @@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - +