循环菜谱详情
This commit is contained in:
parent
71f5e4a1c3
commit
d26e771078
|
|
@ -32,6 +32,9 @@ public class CookRecipeDishesVO extends BaseEntity {
|
|||
@ApiModelProperty(value = "菜品id")
|
||||
private Long dishesId;
|
||||
|
||||
@ApiModelProperty(value = "菜品名称")
|
||||
private String dishesName;
|
||||
|
||||
/** 菜品单价 */
|
||||
@Excel(name = "菜品单价")
|
||||
@ApiModelProperty(value = "菜品单价")
|
||||
|
|
@ -77,5 +80,19 @@ public class CookRecipeDishesVO extends BaseEntity {
|
|||
@ApiModelProperty(value = "是否推荐(1-推荐,2-不推荐)")
|
||||
private Long recommendFlag;
|
||||
|
||||
@ApiModelProperty("菜品类型")
|
||||
private Integer mealType;
|
||||
@ApiModelProperty("成本价")
|
||||
private Integer materialCost;
|
||||
@ApiModelProperty("类别名称")
|
||||
private String typeName;
|
||||
@ApiModelProperty("类别id")
|
||||
private Long typeId;
|
||||
@ApiModelProperty("食堂名称")
|
||||
private String canteenName;
|
||||
@ApiModelProperty("销售方式(1按份,2称重)")
|
||||
private Integer salesMode;
|
||||
@ApiModelProperty("称重单位多少克(默认1kg)")
|
||||
private Integer unitPrice;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<!-- 获取指定日期菜谱详情 -->
|
||||
<resultMap id="cookRecipeDetailVO" type="com.bonus.canteen.core.cook.vo.CookRecipeDetailVO">
|
||||
<result property="mealtimeType" column="mealtime_type"/>
|
||||
<result property="recipeDetailId" column="recipe_detail_id"/>
|
||||
<collection property="dishesList" ofType="com.bonus.canteen.core.cook.vo.CookRecipeDishesVO">
|
||||
<result property="id" column="id"/>
|
||||
<result property="dishesId" column="dishes_id"/>
|
||||
<result property="dishesName" column="dishes_name"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="sizeType" column="size_type"/>
|
||||
<result property="supplyNum" column="supply_num"/>
|
||||
<result property="saleNum" column="sale_num"/>
|
||||
<result property="remanentNum" column="surplus_num"/>
|
||||
<result property="limitNum" column="restrict_num"/>
|
||||
<result property="salePrice" column="sale_price"/>
|
||||
<result property="recommendFlag" column="recommend_flag"/>
|
||||
<result property="canteenName" column="canteen_name"/>
|
||||
<result property="salesMode" column="sales_mode"/>
|
||||
<result property="unitPrice" column="unit_price"/>
|
||||
<result property="mealType" column="meal_type"/>
|
||||
<result property="materialCost" column="material_cost"/>
|
||||
<result property="typeId" column="type_id"/>
|
||||
<result property="typeName" column="type_name"/>
|
||||
</collection>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCookRecipeVo">
|
||||
select cr.recipe_id, cr.recipe_name, cr.recipe_type, cr.stall_id, cr.canteen_id, cr.plan_id, cr.effect_date,
|
||||
cr.expire_date, cr.create_by, cr.create_time, cr.update_by, cr.update_time, cr.del_flag,
|
||||
|
|
@ -129,7 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
order by mrdd.dishes_id
|
||||
</select>
|
||||
|
||||
<select id="selectTemplateDetailList" resultType="com.bonus.canteen.core.cook.vo.CookRecipeDetailVO">
|
||||
<select id="selectTemplateDetailList" resultMap="cookRecipeDetailVO">
|
||||
select mrd.mealtime_type,
|
||||
mrd.recipe_detail_id,
|
||||
mdb.base_dishes_id as dishes_id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue