h5预订餐
This commit is contained in:
parent
434fbedda2
commit
f24d7330ea
|
|
@ -32,7 +32,7 @@ public class BasicStallMealtime extends BaseEntity {
|
||||||
/** 餐次类型 */
|
/** 餐次类型 */
|
||||||
@Excel(name = "餐次类型")
|
@Excel(name = "餐次类型")
|
||||||
@ApiModelProperty(value = "餐次类型")
|
@ApiModelProperty(value = "餐次类型")
|
||||||
private Long mealtimeType;
|
private Integer mealtimeType;
|
||||||
|
|
||||||
/** 餐次名称 */
|
/** 餐次名称 */
|
||||||
@Excel(name = "餐次名称")
|
@Excel(name = "餐次名称")
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ public interface CookRecipeH5Mapper {
|
||||||
|
|
||||||
List<AppletReserveRecipeVO> selectReserveRecipe(@Param("applyDate") LocalDate applyDate, @Param("recipeId") Long recipeId);
|
List<AppletReserveRecipeVO> selectReserveRecipe(@Param("applyDate") LocalDate applyDate, @Param("recipeId") Long recipeId);
|
||||||
|
|
||||||
@Select({"select stall_id from menu_recipe ${ew.customSqlSegment}"})
|
Long selectStallIdByRecipeId(@Param("recipeId") Long recipeId);
|
||||||
Long selectStallIdByWrappers(@Param("ew") Wrapper<CookRecipe> wrapper);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ public class CookRecipeServiceH5Impl implements ICookRecipeH5Service {
|
||||||
resultList.sort(Collections.reverseOrder((s1, s2) -> {
|
resultList.sort(Collections.reverseOrder((s1, s2) -> {
|
||||||
return s2.getMealtimeType() - s1.getMealtimeType();
|
return s2.getMealtimeType() - s1.getMealtimeType();
|
||||||
}));
|
}));
|
||||||
Long stallId = cookRecipeH5Mapper.selectStallIdByWrappers(Wrappers.lambdaQuery(CookRecipe.class).eq(CookRecipe::getRecipeId, content.getRecipeId()));
|
Long stallId = cookRecipeH5Mapper.selectStallIdByRecipeId(content.getRecipeId());
|
||||||
List<BasicStallMealtime> allocStallMealtimes = basicStallMealtimeMapper.selectBasicStallMealtimeByStallId(stallId);
|
List<BasicStallMealtime> allocStallMealtimes = basicStallMealtimeMapper.selectBasicStallMealtimeByStallId(stallId);
|
||||||
List<BasicStallMealtime> mealTimeList = allocStallMealtimes;
|
List<BasicStallMealtime> mealTimeList = allocStallMealtimes;
|
||||||
log.info("配置api查询的档口餐次,档口id: {}, 配置: {}", stallId, JSON.toJSONString(mealTimeList));
|
log.info("配置api查询的档口餐次,档口id: {}, 配置: {}", stallId, JSON.toJSONString(mealTimeList));
|
||||||
|
|
|
||||||
|
|
@ -142,5 +142,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
order by
|
order by
|
||||||
md.dishes_id asc
|
md.dishes_id asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectStallIdByRecipeId" resultType="Long">
|
||||||
|
select stall_id from cook_recipe
|
||||||
|
where recipe_id = #{recipeId}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue