一周菜谱

This commit is contained in:
sxu 2025-05-09 10:23:39 +08:00
parent 7c36b0e12a
commit c569df915f
2 changed files with 8 additions and 39 deletions

View File

@ -4,18 +4,22 @@ import com.bonus.canteen.core.utils.SysUtil;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List; import java.util.List;
@ApiModel("获取一周菜谱食堂列表") @ApiModel("获取一周菜谱食堂列表")
@Data
public class AppletWeekCanteenVO { public class AppletWeekCanteenVO {
@ApiModelProperty("菜谱id") @ApiModelProperty("菜谱id")
@JsonFormat( @JsonFormat(
shape = JsonFormat.Shape.STRING shape = JsonFormat.Shape.STRING
) )
private Long recipeId; private Long recipeId;
private Long stallId;
@ApiModelProperty("档口名称") @ApiModelProperty("档口名称")
private String stallName; private String stallName;
private Long canteenId;
@ApiModelProperty("食堂名称") @ApiModelProperty("食堂名称")
private String canteenName; private String canteenName;
@ApiModelProperty("食堂图片") @ApiModelProperty("食堂图片")
@ -33,43 +37,4 @@ public class AppletWeekCanteenVO {
return SysUtil.getCutFileUrl(this.stallImgUrl); return SysUtil.getCutFileUrl(this.stallImgUrl);
} }
public Long getRecipeId() {
return this.recipeId;
}
public String getStallName() {
return this.stallName;
}
public String getCanteenName() {
return this.canteenName;
}
public List<String> getLabelList() {
return this.labelList;
}
public void setRecipeId(final Long recipeId) {
this.recipeId = recipeId;
}
public void setStallName(final String stallName) {
this.stallName = stallName;
}
public void setCanteenName(final String canteenName) {
this.canteenName = canteenName;
}
public void setCanteenImgUrl(final String canteenImgUrl) {
this.canteenImgUrl = canteenImgUrl;
}
public void setStallImgUrl(final String stallImgUrl) {
this.stallImgUrl = stallImgUrl;
}
public void setLabelList(final List<String> labelList) {
this.labelList = labelList;
}
} }

View File

@ -14,7 +14,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap id="appletWeekCanteenVO" type="com.bonus.canteen.core.menu.vo.AppletWeekCanteenVO"> <resultMap id="appletWeekCanteenVO" type="com.bonus.canteen.core.menu.vo.AppletWeekCanteenVO">
<result property="recipeId" column="recipe_id"/> <result property="recipeId" column="recipe_id"/>
<result property="stallId" column="stall_id"/>
<result property="stallName" column="stall_name"/> <result property="stallName" column="stall_name"/>
<result property="canteenId" column="canteen_id"/>
<result property="canteenName" column="canteen_name"/> <result property="canteenName" column="canteen_name"/>
<result property="canteenImgUrl" column="canteen_img_url"/> <result property="canteenImgUrl" column="canteen_img_url"/>
<result property="stallImgUrl" column="stall_img_url"/> <result property="stallImgUrl" column="stall_img_url"/>
@ -25,7 +27,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select select
mr.recipe_id, mr.recipe_id,
ass.stall_id,
ass.stall_name, ass.stall_name,
ac.canteen_id,
ac.canteen_name, ac.canteen_name,
ac.img_url as canteen_img_url, ac.img_url as canteen_img_url,
ass.img_url as stall_img_url ass.img_url as stall_img_url