i国网:一周菜谱接入
This commit is contained in:
parent
684ede633c
commit
54ce84f534
|
|
@ -1,6 +1,7 @@
|
||||||
package com.bonus.canteen.core.zhhq.domain;
|
package com.bonus.canteen.core.zhhq.domain;
|
||||||
|
|
||||||
|
|
||||||
|
import com.bonus.canteen.core.common.utils.FileUrlUtil;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
@ -50,10 +51,20 @@ public class WeekRecipeDetailVO {
|
||||||
@ApiModelProperty(value = "菜肴单价")
|
@ApiModelProperty(value = "菜肴单价")
|
||||||
private BigDecimal price;
|
private BigDecimal price;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "图片地址")
|
||||||
|
private String imgUrl;
|
||||||
|
|
||||||
@ApiModelProperty(value = "图片")
|
@ApiModelProperty(value = "图片")
|
||||||
private String cookPic;
|
private Base64 cookPic;
|
||||||
|
|
||||||
@ApiModelProperty(value = "配料")
|
@ApiModelProperty(value = "配料")
|
||||||
private List<WeekRecipeIngredientVO> ingredients;
|
private List<WeekRecipeIngredientVO> ingredients;
|
||||||
|
|
||||||
|
public String getImgUrl() {
|
||||||
|
return FileUrlUtil.getFileUrl(this.imgUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
public Base64 getCookPic() {
|
||||||
|
return cookPic;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<result property="cookName" column="dishes_name"/>
|
<result property="cookName" column="dishes_name"/>
|
||||||
<result property="recommendType" column="recommend_flag"/>
|
<result property="recommendType" column="recommend_flag"/>
|
||||||
<result property="price" column="dishes_price"/>
|
<result property="price" column="dishes_price"/>
|
||||||
<result property="cookPic" column="dishes_img_url"/>
|
<result property="imgUrl" column="dishes_img_url"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="selectWeekRecipeList" resultType="Long">
|
<select id="selectWeekRecipeList" resultType="Long">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue