菜品排序
This commit is contained in:
1 parent
4c8c94a804
commit
167db6096c
2 files changed
+4
No files matched your search
+2
@@ -38,4 +38,6 @@ public class DailyMenuAppVO {
|
||||
* 时间类型
|
||||
*/
|
||||
private Integer hourType;
|
||||
|
||||
private Integer sort;
|
||||
}
|
||||
+2
@@ -168,11 +168,13 @@ public class CanteenDailyMenuServiceImpl extends ServiceImpl<CanteenDailyMenuMap
|
||||
vo.setPrice(spuEntity.getPrice());
|
||||
vo.setPicUrl(spuEntity.getPicUrl());
|
||||
vo.setName(spuEntity.getName());
|
||||
vo.setSort(spuEntity.getSort());
|
||||
// 其他需要的字段
|
||||
}
|
||||
return vo;
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
dailyMenuVOList.sort(Comparator.comparing(DailyMenuAppVO::getSort));
|
||||
pageData.setRecords(dailyMenuVOList);
|
||||
return pageData;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user