i国网:一周菜谱接入

This commit is contained in:
sxu 2025-07-07 16:50:40 +08:00
parent 684ede633c
commit 54ce84f534
2 changed files with 13 additions and 2 deletions

View File

@ -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<WeekRecipeIngredientVO> ingredients;
public String getImgUrl() {
return FileUrlUtil.getFileUrl(this.imgUrl);
}
public Base64 getCookPic() {
return cookPic;
}
}

View File

@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="cookName" column="dishes_name"/>
<result property="recommendType" column="recommend_flag"/>
<result property="price" column="dishes_price"/>
<result property="cookPic" column="dishes_img_url"/>
<result property="imgUrl" column="dishes_img_url"/>
</resultMap>
<select id="selectWeekRecipeList" resultType="Long">