feat:营养分析
This commit is contained in:
1 parent
ab3cffc35d
commit
a4ace0f6e6
7 files changed
+254
-5
No files matched your search
+15
@@ -24,6 +24,21 @@ public class HardPanelSettingShare {
|
||||
*/
|
||||
private List<Long> topExcludeCategoryIds;
|
||||
|
||||
/**
|
||||
* 荤菜菜品分类id
|
||||
*/
|
||||
private List<Long> hcCategoryIds;
|
||||
|
||||
/**
|
||||
* 素菜菜品分类id
|
||||
*/
|
||||
private List<Long> scCategoryIds;
|
||||
|
||||
/**
|
||||
* 主食菜品分类id
|
||||
*/
|
||||
private List<Long> zsCategoryIds;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+26
-1
@@ -24,6 +24,11 @@ public class PanelPorductVo {
|
||||
*/
|
||||
private String classifyName;
|
||||
|
||||
/**
|
||||
* 分类key
|
||||
*/
|
||||
private String classifyKey;
|
||||
|
||||
/**
|
||||
* 分类ID
|
||||
*/
|
||||
@@ -113,7 +118,6 @@ public class PanelPorductVo {
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public static class HourTypeVo {
|
||||
|
||||
/**
|
||||
* 早
|
||||
*/
|
||||
@@ -130,6 +134,27 @@ public class PanelPorductVo {
|
||||
private ProductTypeItemVo evening;
|
||||
}
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public static class NutritionTypeVo {
|
||||
/**
|
||||
* 荤菜
|
||||
*/
|
||||
private ProductTypeItemVo hc;
|
||||
|
||||
/**
|
||||
* 素菜
|
||||
*/
|
||||
private ProductTypeItemVo sc;
|
||||
|
||||
/**
|
||||
* 主食
|
||||
*/
|
||||
private ProductTypeItemVo zs;
|
||||
}
|
||||
|
||||
public static List<PanelPorductVo> generatePanelCanteenList(LocalDateTime[] totalTimeList, DateRangeTypeEnum dateRangeType) {
|
||||
List<PanelPorductVo> dateList = new LinkedList<>();
|
||||
LocalDate startTime = totalTimeList[0].toLocalDate();
|
||||
|
||||
Reference in new issue
Block a user