菜品
This commit is contained in:
@ -252,13 +252,13 @@ public class DishesServiceImpl implements DishesService {
|
||||
|
||||
@Override
|
||||
public PageResult<DishesDO> getDishesPageApp(DishesPageReqVO pageReqVO) {
|
||||
LocalDateTime today = LocalDateTime.now();
|
||||
String dayOfWeekInChinese = today.getDayOfWeek().getDisplayName(TextStyle.FULL, Locale.CHINESE);
|
||||
|
||||
ArrayList<String> week = new ArrayList<>();
|
||||
week.add(dayOfWeekInChinese);
|
||||
week.add("整周");
|
||||
pageReqVO.setWeekTimes(week);
|
||||
// LocalDateTime today = LocalDateTime.now();
|
||||
// String dayOfWeekInChinese = today.getDayOfWeek().getDisplayName(TextStyle.FULL, Locale.CHINESE);
|
||||
//
|
||||
// ArrayList<String> week = new ArrayList<>();
|
||||
// week.add(dayOfWeekInChinese);
|
||||
// week.add("整周");
|
||||
// pageReqVO.setWeekTimes(week);
|
||||
return dishesMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
|
@ -106,11 +106,11 @@ public class DishesTypeServiceImpl implements DishesTypeService {
|
||||
|
||||
@Override
|
||||
public PageResult<DishesTypeDO> getDishesTypePageApp(DishesTypePageReqVO pageReqVO) {
|
||||
List<DishesDO> todayDishes = dishesService.getTodayDishesNew();
|
||||
if(CollectionUtil.isNotEmpty(todayDishes)){
|
||||
List<Long> ids = todayDishes.stream().map(vo -> Long.valueOf(vo.getDishecType())).collect(Collectors.toList());
|
||||
pageReqVO.setIds(ids);
|
||||
}
|
||||
// List<DishesDO> todayDishes = dishesService.getTodayDishesNew();
|
||||
// if(CollectionUtil.isNotEmpty(todayDishes)){
|
||||
// List<Long> ids = todayDishes.stream().map(vo -> Long.valueOf(vo.getDishecType())).collect(Collectors.toList());
|
||||
// pageReqVO.setIds(ids);
|
||||
// }
|
||||
return dishesTypeMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user