diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/service/impl/MenuRecipeServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/service/impl/MenuRecipeServiceImpl.java index f029c88c..349a94bc 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/service/impl/MenuRecipeServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/menu/service/impl/MenuRecipeServiceImpl.java @@ -152,9 +152,10 @@ public class MenuRecipeServiceImpl extends ServiceImpl getWeekRecipeDetailList(AppletWeekRecipeDTO content) { + Set effIdSet = this.getShopstallIdListByCustId(content.getCustId(), false); + System.err.println("档口id集合: " + effIdSet.size()); List recipeIdList = Lists.newArrayList(); if (ObjectUtil.isNull(content.getRecipeId())) { - Set effIdSet = this.getShopstallIdListByCustId(content.getCustId(), false); if (ObjectUtil.isEmpty(effIdSet)) { effIdSet = Sets.newTreeSet(); ((Set) effIdSet).add(-1L); @@ -165,7 +166,7 @@ public class MenuRecipeServiceImpl extends ServiceImpl repeIdList = this.menuAppRecipeMapper.getRecipeIdListByRecipeId(content.getRecipeId()); @@ -190,10 +191,10 @@ public class MenuRecipeServiceImpl extends ServiceImpl - #{effId} - + + and mr.eff_id in + + #{effId} + + and mar.recipe_id = #{recipeId} @@ -359,7 +361,7 @@