h5预订餐

This commit is contained in:
sxu 2025-06-06 15:28:41 +08:00
parent 434fbedda2
commit f24d7330ea
4 changed files with 8 additions and 4 deletions

View File

@ -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 = "餐次名称")

View File

@ -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);
} }

View File

@ -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));

View File

@ -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>