From dd29e8c6f53941fc88d951b69282154b9a7d024c Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Tue, 11 Feb 2025 16:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E8=B0=B1=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../menu/constant/BigDecimalSerializer.java | 21 + .../core/menu/dto/AppletDishesDetailDTO.java | 38 + .../core/menu/entity/MenuMaterialDishes.java | 125 + .../core/menu/entity/MenuPackageDishes.java | 107 + .../core/menu/mapper/MenuDishesMapper.java | 6 +- .../menu/mapper/MenuMaterialDishesMapper.java | 20 + .../menu/mapper/MenuPackageDishesMapper.java | 23 + .../core/menu/service/MenuDishesService.java | 115 +- .../service/impl/MenuDishesServiceImpl.java | 3911 +---------------- .../core/menu/vo/AppletDishesDetailVO.java | 129 + .../core/menu/vo/AppletDishesSizeV2VO.java | 298 ++ .../bonus/core/menu/vo/MenuMaterialBasVO.java | 92 + .../mapper/menu/MenuMaterialDishesMapper.xml | 69 + 13 files changed, 979 insertions(+), 3975 deletions(-) create mode 100644 bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/constant/BigDecimalSerializer.java create mode 100644 bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/dto/AppletDishesDetailDTO.java create mode 100644 bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/entity/MenuMaterialDishes.java create mode 100644 bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/entity/MenuPackageDishes.java create mode 100644 bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuMaterialDishesMapper.java create mode 100644 bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuPackageDishesMapper.java create mode 100644 bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/AppletDishesDetailVO.java create mode 100644 bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/AppletDishesSizeV2VO.java create mode 100644 bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/MenuMaterialBasVO.java create mode 100644 bonus-modules/bonus-smart-canteen/src/main/resources/mapper/menu/MenuMaterialDishesMapper.xml diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/constant/BigDecimalSerializer.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/constant/BigDecimalSerializer.java new file mode 100644 index 00000000..f5445ed7 --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/constant/BigDecimalSerializer.java @@ -0,0 +1,21 @@ +package com.bonus.core.menu.constant; + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.databind.JsonSerializer; +import com.fasterxml.jackson.databind.SerializerProvider; + +import java.io.IOException; +import java.math.BigDecimal; +import java.math.RoundingMode; + +public class BigDecimalSerializer extends JsonSerializer { + public void serialize(BigDecimal value, JsonGenerator gen, SerializerProvider serializers) throws IOException { + if (value != null) { + BigDecimal number = value.setScale(2, RoundingMode.HALF_UP); + gen.writeNumber(number); + } else { + gen.writeNumber(value); + } + + } +} diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/dto/AppletDishesDetailDTO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/dto/AppletDishesDetailDTO.java new file mode 100644 index 00000000..3344e0d8 --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/dto/AppletDishesDetailDTO.java @@ -0,0 +1,38 @@ +package com.bonus.core.menu.dto; + +import io.swagger.annotations.ApiModelProperty; +import java.io.Serializable; + +public class AppletDishesDetailDTO implements Serializable { + @ApiModelProperty("菜谱详情id") + private Long detailId; + @ApiModelProperty("菜品id") + private Long baseDishesId; + @ApiModelProperty("是否删除(1删除,2未删除)") + private Integer delFlag; + + public Long getDetailId() { + return this.detailId; + } + + public Long getBaseDishesId() { + return this.baseDishesId; + } + + public Integer getDelFlag() { + return this.delFlag; + } + + public void setDetailId(final Long detailId) { + this.detailId = detailId; + } + + public void setBaseDishesId(final Long baseDishesId) { + this.baseDishesId = baseDishesId; + } + + public void setDelFlag(final Integer delFlag) { + this.delFlag = delFlag; + } + +} diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/entity/MenuMaterialDishes.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/entity/MenuMaterialDishes.java new file mode 100644 index 00000000..84cc07c2 --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/entity/MenuMaterialDishes.java @@ -0,0 +1,125 @@ +package com.bonus.core.menu.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.LocalDateTime; + +@ApiModel("菜品食材关联") +@TableName("menu_material_dishes") +public class MenuMaterialDishes extends Model { + private static final long serialVersionUID = 1L; + @TableId + @ApiModelProperty("主键id") + private Long id; + @ApiModelProperty("菜品id") + private Long dishesId; + @ApiModelProperty("食材id") + private Long materialId; + @ApiModelProperty("食材重量(g)") + private Double weight; + @ApiModelProperty("材料类型(1主料,2辅料,3配料)") + private Integer materialType; + @ApiModelProperty("删除标识") + private Integer delFlag; + @ApiModelProperty("乐观锁") + private Integer revision; + @ApiModelProperty("创建人") + private String crby; + @ApiModelProperty("创建时间") + private LocalDateTime crtime; + @ApiModelProperty("更新人") + private String upby; + @ApiModelProperty("更新时间") + private LocalDateTime uptime; + + public Long getId() { + return this.id; + } + + public Long getDishesId() { + return this.dishesId; + } + + public Long getMaterialId() { + return this.materialId; + } + + public Double getWeight() { + return this.weight; + } + + public Integer getMaterialType() { + return this.materialType; + } + + public Integer getDelFlag() { + return this.delFlag; + } + + public Integer getRevision() { + return this.revision; + } + + public String getCrby() { + return this.crby; + } + + public LocalDateTime getCrtime() { + return this.crtime; + } + + public String getUpby() { + return this.upby; + } + + public LocalDateTime getUptime() { + return this.uptime; + } + + public void setId(final Long id) { + this.id = id; + } + + public void setDishesId(final Long dishesId) { + this.dishesId = dishesId; + } + + public void setMaterialId(final Long materialId) { + this.materialId = materialId; + } + + public void setWeight(final Double weight) { + this.weight = weight; + } + + public void setMaterialType(final Integer materialType) { + this.materialType = materialType; + } + + public void setDelFlag(final Integer delFlag) { + this.delFlag = delFlag; + } + + public void setRevision(final Integer revision) { + this.revision = revision; + } + + public void setCrby(final String crby) { + this.crby = crby; + } + + public void setCrtime(final LocalDateTime crtime) { + this.crtime = crtime; + } + + public void setUpby(final String upby) { + this.upby = upby; + } + + public void setUptime(final LocalDateTime uptime) { + this.uptime = uptime; + } +} diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/entity/MenuPackageDishes.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/entity/MenuPackageDishes.java new file mode 100644 index 00000000..0926f9ee --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/entity/MenuPackageDishes.java @@ -0,0 +1,107 @@ +package com.bonus.core.menu.entity; + +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.math.BigDecimal; +import java.time.LocalDateTime; + +@ApiModel("套餐菜品关联") +@TableName("menu_package_dishes") +public class MenuPackageDishes extends Model { + private static final long serialVersionUID = 1L; + @TableId + @ApiModelProperty("主键id") + private Long id; + @ApiModelProperty("菜品id") + private Long dishesId; + @ApiModelProperty("套餐id") + private Long packageId; + @ApiModelProperty("菜品占比(0.35)") + private BigDecimal proportion; + @ApiModelProperty("乐观锁") + private Integer revision; + @ApiModelProperty("创建人") + private String crby; + @ApiModelProperty("创建时间") + private LocalDateTime crtime; + @ApiModelProperty("更新人") + private String upby; + @ApiModelProperty("更新时间") + private LocalDateTime uptime; + + public Long getId() { + return this.id; + } + + public Long getDishesId() { + return this.dishesId; + } + + public Long getPackageId() { + return this.packageId; + } + + public BigDecimal getProportion() { + return this.proportion; + } + + public Integer getRevision() { + return this.revision; + } + + public String getCrby() { + return this.crby; + } + + public LocalDateTime getCrtime() { + return this.crtime; + } + + public String getUpby() { + return this.upby; + } + + public LocalDateTime getUptime() { + return this.uptime; + } + + public void setId(final Long id) { + this.id = id; + } + + public void setDishesId(final Long dishesId) { + this.dishesId = dishesId; + } + + public void setPackageId(final Long packageId) { + this.packageId = packageId; + } + + public void setProportion(final BigDecimal proportion) { + this.proportion = proportion; + } + + public void setRevision(final Integer revision) { + this.revision = revision; + } + + public void setCrby(final String crby) { + this.crby = crby; + } + + public void setCrtime(final LocalDateTime crtime) { + this.crtime = crtime; + } + + public void setUpby(final String upby) { + this.upby = upby; + } + + public void setUptime(final LocalDateTime uptime) { + this.uptime = uptime; + } +} diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuDishesMapper.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuDishesMapper.java index c4d7feca..019d9e57 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuDishesMapper.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuDishesMapper.java @@ -3,8 +3,10 @@ package com.bonus.core.menu.mapper; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.bonus.core.menu.dto.AppletDishesDetailDTO; import com.bonus.core.menu.entity.MenuDishes; import com.bonus.core.menu.model.MenuDishesTypeModel; +import com.bonus.core.menu.vo.AppletDishesDetailVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; @@ -24,8 +26,8 @@ public interface MenuDishesMapper extends BaseMapper { // // List selectListByPackageId(@Param("packageId") Long packageId); // -// AppletDishesDetailVO selectDishesDetailByDishesId(AppletDishesDetailDTO dishesDetailDTO); -// + AppletDishesDetailVO selectDishesDetailByDishesId(AppletDishesDetailDTO dishesDetailDTO); + // List selectIndexRecommendDishesList(MenuDishes dishes); // // @Select({"select dishes_id from menu_dishes ${ew.customSqlSegment}"}) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuMaterialDishesMapper.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuMaterialDishesMapper.java new file mode 100644 index 00000000..fccac507 --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuMaterialDishesMapper.java @@ -0,0 +1,20 @@ +package com.bonus.core.menu.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.bonus.core.menu.entity.MenuMaterialDishes; +import com.bonus.core.menu.vo.MenuMaterialBasVO; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +@Mapper +public interface MenuMaterialDishesMapper extends BaseMapper { +// int insertBatch(@Param("materialList") List materialList); +// +// List getDishDetails(Long dishes); + + List getMenuMaterialById(Long dishesId); + +// List selectDishesList(@Param("materialIdList") List materialIds); +} diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuPackageDishesMapper.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuPackageDishesMapper.java new file mode 100644 index 00000000..f9bdb949 --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/mapper/MenuPackageDishesMapper.java @@ -0,0 +1,23 @@ +package com.bonus.core.menu.mapper; + +import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.bonus.core.menu.entity.MenuPackageDishes; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; + +import java.util.List; + +@Mapper +public interface MenuPackageDishesMapper extends BaseMapper { +// int insertBatch(@Param("packageDishesList") List packageDishesList); +// +// @Select({"select 1 from menu_package_dishes ${ew.customSqlSegment}"}) +// Integer selectExistByWrapper(@Param("ew") Wrapper wrapper); + + @Select({"select md.dishes_name from menu_package_dishes mpd left join menu_dishes md on mpd.dishes_id = md.dishes_id where mpd.del_flag = 2 and mpd.package_id = #{dishesId}"}) + List selectDishesName(@Param("dishesId") Long dishesId); + +// List selectPackageDishes(@Param("dishesId") Long dishesId); +} diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/service/MenuDishesService.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/service/MenuDishesService.java index d2beec13..13fe36e9 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/service/MenuDishesService.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/service/MenuDishesService.java @@ -3,121 +3,12 @@ package com.bonus.core.menu.service; import com.baomidou.mybatisplus.extension.service.IService; import com.bonus.core.menu.entity.MenuDishes; import com.bonus.core.menu.utils.NutritionEntity; +import com.bonus.core.menu.vo.AppletDishesDetailVO; import java.util.Map; public interface MenuDishesService extends IService { -// Long addMenuDishes(MenuDishesAddDTO dishesAddDTO, Integer customId); -// -// Page getMenuDishesPage(String content); -// -// void editMenuDishes(MenuDishesEditDTO dishesEditDTO); -// -// void removeByDishesId(Long dishesId); -// -// void removeBatchByDishesId(List content); -// -// AppletDishesDetailVO getDishesDetailByDishesId(String content, Long custId); -// -// void deployIndexRecommend(IndexRecommendDishesDTO content); -// -// List getIndexRecommendDishesList(IndexDishesListDTO content); -// -// void addMenuDishesLikeSurvey(List content); -// -// List getMenuDishesLikeSurvey(); -// -// void emptyMenuDishesLikeSurvey(); -// -// List getMenuDishesLikeRanking(); -// -// List getMenuDishesLikeList(Long custId); -// -// void saveMenuDishesLikeSurvey(Long custId, List content); -// -// List getAllDishesBasicsInfo(); -// -// MenuDishesLableVO getDishesLabelByCustomId(Integer customId); -// -// Double getDishesWeightDeviation(Integer customId); -// -// List getDishesDetailByDate(AndroidDishesDetailByDateDTO content); -// -// void addDishesEvalua(List content); -// -// void batchImportDishes(MultipartFile excel); -// -// void importDishes(List importDishesList); -// -// void importDishesFailSave(List dishesImportFailList); -// -// void menuDishesInit(); -// -// void importDishesImgBatch(); -// -// Page getMenuDishesV2Page(MenuDishesV2PageDTO content); -// -// MenuDishesDetailVO getMenuDishesDetail(Long dishesId); -// -// AddDishesVo addMenuDishesV2(MenuDishesV2AddDTO content); -// -// void editMenuDishesV2(MenuDishesV2EditDTO content); -// -// void removeByDishesIdV2(Long dishesId); -// -// List getTypeDishesList(MenuTypeDishesDTO content); -// -// PageVO getTypeDishesListByPage(MenuTypeDishesDTO content); -// -// MenuDishesByCustomIdVO getMenuDishesDetailByCustomId(MenuDishesByCustomIdDTO menuDishesByCustomIdDTO); -// -// Integer menuRecipeCount(Integer mealtimeType, Long dishesId, LocalDate nowDate); -// -// List getByNames(Set dishesNames); -// -// Long thirdSaveDishes(DishSyncDTO dishSyncDTO); -// -// DishSyncDTO getDishesByInventoryId(String inventoryId); -// -// void copyMenuDishes(MenuDishesCopyDTO content); -// -// String getDifCanteenManage(); -// -// void editDifCanteenManage(MenuDifCanteenManageEditDTO content); -// -// Boolean newImportDishes(List content); -// -// DishesImportCheckResult importDishesCheck(MultipartFile excel); -// -// Integer getDishesMaterialCost(List content); -// -// void autoUpdateDishesMaterialCost(); -// -// List exportMenuDishes(MenuDishesExportDTO content); -// -// void updateDishesNutrition(List materialId); -// -// Map> selectDishesLabelByDishesIds(List dishesIds); -// -// Map> selectMaterialByTypeAndDishesIds(List dishesIds); -// + AppletDishesDetailVO getDishesDetailByDishesId(String content, Long custId); + NutritionEntity getNutrientInfo(Map dishesQuantityMap); -// -// List getMenuDishesList(List dishesIdList); -// -// List nutritionGetDishes(NutritionGetDishesDto nutritionGetDishesDto); -// -// void updateDishesNutritionByNutritionId(Long nutritionId); -// -// Boolean uploadBatchDishes(MultipartFile[] files); -// -// void openLimitCustomId(); -// -// void closeLimitCustomId(); -// -// void replaceMaterialDishes(ReplaceMaterialDto content); -// -// List getDishesNutrition(List dishesIdList); -// -// Map> selectDishesTasteByDishesIds(List dishesIds); } diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/service/impl/MenuDishesServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/service/impl/MenuDishesServiceImpl.java index 82060c24..5e1e6a83 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/service/impl/MenuDishesServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/service/impl/MenuDishesServiceImpl.java @@ -3,21 +3,35 @@ package com.bonus.core.menu.service.impl; import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.ListUtil; +import cn.hutool.core.util.ObjectUtil; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.bonus.common.core.exception.ServiceException; +import com.bonus.constant.DelFlagEnum; import com.bonus.constant.LeConstants; import com.bonus.core.common.utils.LogUtil; +import com.bonus.core.menu.dto.AppletDishesDetailDTO; +import com.bonus.core.menu.entity.MenuCollectionDishes; import com.bonus.core.menu.entity.MenuDishes; +import com.bonus.core.menu.mapper.MenuCollectionDishesMapper; import com.bonus.core.menu.mapper.MenuDishesMapper; +import com.bonus.core.menu.mapper.MenuMaterialDishesMapper; +import com.bonus.core.menu.mapper.MenuPackageDishesMapper; import com.bonus.core.menu.service.MenuDishesService; import com.bonus.core.menu.utils.NutritionEntity; import com.bonus.core.menu.utils.NutritionEntityUtil; +import com.bonus.core.menu.vo.AppletDishesDetailVO; +import com.bonus.core.menu.vo.AppletDishesSizeV2VO; +import com.bonus.i18n.I18n; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; - import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -26,3868 +40,43 @@ import java.util.stream.Collectors; public class MenuDishesServiceImpl extends ServiceImpl implements MenuDishesService { private static final Logger log = LoggerFactory.getLogger(MenuDishesServiceImpl.class); -// @Lazy -// @Autowired -// private AllocMetadataApi allocMetadataApi; -// @Autowired -// @Lazy -// private MenuDishesImportFailService menuDishesImportFailService; -// @Autowired -// @Lazy -// private MenuCollectionDishesMapper menuCollectionDishesMapper; -// @Autowired -// @Lazy -// private MenuDishesSaleRecordMapper menuDishesSaleRecordMapper; -// @Autowired -// @Lazy -// private MenuMaterialDishesService menuMaterialDishesService; -// @Autowired -// @Lazy -// private MenuMaterialDishesMapper menuMaterialDishesMapper; -// @Autowired -// @Lazy -// private MenuPackageDishesService menuPackageDishesService; -// @Autowired -// @Lazy -// private MenuPackageDishesMapper menuPackageDishesMapper; -// @Autowired -// @Lazy -// private MenuTasteDishesService menuTasteDishesService; -// @Autowired -// @Lazy -// private MenuRecipeDishesMapper menuRecipeDishesMapper; -// @Autowired -// @Lazy -// private MenuEvaluaDetailMapper menuEvaluaDetailMapper; -// @Autowired -// @Lazy -// private MenuLabelDishesService menuLabelDishesService; -// @Autowired -// @Lazy -// private MenuSuitDishesService menuSuitDishesService; -// @Autowired -// @Lazy -// private MenuEvaluaOrderMapper menuEvaluaOrderMapper; -// @Autowired -// @Lazy -// private MenuLabelDishesMapper menuLabelDishesMapper; -// @Autowired -// @Lazy -// private MenuDishesLabelMapper menuDishesLabelMapper; -// @Autowired -// @Lazy -// private MenuTasteDishesMapper menuTasteDishesMapper; -// @Autowired -// @Lazy -// private MenuDishesTypeService menuDishesTypeService; -// @Autowired -// @Lazy -// private MenuCustomDictService menuCustomDictService; -// @Autowired -// @Lazy -// private MenuDishesTasteMapper menuDishesTasteMapper; -// @Autowired -// @Lazy -// private MenuDishesCookMapper menuDishesCookMapper; -// @Autowired -// @Lazy -// private MenuSuitDishesMapper menuSuitDishesMapper; -// @Autowired -// @Lazy -// private MenuDishesSuitMapper menuDishesSuitMapper; -// @Autowired -// @Lazy -// private MenuDishesTypeMapper menuDishesTypeMapper; -// @Autowired -// @Lazy -// private MenuCustomDictMapper menuCustomDictMapper; -// @Autowired -// @Lazy -// private MenuNutritionMapper menuNutritionMapper; -// @Autowired -// @Lazy -// private StringRedisTemplate stringRedisTemplate; -// @Autowired -// @Lazy -// private MenuMaterialMapper menuMaterialMapper; -// @Lazy -// @Resource( -// name = "yunshitangTaskExecutor" -// ) -// private AsyncTaskExecutor asyncTaskExecutor; -// @Autowired -// @Lazy -// private MenuDishesMapper menuDishesMapper; -// @Autowired -// @Lazy -// private MenuaiServiceApi menuaiServiceApi; -// @Autowired -// @Lazy -// private AllocCanteenApi allocCanteenApi; -// @Autowired -// @Lazy -// private OssProperties ossProperties; -// @Autowired -// @Lazy -// private OrderMenuApi orderMenuApi; -// @Autowired -// @Lazy -// private OssTemplate ossTemplate; -// @Autowired -// @Lazy -// private CustInfoApi custInfoApi; -// @Autowired -// @Lazy -// private MgrUserApi mgrUserApi; -// @Autowired -// private MgrAuthApi mgrAuthApi; -// @Autowired -// @Lazy -// private MenuSequenceService menuSequenceService; -// @Autowired -// @Lazy -// private MenuMaterialService menuMaterialService; -// @Autowired -// private MenuRecipeDishesService menuRecipeDishesService; -// @Autowired -// private MenuDishesCookService menuDishesCookService; -// @Autowired -// private MenuDishesBaseService menuDishesBaseService; -// @Autowired -// private MenuDishesSizeService menuDishesSizeService; -// @Autowired -// private MenuDishesBaseMapper menuDishesBaseMapper; -// @Autowired -// private DrpServiceApi drpServiceApi; -// @Autowired -// private MercMerchantApi mercMerchantApi; -// @Autowired -// private MenuNutritionService menuNutritionService; -// @Autowired -// private AllocStallService allocStallService; -// @Autowired -// private AllocAreaService allocAreaService; -// @Autowired -// @Lazy -// private MenuaiV4Service menuaiV4Service; -// @Autowired -// private MenuaiPictureMapper menuaiPictureMapper; -// @Autowired -// private MenuMaterialNutritionMapper menuMaterialNutritionMapper; -// @Autowired -// private MenuSeasonDishesService menuSeasonDishesService; -// @Autowired -// private MenuMealtimeTypeDishesService menuMealtimeTypeDishesService; -// -// @Transactional( -// rollbackFor = {Exception.class} -// ) -// public Long addMenuDishes(MenuDishesAddDTO dishesAddDTO, Integer customId) { -// Long count = ((MenuDishesMapper)this.baseMapper).selectCount((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesName, dishesAddDTO.getDishesName())).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// if (count != null && count > 0L) { -// throw new LeException(I18n.getMessage("menu_dishes_name_repeat", new Object[0])); -// } else { -// List labelIdList = dishesAddDTO.getLabelIdList(); -// List tasteIdList = dishesAddDTO.getTasteIdList(); -// List suitIdList = dishesAddDTO.getSuitIdList(); -// String username = SecurityUtils.getUser().getUsername(); -// Integer customIdDTO = dishesAddDTO.getCustomId(); -// Long dishesId = null; -// if (ObjectUtil.isNotNull(customIdDTO) && customIdDTO >= MenuConstant.MIN_CUSTOM_ID && customIdDTO <= MenuConstant.MAX_CUSTOM_ID) { -// customId = customIdDTO; -// Long customIdCount = this.menuCustomDictMapper.selectCount((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuCustomDict.class).eq(MenuCustomDict::getCustomId, customIdDTO)).eq(MenuCustomDict::getIfUse, MenuCustomIfUseEnum.IS_USED.key())); -// if (ObjectUtil.isNotNull(customIdCount) && customIdCount > 0L) { -// dishesId = this.menuDishesMapper.selectDishesIdByCustomId(customIdDTO, DelFlagEnum.DEL_FALSE.key()); -// if (ObjectUtil.isNotNull(dishesId)) { -// this.menuDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesId, dishesId)); -// this.menuMaterialDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuMaterialDishes.class).eq(MenuMaterialDishes::getDishesId, dishesId)); -// } -// } -// } -// -// this.menuCustomDictMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuCustomDict.class).eq(MenuCustomDict::getCustomId, customId)).set(MenuCustomDict::getIfUse, MenuCustomIfUseEnum.IS_USED.key())); -// if (ObjectUtil.isNull(dishesId)) { -// dishesId = Id.next(); -// } -// -// MenuDishes menuDishes = new MenuDishes(); -// Integer salesMode = dishesAddDTO.getSalesMode(); -// double totalWeight = 100.0; -// List materialDTOList = dishesAddDTO.getMaterialList(); -// if (CollUtil.isNotEmpty(materialDTOList)) { -// totalWeight = ((DoubleSummaryStatistics)materialDTOList.stream().collect(Collectors.summarizingDouble(MenuDishesAddMaterialDTO::getWeight))).getSum(); -// if (MenuSalesTypeEnum.WEIGHT_ON.key().equals(salesMode)) { -// if (totalWeight > MenuConstant.BASICS_WEIGHT) { -// throw new LeException(I18n.getMessage("menu_weight_over_size", new Object[0])); -// } -// -// totalWeight = 100.0; -// } -// -// List materialList = CopyListUtil.copyListProperties(materialDTOList, MenuMaterialDishes.class); -// this.insertMaterialDishesBatch(materialList, dishesId, username); -// List nutritionEntityList = this.menuNutritionService.selectNutritionWeightList(dishesId); -// if (CollUtil.isEmpty(nutritionEntityList)) { -// throw new LeException(I18n.getMessage("menu_material_error", new Object[0])); -// } -// -// ((NutritionEntity)nutritionEntityList.get(0)).setTotalWeight(totalWeight); -// NutritionEntity nutritionEntity = NutritionEntityUtil.countNutrition(nutritionEntityList); -// BeanUtils.copyProperties(nutritionEntity, menuDishes); -// } -// -// if (CollUtil.isNotEmpty(labelIdList)) { -// this.insertLabelDishesBatch(labelIdList, dishesId, username); -// } -// -// if (CollUtil.isNotEmpty(tasteIdList)) { -// this.insertTasteDishesBatch(tasteIdList, dishesId, username); -// } -// -// if (CollUtil.isNotEmpty(suitIdList)) { -// this.insertSuitDishesBatch(suitIdList, dishesId, username); -// } -// -// BeanUtils.copyProperties(dishesAddDTO, menuDishes); -// menuDishes.setCustomId(customId); -// menuDishes.setWeight(totalWeight); -// menuDishes.setDishesId(dishesId); -// menuDishes.setCrby(username); -// if (ObjectUtil.isNotNull(menuDishes.getSodium())) { -// if (menuDishes.getSodium() > NutritionConstants.SODIUM.doubleValue()) { -// if (menuDishes.getInitialScore() != null) { -// menuDishes.setInitialScore(menuDishes.getInitialScore() - NutritionConstants.SCORE_TEN); -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SEVENTY); -// } -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } -// } -// -// Long typeId = menuDishes.getTypeId(); -// if (typeId != null && typeId != -1L) { -// MenuDishesType menuDishesType = (MenuDishesType)this.menuDishesTypeMapper.selectOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishesType.class).eq(MenuDishesType::getTypeId, typeId)).eq(MenuDishesType::getDelFlag, LeConstants.COMMON_NO)); -// if (!menuDishesType.getTypeName().contains("鱼") && !menuDishesType.getTypeName().contains("半荤")) { -// if (!menuDishesType.getTypeName().contains("油脂") && !menuDishesType.getTypeName().contains("甜") && !menuDishesType.getTypeName().contains("主荤")) { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SIXTY); -// } -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SEVENTY); -// } -// } else { -// typeId = this.menuDishesTypeService.getDefaultTypeId(); -// menuDishes.setTypeId(typeId); -// } -// -// Long cookId = menuDishes.getCookId(); -// if (ObjectUtil.isNotNull(cookId)) { -// MenuDishesCook menuDishesCook = (MenuDishesCook)this.menuDishesCookMapper.selectOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishesCook.class).eq(MenuDishesCook::getCookId, cookId)).eq(MenuDishesCook::getDelFlag, LeConstants.COMMON_NO)); -// Integer initialScore; -// if (ObjectUtil.isNotNull(menuDishes.getInitialScore())) { -// initialScore = menuDishes.getInitialScore(); -// } else { -// initialScore = NutritionConstants.SCORE_EIGHTY; -// } -// -// if (menuDishesCook.getCookName().contains(MenuDishesCookEnum.SALAD.value())) { -// menuDishes.setInitialScore(initialScore + NutritionConstants.SCORE_TEN); -// } else if (!menuDishesCook.getCookName().contains(MenuDishesCookEnum.STEAM.value()) && !menuDishesCook.getCookName().contains(MenuDishesCookEnum.COOK.value()) && !menuDishesCook.getCookName().contains(MenuDishesCookEnum.STEW.value())) { -// if (!menuDishesCook.getCookName().contains(MenuDishesCookEnum.BRAISED.value()) && !menuDishesCook.getCookName().contains(MenuDishesCookEnum.DRY_STIR_FRY.value()) && !menuDishesCook.getCookName().contains(MenuDishesCookEnum.SWEET_SOUR.value())) { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } else { -// menuDishes.setInitialScore(initialScore - NutritionConstants.SCORE_TEN); -// } -// } else { -// menuDishes.setInitialScore(initialScore + NutritionConstants.SCORE_FIVE); -// } -// } -// -// String sequenceNo = this.menuSequenceService.getSequenceNo(2); -// menuDishes.setDishesNum(sequenceNo); -// ((MenuDishesMapper)this.baseMapper).insert(menuDishes); -// MqUtil.sendDataChange(menuDishes, LeMqConstant.DataChangeType.ADD, LeMqConstant.Topic.DATA_CHANGE_DISHES); -// return menuDishes.getDishesId(); -// } -// } -// -// public Page getMenuDishesPage(String content) { -// Map contentMap = (Map)JSON.parseObject(content, Map.class); -// Page resultPage = QueryParseHelper.getPageFromContent(content, MenuDishesPageVO.class); -// MenuDishesPageDTO menuDishesPageDTO = (MenuDishesPageDTO)((JSONObject)contentMap.get("object")).toJavaObject(MenuDishesPageDTO.class); -// menuDishesPageDTO.setDelFlag(DelFlagEnum.DEL_FALSE.key()); -// Long canteenEffId = SecurityUtils.getUser().getCanteenEffId(); -// EffPermissionVO resultEff = this.mgrUserApi.filterCanteenDataPermission(menuDishesPageDTO.getCanteenId(), menuDishesPageDTO.getShopstallId(), canteenEffId); -// if (resultEff.getCheckSql()) { -// menuDishesPageDTO.setCanteenId(resultEff.getCanteenId()); -// menuDishesPageDTO.setShopstallId(resultEff.getShopstallId()); -// resultPage = ((MenuDishesMapper)this.baseMapper).selectAllList(resultPage, menuDishesPageDTO, resultEff.getCanteenList()); -// } else { -// resultPage.setTotal(0L); -// } -// -// List dishesPageVOList = resultPage.getRecords(); -// if (CollUtil.isEmpty(dishesPageVOList)) { -// return resultPage; -// } else { -// Iterator var8 = dishesPageVOList.iterator(); -// -// while(var8.hasNext()) { -// MenuDishesPageVO dishesPageVO = (MenuDishesPageVO)var8.next(); -// Long dishesId = dishesPageVO.getDishesId(); -// Integer delFlag = DelFlagEnum.DEL_FALSE.key(); -// MenuMaterialDishes materialDishes = new MenuMaterialDishes(); -// materialDishes.setDishesId(dishesId); -// materialDishes.setDelFlag(delFlag); -// dishesPageVO.setMaterialList(this.menuMaterialMapper.selectListByDishesId(materialDishes)); -// MenuLabelDishes labelDishes = new MenuLabelDishes(); -// labelDishes.setDishesId(dishesId); -// labelDishes.setDelFlag(delFlag); -// dishesPageVO.setDishesLabel(this.menuDishesLabelMapper.selectListByDishesId(labelDishes)); -// MenuTasteDishes tasteDishes = new MenuTasteDishes(); -// tasteDishes.setDishesId(dishesId); -// tasteDishes.setDelFlag(delFlag); -// dishesPageVO.setDishesTaste(this.menuDishesTasteMapper.selectListByDishesId(tasteDishes)); -// MenuSuitDishes suitDishes = new MenuSuitDishes(); -// suitDishes.setDishesId(dishesId); -// suitDishes.setDelFlag(delFlag); -// dishesPageVO.setDishesSuit(this.menuDishesSuitMapper.selectListByDishesId(suitDishes)); -// } -// -// return resultPage; -// } -// } -// -// @Transactional( -// rollbackFor = {Exception.class} -// ) -// public void editMenuDishes(MenuDishesEditDTO dishesEditDTO) { -// Long count; -// if (StringUtils.isNotBlank(dishesEditDTO.getDishesNum())) { -// count = ((MenuDishesMapper)this.baseMapper).selectCount((Wrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesNum, dishesEditDTO.getDishesNum())).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())).ne(MenuDishes::getDishesId, dishesEditDTO.getDishesId())); -// if (count != null && count > 0L) { -// throw new LeException(I18n.getMessage("menu_dishes_num_repeat", new Object[0])); -// } -// } -// -// count = ((MenuDishesMapper)this.baseMapper).selectCount((Wrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesName, dishesEditDTO.getDishesName())).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())).ne(MenuDishes::getDishesId, dishesEditDTO.getDishesId())); -// if (count != null && count > 0L) { -// throw new LeException(I18n.getMessage("menu_dishes_name_repeat", new Object[0])); -// } else { -// PigxUser user = SecurityUtils.getUser(); -// String username = user.getUsername(); -// Long dishesId = dishesEditDTO.getDishesId(); -// Integer salesMode = dishesEditDTO.getSalesMode(); -// this.menuMaterialDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuMaterialDishes.class).eq(MenuMaterialDishes::getDishesId, dishesId)); -// List editList = dishesEditDTO.getMaterialList(); -// double totalWeight = 100.0; -// MenuDishes menuDishes = new MenuDishes(); -// List materialList; -// List nutritionEntityList; -// if (CollUtil.isNotEmpty(editList)) { -// totalWeight = ((DoubleSummaryStatistics)editList.stream().collect(Collectors.summarizingDouble(MenuDishesEditMaterialDTO::getWeight))).getSum(); -// if (MenuSalesTypeEnum.WEIGHT_ON.key().equals(salesMode)) { -// if (totalWeight > MenuConstant.BASICS_WEIGHT) { -// throw new LeException(I18n.getMessage("menu_weight_over_size", new Object[0])); -// } -// -// totalWeight = 100.0; -// } -// -// materialList = CopyListUtil.copyListProperties(editList, MenuMaterialDishes.class); -// if (materialList.size() > MenuConstant.MAX_MATERIAL_SIZE) { -// throw new LeException(I18n.getMessage("menu_label_over_size", new Object[0])); -// } -// -// this.insertMaterialDishesBatch(materialList, dishesId, username); -// nutritionEntityList = this.menuNutritionService.selectNutritionWeightList(dishesId); -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(salesMode)) { -// totalWeight = ((DoubleSummaryStatistics)materialList.stream().collect(Collectors.summarizingDouble(MenuMaterialDishes::getWeight))).getSum(); -// } -// -// ((NutritionEntity)nutritionEntityList.get(0)).setTotalWeight(totalWeight); -// NutritionEntity nutritionEntity = NutritionEntityUtil.countNutrition(nutritionEntityList); -// BeanUtils.copyProperties(nutritionEntity, menuDishes); -// } -// -// this.menuLabelDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuLabelDishes.class).eq(MenuLabelDishes::getDishesId, dishesId)); -// materialList = dishesEditDTO.getLabelIdList(); -// if (CollUtil.isNotEmpty(materialList)) { -// this.insertLabelDishesBatch(materialList, dishesId, username); -// } -// -// this.menuTasteDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuTasteDishes.class).eq(MenuTasteDishes::getDishesId, dishesId)); -// nutritionEntityList = dishesEditDTO.getTasteIdList(); -// if (CollUtil.isNotEmpty(nutritionEntityList)) { -// this.insertTasteDishesBatch(nutritionEntityList, dishesId, username); -// } -// -// this.menuSuitDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuSuitDishes.class).eq(MenuSuitDishes::getDishesId, dishesId)); -// List suitIdList = dishesEditDTO.getSuitIdList(); -// if (CollUtil.isNotEmpty(suitIdList)) { -// this.insertSuitDishesBatch(suitIdList, dishesId, username); -// } -// -// BeanUtils.copyProperties(dishesEditDTO, menuDishes); -// menuDishes.setWeight(totalWeight); -// menuDishes.setUpby(username); -// Long typeId = menuDishes.getTypeId(); -// if (typeId != null && typeId != -1L) { -// MenuDishesType menuDishesType = (MenuDishesType)this.menuDishesTypeMapper.selectOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishesType.class).eq(MenuDishesType::getTypeId, typeId)).eq(MenuDishesType::getDelFlag, LeConstants.COMMON_NO)); -// if (!menuDishesType.getTypeName().contains("鱼") && !menuDishesType.getTypeName().contains("半荤")) { -// if (!menuDishesType.getTypeName().contains("油脂") && !menuDishesType.getTypeName().contains("甜") && !menuDishesType.getTypeName().contains("主荤")) { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SIXTY); -// } -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SEVENTY); -// } -// } else { -// typeId = this.menuDishesTypeMapper.selectDefaultTypeId(MenuDishesTypeDefaultFlagEnum.DEFAULT.key()); -// menuDishes.setTypeId(typeId); -// } -// -// if (ObjectUtil.isNotNull(menuDishes.getSodium())) { -// if (menuDishes.getSodium() > NutritionConstants.SODIUM.doubleValue()) { -// if (menuDishes.getInitialScore() != null) { -// menuDishes.setInitialScore(menuDishes.getInitialScore() - NutritionConstants.SCORE_TEN); -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SEVENTY); -// } -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } -// } -// -// Long cookId = menuDishes.getCookId(); -// if (ObjectUtil.isNotNull(cookId)) { -// MenuDishesCook menuDishesCook = (MenuDishesCook)this.menuDishesCookMapper.selectOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishesCook.class).eq(MenuDishesCook::getCookId, cookId)).eq(MenuDishesCook::getDelFlag, LeConstants.COMMON_NO)); -// Integer initialScore; -// if (ObjectUtil.isNotNull(menuDishes.getInitialScore())) { -// initialScore = menuDishes.getInitialScore(); -// } else { -// initialScore = NutritionConstants.SCORE_EIGHTY; -// } -// -// String cookName = menuDishesCook.getCookName(); -// if (cookName.contains(MenuDishesCookEnum.SALAD.value())) { -// menuDishes.setInitialScore(initialScore + NutritionConstants.SCORE_TEN); -// } else if (!cookName.contains(MenuDishesCookEnum.STEAM.value()) && !cookName.contains(MenuDishesCookEnum.COOK.value()) && !cookName.contains(MenuDishesCookEnum.STEW.value())) { -// if (!cookName.contains(MenuDishesCookEnum.BRAISED.value()) && !cookName.contains(MenuDishesCookEnum.DRY_STIR_FRY.value()) && !cookName.contains(MenuDishesCookEnum.SWEET_SOUR.value())) { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } else { -// menuDishes.setInitialScore(initialScore - NutritionConstants.SCORE_TEN); -// } -// } else { -// menuDishes.setInitialScore(initialScore + NutritionConstants.SCORE_FIVE); -// } -// } -// -// String sourceName = ((MenuDishesMapper)this.baseMapper).selectDishesNameByWrapper((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesId, dishesId)); -// if (StringUtils.isNotBlank(dishesEditDTO.getDishesName()) && !dishesEditDTO.getDishesName().equals(sourceName)) { -// MenuaiDishesNameEditDTO menuaiDishesNameEditDTO = new MenuaiDishesNameEditDTO(); -// menuaiDishesNameEditDTO.setDishesId(dishesId); -// menuaiDishesNameEditDTO.setOldDishesName(sourceName); -// menuaiDishesNameEditDTO.setNewDishesName(dishesEditDTO.getDishesName()); -// this.menuaiServiceApi.editMenuaiDishesName(menuaiDishesNameEditDTO); -// } -// -// ((MenuDishesMapper)this.baseMapper).update(menuDishes, (Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesId, dishesId)); -// MqUtil.sendDataChange(menuDishes, LeMqConstant.DataChangeType.UPDATE, LeMqConstant.Topic.DATA_CHANGE_DISHES); -// } -// } -// -// @Transactional( -// rollbackFor = {Exception.class} -// ) -// public void removeByDishesId(Long dishesId) { -// Integer packageDishesExist = this.menuPackageDishesMapper.selectExistByWrapper((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuPackageDishes.class).eq(MenuPackageDishes::getDishesId, dishesId)).last("limit 1")); -// Integer recipeDishesExist = this.menuRecipeDishesMapper.selectExistLeftJoinByDishesId(Lists.newArrayList(new Long[]{dishesId})); -// if (!ObjectUtil.isNotNull(packageDishesExist) && !ObjectUtil.isNotNull(recipeDishesExist)) { -// MenuDishes dishes = (MenuDishes)((MenuDishesMapper)this.baseMapper).selectOne((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesId, dishesId)); -// if (dishes == null) { -// throw new LeException(I18n.getMessage("menu_dishes_not_exist_del", new Object[0])); -// } else { -// int customId = dishes.getCustomId(); -// this.menuCustomDictMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuCustomDict.class).eq(MenuCustomDict::getCustomId, customId)).set(MenuCustomDict::getIfUse, MenuCustomIfUseEnum.UNUSED.key())); -// ((MenuDishesMapper)this.baseMapper).update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)(new UpdateWrapper()).lambda().eq(MenuDishes::getDishesId, dishesId)).set(MenuDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())).set(MenuDishes::getCustomId, -1)); -// this.menuMaterialDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuMaterialDishes.class).eq(MenuMaterialDishes::getDishesId, dishesId)).set(MenuMaterialDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuLabelDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuLabelDishes.class).eq(MenuLabelDishes::getDishesId, dishesId)).set(MenuLabelDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuTasteDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuTasteDishes.class).eq(MenuTasteDishes::getDishesId, dishesId)).set(MenuTasteDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuSuitDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuSuitDishes.class).eq(MenuSuitDishes::getDishesId, dishesId)).set(MenuSuitDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// String redisKey = String.format("yst:%s:recipe:%s:detail:%s", TenantContextHolder.getTenantId(), "*", "*"); -// RedisUtil.deleteByPattern(redisKey); -// MqUtil.sendDataChange(dishesId, LeMqConstant.DataChangeType.REMOVE, LeMqConstant.Topic.DATA_CHANGE_DISHES); -// } -// } else { -// throw new LeException(I18n.getMessage("menu_dishes_use_del", new Object[0])); -// } -// } -// -// public AppletDishesDetailVO getDishesDetailByDishesId(String content, Long custId) { -// AppletDishesDetailDTO dishesDetailDTO = (AppletDishesDetailDTO)JSON.parseObject(content, AppletDishesDetailDTO.class); -// dishesDetailDTO.setDelFlag(DelFlagEnum.DEL_FALSE.key()); -// Long baseDishesId = dishesDetailDTO.getBaseDishesId(); -// if (!ObjectUtil.isNull(custId) && custId != -1L) { -// AppletDishesDetailVO appletDishesDetailVO = ((MenuDishesMapper)this.baseMapper).selectDishesDetailByDishesId(dishesDetailDTO); -// Long countDishes = this.menuCollectionDishesMapper.selectCount((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuCollectionDishes.class).eq(MenuCollectionDishes::getCustId, custId)).eq(MenuCollectionDishes::getDishesId, baseDishesId)); -// if (ObjectUtil.isNotNull(countDishes) && countDishes > 0L) { -// appletDishesDetailVO.setIsFavorites(1); -// } else { -// appletDishesDetailVO.setIsFavorites(2); -// } -// -// Long dishesId = ((AppletDishesSizeV2VO)appletDishesDetailVO.getDishesDetailList().get(0)).getDishesId(); -// List materialList; -// if (appletDishesDetailVO.getMealType() == 1) { -// materialList = this.menuMaterialDishesMapper.getMenuMaterialById(dishesId); -// appletDishesDetailVO.setMaterialList(materialList); -// } else { -// materialList = this.menuPackageDishesMapper.selectDishesName(dishesId); -// appletDishesDetailVO.setPackageDishesList(materialList); -// } -// -// return appletDishesDetailVO; -// } else { -// throw new LeException(I18n.getMessage("menu_no_cust_info", new Object[0])); -// } -// } -// -// public void deployIndexRecommend(IndexRecommendDishesDTO content) { -// Long canteenId = content.getCanteenId(); -// ((MenuDishesMapper)this.baseMapper).update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishes.class).eq(MenuDishes::getCanteenId, canteenId)).eq(MenuDishes::getIndexRecommend, MenuDishesIndexRecommendEnum.INDEX_RECOMMEND.key())).set(MenuDishes::getIndexRecommend, MenuDishesIndexRecommendEnum.NOT_INDEX_RECOMMEND.key())); -// List dishesIdList = content.getDishesIdList(); -// if (CollUtil.isEmpty(dishesIdList)) { -// throw new LeException(I18n.getMessage("menu_choose_commit", new Object[0])); -// } else { -// ((MenuDishesMapper)this.baseMapper).update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishes.class).eq(MenuDishes::getCanteenId, canteenId)).in(MenuDishes::getDishesId, dishesIdList)).set(MenuDishes::getIndexRecommend, MenuDishesIndexRecommendEnum.INDEX_RECOMMEND.key())); -// } -// } -// -// public List getIndexRecommendDishesList(IndexDishesListDTO content) { -// MenuDishes dishes = new MenuDishes(); -// dishes.setCanteenId(content.getCanteenId()); -// dishes.setDelFlag(DelFlagEnum.DEL_FALSE.key()); -// dishes.setIndexRecommend(MenuDishesIndexRecommendEnum.INDEX_RECOMMEND.key()); -// return ((MenuDishesMapper)this.baseMapper).selectIndexRecommendDishesList(dishes); -// } -// -// public void addMenuDishesLikeSurvey(List content) { -// this.menuDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishes.class).set(MenuDishes::getLikeSurvey, MenuLikeSurveyEnum.NOT_LIKE.key())).set(MenuDishes::getLikeBatch, (Object)null)); -// if (CollUtil.isNotEmpty(content)) { -// this.menuDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishes.class).in(MenuDishes::getDishesId, content)).set(MenuDishes::getLikeSurvey, MenuLikeSurveyEnum.IS_LIKE.key())).set(MenuDishes::getLikeBatch, Id.next())); -// } -// -// } -// -// public List getMenuDishesLikeSurvey() { -// return this.menuDishesMapper.selectMenuDishesLikeSurvey((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getLikeSurvey, MenuLikeSurveyEnum.IS_LIKE.key())).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// } -// -// public void emptyMenuDishesLikeSurvey() { -// this.menuDishesMapper.update((Object)null, (Wrapper)Wrappers.lambdaUpdate(MenuDishes.class).set(MenuDishes::getLikeNum, 0)); -// } -// -// public List getMenuDishesLikeRanking() { -// return this.menuDishesMapper.selectMenuDishesLikeRanking((Wrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getLikeSurvey, MenuLikeSurveyEnum.IS_LIKE.key())).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())).orderByDesc(MenuDishes::getLikeNum)); -// } -// -// public List getMenuDishesLikeList(Long custId) { -// List resultList = this.menuDishesMapper.selectMenuDishesLikeList((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getLikeSurvey, MenuLikeSurveyEnum.IS_LIKE.key())).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// if (CollUtil.isEmpty(resultList)) { -// return resultList; -// } else { -// Boolean custExit = this.custInfoApi.checkCustCommit(custId, ((MenuDishesLikeVO)resultList.get(0)).getLikeBatch()); -// if (Boolean.TRUE.equals(custExit)) { -// ((MenuDishesLikeVO)resultList.get(0)).setCommitState(MenuCommitStateEnum.IS_COMMIT.key()); -// } else { -// ((MenuDishesLikeVO)resultList.get(0)).setCommitState(MenuCommitStateEnum.NOT_COMMIT.key()); -// } -// -// return resultList; -// } -// } -// -// @Transactional( -// rollbackFor = {Exception.class} -// ) -// public void saveMenuDishesLikeSurvey(Long custId, List content) { -// if (CollUtil.isEmpty(content)) { -// throw new LeException(I18n.getMessage("menu_no_dishes_detail_commit", new Object[0])); -// } else if (!ObjectUtil.isNull(custId) && custId != -1L) { -// Boolean custExit = this.custInfoApi.checkCustCommit(custId, ((MenuDishesLikeSaveDTO)content.get(0)).getLikeBatch()); -// if (Boolean.TRUE.equals(custExit)) { -// throw new LeException(I18n.getMessage("menu_not_commit_repeat", new Object[0])); -// } else { -// this.menuDishesMapper.updateLikeNum((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).in(MenuDishes::getDishesId, content.stream().map(MenuDishesLikeSaveDTO::getDishesId).toList())); -// this.custInfoApi.editCustInfo(custId, ((MenuDishesLikeSaveDTO)content.get(0)).getLikeBatch()); -// } -// } else { -// throw new LeException(I18n.getMessage("menu_no_cust_info", new Object[0])); -// } -// } -// -// public List getAllDishesBasicsInfo() { -// Long canteenEffId = SecurityUtils.getUser().getCanteenEffId(); -// EffPermissionVO resultEff = this.mgrUserApi.filterCanteenDataPermission((Long)null, (Long)null, canteenEffId); -// return (List)(Boolean.TRUE.equals(resultEff.getCheckSql()) ? ((MenuDishesMapper)this.baseMapper).selectAllDishesBasicsInfo(DelFlagEnum.DEL_FALSE.key(), resultEff.getCanteenList()) : Lists.newArrayList()); -// } -// -// public MenuDishesLableVO getDishesLabelByCustomId(Integer customId) { -// Long dishesId = ((MenuDishesMapper)this.baseMapper).selectDishesIdByCustomId(customId, DelFlagEnum.DEL_FALSE.key()); -// if (ObjectUtil.isNull(dishesId)) { -// throw new LeException(I18n.getMessage("menu_dishes_not_exist_repeat", new Object[0])); -// } else { -// MenuDishesLableVO result = new MenuDishesLableVO(); -// List labelList = ((MenuDishesMapper)this.baseMapper).selectDishesLabelByDishesId(dishesId); -// if (CollUtil.isNotEmpty(labelList)) { -// result.setLabelList(labelList); -// } -// -// List mainList = ((MenuDishesMapper)this.baseMapper).selectMaterialByType(dishesId, MenuMaterialTypeEnum.MAIN_INGREDIENT.key()); -// if (CollUtil.isNotEmpty(mainList)) { -// result.setMainList(mainList); -// } -// -// List auxList = ((MenuDishesMapper)this.baseMapper).selectMaterialByType(dishesId, MenuMaterialTypeEnum.AUX_INGREDIENT.key()); -// if (CollUtil.isNotEmpty(auxList)) { -// result.setAuxList(auxList); -// } -// -// List dosList = ((MenuDishesMapper)this.baseMapper).selectMaterialByType(dishesId, MenuMaterialTypeEnum.DOS_INGREDIENT.key()); -// if (CollUtil.isNotEmpty(dosList)) { -// result.setDosList(dosList); -// } -// -// return result; -// } -// } -// -// public Double getDishesWeightDeviation(Integer customId) { -// return ((MenuDishesMapper)this.baseMapper).selectWeightDeviationByCustomId(customId, DelFlagEnum.DEL_FALSE.key()); -// } -// -// public List getDishesDetailByDate(AndroidDishesDetailByDateDTO content) { -// Long custId = content.getCustId(); -// if (ObjectUtil.isNull(custId)) { -// custId = this.custInfoApi.getCustIdBySerialNum(content.getSerialNum()); -// } -// -// if (ObjectUtil.isNull(custId)) { -// throw new LeException(I18n.getMessage("menu_cust_info_not_exist", new Object[0])); -// } else { -// return ((MenuDishesMapper)this.baseMapper).selectDishesDetailByCustId(custId, content.getQueryDate()); -// } -// } -// -// public void addDishesEvalua(List content) { -// Iterator var2 = content.iterator(); -// -// while(var2.hasNext()) { -// AndroidDishesEvaluaAddDTO item = (AndroidDishesEvaluaAddDTO)var2.next(); -// Long ordId = item.getOrdId(); -// Long evaluaId = this.menuEvaluaOrderMapper.selectEvaluaIdByWrapper((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuEvaluaOrder.class).eq(MenuEvaluaOrder::getOrdId, ordId)).eq(MenuEvaluaOrder::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// boolean evaluaExist = ObjectUtil.isNotNull(evaluaId); -// MenuEvaluaOrder evaluaOrder = new MenuEvaluaOrder(); -// if (!evaluaExist) { -// evaluaId = Id.next(); -// } -// -// evaluaOrder.setEvaluaId(evaluaId); -// evaluaOrder.setOrdId(ordId); -// evaluaOrder.setShopstallId(this.orderMenuApi.getShopstallIdByOrdId(ordId)); -// evaluaOrder.setDescription("自助查询机自动评价内容 ^_^"); -// Long goodsId = item.getGoodsId(); -// Long detailId = this.menuEvaluaDetailMapper.selectDetailIdByWrapper((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuEvaluaDetail.class).eq(MenuEvaluaDetail::getEvaluaId, evaluaId)).eq(MenuEvaluaDetail::getMealId, goodsId)); -// boolean detailExist = ObjectUtil.isNotNull(detailId); -// MenuEvaluaDetail evaluaDetail = new MenuEvaluaDetail(); -// if (!detailExist) { -// detailId = Id.next(); -// } -// -// evaluaDetail.setDetailId(detailId); -// evaluaDetail.setEvaluaId(evaluaId); -// evaluaDetail.setMealType(item.getDetailType()); -// evaluaDetail.setMealId(goodsId); -// Integer starLevel = item.getStarLevel(); -// evaluaDetail.setStarLevel(starLevel); -// evaluaDetail.setDescription("自助查询机自动评价内容 ^_^"); -// if (detailExist) { -// this.menuEvaluaDetailMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuEvaluaDetail.class).eq(MenuEvaluaDetail::getDetailId, detailId)).set(MenuEvaluaDetail::getStarLevel, starLevel)); -// } else { -// this.menuEvaluaDetailMapper.insert(evaluaDetail); -// } -// -// MenuDishesSaleRecord dishesEvaluate = this.menuDishesSaleRecordMapper.selectEvaluate((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishesSaleRecord.class).eq(MenuDishesSaleRecord::getStallId, evaluaOrder.getShopstallId())).eq(MenuDishesSaleRecord::getDishesId, goodsId)); -// if (ObjectUtil.isNull(dishesEvaluate)) { -// dishesEvaluate = new MenuDishesSaleRecord(); -// dishesEvaluate.setDishesId(goodsId); -// dishesEvaluate.setStallId(evaluaOrder.getShopstallId()); -// dishesEvaluate.setSaleNum(0); -// dishesEvaluate.setEvaluateNum(1); -// dishesEvaluate.setEvaluateLevel(BigDecimal.ONE); -// dishesEvaluate.setUpdateTime(LocalDateTime.now()); -// this.menuDishesSaleRecordMapper.insert(dishesEvaluate); -// } else { -// BigDecimal evaluateLevel = (new BigDecimal(dishesEvaluate.getEvaluateNum())).multiply(dishesEvaluate.getEvaluateLevel()).add(new BigDecimal(starLevel)).divide(new BigDecimal(dishesEvaluate.getEvaluateNum() + 1), 2, RoundingMode.HALF_UP); -// this.menuDishesSaleRecordMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishesSaleRecord.class).eq(MenuDishesSaleRecord::getDishesId, goodsId)).set(MenuDishesSaleRecord::getEvaluateNum, dishesEvaluate.getEvaluateNum() + 1)).set(MenuDishesSaleRecord::getEvaluateLevel, evaluateLevel)); -// } -// -// Integer avgStarLevel = this.menuEvaluaDetailMapper.selectAvgStarLevelByWrapper((Wrapper)Wrappers.lambdaQuery(MenuEvaluaDetail.class).eq(MenuEvaluaDetail::getEvaluaId, evaluaId)); -// evaluaOrder.setStarLevel(avgStarLevel); -// if (evaluaExist) { -// this.menuEvaluaOrderMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuEvaluaOrder.class).eq(MenuEvaluaOrder::getEvaluaId, evaluaId)).set(MenuEvaluaOrder::getStarLevel, avgStarLevel)); -// } else { -// this.menuEvaluaOrderMapper.insert(evaluaOrder); -// this.orderMenuApi.editOrdStateByOrdId(ordId); -// } -// } -// -// } -// -// public void batchImportDishes(MultipartFile excel) { -// String dishesLockRedisKey = "yst:merchant-id:dishes:lock".replace("merchant-id", TenantContextHolder.getTenantId().toString()); -// String asyncState = (String)this.stringRedisTemplate.opsForValue().get(dishesLockRedisKey); -// if (StringUtils.isNotBlank(asyncState)) { -// throw new LeException(I18n.getMessage("menu_dishes_import_not_commit_repeat", new Object[0])); -// } else { -// List sqlDishesNameList = ((MenuDishesMapper)this.baseMapper).selectDishesNameListByWrapper((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// this.asyncTaskExecutor.execute(() -> { -// try { -// ((ExcelReaderSheetBuilder)((ExcelReaderBuilder)((ExcelReaderBuilder)EasyExcel.read(excel.getInputStream()).registerReadListener(new MenuDishesImportListener(this, sqlDishesNameList))).head(MenuDishesImportDTO.class)).sheet().headRowNumber(1)).doReadSync(); -// } catch (IOException var5) { -// MenuDishesImportFail dishesImportFail = new MenuDishesImportFail(); -// dishesImportFail.setFailRow(1); -// dishesImportFail.setImportTime(LocalDateTime.now()); -// dishesImportFail.setFailType(MenuFailTypeEnum.DISHES.key()); -// dishesImportFail.setFailReason("解析excel文件出错,整个文件未导入"); -// dishesImportFail.insert(); -// } -// -// }); -// } -// } -// -// public void importDishes(List importDishesList) { -// String dishesLockRedisKey = "yst:merchant-id:dishes:lock".replace("merchant-id", TenantContextHolder.getTenantId().toString()); -// this.stringRedisTemplate.opsForValue().set(dishesLockRedisKey, "1", 20L, TimeUnit.MINUTES); -// -// try { -// List dishesAddList = Lists.newArrayList(); -// Long defaultTypeId = this.menuDishesTypeService.getDefaultTypeId(); -// List canteenList = this.allocCanteenApi.listAllCanteen((Boolean)null); -// Map canteenMap = Maps.newHashMap(); -// if (CollUtil.isNotEmpty(canteenList)) { -// canteenList.forEach((c) -> { -// canteenMap.put(c.getCanteenName(), c.getCanteenId()); -// }); -// } -// -// List dishesTypeList = this.menuDishesTypeMapper.selectAllListByWrapper(Wrappers.lambdaQuery()); -// Map typeMap = Maps.newHashMap(); -// if (CollUtil.isNotEmpty(dishesTypeList)) { -// dishesTypeList.forEach((t) -> { -// typeMap.put(t.getTypeName(), t.getTypeId()); -// }); -// } -// -// importDishesList.forEach((i) -> { -// MenuDishes dishesAdd = new MenuDishes(); -// dishesAdd.setDishesId(Id.next()); -// dishesAdd.setDishesName(i.getDishesName()); -// dishesAdd.setPrice(i.getPrice().multiply(new BigDecimal("100")).intValue()); -// dishesAdd.setSalesMode(i.getSalesMode()); -// dishesAdd.setCustomId(this.menuCustomDictService.getNoRepeatCustomId(0)); -// dishesAdd.setTypeId((Long)Optional.ofNullable((Long)typeMap.get(i.getDishesTypeName())).orElse(defaultTypeId)); -// dishesAdd.setCanteenId((Long)Optional.ofNullable((Long)canteenMap.get(i.getCanteenName())).orElse(-1L)); -// dishesAdd.setPinyinInitials(PinyinUtil.getFirstLetterFromChinese(i.getDishesName())); -// dishesAdd.setPinyinFull(PinyinUtil.convertChineseToPinyin(i.getDishesName())); -// if (CollUtil.isNotEmpty(dishesAddList)) { -// List collect = (List)dishesAddList.stream().map(MenuDishes::getDishesName).collect(Collectors.toList()); -// if (!collect.contains(i.getDishesName())) { -// dishesAddList.add(dishesAdd); -// } -// } else { -// dishesAddList.add(dishesAdd); -// } -// -// }); -// super.saveBatch(dishesAddList); -// MqUtil.sendDataChange(dishesAddList, LeMqConstant.DataChangeType.ADD, LeMqConstant.Topic.DATA_CHANGE_DISHES); -// } catch (Exception var12) { -// log.error("导入菜品失败: {}", var12); -// } finally { -// this.stringRedisTemplate.delete(dishesLockRedisKey); -// } -// -// } -// -// public void importDishesFailSave(List dishesImportFailList) { -// this.menuDishesImportFailService.saveBatch(dishesImportFailList); -// } -// -// public void menuDishesInit() { -// Long materialCount = this.menuMaterialMapper.selectCount((Wrapper)Wrappers.lambdaQuery(MenuMaterial.class).eq(MenuMaterial::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// Long nutritionCount = this.menuNutritionMapper.selectCount((Wrapper)null); -// if (materialCount < nutritionCount) { -// throw new LeException(I18n.getMessage("menu_dishes_init_error", new Object[0])); -// } else { -// this.asyncTaskExecutor.execute(this::asyncMenuDishesInit); -// } -// } -// -// public void importDishesImgBatch() { -// Long merchantId = TenantContextHolder.getTenantId(); -// List allObjects = this.ossTemplate.getAllObjectsByPrefix(this.ossProperties.getBucketName(), "/" + merchantId + "/import/dishes", false); -// if (CollUtil.isEmpty(allObjects)) { -// throw new LeException(I18n.getMessage("menu_picture_file_null", new Object[0])); -// } else { -// List dishesNameList = ((MenuDishesMapper)this.baseMapper).selectAllDishesNameList(); -// List updateDishesNameList = Lists.newArrayList(); -// Map urlMap = Maps.newHashMap(); -// Iterator var6 = allObjects.iterator(); -// -// while(var6.hasNext()) { -// S3ObjectSummary ob = (S3ObjectSummary)var6.next(); -// String key = ob.getKey(); -// if (!StringUtils.isBlank(key) && !key.contains(" ") && !key.contains("-") && key.indexOf(".") == key.lastIndexOf(".")) { -// String dishesName = key.substring(key.lastIndexOf("/") + 1, key.indexOf(".")); -// if (dishesNameList.contains(dishesName)) { -// this.ossTemplate.copyObject(this.ossProperties.getBucketName(), key, this.ossProperties.getBucketName(), key.replace("/import", "")); -// -// try { -// this.ossTemplate.removeObject(this.ossProperties.getBucketName(), key); -// } catch (Exception var11) { -// log.info("***图片删除失败: {}", key); -// } -// -// updateDishesNameList.add(dishesName); -// urlMap.put(dishesName, "/lnyst/" + key.replace("/import", "")); -// } -// } -// } -// -// if (CollUtil.isNotEmpty(updateDishesNameList)) { -// List updateDishesList = ((MenuDishesMapper)this.baseMapper).selectIdAndNameByWrapper((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())).in(MenuDishes::getDishesName, updateDishesNameList)); -// if (CollUtil.isNotEmpty(updateDishesList)) { -// updateDishesList.forEach((u) -> { -// u.setImageUrl((String)urlMap.get(u.getDishesName())); -// }); -// super.updateBatchById(updateDishesList); -// } -// } -// -// } -// } -// -// public Page getMenuDishesV2Page(MenuDishesV2PageDTO content) { -// Page resultPage = new Page(content.getCurrent(), content.getSize()); -// MenuMetadataModel menuMetadataModel = (MenuMetadataModel)this.allocMetadataApi.queryMetadataModel(MetadataModelTypeEnum.MENU, new MenuMetadataModel()); -// String ifDifCanteenManage = menuMetadataModel.getIfDifCanteenManage(); -// MgrUserAuthPO authPO = this.mgrAuthApi.getUserAuthPO(); -// log.info("获取登录用户权限authPO: {}", authPO); -// resultPage = ((MenuDishesMapper)this.baseMapper).selectAllV2List(resultPage, content, "1".equals(ifDifCanteenManage), authPO); -// List records = resultPage.getRecords(); -// if (ObjectUtil.isNotEmpty(records)) { -// List baseDishesId = (List)records.stream().map(MenuDishesV2PageVO::getDishesId).collect(Collectors.toList()); -// if (ObjectUtil.isNotEmpty(baseDishesId)) { -// Map littlePriceMap = (Map)this.list((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).select(new SFunction[]{MenuDishes::getBaseDishesId, MenuDishes::getPrice}).in(MenuDishes::getBaseDishesId, baseDishesId)).eq(MenuDishes::getSizeJson, "{\"sizeType\":\"小份\"}")).stream().collect(Collectors.toMap(MenuDishes::getBaseDishesId, MenuDishes::getPrice)); -// Iterator var9 = records.iterator(); -// -// while(var9.hasNext()) { -// MenuDishesV2PageVO item = (MenuDishesV2PageVO)var9.next(); -// item.setLittlePrice((Integer)littlePriceMap.get(item.getDishesId())); -// } -// } -// } -// -// return resultPage; -// } -// -// public MenuDishesDetailVO getMenuDishesDetail(Long dishesId) { -// MenuDishesDetailVO result = ((MenuDishesMapper)this.baseMapper).selectDishesDetailById(dishesId); -// if (ObjectUtil.isNull(result)) { -// return result; -// } else { -// List dishesDetailList = ((MenuDishesMapper)this.baseMapper).selectBaseDishesIdSize(dishesId); -// result.setBaseDishesList(dishesDetailList); -// if (dishesDetailList.size() > 1) { -// Iterator var4 = dishesDetailList.iterator(); -// -// while(var4.hasNext()) { -// MenuBaseDishesModel dishes = (MenuBaseDishesModel)var4.next(); -// if (CharSequenceUtil.contains(dishes.getSizeJson(), "小份")) { -// result.setLittleMaterialList(this.menuMaterialMapper.selectMaterialByDishesId(dishes.getDishesId())); -// result.setLittleDishesNutrition(((MenuDishesMapper)this.baseMapper).selectDishesNutrition(dishes.getDishesId())); -// result.setLittleMaterialCost(((MenuDishesMapper)this.baseMapper).selectMaterialCost((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesId, dishes.getDishesId()))); -// } else { -// result.setMaterialList(this.menuMaterialMapper.selectMaterialByDishesId(dishes.getDishesId())); -// result.setDishesNutrition(((MenuDishesMapper)this.baseMapper).selectDishesNutrition(dishes.getDishesId())); -// } -// } -// } else { -// result.setMaterialList(this.menuMaterialMapper.selectMaterialByDishesId(((MenuBaseDishesModel)dishesDetailList.get(0)).getDishesId())); -// result.setDishesNutrition(((MenuDishesMapper)this.baseMapper).selectDishesNutrition(((MenuBaseDishesModel)dishesDetailList.get(0)).getDishesId())); -// } -// -// result.setLabelIdList(this.menuDishesLabelMapper.selectLabelByDishesId(((MenuBaseDishesModel)dishesDetailList.get(0)).getDishesId())); -// result.setTasteIdList(this.menuDishesTasteMapper.selectTasteByDishesId(((MenuBaseDishesModel)dishesDetailList.get(0)).getDishesId())); -// result.setSuitIdList(this.menuDishesSuitMapper.selectSuitByDishesId(((MenuBaseDishesModel)dishesDetailList.get(0)).getDishesId())); -// result.setPackageDishesList(this.menuDishesMapper.selectListByPackageId(((MenuBaseDishesModel)dishesDetailList.get(0)).getDishesId())); -// result.setSeason(this.menuSeasonDishesService.selectSeasonByDishesId(((MenuBaseDishesModel)dishesDetailList.get(0)).getDishesId())); -// result.setMealtimeTypes(this.menuMealtimeTypeDishesService.selectSeasonByDishesId(((MenuBaseDishesModel)dishesDetailList.get(0)).getDishesId())); -// result.setAiPictureList(this.menuDishesMapper.selectAiPictureListByDishesId(((MenuBaseDishesModel)dishesDetailList.get(0)).getDishesId())); -// return result; -// } -// } -// -// @Transactional( -// rollbackFor = {Exception.class}, -// propagation = Propagation.REQUIRES_NEW -// ) -// public AddDishesVo addMenuDishesV2(MenuDishesV2AddDTO content) { -// this.checkParam(content); -// AddDishesVo addDishesVo = new AddDishesVo(); -// List dishesIds = new ArrayList(); -// List menuBaseDishesModels = new ArrayList(); -// addDishesVo.setDishesIds(dishesIds); -// addDishesVo.setMenuBaseDishes(menuBaseDishesModels); -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(content.getSalesMode()) && content.getSizeType() == 2L) { -// Long baseDishesId = this.insertBaseAndSize(content.getDishesName(), "大份", "小份"); -// addDishesVo.setBaseDishesId(baseDishesId); -// JSONObject sizeTypeJsonLa = new JSONObject(); -// sizeTypeJsonLa.put("sizeType", "大份"); -// String dishesName = content.getDishesName(); -// content.setDishesName(dishesName + "-大份"); -// Long largeDishesId = this.insertMenuDishes(content, baseDishesId, content.getLargePrice(), content.getLargeWeight(), sizeTypeJsonLa.toJSONString(), content.getConvertFlag()); -// dishesIds.add(largeDishesId); -// MenuBaseDishesModel menuBaseDishesModel = new MenuBaseDishesModel(); -// menuBaseDishesModel.setDishesId(largeDishesId); -// menuBaseDishesModel.setSizeJson(sizeTypeJsonLa.toJSONString()); -// menuBaseDishesModels.add(menuBaseDishesModel); -// JSONObject sizeTypeJsonLi = new JSONObject(); -// sizeTypeJsonLi.put("sizeType", "小份"); -// content.setDishesName(dishesName + "-小份"); -// Long littleDishesId = this.insertMenuDishes(content, baseDishesId, content.getLittlePrice(), content.getLittleWeight(), sizeTypeJsonLi.toJSONString(), content.getLittleConvertFlag()); -// dishesIds.add(littleDishesId); -// MenuBaseDishesModel littleMenuBaseDishesModel = new MenuBaseDishesModel(); -// littleMenuBaseDishesModel.setDishesId(littleDishesId); -// littleMenuBaseDishesModel.setSizeJson(sizeTypeJsonLi.toJSONString()); -// menuBaseDishesModels.add(littleMenuBaseDishesModel); -// } else { -// String sizeTypeStr = ""; -// Double weight = content.getWeight(); -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(content.getSalesMode())) { -// sizeTypeStr = "标准"; -// } else if (content.getUnitPrice() == 50) { -// sizeTypeStr = "50g"; -// weight = 50.0; -// } else if (content.getUnitPrice() == 100) { -// sizeTypeStr = "100g"; -// weight = 100.0; -// } -// -// Long baseDishesId = this.insertBaseAndSize(content.getDishesName(), sizeTypeStr); -// addDishesVo.setBaseDishesId(baseDishesId); -// JSONObject sizeTypeJson = new JSONObject(); -// sizeTypeJson.put("sizeType", sizeTypeStr); -// Long dishesId = this.insertMenuDishes(content, baseDishesId, content.getPrice(), weight, sizeTypeJson.toJSONString()); -// dishesIds.add(dishesId); -// MenuBaseDishesModel menuBaseDishesModel = new MenuBaseDishesModel(); -// menuBaseDishesModel.setDishesId(dishesId); -// menuBaseDishesModel.setSizeJson(sizeTypeJson.toJSONString()); -// menuBaseDishesModels.add(menuBaseDishesModel); -// } -// -// return addDishesVo; -// } -// -// public Long insertBaseAndSize(String dishesName, String... sizeTypeStrArr) { -// MenuDishesBase dishesBase = new MenuDishesBase(); -// Long baseDishesId = Id.next(); -// dishesBase.setBaseDishesId(baseDishesId); -// dishesBase.setDishesName(dishesName); -// this.menuDishesBaseService.save(dishesBase); -// List dishesSizeList = Lists.newArrayList(); -// String[] var6 = sizeTypeStrArr; -// int var7 = sizeTypeStrArr.length; -// -// for(int var8 = 0; var8 < var7; ++var8) { -// String sizeTypeStr = var6[var8]; -// MenuDishesSize dishesSize = new MenuDishesSize(); -// dishesSize.setBaseDishesId(baseDishesId); -// dishesSize.setSizeId(Id.next()); -// dishesSize.setSizeName(sizeTypeStr); -// dishesSizeList.add(dishesSize); -// } -// -// this.menuDishesSizeService.saveBatch(dishesSizeList); -// return baseDishesId; -// } -// -// public void checkParam(MenuDishesV2AddDTO content) { -// MenuMetadataModel menuMetadataModel = (MenuMetadataModel)this.allocMetadataApi.queryMetadataModel(MetadataModelTypeEnum.MENU, new MenuMetadataModel()); -// String ifDifCanteenManage = menuMetadataModel.getIfDifCanteenManage(); -// if ("1".equals(ifDifCanteenManage) && ObjectUtil.isNull(content.getCanteenId())) { -// throw new LeException(I18n.getMessage("menu_canteen_null", new Object[0])); -// } else { -// Integer dishesNameExist = this.menuDishesBaseMapper.selectExistName(content.getDishesName(), content.getCanteenId()); -// if (ObjectUtil.isNotNull(dishesNameExist)) { -// throw new LeException(I18n.getMessage("menu_dishes_name_repeat", new Object[0])); -// } else { -// if (CharSequenceUtil.isNotBlank(content.getDishesNum())) { -// Integer dishesNumExist = this.menuDishesBaseMapper.selectExistNum(content.getDishesNum(), content.getCanteenId()); -// if (ObjectUtil.isNotNull(dishesNumExist)) { -// throw new LeException(I18n.getMessage("menu_dishes_num_repeat", new Object[0])); -// } -// } -// -// } -// } -// } -// -// public Long insertMenuDishes(MenuDishesV2AddDTO content, Long baseDishesId, Integer price, Double weight, String sizeJson, Integer conver) { -// List labelIdList = content.getLabelIdList(); -// List tasteIdList = content.getTasteIdList(); -// List suitIdList = content.getSuitIdList(); -// List seasonList = content.getSeason(); -// List mealtimeTypes = content.getMealtimeTypes(); -// String username = SecurityUtils.getUser().getUsername(); -// Long dishesId = Id.next(); -// MenuDishes menuDishes = new MenuDishes(); -// Integer mealType = content.getMealType(); -// List materialDTOList = content.getMaterialList(); -// if (CharSequenceUtil.contains(sizeJson, "小份")) { -// materialDTOList = content.getLittleMaterialList(); -// } -// -// List packageDishesList; -// if (MenuMealTypeEnum.DISHES.key().equals(mealType) && CollUtil.isNotEmpty(materialDTOList)) { -// packageDishesList = CopyListUtil.copyListProperties(materialDTOList, MenuMaterialDishes.class); -// this.insertMaterialDishesBatch(packageDishesList, dishesId, username); -// List nutritionEntityList = this.menuNutritionService.selectNutritionWeightList(dishesId); -// if (CollUtil.isNotEmpty(nutritionEntityList)) { -// NutritionEntity nutritionEntity = NutritionEntityUtil.countNutrition(nutritionEntityList); -// BeanUtils.copyProperties(nutritionEntity, menuDishes); -// } -// } -// -// packageDishesList = content.getPackageDishesList(); -// if (MenuMealTypeEnum.PACKAGE_MEAL.key().equals(mealType) && CollUtil.isNotEmpty(packageDishesList)) { -// List packageDishesAddList = Lists.newArrayList(); -// packageDishesList.forEach((pd) -> { -// MenuPackageDishes packageDishes = new MenuPackageDishes(); -// packageDishes.setPackageId(dishesId); -// packageDishes.setDishesId(pd.getDishesId()); -// packageDishes.setProportion(pd.getProportion()); -// packageDishes.setCrby(username); -// packageDishesAddList.add(packageDishes); -// }); -// this.menuPackageDishesMapper.insertBatch(packageDishesAddList); -// List nutritionEntityList = ((MenuDishesMapper)this.baseMapper).selectNutritionWeightList(dishesId); -// NutritionEntity nutritionEntity = NutritionEntityUtil.countNutrition(nutritionEntityList); -// log.info("计算完毕营养信息整合结果nutritionEntity : {}", nutritionEntity); -// BeanUtils.copyProperties(nutritionEntity, menuDishes); -// } -// -// if (CollUtil.isNotEmpty(labelIdList)) { -// this.insertLabelDishesBatch(labelIdList, dishesId, username); -// } -// -// if (CollUtil.isNotEmpty(tasteIdList)) { -// this.insertTasteDishesBatch(tasteIdList, dishesId, username); -// } -// -// if (CollUtil.isNotEmpty(suitIdList)) { -// this.insertSuitDishesBatch(suitIdList, dishesId, username); -// } -// -// if (CollUtil.isNotEmpty(seasonList)) { -// this.menuSeasonDishesService.insertBatch(seasonList, dishesId); -// } -// -// if (CollUtil.isNotEmpty(mealtimeTypes)) { -// this.menuMealtimeTypeDishesService.insertBatch(mealtimeTypes, dishesId); -// } -// -// BeanUtils.copyProperties(content, menuDishes); -// Integer customId = this.menuCustomDictService.getNoRepeatCustomId(0); -// menuDishes.setCustomId(customId); -// menuDishes.setDishesId(dishesId); -// menuDishes.setCrby(username); -// if (ObjectUtil.isNotNull(menuDishes.getSodium())) { -// if (menuDishes.getSodium() > NutritionConstants.SODIUM.doubleValue()) { -// if (menuDishes.getInitialScore() != null) { -// menuDishes.setInitialScore(menuDishes.getInitialScore() - NutritionConstants.SCORE_TEN); -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SEVENTY); -// } -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } -// } -// -// Long typeId = menuDishes.getTypeId(); -// if (typeId != null && typeId != -1L) { -// MenuDishesType menuDishesType = (MenuDishesType)this.menuDishesTypeMapper.selectOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishesType.class).eq(MenuDishesType::getTypeId, typeId)).eq(MenuDishesType::getDelFlag, LeConstants.COMMON_NO)); -// if (!menuDishesType.getTypeName().contains("鱼") && !menuDishesType.getTypeName().contains("半荤")) { -// if (!menuDishesType.getTypeName().contains("油脂") && !menuDishesType.getTypeName().contains("甜") && !menuDishesType.getTypeName().contains("主荤")) { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SIXTY); -// } -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SEVENTY); -// } -// } else { -// typeId = this.menuDishesTypeService.getDefaultTypeId(); -// menuDishes.setTypeId(typeId); -// } -// -// Long cookId = menuDishes.getCookId(); -// Integer initialScore; -// if (ObjectUtil.isNotNull(cookId)) { -// MenuDishesCook menuDishesCook = (MenuDishesCook)this.menuDishesCookMapper.selectOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishesCook.class).eq(MenuDishesCook::getCookId, cookId)).eq(MenuDishesCook::getDelFlag, LeConstants.COMMON_NO)); -// if (ObjectUtil.isNotNull(menuDishes.getInitialScore())) { -// initialScore = menuDishes.getInitialScore(); -// } else { -// initialScore = NutritionConstants.SCORE_EIGHTY; -// } -// -// if (menuDishesCook.getCookName().contains(MenuDishesCookEnum.SALAD.value())) { -// menuDishes.setInitialScore(initialScore + NutritionConstants.SCORE_TEN); -// } else if (!menuDishesCook.getCookName().contains(MenuDishesCookEnum.STEAM.value()) && !menuDishesCook.getCookName().contains(MenuDishesCookEnum.COOK.value()) && !menuDishesCook.getCookName().contains(MenuDishesCookEnum.STEW.value())) { -// if (!menuDishesCook.getCookName().contains(MenuDishesCookEnum.BRAISED.value()) && !menuDishesCook.getCookName().contains(MenuDishesCookEnum.DRY_STIR_FRY.value()) && !menuDishesCook.getCookName().contains(MenuDishesCookEnum.SWEET_SOUR.value())) { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } else { -// menuDishes.setInitialScore(initialScore - NutritionConstants.SCORE_TEN); -// } -// } else { -// menuDishes.setInitialScore(initialScore + NutritionConstants.SCORE_FIVE); -// } -// } -// -// menuDishes.setPinyinInitials(PinyinUtil.getFirstLetterFromChinese(menuDishes.getDishesName())); -// menuDishes.setPinyinFull(PinyinUtil.convertChineseToPinyin(menuDishes.getDishesName())); -// String sequenceNo = this.menuSequenceService.getSequenceNo(2); -// menuDishes.setDishesNum(sequenceNo); -// if (ObjectUtil.isNotNull(weight)) { -// menuDishes.setWeight(weight); -// } -// -// menuDishes.setPrice(price); -// initialScore = content.getMaterialCost(); -// if (CharSequenceUtil.contains(sizeJson, "小份")) { -// initialScore = content.getLittleMaterialCost(); -// } -// -// int grossProfit = price - initialScore; -// menuDishes.setMaterialCost(initialScore); -// menuDishes.setGrossProfit(grossProfit); -// if (price != 0) { -// BigDecimal grossProfitRate = BigDecimal.valueOf((long)grossProfit).divide(BigDecimal.valueOf((long)price), 2, RoundingMode.HALF_UP); -// menuDishes.setGrossProfitRate(grossProfitRate); -// } -// -// menuDishes.setBaseDishesId(baseDishesId); -// menuDishes.setSizeJson(sizeJson); -// menuDishes.setConvertFlag(conver); -// ((MenuDishesMapper)this.baseMapper).insert(menuDishes); -// MqUtil.sendDataChange(menuDishes, LeMqConstant.DataChangeType.ADD, LeMqConstant.Topic.DATA_CHANGE_DISHES); -// return dishesId; -// } -// -// public Long insertMenuDishes(MenuDishesV2AddDTO content, Long baseDishesId, Integer price, Double weight, String sizeJson) { -// return this.insertMenuDishes(content, baseDishesId, price, weight, sizeJson, 1); -// } -// -// @Transactional( -// rollbackFor = {Exception.class} -// ) -// public void editMenuDishesV2(MenuDishesV2EditDTO content) { -// this.checkUpdateParam(content); -// List dishesList = ((MenuDishesMapper)this.baseMapper).selectList((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getBaseDishesId, content.getDishesId())).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(content.getSalesMode()) && content.getSizeType() == 2L) { -// this.updateBaseAndSize(content.getDishesId(), content.getDishesName(), "大份", "小份"); -// JSONObject sizeTypeJsonLa = new JSONObject(); -// sizeTypeJsonLa.put("sizeType", "大份"); -// JSONObject sizeTypeJsonLi = new JSONObject(); -// sizeTypeJsonLi.put("sizeType", "小份"); -// if (dishesList.size() == 2) { -// MenuDishes tempDishes = (MenuDishes)dishesList.get(0); -// Long dishesIdLa; -// Long dishesIdLi; -// if (CharSequenceUtil.contains(tempDishes.getSizeJson(), "大份")) { -// dishesIdLa = tempDishes.getDishesId(); -// dishesIdLi = ((MenuDishes)dishesList.get(1)).getDishesId(); -// } else { -// dishesIdLi = tempDishes.getDishesId(); -// dishesIdLa = ((MenuDishes)dishesList.get(1)).getDishesId(); -// } -// -// String dishesName = content.getDishesName(); -// content.setDishesName(dishesName + "-大份"); -// this.updateMenuDishes(content, content.getLargePrice(), content.getLargeWeight(), sizeTypeJsonLa.toJSONString(), dishesIdLa, content.getConvertFlag()); -// content.setDishesName(dishesName + "-小份"); -// this.updateMenuDishes(content, content.getLittlePrice(), content.getLittleWeight(), sizeTypeJsonLi.toJSONString(), dishesIdLi, content.getLittleConvertFlag()); -// } else { -// Long dishesIdLa = ((MenuDishes)dishesList.get(0)).getDishesId(); -// String dishesName = content.getDishesName(); -// content.setDishesName(dishesName + "-大份"); -// this.updateMenuDishes(content, content.getLargePrice(), content.getLargeWeight(), sizeTypeJsonLa.toJSONString(), dishesIdLa, content.getConvertFlag()); -// MenuDishesV2AddDTO insertContent = new MenuDishesV2AddDTO(); -// BeanUtil.copyProperties(content, insertContent, new String[0]); -// insertContent.setDishesName(dishesName + "-小份"); -// this.insertMenuDishes(insertContent, content.getDishesId(), content.getLittlePrice(), content.getLittleWeight(), sizeTypeJsonLi.toJSONString(), content.getLittleConvertFlag()); -// this.menuRecipeDishesService.update((Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuRecipeDishes.class).eq(MenuRecipeDishes::getDishesId, dishesIdLa)).set(MenuRecipeDishes::getSizeType, 2L)); -// } -// } else { -// String sizeTypeStr = ""; -// Double weight = content.getWeight(); -// long sizeType = 1L; -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(content.getSalesMode())) { -// sizeTypeStr = "标准"; -// } else if (content.getUnitPrice() == 50) { -// sizeTypeStr = "50g"; -// sizeType = 4L; -// weight = 50.0; -// } else if (content.getUnitPrice() == 100) { -// sizeTypeStr = "100g"; -// sizeType = 5L; -// weight = 100.0; -// } -// -// this.updateBaseAndSize(content.getDishesId(), content.getDishesName(), sizeTypeStr); -// if (dishesList.size() == 2) { -// this.remove((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesId, ((MenuDishes)dishesList.get(1)).getDishesId())); -// this.menuRecipeDishesService.remove((Wrapper)Wrappers.lambdaQuery(MenuRecipeDishes.class).eq(MenuRecipeDishes::getDishesId, ((MenuDishes)dishesList.get(1)).getDishesId())); -// } -// -// JSONObject sizeTypeJson = new JSONObject(); -// sizeTypeJson.put("sizeType", sizeTypeStr); -// this.updateMenuDishes(content, content.getPrice(), weight, sizeTypeJson.toJSONString(), ((MenuDishes)dishesList.get(0)).getDishesId(), content.getConvertFlag()); -// this.menuRecipeDishesService.update((Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuRecipeDishes.class).eq(MenuRecipeDishes::getDishesId, ((MenuDishes)dishesList.get(0)).getDishesId())).set(MenuRecipeDishes::getSizeType, sizeType)); -// } -// -// } -// -// public void updateBaseAndSize(Long baseDishesId, String dishesName, String... sizeTypeStrArr) { -// MenuDishesBase dishesBase = new MenuDishesBase(); -// dishesBase.setBaseDishesId(baseDishesId); -// dishesBase.setDishesName(dishesName); -// this.menuDishesBaseService.updateById(dishesBase); -// this.menuDishesSizeService.remove((Wrapper)Wrappers.lambdaQuery(MenuDishesSize.class).eq(MenuDishesSize::getBaseDishesId, baseDishesId)); -// List dishesSizeList = Lists.newArrayList(); -// String[] var6 = sizeTypeStrArr; -// int var7 = sizeTypeStrArr.length; -// -// for(int var8 = 0; var8 < var7; ++var8) { -// String sizeTypeStr = var6[var8]; -// MenuDishesSize dishesSize = new MenuDishesSize(); -// dishesSize.setBaseDishesId(baseDishesId); -// dishesSize.setSizeId(Id.next()); -// dishesSize.setSizeName(sizeTypeStr); -// dishesSizeList.add(dishesSize); -// } -// -// this.menuDishesSizeService.saveBatch(dishesSizeList); -// } -// -// public void checkUpdateParam(MenuDishesV2EditDTO content) { -// MenuMetadataModel menuMetadataModel = (MenuMetadataModel)this.allocMetadataApi.queryMetadataModel(MetadataModelTypeEnum.MENU, new MenuMetadataModel()); -// String ifDifCanteenManage = menuMetadataModel.getIfDifCanteenManage(); -// if ("1".equals(ifDifCanteenManage) && ObjectUtil.isNull(content.getCanteenId())) { -// throw new LeException(I18n.getMessage("menu_canteen_null", new Object[0])); -// } else { -// Integer dishesNameExist = this.menuDishesBaseMapper.selectExistNameById(content.getDishesName(), content.getCanteenId(), content.getDishesId()); -// if (ObjectUtil.isNotNull(dishesNameExist)) { -// throw new LeException(I18n.getMessage("menu_dishes_name_repeat", new Object[0])); -// } else { -// if (CharSequenceUtil.isNotBlank(content.getDishesNum())) { -// Integer dishesNumExist = this.menuDishesBaseMapper.selectExistNumById(content.getDishesNum(), content.getCanteenId(), content.getDishesId()); -// if (ObjectUtil.isNotNull(dishesNumExist)) { -// throw new LeException(I18n.getMessage("menu_dishes_num_repeat", new Object[0])); -// } -// } -// -// } -// } -// } -// -// public void updateMenuDishes(MenuDishesV2EditDTO content, Integer price, Double weight, String sizeJson, Long dishesId, Integer convert) { -// String username = SecurityUtils.getUser().getUsername(); -// this.menuMaterialDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuMaterialDishes.class).eq(MenuMaterialDishes::getDishesId, dishesId)); -// List materialDTOList = content.getMaterialList(); -// if (CharSequenceUtil.contains(sizeJson, "小份")) { -// materialDTOList = content.getLittleMaterialList(); -// } -// -// MenuDishes menuDishes = new MenuDishes(); -// Integer mealType = content.getMealType(); -// List packageDishesList; -// List labelIdList; -// if (MenuMealTypeEnum.DISHES.key().equals(mealType) && CollUtil.isNotEmpty(materialDTOList)) { -// packageDishesList = CopyListUtil.copyListProperties(materialDTOList, MenuMaterialDishes.class); -// if (packageDishesList.size() > MenuConstant.MAX_MATERIAL_SIZE) { -// throw new LeException(I18n.getMessage("menu_label_over_size", new Object[0])); -// } -// -// this.insertMaterialDishesBatch(packageDishesList, dishesId, username); -// labelIdList = this.menuNutritionService.selectNutritionWeightList(dishesId); -// if (CollUtil.isNotEmpty(labelIdList)) { -// NutritionEntity nutritionEntity = NutritionEntityUtil.countNutrition(labelIdList); -// BeanUtils.copyProperties(nutritionEntity, menuDishes); -// } -// } -// -// packageDishesList = content.getPackageDishesList(); -// List tasteIdList; -// if (MenuMealTypeEnum.PACKAGE_MEAL.key().equals(mealType) && CollUtil.isNotEmpty(packageDishesList)) { -// this.menuPackageDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuPackageDishes.class).eq(MenuPackageDishes::getPackageId, dishesId)); -// List packageDishesAddList = Lists.newArrayList(); -// packageDishesList.forEach((pd) -> { -// MenuPackageDishes packageDishes = new MenuPackageDishes(); -// packageDishes.setPackageId(dishesId); -// packageDishes.setDishesId(pd.getDishesId()); -// packageDishes.setProportion(pd.getProportion()); -// packageDishes.setCrby(username); -// packageDishesAddList.add(packageDishes); -// }); -// this.menuPackageDishesMapper.insertBatch(packageDishesAddList); -// tasteIdList = ((MenuDishesMapper)this.baseMapper).selectNutritionWeightList(dishesId); -// NutritionEntity nutritionEntity = NutritionEntityUtil.countNutrition(tasteIdList); -// log.info("计算完毕营养信息整合结果nutritionEntity : {}", nutritionEntity); -// BeanUtils.copyProperties(nutritionEntity, menuDishes); -// } -// -// this.menuLabelDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuLabelDishes.class).eq(MenuLabelDishes::getDishesId, dishesId)); -// labelIdList = content.getLabelIdList(); -// if (CollUtil.isNotEmpty(labelIdList)) { -// this.insertLabelDishesBatch(labelIdList, dishesId, username); -// } -// -// this.menuTasteDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuTasteDishes.class).eq(MenuTasteDishes::getDishesId, dishesId)); -// tasteIdList = content.getTasteIdList(); -// if (CollUtil.isNotEmpty(tasteIdList)) { -// this.insertTasteDishesBatch(tasteIdList, dishesId, username); -// } -// -// this.menuSuitDishesMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuSuitDishes.class).eq(MenuSuitDishes::getDishesId, dishesId)); -// List suitIdList = content.getSuitIdList(); -// if (CollUtil.isNotEmpty(suitIdList)) { -// this.insertSuitDishesBatch(suitIdList, dishesId, username); -// } -// -// List season = content.getSeason(); -// List mealtimeTypes = content.getMealtimeTypes(); -// this.menuSeasonDishesService.deleteByDishesId(dishesId); -// if (CollUtil.isNotEmpty(season)) { -// this.menuSeasonDishesService.insertBatch(season, dishesId); -// } -// -// this.menuMealtimeTypeDishesService.deleteByDishesId(dishesId); -// if (CollUtil.isNotEmpty(mealtimeTypes)) { -// this.menuMealtimeTypeDishesService.insertBatch(mealtimeTypes, dishesId); -// } -// -// BeanUtils.copyProperties(content, menuDishes); -// menuDishes.setUpby(username); -// Long typeId = menuDishes.getTypeId(); -// if (typeId != null && typeId != -1L) { -// MenuDishesType menuDishesType = (MenuDishesType)this.menuDishesTypeMapper.selectOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishesType.class).eq(MenuDishesType::getTypeId, typeId)).eq(MenuDishesType::getDelFlag, LeConstants.COMMON_NO)); -// if (!menuDishesType.getTypeName().contains("鱼") && !menuDishesType.getTypeName().contains("半荤")) { -// if (!menuDishesType.getTypeName().contains("油脂") && !menuDishesType.getTypeName().contains("甜") && !menuDishesType.getTypeName().contains("主荤")) { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SIXTY); -// } -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SEVENTY); -// } -// } else { -// typeId = this.menuDishesTypeMapper.selectDefaultTypeId(MenuDishesTypeDefaultFlagEnum.DEFAULT.key()); -// menuDishes.setTypeId(typeId); -// } -// -// if (ObjectUtil.isNotNull(menuDishes.getSodium())) { -// if (menuDishes.getSodium() > NutritionConstants.SODIUM.doubleValue()) { -// if (menuDishes.getInitialScore() != null) { -// menuDishes.setInitialScore(menuDishes.getInitialScore() - NutritionConstants.SCORE_TEN); -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_SEVENTY); -// } -// } else { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } -// } -// -// Long cookId = menuDishes.getCookId(); -// Integer initialScore; -// if (ObjectUtil.isNotNull(cookId)) { -// MenuDishesCook menuDishesCook = (MenuDishesCook)this.menuDishesCookMapper.selectOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishesCook.class).eq(MenuDishesCook::getCookId, cookId)).eq(MenuDishesCook::getDelFlag, LeConstants.COMMON_NO)); -// if (ObjectUtil.isNotNull(menuDishes.getInitialScore())) { -// initialScore = menuDishes.getInitialScore(); -// } else { -// initialScore = NutritionConstants.SCORE_EIGHTY; -// } -// -// String cookName = menuDishesCook.getCookName(); -// if (cookName.contains(MenuDishesCookEnum.SALAD.value())) { -// menuDishes.setInitialScore(initialScore + NutritionConstants.SCORE_TEN); -// } else if (!cookName.contains(MenuDishesCookEnum.STEAM.value()) && !cookName.contains(MenuDishesCookEnum.COOK.value()) && !cookName.contains(MenuDishesCookEnum.STEW.value())) { -// if (!cookName.contains(MenuDishesCookEnum.BRAISED.value()) && !cookName.contains(MenuDishesCookEnum.DRY_STIR_FRY.value()) && !cookName.contains(MenuDishesCookEnum.SWEET_SOUR.value())) { -// menuDishes.setInitialScore(NutritionConstants.SCORE_EIGHTY); -// } else { -// menuDishes.setInitialScore(initialScore - NutritionConstants.SCORE_TEN); -// } -// } else { -// menuDishes.setInitialScore(initialScore + NutritionConstants.SCORE_FIVE); -// } -// } -// -// String sourceName = ((MenuDishesMapper)this.baseMapper).selectDishesNameByWrapper((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDishesId, dishesId)); -// if (StringUtils.isNotBlank(content.getDishesName()) && !content.getDishesName().equals(sourceName)) { -// MenuaiDishesNameEditDTO dishesNameEditDTO = new MenuaiDishesNameEditDTO(); -// dishesNameEditDTO.setDishesId(dishesId); -// dishesNameEditDTO.setOldDishesName(sourceName); -// dishesNameEditDTO.setNewDishesName(content.getDishesName()); -// this.menuaiServiceApi.editMenuaiDishesName(dishesNameEditDTO); -// } -// -// menuDishes.setPinyinInitials(PinyinUtil.getFirstLetterFromChinese(menuDishes.getDishesName())); -// menuDishes.setPinyinFull(PinyinUtil.convertChineseToPinyin(menuDishes.getDishesName())); -// if (ObjectUtil.isNotNull(weight)) { -// menuDishes.setWeight(weight); -// } -// -// menuDishes.setPrice(price); -// initialScore = content.getMaterialCost(); -// if (CharSequenceUtil.contains(sizeJson, "小份")) { -// initialScore = content.getLittleMaterialCost(); -// } -// -// int grossProfit = price - initialScore; -// menuDishes.setMaterialCost(initialScore); -// menuDishes.setGrossProfit(grossProfit); -// if (price != 0) { -// BigDecimal grossProfitRate = BigDecimal.valueOf((long)grossProfit).divide(BigDecimal.valueOf((long)price), 2, RoundingMode.HALF_UP); -// menuDishes.setGrossProfitRate(grossProfitRate); -// } -// -// menuDishes.setSizeJson(sizeJson); -// menuDishes.setDishesId(dishesId); -// menuDishes.setConvertFlag(convert); -// ((MenuDishesMapper)this.baseMapper).update(menuDishes, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishes.class).eq(MenuDishes::getDishesId, dishesId)).set(ObjectUtil.isNull(menuDishes.getCookId()), MenuDishes::getCookId, -1L)).set(ObjectUtil.isNull(menuDishes.getPungencyDegree()), MenuDishes::getPungencyDegree, (Object)null)).set(ObjectUtil.isNull(menuDishes.getStyleId()), MenuDishes::getStyleId, (Object)null)).set(ObjectUtil.isNull(menuDishes.getEffectId()), MenuDishes::getEffectId, (Object)null)).set(ObjectUtil.isNull(menuDishes.getGrossProfitRate()), MenuDishes::getGrossProfitRate, (Object)null)); -// String redisKey = String.format("yst:%s:recipe:%s:detail:%s", TenantContextHolder.getTenantId(), "*", "*"); -// RedisUtil.deleteByPattern(redisKey); -// MqUtil.sendDataChange(menuDishes, LeMqConstant.DataChangeType.UPDATE, LeMqConstant.Topic.DATA_CHANGE_DISHES); -// } -// -// public void updateMenuDishes(MenuDishesV2EditDTO content, Integer price, Double weight, String sizeJson, Long dishesId) { -// this.updateMenuDishes(content, price, weight, sizeJson, dishesId, 1); -// } -// -// public void removeByDishesIdV2(Long dishesId) { -// List dishesIdList = ((MenuDishesMapper)this.baseMapper).selectdishesIdList((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getBaseDishesId, dishesId)).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// if (!CollUtil.isEmpty(dishesIdList)) { -// Integer packageDishesExist = this.menuPackageDishesMapper.selectExistByWrapper((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuPackageDishes.class).in(MenuPackageDishes::getDishesId, dishesIdList)).last("limit 1")); -// Integer recipeDishesExist = this.menuRecipeDishesMapper.selectExistLeftJoinByDishesId(dishesIdList); -// if (!ObjectUtil.isNotNull(packageDishesExist) && !ObjectUtil.isNotNull(recipeDishesExist)) { -// List dishesList = this.menuDishesMapper.selectDishesIdAndNameListByWrapper((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).in(MenuDishes::getDishesId, dishesIdList)).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// this.menuDishesBaseService.removeById(dishesId); -// this.menuDishesSizeService.remove((Wrapper)Wrappers.lambdaQuery(MenuDishesSize.class).eq(MenuDishesSize::getBaseDishesId, dishesId)); -// List customIdList = ((MenuDishesMapper)this.baseMapper).selectCustomIdByWrapper((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).in(MenuDishes::getDishesId, dishesIdList)); -// if (CollUtil.isNotEmpty(customIdList)) { -// this.menuCustomDictMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuCustomDict.class).in(MenuCustomDict::getCustomId, customIdList)).set(MenuCustomDict::getIfUse, MenuCustomIfUseEnum.UNUSED.key())); -// } -// -// ((MenuDishesMapper)this.baseMapper).update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)(new UpdateWrapper()).lambda().in(MenuDishes::getDishesId, dishesIdList)).set(MenuDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())).set(MenuDishes::getCustomId, -1)); -// this.menuMaterialDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuMaterialDishes.class).in(MenuMaterialDishes::getDishesId, dishesIdList)).set(MenuMaterialDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuLabelDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuLabelDishes.class).in(MenuLabelDishes::getDishesId, dishesIdList)).set(MenuLabelDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuTasteDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuTasteDishes.class).in(MenuTasteDishes::getDishesId, dishesIdList)).set(MenuTasteDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuSuitDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuSuitDishes.class).in(MenuSuitDishes::getDishesId, dishesIdList)).set(MenuSuitDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuPackageDishesMapper.delete((Wrapper)Wrappers.lambdaUpdate(MenuPackageDishes.class).in(MenuPackageDishes::getPackageId, dishesIdList)); -// this.asyncTaskExecutor.execute(() -> { -// this.removeDishesFromAiServer(dishesIdList, dishesList); -// }); -// dishesIdList.forEach((dishesIdRe) -> { -// MqUtil.sendDataChange(dishesId, LeMqConstant.DataChangeType.REMOVE, LeMqConstant.Topic.DATA_CHANGE_DISHES); -// }); -// } else { -// throw new LeException(I18n.getMessage("menu_dishes_use_del", new Object[0])); -// } -// } -// } -// -// public void removeDishesFromAiServer(List dishesIdList, List deleteDishesList) { -// List menuaiPicturesList = this.menuaiPictureMapper.selectList((Wrapper)Wrappers.lambdaQuery(MenuaiPicture.class).in(MenuaiPicture::getDishesId, dishesIdList)); -// List contentList = (List)menuaiPicturesList.stream().map((e) -> { -// MenuaiPictureRemoveDTO dto = new MenuaiPictureRemoveDTO(); -// dto.setPictureId(e.getId()); -// dto.setPicType(e.getPictureType()); -// return dto; -// }).collect(Collectors.toList()); -// this.menuaiV4Service.removeDishesPictureBatch(contentList); -// deleteDishesList.forEach((e) -> { -// this.menuaiV4Service.removeDishesFromAi(e.getDishesId(), e.getDishesName()); -// }); -// } -// -// public List getTypeDishesList(MenuTypeDishesDTO content) { -// MgrUserAuthPO authPO = this.mgrAuthApi.getUserAuthPO(); -// return this.getTypeDishesList(content, authPO); -// } -// -// public List getTypeDishesList(MenuTypeDishesDTO content, MgrUserAuthPO authPO) { -// List resultList = ((MenuDishesMapper)this.baseMapper).selectTypeDishesList(content, authPO); -// if (CollUtil.isEmpty(resultList)) { -// return resultList; -// } else { -// List costList = ((MenuDishesMapper)this.baseMapper).selectMaterialCostList((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).in(MenuDishes::getBaseDishesId, resultList.stream().map(MenuAllTypeDishesVO::getDishesId).toList())).eq(MenuDishes::getSizeJson, "{\"sizeType\":\"小份\"}")); -// if (CollUtil.isNotEmpty(costList)) { -// Map mostMap = (Map)costList.stream().collect(Collectors.toMap(MenuDishesCostModel::getBaseDishesId, MenuDishesCostModel::getMaterialCost)); -// resultList.forEach((x) -> { -// x.setLittleMaterialCost((Integer)mostMap.get(x.getDishesId())); -// }); -// } -// -// return resultList; -// } -// } -// -// public PageVO getTypeDishesListByPage(MenuTypeDishesDTO content) { -// MgrUserAuthPO authPO = this.mgrAuthApi.getUserAuthPO(); -// PageHelper.startPage(content.getPageNum(), content.getPageSize()); -// List resultList = this.getTypeDishesList(content, authPO); -// return PageVO.of(resultList); -// } -// -// public MenuDishesByCustomIdVO getMenuDishesDetailByCustomId(MenuDishesByCustomIdDTO menuDishesByCustomIdDTO) { -// return ((MenuDishesMapper)this.baseMapper).selectMenuDishesDetailByCustomId((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getCustomId, menuDishesByCustomIdDTO.getCustomId())).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// } -// -// public Integer menuRecipeCount(Integer mealtimeType, Long dishesId, LocalDate nowDate) { -// return ((MenuDishesMapper)this.baseMapper).menuRecipeCount(mealtimeType, dishesId, nowDate); -// } -// -// public Long thirdSaveDishes(DishSyncDTO param) { -// if (!ObjectUtil.isNull(param.getDishesName()) && param.getDishesName().replace(" ", "").length() != 0) { -// param.setDishesName(param.getDishesName().replace(" ", "")); -// Long typeId = ((MenuDishesMapper)this.baseMapper).selectDefaultDishesType(MenuDishesTypeDefaultFlagEnum.DEFAULT.key()); -// MenuDishes dishes = new MenuDishes(); -// BeanUtil.copyProperties(param, dishes, new String[0]); -// String inventoryId = param.getInventoryId(); -// MenuDishes menuDishes = (MenuDishes)this.menuDishesMapper.selectOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getInventoryId, inventoryId)).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// if (ObjectUtil.isNotNull(menuDishes)) { -// String sizeTypeStr = ""; -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(param.getSalesMode())) { -// sizeTypeStr = "标准"; -// } else if (param.getUnitPrice() == 50) { -// sizeTypeStr = "50g"; -// } else if (param.getUnitPrice() == 100) { -// sizeTypeStr = "100g"; -// } -// -// this.updateBaseAndSize(menuDishes.getBaseDishesId(), param.getDishesName(), sizeTypeStr); -// JSONObject sizeTypeJson = new JSONObject(); -// sizeTypeJson.put("sizeType", sizeTypeStr); -// dishes.setSizeJson(sizeTypeJson.toJSONString()); -// this.menuDishesMapper.update(dishes, (Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getInventoryId, inventoryId)); -// dishes.setDishesId(menuDishes.getDishesId()); -// } else { -// boolean limitFlag = this.mercMerchantApi.checkCurrentMerchantLimitFlag(); -// if (limitFlag) { -// Integer customId = this.menuCustomDictMapper.selectMinCustomId(MenuCustomIfUseEnum.UNUSED.key()); -// if (ObjectUtil.isNull(customId)) { -// throw new LeException(I18n.getMessage("menu_sql_data_error", new Object[0])); -// } -// -// dishes.setCustomId(customId); -// this.menuCustomDictMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuCustomDict.class).eq(MenuCustomDict::getCustomId, customId)).eq(MenuCustomDict::getIfUse, MenuCustomIfUseEnum.UNUSED.key())).set(MenuCustomDict::getIfUse, MenuCustomIfUseEnum.IS_USED.key())); -// } else { -// dishes.setCustomId(1); -// } -// -// Long dishesId = Id.next(); -// dishes.setTypeId(typeId); -// dishes.setDishesId(dishesId); -// dishes.setPinyinInitials(cn.hutool.extra.pinyin.PinyinUtil.getFirstLetter(param.getDishesName(), "").toUpperCase()); -// dishes.setPinyinFull(cn.hutool.extra.pinyin.PinyinUtil.getPinyin(param.getDishesName(), "")); -// String sizeTypeStr = ""; -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(param.getSalesMode())) { -// sizeTypeStr = "标准"; -// } else if (param.getUnitPrice() == 50) { -// sizeTypeStr = "50g"; -// } else if (param.getUnitPrice() == 100) { -// sizeTypeStr = "100g"; -// } -// -// Long baseDishesId = this.insertBaseAndSize(param.getDishesName(), sizeTypeStr); -// JSONObject sizeTypeJson = new JSONObject(); -// sizeTypeJson.put("sizeType", sizeTypeStr); -// dishes.setBaseDishesId(baseDishesId); -// dishes.setSizeType(1L); -// dishes.setSizeJson(sizeTypeJson.toJSONString()); -// this.menuDishesMapper.insert(dishes); -// } -// -// return dishes.getDishesId(); -// } else { -// throw new LeException(I18n.getMessage("menu_dishes_name_null", new Object[0])); -// } -// } -// -// public DishSyncDTO getDishesByInventoryId(String inventoryId) { -// return (DishSyncDTO)Optional.ofNullable((MenuDishes)this.getOne((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getInventoryId, inventoryId)).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key()))).map((x) -> { -// return (DishSyncDTO)BeanUtil.copyProperties(x, DishSyncDTO.class, new String[0]); -// }).orElse((Object)null); -// } -// -// @Transactional( -// rollbackFor = {Exception.class} -// ) -// public void copyMenuDishes(MenuDishesCopyDTO content) { -// Long canteenId = content.getCanteenId(); -// List baseIdList = content.getDishesIdList(); -// AllocCanteen allocCanteen = this.allocCanteenApi.getAllocCanteen(canteenId); -// List baseDishesList = this.menuDishesMapper.selectBaseAndDetailList(baseIdList); -// List dishesIdList = (List)baseDishesList.stream().map(MenuBaseAndDishesModel::getDishesId).collect(Collectors.toList()); -// List dishesNameList = (List)baseDishesList.stream().map(MenuBaseAndDishesModel::getBaseDishesName).collect(Collectors.toList()); -// Map baseNameMap = (Map)baseDishesList.stream().collect(Collectors.toMap(MenuBaseAndDishesModel::getDishesId, MenuBaseAndDishesModel::getBaseDishesName)); -// List sourceDishesList = this.menuDishesMapper.selectList((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).in(MenuDishes::getDishesId, dishesIdList)); -// List repeatDishesList = this.menuDishesMapper.selectListByBase(dishesNameList, canteenId); -// Map repeatMap = Maps.newHashMap(); -// if (CollUtil.isNotEmpty(repeatDishesList)) { -// repeatMap = (Map)repeatDishesList.stream().collect(Collectors.toMap(MenuDishes::getDishesName, Function.identity())); -// } -// -// int repeatCount = CollUtil.isEmpty(repeatDishesList) ? 0 : repeatDishesList.size(); -// List customIdList = this.menuCustomDictMapper.selectMinCustomIdList(dishesIdList.size() - repeatCount); -// if (dishesIdList.size() != repeatCount && CollUtil.isEmpty(customIdList)) { -// throw new LeException(I18n.getMessage("menu_custom_id_over_size", new Object[0])); -// } else { -// if (CollUtil.isNotEmpty(customIdList)) { -// this.menuCustomDictMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuCustomDict.class).in(MenuCustomDict::getCustomId, customIdList)).set(MenuCustomDict::getIfUse, 1)); -// } -// -// List sourceLabelList = this.menuLabelDishesMapper.selectList((Wrapper)Wrappers.lambdaQuery(MenuLabelDishes.class).in(MenuLabelDishes::getDishesId, dishesIdList)); -// Map> labelMap = Maps.newHashMap(); -// if (CollUtil.isNotEmpty(sourceLabelList)) { -// Set dishesIdSet = (Set)sourceLabelList.stream().map(MenuLabelDishes::getDishesId).collect(Collectors.toSet()); -// dishesIdSet.forEach((d) -> { -// labelMap.put(d, sourceLabelList.stream().filter((s) -> { -// return d.equals(s.getDishesId()); -// }).toList()); -// }); -// } -// -// List sourceTasteList = this.menuTasteDishesMapper.selectList((Wrapper)Wrappers.lambdaQuery(MenuTasteDishes.class).in(MenuTasteDishes::getDishesId, dishesIdList)); -// Map> tasteMap = Maps.newHashMap(); -// if (CollUtil.isNotEmpty(sourceTasteList)) { -// Set dishesIdSet = (Set)sourceTasteList.stream().map(MenuTasteDishes::getDishesId).collect(Collectors.toSet()); -// dishesIdSet.forEach((d) -> { -// tasteMap.put(d, sourceTasteList.stream().filter((s) -> { -// return d.equals(s.getDishesId()); -// }).toList()); -// }); -// } -// -// List sourceSuitList = this.menuSuitDishesMapper.selectList((Wrapper)Wrappers.lambdaQuery(MenuSuitDishes.class).in(MenuSuitDishes::getDishesId, dishesIdList)); -// Map> suitMap = Maps.newHashMap(); -// if (CollUtil.isNotEmpty(sourceSuitList)) { -// Set dishesIdSet = (Set)sourceSuitList.stream().map(MenuSuitDishes::getDishesId).collect(Collectors.toSet()); -// dishesIdSet.forEach((d) -> { -// suitMap.put(d, sourceSuitList.stream().filter((s) -> { -// return d.equals(s.getDishesId()); -// }).toList()); -// }); -// } -// -// List sourceMaterialList = this.menuMaterialDishesMapper.selectList((Wrapper)Wrappers.lambdaQuery(MenuMaterialDishes.class).in(MenuMaterialDishes::getDishesId, dishesIdList)); -// Map> materialMap = Maps.newHashMap(); -// if (CollUtil.isNotEmpty(sourceMaterialList)) { -// Set dishesIdSet = (Set)sourceMaterialList.stream().map(MenuMaterialDishes::getDishesId).collect(Collectors.toSet()); -// dishesIdSet.forEach((d) -> { -// materialMap.put(d, sourceMaterialList.stream().filter((s) -> { -// return d.equals(s.getDishesId()); -// }).toList()); -// }); -// } -// -// List sourcePackageList = this.menuPackageDishesMapper.selectList((Wrapper)Wrappers.lambdaQuery(MenuPackageDishes.class).in(MenuPackageDishes::getPackageId, dishesIdList)); -// Map> packageMap = Maps.newHashMap(); -// if (CollUtil.isNotEmpty(sourcePackageList)) { -// Set dishesIdSet = (Set)sourcePackageList.stream().map(MenuPackageDishes::getDishesId).collect(Collectors.toSet()); -// dishesIdSet.forEach((d) -> { -// packageMap.put(d, sourcePackageList.stream().filter((s) -> { -// return d.equals(s.getPackageId()); -// }).toList()); -// }); -// } -// -// List targetLabelList = Lists.newArrayList(); -// List targetTasteList = Lists.newArrayList(); -// List targetSuitList = Lists.newArrayList(); -// List targetMaterialList = Lists.newArrayList(); -// List targetPackageList = Lists.newArrayList(); -// List dishesBaseList = Lists.newArrayList(); -// List dishesSizeList = Lists.newArrayList(); -// int index = 0; -// Set delDishesIdSet = Sets.newTreeSet(); -// Set delBaseIdSet = Sets.newTreeSet(); -// Map processedBaseIdMap = Maps.newHashMap(); -// Iterator var35 = sourceDishesList.iterator(); -// -// while(var35.hasNext()) { -// MenuDishes sourceDishes = (MenuDishes)var35.next(); -// Long sourceDishesId = sourceDishes.getDishesId(); -// MenuDishes repeatDishes = (MenuDishes)((Map)repeatMap).get(sourceDishes.getDishesName()); -// Long targetDishesId; -// Integer customId; -// if (ObjectUtil.isNotNull(repeatDishes)) { -// targetDishesId = repeatDishes.getDishesId(); -// customId = repeatDishes.getCustomId(); -// delDishesIdSet.add(repeatDishes.getDishesId()); -// delBaseIdSet.add(repeatDishes.getBaseDishesId()); -// sourceDishes.setDishesNum(repeatDishes.getDishesNum()); -// } else { -// targetDishesId = Id.next(); -// customId = (Integer)customIdList.get(index++); -// sourceDishes.setDishesNum((String)null); -// } -// -// Long baseDishesId = (Long)processedBaseIdMap.get(sourceDishes.getBaseDishesId()); -// if (ObjectUtil.isNull(baseDishesId)) { -// baseDishesId = Id.next(); -// MenuDishesBase dishesBase = new MenuDishesBase(); -// dishesBase.setBaseDishesId(baseDishesId); -// dishesBase.setDishesName((String)baseNameMap.get(sourceDishes.getDishesId())); -// dishesBaseList.add(dishesBase); -// MenuDishesSize dishesSizeLa; -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(sourceDishes.getSalesMode()) && sourceDishes.getSizeType() == 2L) { -// MenuDishesSize dishesSizeLa = new MenuDishesSize(); -// dishesSizeLa.setBaseDishesId(baseDishesId); -// dishesSizeLa.setSizeId(Id.next()); -// dishesSizeLa.setSizeName("大份"); -// dishesSizeList.add(dishesSizeLa); -// dishesSizeLa = new MenuDishesSize(); -// dishesSizeLa.setBaseDishesId(baseDishesId); -// dishesSizeLa.setSizeId(Id.next()); -// dishesSizeLa.setSizeName("小份"); -// dishesSizeList.add(dishesSizeLa); -// } else { -// String sizeTypeStr = ""; -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(sourceDishes.getSalesMode())) { -// sizeTypeStr = "标准"; -// } else if (sourceDishes.getUnitPrice() == 50) { -// sizeTypeStr = "50g"; -// } else if (sourceDishes.getUnitPrice() == 100) { -// sizeTypeStr = "100g"; -// } -// -// dishesSizeLa = new MenuDishesSize(); -// dishesSizeLa.setBaseDishesId(baseDishesId); -// dishesSizeLa.setSizeId(Id.next()); -// dishesSizeLa.setSizeName(sizeTypeStr); -// dishesSizeList.add(dishesSizeLa); -// } -// -// processedBaseIdMap.put(sourceDishes.getBaseDishesId(), baseDishesId); -// } -// -// sourceDishes.setId((Long)null); -// sourceDishes.setBaseDishesId(baseDishesId); -// sourceDishes.setCanteenId(canteenId); -// sourceDishes.setAreaId(allocCanteen.getAreaId()); -// sourceDishes.setShopstallId((Long)null); -// sourceDishes.setCrtime(LocalDateTime.now()); -// sourceDishes.setUptime(LocalDateTime.now()); -// sourceDishes.setDishesId(targetDishesId); -// sourceDishes.setCustomId(customId); -// List labelList = (List)labelMap.get(sourceDishesId); -// if (CollUtil.isNotEmpty(labelList)) { -// labelList.forEach((l) -> { -// l.setId((Long)null); -// l.setDishesId(targetDishesId); -// }); -// targetLabelList.addAll(labelList); -// } -// -// List tasteList = (List)tasteMap.get(sourceDishesId); -// if (CollUtil.isNotEmpty(tasteList)) { -// tasteList.forEach((t) -> { -// t.setId((Long)null); -// t.setDishesId(targetDishesId); -// }); -// targetTasteList.addAll(tasteList); -// } -// -// List suitList = (List)suitMap.get(sourceDishesId); -// if (CollUtil.isNotEmpty(suitList)) { -// suitList.forEach((s) -> { -// s.setId((Long)null); -// s.setDishesId(targetDishesId); -// }); -// targetSuitList.addAll(suitList); -// } -// -// List materialList = (List)materialMap.get(sourceDishesId); -// if (CollUtil.isNotEmpty(materialList)) { -// materialList.forEach((m) -> { -// m.setId((Long)null); -// m.setDishesId(targetDishesId); -// }); -// targetMaterialList.addAll(materialList); -// } -// -// List packageList = (List)packageMap.get(sourceDishesId); -// if (CollUtil.isNotEmpty(packageList)) { -// packageList.forEach((p) -> { -// p.setId((Long)null); -// p.setPackageId(targetDishesId); -// }); -// targetPackageList.addAll(packageList); -// } -// } -// -// if (CollUtil.isNotEmpty(delDishesIdSet)) { -// this.remove((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).in(MenuDishes::getDishesId, delDishesIdSet)); -// this.menuDishesBaseService.removeBatchByIds(delBaseIdSet); -// this.menuDishesSizeService.remove((Wrapper)Wrappers.lambdaQuery(MenuDishesSize.class).in(MenuDishesSize::getBaseDishesId, delBaseIdSet)); -// this.menuLabelDishesService.remove((Wrapper)Wrappers.lambdaQuery(MenuLabelDishes.class).in(MenuLabelDishes::getDishesId, delDishesIdSet)); -// this.menuTasteDishesService.remove((Wrapper)Wrappers.lambdaQuery(MenuTasteDishes.class).in(MenuTasteDishes::getDishesId, delDishesIdSet)); -// this.menuSuitDishesService.remove((Wrapper)Wrappers.lambdaQuery(MenuSuitDishes.class).in(MenuSuitDishes::getDishesId, delDishesIdSet)); -// this.menuMaterialDishesService.remove((Wrapper)Wrappers.lambdaQuery(MenuMaterialDishes.class).in(MenuMaterialDishes::getDishesId, delDishesIdSet)); -// this.menuPackageDishesService.remove((Wrapper)Wrappers.lambdaQuery(MenuPackageDishes.class).in(MenuPackageDishes::getDishesId, delDishesIdSet)); -// } -// -// ((Map)sourceDishesList.stream().collect(Collectors.groupingBy(MenuDishes::getBaseDishesId))).forEach((k, value) -> { -// Iterator var3 = value.iterator(); -// -// while(var3.hasNext()) { -// MenuDishes menuDishes = (MenuDishes)var3.next(); -// if (ObjectUtil.isEmpty(menuDishes.getDishesNum())) { -// String sequenceNo = this.menuSequenceService.getSequenceNo(2); -// menuDishes.setDishesNum(sequenceNo); -// } -// } -// -// }); -// super.saveBatch(sourceDishesList); -// this.menuDishesBaseService.saveBatch(dishesBaseList); -// this.menuDishesSizeService.saveBatch(dishesSizeList); -// if (CollUtil.isNotEmpty(targetLabelList)) { -// this.menuLabelDishesService.saveBatch(targetLabelList); -// } -// -// if (CollUtil.isNotEmpty(targetTasteList)) { -// this.menuTasteDishesService.saveBatch(targetTasteList); -// } -// -// if (CollUtil.isNotEmpty(targetSuitList)) { -// this.menuSuitDishesService.saveBatch(targetSuitList); -// } -// -// if (CollUtil.isNotEmpty(targetMaterialList)) { -// this.menuMaterialDishesService.saveBatch(targetMaterialList); -// } -// -// if (CollUtil.isNotEmpty(targetPackageList)) { -// this.menuPackageDishesService.saveBatch(targetPackageList); -// } -// -// } -// } -// -// public String getDifCanteenManage() { -// MenuMetadataModel menuMetadataModel = (MenuMetadataModel)this.allocMetadataApi.queryMetadataModel(MetadataModelTypeEnum.MENU, new MenuMetadataModel()); -// String ifDifCanteenManage = menuMetadataModel.getIfDifCanteenManage(); -// return (String)Optional.ofNullable(ifDifCanteenManage).orElse("2"); -// } -// -// public void editDifCanteenManage(MenuDifCanteenManageEditDTO content) { -// if ("1".equals(content.getIfDifCanteenManage())) { -// ((MenuDishesMapper)this.baseMapper).update((Object)null, (Wrapper)Wrappers.lambdaUpdate(MenuDishes.class).set(MenuDishes::getHideFlag, 2)); -// } else { -// ((MenuDishesMapper)this.baseMapper).update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishes.class).ne(MenuDishes::getCanteenId, content.getCanteenId())).ne(MenuDishes::getCanteenId, -1L)).set(MenuDishes::getHideFlag, 1)); -// } -// -// MenuMetadataDTO menuMetadataDTO = new MenuMetadataDTO(); -// menuMetadataDTO.setIfDifCanteenManage(content.getIfDifCanteenManage()); -// this.allocMetadataApi.saveMetadataModel(MetadataModelTypeEnum.MENU, menuMetadataDTO); -// } -// -// public Boolean newImportDishes(List menuDishesImportDTOS) { -// String dishesLockRedisKey = "yst:merchant-id:dishes:lock".replace("merchant-id", TenantContextHolder.getTenantId().toString()); -// String asyncState = (String)this.stringRedisTemplate.opsForValue().get(dishesLockRedisKey); -// if (StringUtils.isNotBlank(asyncState)) { -// throw new LeException("导入菜品进行中,不要重复操作哦 ^_^"); -// } else { -// try { -// String currentTraceId = LogUtil.getCurrentTraceId(); -// String username = SecurityUtils.getUser().getUsername(); -// this.asyncTaskExecutor.execute(() -> { -// LogUtil.putLogTraceId(currentTraceId); -// log.info("[批量导入菜品]开始导入菜品"); -// this.importDishesDTO(menuDishesImportDTOS, username); -// }); -// } catch (LeException var6) { -// throw new LeException(var6.getCode(), var6.getMessage()); -// } catch (Exception var7) { -// log.info("[批量导入菜品]系统错误:{}", var7.getMessage(), var7); -// throw new LeException("批量导入菜品发生错误"); -// } -// -// return true; -// } -// } -// -// public void importDishesDTO(List importDishesList, String username) { -// DishesImportCheckResult dishesImportCheckResult = new DishesImportCheckResult(); -// List successList = new ArrayList(); -// List errorList = new ArrayList(); -// String dishesLockRedisKey = "yst:merchant-id:dishes:lock".replace("merchant-id", TenantContextHolder.getTenantId().toString()); -// this.stringRedisTemplate.opsForValue().set(dishesLockRedisKey, "1", 20L, TimeUnit.MINUTES); -// -// try { -// ImportDishesContext importDishesContext = this.getImportDishesContext(username); -// List dishesAddList = Lists.newArrayList(); -// List dishesBaseList = Lists.newArrayList(); -// List dishesSizeList = Lists.newArrayList(); -// Iterator var11 = importDishesList.iterator(); -// -// while(var11.hasNext()) { -// MenuDishesImportDTO importDishes = (MenuDishesImportDTO)var11.next(); -// -// try { -// String sizeTypeStr; -// JSONObject sizeTypeJson; -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(importDishes.getSalesMode()) && importDishes.getSizeType() == 2L) { -// MenuDishesBase dishesBase = this.generateBaseAndSize(dishesSizeList, importDishes.getDishesName(), "大份", "小份"); -// sizeTypeStr = importDishes.getDishesName(); -// MenuDishes dishesAddLa = this.generateDishes(importDishes, importDishesContext); -// sizeTypeJson = new JSONObject(); -// sizeTypeJson.put("sizeType", "大份"); -// dishesAddLa.setBaseDishesId(dishesBase.getBaseDishesId()); -// dishesAddLa.setPrice(dishesAddLa.getLargePrice()); -// dishesAddLa.setWeight(dishesAddLa.getLargeWeight()); -// dishesAddLa.setSizeJson(sizeTypeJson.toJSONString()); -// dishesAddLa.setDishesName(sizeTypeStr + "-大份"); -// MenuDishes dishesAddLi = this.generateDishes(importDishes, importDishesContext); -// JSONObject sizeTypeJsonLi = new JSONObject(); -// sizeTypeJsonLi.put("sizeType", "小份"); -// dishesAddLi.setBaseDishesId(dishesBase.getBaseDishesId()); -// dishesAddLi.setPrice(dishesAddLi.getLittlePrice()); -// dishesAddLi.setWeight(dishesAddLi.getLittleWeight()); -// dishesAddLi.setSizeJson(sizeTypeJsonLi.toJSONString()); -// dishesAddLi.setDishesName(sizeTypeStr + "-小份"); -// dishesBaseList.add(dishesBase); -// dishesAddList.add(dishesAddLa); -// dishesAddList.add(dishesAddLi); -// } else { -// MenuDishes dishesAdd = this.generateDishes(importDishes, importDishesContext); -// sizeTypeStr = ""; -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(importDishes.getSalesMode())) { -// sizeTypeStr = "标准"; -// } else if (importDishes.getUnitPrice() == 50) { -// sizeTypeStr = "50g"; -// dishesAdd.setWeight(50.0); -// } else if (importDishes.getUnitPrice() == 100) { -// sizeTypeStr = "100g"; -// dishesAdd.setWeight(100.0); -// } -// -// MenuDishesBase dishesBase = this.generateBaseAndSize(dishesSizeList, importDishes.getDishesName(), sizeTypeStr); -// sizeTypeJson = new JSONObject(); -// sizeTypeJson.put("sizeType", sizeTypeStr); -// dishesAdd.setBaseDishesId(dishesBase.getBaseDishesId()); -// dishesAdd.setSizeJson(sizeTypeJson.toJSONString()); -// dishesBaseList.add(dishesBase); -// dishesAddList.add(dishesAdd); -// } -// -// successList.add(importDishes); -// } catch (Exception var23) { -// log.error("导入菜品异常: ", var23); -// } -// } -// -// if (CollUtil.isNotEmpty(dishesAddList)) { -// MenuDishesMapper var10001 = this.menuDishesMapper; -// Objects.requireNonNull(var10001); -// dishesAddList.forEach(var10001::insert); -// this.menuDishesBaseService.saveBatch(dishesBaseList); -// this.menuDishesSizeService.saveBatch(dishesSizeList); -// } -// -// MqUtil.sendDataChange(dishesAddList, LeMqConstant.DataChangeType.ADD, LeMqConstant.Topic.DATA_CHANGE_DISHES); -// dishesImportCheckResult.setSuccessList(successList); -// dishesImportCheckResult.setErrorList(errorList); -// String resultRedisKey = "yst:merchant-id:dishes:upgrade:result".replace("merchant-id", TenantContextHolder.getTenantId().toString()); -// RedisUtil.setString(resultRedisKey, JSONUtil.toJsonStr(dishesImportCheckResult), 60L); -// } catch (Exception var24) { -// this.stringRedisTemplate.delete(dishesLockRedisKey); -// log.error("导入异常: ", var24); -// } finally { -// this.stringRedisTemplate.delete(dishesLockRedisKey); -// } -// -// } -// -// public ImportDishesContext getImportDishesContext(String username) { -// ImportDishesContext importDishesContext = new ImportDishesContext(); -// Map materialMap = (Map)this.menuMaterialService.list((Wrapper)Wrappers.lambdaQuery(MenuMaterial.class).select(new SFunction[]{MenuMaterial::getMaterialId, MenuMaterial::getMaterialName}).eq(MenuMaterial::getDelFlag, DelFlagEnum.DEL_FALSE.key())).stream().collect(Collectors.toMap(MenuMaterial::getMaterialName, MenuMaterial::getMaterialId, (x, y) -> { -// return x; -// })); -// Long defaultTypeId = this.menuDishesTypeService.getDefaultTypeId(); -// Map areaMap = (Map)this.allocAreaService.list((Wrapper)Wrappers.lambdaQuery(AllocArea.class).eq(AllocArea::getIfDel, DelFlagEnum.DEL_FALSE.key())).stream().collect(Collectors.toMap(AllocArea::getAreaName, Function.identity(), (k1, k2) -> { -// return k1; -// })); -// Map canteenMap = (Map)this.allocCanteenApi.listAllCanteen((Boolean)null).stream().collect(Collectors.toMap(AllocCanteen::getCanteenName, Function.identity())); -// Map stallMap = (Map)this.allocStallService.list((Wrapper)Wrappers.lambdaQuery(AllocStall.class).eq(AllocStall::getIfDel, DelFlagEnum.DEL_FALSE.key())).stream().collect(Collectors.toMap(AllocStall::getStallName, Function.identity(), (k1, k2) -> { -// return k1; -// })); -// Map typeMap = (Map)this.menuDishesTypeMapper.selectAllListByWrapper((Wrapper)Wrappers.lambdaQuery(MenuDishesType.class).eq(MenuDishesType::getDelFlag, DelFlagEnum.DEL_FALSE.key())).stream().collect(Collectors.toMap(MenuDishesTypeAllVO::getTypeName, MenuDishesTypeAllVO::getTypeId)); -// Map dishesCookMap = (Map)this.menuDishesCookService.list((Wrapper)Wrappers.lambdaQuery(MenuDishesCook.class).select(new SFunction[]{MenuDishesCook::getCookId, MenuDishesCook::getCookName}).eq(MenuDishesCook::getDelFlag, DelFlagEnum.DEL_FALSE.key())).stream().collect(Collectors.toMap(MenuDishesCook::getCookName, MenuDishesCook::getCookId, (k1, k2) -> { -// return k1; -// })); -// importDishesContext.setAllocAreaMap(areaMap); -// importDishesContext.setAllocStallMap(stallMap); -// importDishesContext.setAllocCanteenMap(canteenMap); -// importDishesContext.setTypeMap(typeMap); -// importDishesContext.setMaterialMap(materialMap); -// importDishesContext.setDefaultTypeId(defaultTypeId); -// importDishesContext.setUsername(username); -// importDishesContext.setDishesCookMap(dishesCookMap); -// return importDishesContext; -// } -// -// public MenuDishesBase generateBaseAndSize(List dishesSizeList, String dishesName, String... sizeTypeStrArr) { -// MenuDishesBase dishesBase = new MenuDishesBase(); -// Long baseDishesId = Id.next(); -// dishesBase.setBaseDishesId(baseDishesId); -// dishesBase.setDishesName(dishesName); -// String[] var6 = sizeTypeStrArr; -// int var7 = sizeTypeStrArr.length; -// -// for(int var8 = 0; var8 < var7; ++var8) { -// String sizeTypeStr = var6[var8]; -// MenuDishesSize dishesSize = new MenuDishesSize(); -// dishesSize.setBaseDishesId(baseDishesId); -// dishesSize.setSizeId(Id.next()); -// dishesSize.setSizeName(sizeTypeStr); -// dishesSizeList.add(dishesSize); -// } -// -// return dishesBase; -// } -// -// public MenuDishes generateDishes(MenuDishesImportDTO importDishes, ImportDishesContext importDishesContext) { -// MenuDishes dishesAdd = new MenuDishes(); -// Map typeMap = importDishesContext.getTypeMap(); -// Map materialMap = importDishesContext.getMaterialMap(); -// String username = importDishesContext.getUsername(); -// Long defaultTypeId = importDishesContext.getDefaultTypeId(); -// Map dishesCookMap = importDishesContext.getDishesCookMap(); -// long dishesId = Id.next(); -// dishesAdd.setDishesId(dishesId); -// dishesAdd.setDishesName(importDishes.getDishesName()); -// String sequenceNo = this.menuSequenceService.getSequenceNo(2); -// dishesAdd.setDishesNum(sequenceNo); -// dishesAdd.setPrice(importDishes.getPrice().multiply(new BigDecimal("100")).intValue()); -// dishesAdd.setSalesMode(importDishes.getSalesMode()); -// dishesAdd.setCookId((Long)dishesCookMap.get(importDishes.getCookName())); -// dishesAdd.setCustomId(this.menuCustomDictService.getNoRepeatCustomId(0)); -// dishesAdd.setTypeId((Long)Optional.ofNullable((Long)typeMap.get(importDishes.getDishesTypeName())).orElse(defaultTypeId)); -// dishesAdd.setPinyinInitials(PinyinUtil.getFirstLetterFromChinese(importDishes.getDishesName())); -// dishesAdd.setPinyinFull(PinyinUtil.convertChineseToPinyin(importDishes.getDishesName())); -// Integer unitPrice = (Integer)Optional.ofNullable(importDishes.getUnitPrice()).orElse(100); -// dishesAdd.setUnitPrice(unitPrice); -// this.setAllocData(importDishes, dishesAdd, importDishesContext); -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(importDishes.getSalesMode())) { -// Long sizeType = (Long)Optional.ofNullable(importDishes.getSizeType()).orElse(1L); -// if (sizeType == 2L) { -// dishesAdd.setLargePrice(importDishes.getLargePrice().multiply(new BigDecimal("100")).intValue()); -// dishesAdd.setLittlePrice(importDishes.getLittlePrice().multiply(new BigDecimal("100")).intValue()); -// dishesAdd.setLargeWeight(importDishes.getLargeWeight()); -// dishesAdd.setLittleWeight(importDishes.getLittleWeight()); -// } -// -// dishesAdd.setSizeType(sizeType); -// } -// -// String menuMaterialNames = importDishes.getMenuMaterialNames(); -// Double importDishesWeight = importDishes.getWeight(); -// Double totalWeight = 0.0; -// if (CharSequenceUtil.isNotBlank(menuMaterialNames)) { -// ArrayList menuMaterialDishesList = Lists.newArrayList(); -// String[] menuMaterials = menuMaterialNames.split(";"); -// String[] var18 = menuMaterials; -// int var19 = menuMaterials.length; -// -// for(int var20 = 0; var20 < var19; ++var20) { -// String menuMaterial = var18[var20]; -// String[] materialSplit = menuMaterial.split("&"); -// String materialName = materialSplit[0]; -// String materialType = materialSplit[1]; -// String materialWeight = materialSplit[2]; -// BigDecimal weight = new BigDecimal(materialWeight); -// Long materialId = (Long)materialMap.get(materialName); -// MenuMaterialDishes menuMaterialDishes = new MenuMaterialDishes(); -// menuMaterialDishes.setMaterialType(Integer.valueOf(materialType)); -// menuMaterialDishes.setMaterialId(materialId); -// menuMaterialDishes.setWeight(Double.valueOf(materialWeight)); -// menuMaterialDishes.setDishesId(dishesId); -// menuMaterialDishes.setCrby(username); -// menuMaterialDishesList.add(menuMaterialDishes); -// totalWeight = totalWeight + weight.doubleValue(); -// } -// -// this.menuMaterialDishesMapper.insertBatch(menuMaterialDishesList); -// List nutritionEntityList = this.menuNutritionService.selectNutritionWeightList(dishesId); -// if (CollUtil.isNotEmpty(nutritionEntityList)) { -// NutritionEntity nutritionEntity = NutritionEntityUtil.countNutrition(nutritionEntityList); -// BeanUtils.copyProperties(nutritionEntity, dishesAdd); -// } -// } -// -// if (ObjectUtil.isNotNull(importDishesWeight) && MenuSalesTypeEnum.PORTION_ON.key().equals(importDishes.getSalesMode())) { -// totalWeight = importDishesWeight; -// } -// -// dishesAdd.setWeight(totalWeight); -// return dishesAdd; -// } -// -// public void setAllocData(MenuDishesImportDTO importDishes, MenuDishes dishesAdd, ImportDishesContext importDishesContext) { -// Long stallId = -1L; -// Long canteenId = -1L; -// Long areaId = -1L; -// Map stallMap = importDishesContext.getStallMap(); -// Map canteenStallMap = importDishesContext.getCanteenStallMap(); -// Map areaCanteenMap = importDishesContext.getAreaCanteenMap(); -// Map canteenMap = importDishesContext.getCanteenMap(); -// Map allocAreaMap = importDishesContext.getAllocAreaMap(); -// if (ObjectUtil.isNotEmpty(importDishes.getStallName())) { -// stallId = (Long)stallMap.get(importDishes.getStallName()); -// canteenId = (Long)canteenStallMap.get(stallId); -// areaId = (Long)areaCanteenMap.get(canteenId); -// } else if (ObjectUtil.isNotEmpty(importDishes.getCanteenName())) { -// canteenId = (Long)canteenMap.get(importDishes.getCanteenName()); -// areaId = (Long)areaCanteenMap.get(canteenId); -// } else if (ObjectUtil.isNotEmpty(importDishes.getAreaName())) { -// areaId = ((AllocArea)allocAreaMap.get(importDishes.getAreaName())).getAreaId(); -// } -// -// dishesAdd.setCanteenId(canteenId); -// dishesAdd.setAreaId(areaId); -// dishesAdd.setShopstallId(stallId); -// } -// -// public MenuDishesBase generateBaseDishes(List dishesSizeList, String dishesName, String... sizeTypeStrArr) { -// MenuDishesBase dishesBase = new MenuDishesBase(); -// Long baseDishesId = Id.next(); -// dishesBase.setBaseDishesId(baseDishesId); -// dishesBase.setDishesName(dishesName); -// String[] var6 = sizeTypeStrArr; -// int var7 = sizeTypeStrArr.length; -// -// for(int var8 = 0; var8 < var7; ++var8) { -// String sizeTypeStr = var6[var8]; -// MenuDishesSize dishesSize = new MenuDishesSize(); -// dishesSize.setBaseDishesId(baseDishesId); -// dishesSize.setSizeId(Id.next()); -// dishesSize.setSizeName(sizeTypeStr); -// dishesSizeList.add(dishesSize); -// } -// -// return dishesBase; -// } -// -// public DishesImportCheckResult importDishesCheck(MultipartFile excel) { -// List menuDishesImportDTOS = null; -// DishesImportCheckResult dishesImportCheckResult = new DishesImportCheckResult(); -// -// try { -// menuDishesImportDTOS = EasyExcelUtil.readSingleExcel(excel, new MenuDishesImportDTO(), 1); -// } catch (Exception var42) { -// log.info("导入新增菜品错误", var42); -// throw new LeException("导入新增菜品错误"); -// } -// -// log.info("导入新增菜品检验->数据集合{}", menuDishesImportDTOS.size()); -// if (CollectionUtils.isEmpty(menuDishesImportDTOS)) { -// throw new LeException("导入新增菜品为空"); -// } else { -// List sqlDishesNameList = this.menuDishesMapper.selectDishesNameAndCanteenName(); -// ImportDishesContext importDishesContext = this.getImportDishesContext((String)null); -// Map areaMap = importDishesContext.getAreaMap(); -// Map dishesCookMap = importDishesContext.getDishesCookMap(); -// Map typeMap = importDishesContext.getTypeMap(); -// Map allocStallMap = importDishesContext.getAllocStallMap(); -// Map allocCanteenMap = importDishesContext.getAllocCanteenMap(); -// Map allocAreaIdMap = importDishesContext.getAllocAreaIdMap(); -// Map allocCanteenIdMap = importDishesContext.getAllocCanteenIdMap(); -// Map materialMap = importDishesContext.getMaterialMap(); -// List salesModeKeyList = (List)Arrays.stream(MenuSalesTypeEnum.values()).map(MenuSalesTypeEnum::key).collect(Collectors.toList()); -// List menuMaterialTypeList = (List)Arrays.stream(MenuMaterialTypeEnum.values()).map(MenuMaterialTypeEnum::key).map(Object::toString).collect(Collectors.toList()); -// List dishesNameList = Lists.newArrayList(); -// List successList = new ArrayList(); -// List errorList = new ArrayList(); -// Iterator var19 = menuDishesImportDTOS.iterator(); -// -// while(var19.hasNext()) { -// MenuDishesImportDTO data = (MenuDishesImportDTO)var19.next(); -// -// try { -// BigDecimal price = data.getPrice(); -// if (BigDecimal.ZERO.compareTo(price) > 0) { -// data.setFailReason("菜品价格为负数"); -// errorList.add(data); -// } else { -// Integer salesMode = data.getSalesMode(); -// if (!salesModeKeyList.contains(salesMode)) { -// data.setFailReason("计价方式只能填写1或者2"); -// errorList.add(data); -// } else { -// String dishesTypeName = data.getDishesTypeName(); -// if (CharSequenceUtil.isNotBlank(dishesTypeName) && typeMap.get(dishesTypeName) == null) { -// data.setFailReason(dishesTypeName + "菜品类别不存在"); -// errorList.add(data); -// } else { -// Long notNormSizeType = 2L; -// if (MenuSalesTypeEnum.PORTION_ON.key().equals(salesMode) && notNormSizeType.equals(data.getSizeType())) { -// BigDecimal largePrice = data.getLargePrice(); -// BigDecimal littlePrice = data.getLittlePrice(); -// Double largeWeight = data.getLargeWeight(); -// Double littleWeight = data.getLittleWeight(); -// if (ObjectUtil.hasNull(new Object[]{largePrice, littlePrice, largeWeight, littleWeight})) { -// data.setFailReason("大小份菜品需要录入大份单价、小份单价、大份份量、小份份量"); -// errorList.add(data); -// continue; -// } -// } -// -// String dishesName = data.getDishesName(); -// String canteenName = data.getCanteenName(); -// String stallName = data.getStallName(); -// String areaName = data.getAreaName(); -// String itemDishesName = (String)Stream.of(data.getDishesName(), areaName, canteenName, stallName).map((x) -> { -// return CharSequenceUtil.isBlank(x) ? "*" : x; -// }).collect(Collectors.joining("-")); -// if (CharSequenceUtil.isBlank(dishesName)) { -// data.setFailReason("菜品名称为空"); -// errorList.add(data); -// } else if (dishesNameList.contains(itemDishesName)) { -// data.setFailReason("菜品名称重复"); -// errorList.add(data); -// } else if (CollUtil.isNotEmpty(sqlDishesNameList) && sqlDishesNameList.contains(itemDishesName)) { -// data.setFailReason("菜品名称数据库已存在"); -// errorList.add(data); -// } else { -// String menuMaterialNames = data.getMenuMaterialNames(); -// BigDecimal totalWeight = BigDecimal.ZERO; -// if (CharSequenceUtil.isNotBlank(menuMaterialNames)) { -// String[] materialList = menuMaterialNames.replace(";", ";").split(";"); -// String[] var33 = materialList; -// int var34 = materialList.length; -// -// for(int var35 = 0; var35 < var34; ++var35) { -// String material = var33[var35]; -// String[] materialSplit = material.split("&"); -// if (materialSplit.length != 3) { -// data.setFailReason(material + "原料格式不正确"); -// errorList.add(data); -// break; -// } -// -// String materialName = materialSplit[0]; -// String materialType = materialSplit[1]; -// String materialWeight = materialSplit[2]; -// if (materialMap.get(materialName) == null) { -// data.setFailReason(materialName + "原料不存在"); -// errorList.add(data); -// break; -// } -// -// if (!menuMaterialTypeList.contains(materialType)) { -// data.setFailReason(materialType + "原料类型填写错误"); -// errorList.add(data); -// break; -// } -// -// if (!NumberUtil.isNumber(materialWeight)) { -// data.setFailReason(materialWeight + "原料重量不是数字"); -// errorList.add(data); -// break; -// } -// -// BigDecimal weight = new BigDecimal(materialWeight); -// totalWeight = totalWeight.add(weight); -// if (BigDecimal.ZERO.compareTo(weight) > 0) { -// data.setFailReason(materialWeight + "原料重量为负数"); -// errorList.add(data); -// } -// } -// -// if (ObjectUtil.isNotEmpty(data.getFailReason())) { -// continue; -// } -// } -// -// if (ObjectUtil.isNotEmpty(data.getCookName()) && dishesCookMap.get(data.getCookName()) == null) { -// data.setFailReason(data.getCookName() + "灶类不存在!"); -// errorList.add(data); -// } else if (ObjectUtil.isNotNull(data.getUnitPrice()) && data.getUnitPrice() != 50 && data.getUnitPrice() != 100) { -// data.setFailReason("称重单位仅支持输入50或者100"); -// errorList.add(data); -// } else { -// Long areaId; -// if (ObjectUtil.isNotEmpty(stallName)) { -// AllocStall allocStall = (AllocStall)allocStallMap.get(stallName); -// if (allocStall == null) { -// data.setFailReason("档口名称不存在"); -// errorList.add(data); -// continue; -// } -// -// if (ObjectUtil.isEmpty(canteenName)) { -// data.setFailReason("食堂名称不能为空"); -// errorList.add(data); -// continue; -// } -// -// areaId = allocStall.getCanteenId(); -// AllocCanteen allocCanteen = (AllocCanteen)allocCanteenIdMap.get(areaId); -// if (!allocCanteen.getCanteenName().equals(canteenName)) { -// data.setFailReason("食堂:" + canteenName + "填写错误"); -// errorList.add(data); -// continue; -// } -// } -// -// if (ObjectUtil.isNotEmpty(canteenName)) { -// AllocCanteen allocCanteen = (AllocCanteen)allocCanteenMap.get(canteenName); -// if (allocCanteen == null) { -// data.setFailReason("食堂名称不存在"); -// errorList.add(data); -// continue; -// } -// -// if (ObjectUtil.isEmpty(areaName)) { -// data.setFailReason("区域名称不能为空"); -// errorList.add(data); -// continue; -// } -// -// areaId = allocCanteen.getAreaId(); -// AllocArea allocArea = (AllocArea)allocAreaIdMap.get(areaId); -// if (!allocArea.getAreaName().equals(areaName)) { -// data.setFailReason("区域:" + allocArea.getAreaName() + "填写错误"); -// errorList.add(data); -// continue; -// } -// } -// -// if (ObjectUtil.isNotEmpty(areaName) && !areaMap.containsKey(areaName)) { -// data.setFailReason("区域名称不存在"); -// errorList.add(data); -// } else { -// dishesNameList.add(itemDishesName); -// successList.add(data); -// } -// } -// } -// } -// } -// } -// } catch (Exception var43) { -// data.setFailReason(var43.getMessage()); -// errorList.add(data); -// } -// } -// -// dishesImportCheckResult.setErrorList(errorList); -// dishesImportCheckResult.setSuccessList(successList); -// return dishesImportCheckResult; -// } -// } -// -// public Integer getDishesMaterialCost(List content) { -// List priceList = this.drpServiceApi.listDishesMaterialCost(content.stream().map(MenuMaterialCostDTO::getMaterialId).toList()); -// log.info("获取到的原料单价详情priceList: {}", JSON.toJSONString(priceList)); -// if (CollUtil.isEmpty(priceList)) { -// return 0; -// } else { -// Map priceMap = (Map)priceList.stream().collect(Collectors.toMap(DishesMaterialCostModel::getMaterialId, DishesMaterialCostModel::getCostPrice)); -// BigDecimal result = BigDecimal.ZERO; -// -// BigDecimal materialPrice; -// for(Iterator var5 = content.iterator(); var5.hasNext(); result = result.add(materialPrice)) { -// MenuMaterialCostDTO material = (MenuMaterialCostDTO)var5.next(); -// BigDecimal unitPrice = (BigDecimal)Optional.ofNullable((BigDecimal)priceMap.get(material.getMaterialId())).orElse(BigDecimal.ZERO); -// materialPrice = material.getWeight().multiply(unitPrice); -// } -// -// return result.setScale(0, RoundingMode.HALF_UP).intValue(); -// } -// } -// -// @Transactional -// public void updateDishesCostZero(List dishesList) { -// List updateDishesList = new ArrayList(); -// dishesList.forEach((dishes) -> { -// MenuDishes updateDishes = new MenuDishes(); -// updateDishes.setId(dishes.getId()); -// updateDishes.setMaterialCost(0); -// updateDishes.setGrossProfit(dishes.getPrice()); -// updateDishes.setGrossProfitRate(BigDecimal.ONE); -// updateDishesList.add(updateDishes); -// }); -// super.updateBatchById(updateDishesList); -// } -// -// @Transactional -// public void autoUpdateDishesMaterialCost() { -// List dishesList = this.list((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// if (!CollUtil.isEmpty(dishesList)) { -// List dishesIdList = (List)dishesList.stream().map(MenuDishes::getDishesId).collect(Collectors.toList()); -// List materialDishesList = this.menuMaterialDishesService.list((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuMaterialDishes.class).eq(MenuMaterialDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())).in(MenuMaterialDishes::getDishesId, dishesIdList)); -// if (CollUtil.isEmpty(materialDishesList)) { -// this.updateDishesCostZero(dishesList); -// } else { -// List materialIdList = (List)materialDishesList.stream().map(MenuMaterialDishes::getMaterialId).collect(Collectors.toList()); -// List priceList = this.drpServiceApi.listDishesMaterialCost(materialIdList); -// log.info("获取到的原料单价详情priceList: {}", JSON.toJSONString(priceList)); -// if (CollUtil.isEmpty(materialIdList)) { -// this.updateDishesCostZero(dishesList); -// } else { -// Map> materialDishesMap = (Map)materialDishesList.stream().collect(Collectors.groupingBy(MenuMaterialDishes::getDishesId)); -// Map priceMap = (Map)priceList.stream().collect(Collectors.toMap(DishesMaterialCostModel::getMaterialId, DishesMaterialCostModel::getCostPrice)); -// List updateList = new ArrayList(); -// -// MenuDishes updateDishes; -// for(Iterator var9 = dishesList.iterator(); var9.hasNext(); updateList.add(updateDishes)) { -// MenuDishes dishes = (MenuDishes)var9.next(); -// List materialList = (List)materialDishesMap.get(dishes.getDishesId()); -// BigDecimal materialCost = BigDecimal.ZERO; -// BigDecimal materialPrice; -// if (CollUtil.isNotEmpty(materialList)) { -// for(Iterator var13 = materialList.iterator(); var13.hasNext(); materialCost = materialCost.add(materialPrice)) { -// MenuMaterialDishes material = (MenuMaterialDishes)var13.next(); -// BigDecimal unitPrice = (BigDecimal)Optional.ofNullable((BigDecimal)priceMap.get(material.getMaterialId())).orElse(BigDecimal.ZERO); -// materialPrice = BigDecimal.valueOf(material.getWeight()).multiply(unitPrice).setScale(0, RoundingMode.HALF_UP); -// } -// } -// -// BigDecimal price = BigDecimal.valueOf((long)(Integer)Optional.ofNullable(dishes.getPrice()).orElse(0)); -// BigDecimal grossProfit = price.subtract(materialCost); -// updateDishes = new MenuDishes(); -// updateDishes.setId(dishes.getId()); -// updateDishes.setMaterialCost(materialCost.intValue()); -// updateDishes.setGrossProfit(grossProfit.intValue()); -// if (!BigDecimal.ZERO.equals(price)) { -// materialPrice = grossProfit.divide(price, 2, RoundingMode.HALF_UP); -// updateDishes.setGrossProfitRate(materialPrice); -// } -// } -// -// super.updateBatchById(updateList); -// List collect = (List)updateList.stream().filter((x) -> { -// return ObjectUtil.isNull(x.getGrossProfitRate()); -// }).collect(Collectors.toList()); -// if (CollUtil.isNotEmpty(collect)) { -// collect.forEach((c) -> { -// this.update((Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishes.class).eq(MenuDishes::getId, c.getId())).set(MenuDishes::getGrossProfitRate, (Object)null)); -// }); -// } -// -// } -// } -// } -// } -// -// public List exportMenuDishes(MenuDishesExportDTO content) { -// MenuMetadataModel menuMetadataModel = (MenuMetadataModel)this.allocMetadataApi.queryMetadataModel(MetadataModelTypeEnum.MENU, new MenuMetadataModel()); -// String ifDifCanteenManage = menuMetadataModel.getIfDifCanteenManage(); -// MgrUserAuthPO authPO = this.mgrAuthApi.getUserAuthPO(); -// PageHelper.startPage(content); -// return ((MenuDishesMapper)this.baseMapper).selectDishesExportList(content, "1".equals(ifDifCanteenManage), authPO); -// } -// -// public List nutritionGetDishes(NutritionGetDishesDto nutritionGetDishesDto) { -// List dishesIds = ((MenuDishesMapper)this.baseMapper).nutritionGetDishes(nutritionGetDishesDto); -// if (ObjectUtil.isEmpty(dishesIds)) { -// return new ArrayList(); -// } else { -// LambdaQueryWrapper wrapper = (LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).in(MenuDishes::getDishesId, dishesIds); -// NutritionEnum nutritionEnum = (NutritionEnum)Optional.ofNullable(nutritionGetDishesDto.getNutritionName()).map(NutritionEnum::getByColum).orElse((Object)null); -// if (nutritionEnum != null) { -// if (ObjectUtil.equal(nutritionGetDishesDto.getDesc(), "desc")) { -// wrapper.orderByDesc(nutritionEnum.getFunction()); -// } else { -// wrapper.orderByAsc(nutritionEnum.getFunction()); -// } -// } -// -// List menuDishes = ((MenuDishesMapper)this.baseMapper).selectList(wrapper); -// return BeanUtil.copyToList(menuDishes, NutritionGetDishesVo.class); -// } -// } -// -// public Map> selectDishesLabelByDishesIds(List dishesIds) { -// List dishesLabelDtos = ((MenuDishesMapper)this.baseMapper).selectDishesLabelByDishesIds(dishesIds); -// return (Map)dishesLabelDtos.stream().collect(Collectors.groupingBy(DishesLabelDto::getDishesId, Collectors.mapping(DishesLabelDto::getName, Collectors.toList()))); -// } -// -// public Map> selectMaterialByTypeAndDishesIds(List dishesIds) { -// List dishesLabelDtos = ((MenuDishesMapper)this.baseMapper).selectMaterialByTypeAndDishesIds(dishesIds); -// return (Map)dishesLabelDtos.stream().collect(Collectors.groupingBy((x) -> { -// Long var10000 = x.getDishesId(); -// return "" + var10000 + "_" + x.getMaterialType(); -// }, Collectors.mapping(DishesLabelDto::getName, Collectors.toList()))); -// } + @Autowired + @Lazy + private MenuCollectionDishesMapper menuCollectionDishesMapper; + @Autowired + @Lazy + private MenuMaterialDishesMapper menuMaterialDishesMapper; + @Autowired + @Lazy + private MenuPackageDishesMapper menuPackageDishesMapper; - @Override - public NutritionEntity getNutrientInfo(Map dishesQuantityMap) { - LogUtil.info("查询营养信息", dishesQuantityMap); - if (CollUtil.isNotEmpty(dishesQuantityMap)) { - List dishesIdList = ListUtil.toList(dishesQuantityMap.keySet()); - List menuDishesList = this.getMenuDishesList(dishesIdList); - if (CollUtil.isNotEmpty(menuDishesList)) { - List nutritionEntityList = (List)menuDishesList.stream().map((item) -> { - Double weight = (Double)dishesQuantityMap.get(item.getDishesId()); - NutritionEntity nutritionEntity = (NutritionEntity) BeanUtil.copyProperties(item, NutritionEntity.class, new String[0]); - nutritionEntity.setWeight(weight); - nutritionEntity.setBaseWeight(item.getWeight()); - return nutritionEntity; - }).collect(Collectors.toList()); - return NutritionEntityUtil.countNutrition(nutritionEntityList); + + public AppletDishesDetailVO getDishesDetailByDishesId(String content, Long custId) { + AppletDishesDetailDTO dishesDetailDTO = (AppletDishesDetailDTO)JSON.parseObject(content, AppletDishesDetailDTO.class); + dishesDetailDTO.setDelFlag(DelFlagEnum.DEL_FALSE.key()); + Long baseDishesId = dishesDetailDTO.getBaseDishesId(); + if (!ObjectUtil.isNull(custId) && custId != -1L) { + AppletDishesDetailVO appletDishesDetailVO = ((MenuDishesMapper)this.baseMapper).selectDishesDetailByDishesId(dishesDetailDTO); + Long countDishes = this.menuCollectionDishesMapper.selectCount((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuCollectionDishes.class).eq(MenuCollectionDishes::getCustId, custId)).eq(MenuCollectionDishes::getDishesId, baseDishesId)); + if (ObjectUtil.isNotNull(countDishes) && countDishes > 0L) { + appletDishesDetailVO.setIsFavorites(1); + } else { + appletDishesDetailVO.setIsFavorites(2); } + + Long dishesId = ((AppletDishesSizeV2VO)appletDishesDetailVO.getDishesDetailList().get(0)).getDishesId(); + List materialList; + if (appletDishesDetailVO.getMealType() == 1) { + materialList = this.menuMaterialDishesMapper.getMenuMaterialById(dishesId); + appletDishesDetailVO.setMaterialList(materialList); + } else { + materialList = this.menuPackageDishesMapper.selectDishesName(dishesId); + appletDishesDetailVO.setPackageDishesList(materialList); + } + + return appletDishesDetailVO; + } else { + throw new ServiceException(I18n.getMessage("menu_no_cust_info", new Object[0])); } - - return new NutritionEntity(); } - - public List getMenuDishesList(List dishesIdList) { - return this.list((Wrapper)((LambdaQueryWrapper) Wrappers.lambdaQuery(MenuDishes.class) - .in(MenuDishes::getDishesId, dishesIdList)).eq(MenuDishes::getDelFlag, LeConstants.COMMON_NO)); - } -// -// public void updateDishesNutrition(List materialIds) { -// List menuUpdateDishesModels = this.menuMaterialDishesService.selectDishesList(materialIds); -// this.updateNutrition(menuUpdateDishesModels); -// } -// -// public void updateNutrition(List menuUpdateDishesModels) { -// this.asyncTaskExecutor.execute(() -> { -// if (!CollUtil.isEmpty(menuUpdateDishesModels)) { -// Map dishesMap = (Map)menuUpdateDishesModels.stream().collect(Collectors.toMap(MenuUpdateDishesModel::getId, MenuUpdateDishesModel::getDishesId)); -// List updateDishesList = new ArrayList(); -// dishesMap.forEach((id, dishesId) -> { -// List nutritionEntityList = this.menuNutritionService.selectNutritionWeightList(dishesId); -// NutritionEntity nutritionEntity = NutritionEntityUtil.countNutrition(nutritionEntityList); -// log.info("计算完毕营养信息整合结果nutritionEntity : {}", nutritionEntity); -// MenuDishes dishes = new MenuDishes(); -// BeanUtils.copyProperties(nutritionEntity, dishes); -// dishes.setId(id); -// dishes.setWeight((Double)null); -// updateDishesList.add(dishes); -// }); -// super.updateBatchById(updateDishesList); -// } -// }); -// } -// -// public List getByNames(Set dishesNames) { -// return this.list((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())).in(MenuDishes::getDishesName, dishesNames)); -// } -// -// @Transactional( -// rollbackFor = {Exception.class} -// ) -// public void asyncMenuDishesInit() { -// List dataTypeNameList = ((MenuDishesMapper)this.baseMapper).selectDishesTypeNameList(); -// if (CollUtil.isEmpty(dataTypeNameList)) { -// throw new LeException(I18n.getMessage("menu_base_date_null", new Object[0])); -// } else { -// List nowTypeNameList = this.menuDishesTypeMapper.selectDishesTypeNameList(); -// List insertTypeNameList; -// if (CollUtil.isEmpty(nowTypeNameList)) { -// insertTypeNameList = dataTypeNameList; -// } else { -// insertTypeNameList = (List)dataTypeNameList.stream().filter((t) -> { -// return !nowTypeNameList.contains(t); -// }).collect(Collectors.toList()); -// } -// -// if (CollUtil.isNotEmpty(insertTypeNameList)) { -// List insertDishesTypeList = Lists.newArrayList(); -// insertTypeNameList.forEach((i) -> { -// MenuDishesType dishesType = new MenuDishesType(); -// dishesType.setTypeId(Id.next()); -// dishesType.setTypeName(i); -// insertDishesTypeList.add(dishesType); -// }); -// this.menuDishesTypeService.saveBatch(insertDishesTypeList); -// } -// -// List dateDishesList = ((MenuDishesMapper)this.baseMapper).selectMenuDishesDataList(); -// List sqlDishesNameList = ((MenuDishesMapper)this.baseMapper).selectAllDishesNameList(); -// if (CollUtil.isEmpty(dateDishesList)) { -// throw new LeException(I18n.getMessage("menu_base_date_null", new Object[0])); -// } else { -// if (CollUtil.isNotEmpty(sqlDishesNameList)) { -// dateDishesList = (List)dateDishesList.stream().filter((d) -> { -// return !sqlDishesNameList.contains(d.getDishesName()); -// }).collect(Collectors.toList()); -// } -// -// if (CollUtil.isNotEmpty(dateDishesList)) { -// dateDishesList.forEach((d) -> { -// d.setCustomId(this.menuCustomDictService.getNoRepeatCustomId(0)); -// }); -// super.saveBatch(dateDishesList); -// List dishesIdList = (List)dateDishesList.stream().map(MenuDishes::getDishesId).collect(Collectors.toList()); -// List materialDishesList = ((MenuDishesMapper)this.baseMapper).selectMenuMaterialDishesDataList(dishesIdList); -// if (CollUtil.isEmpty(materialDishesList)) { -// throw new LeException(I18n.getMessage("menu_base_date_null", new Object[0])); -// } -// -// materialDishesList = (List)materialDishesList.stream().filter((m) -> { -// return ObjectUtil.isNotNull(m.getMaterialId()); -// }).collect(Collectors.toList()); -// this.menuMaterialDishesService.saveBatch(materialDishesList); -// } -// -// log.info("***[菜品基础库导入]_导入完成*************"); -// } -// } -// } -// -// public void removeBatchByDishesId(List content) { -// this.deleteBatchByDishesIdList(content); -// } -// -// public void deleteBatchByDishesIdList(List dishesIdList) { -// if (CollUtil.isEmpty(dishesIdList)) { -// throw new LeException(I18n.getMessage("menu_param_null_del", new Object[0])); -// } else { -// Long packageDishesCount = this.menuPackageDishesMapper.selectCount((Wrapper)Wrappers.lambdaQuery(MenuPackageDishes.class).in(MenuPackageDishes::getDishesId, dishesIdList)); -// Long recipeDishesCount = this.menuRecipeDishesMapper.selectCount((Wrapper)Wrappers.lambdaQuery(MenuRecipeDishes.class).in(MenuRecipeDishes::getDishesId, dishesIdList)); -// boolean packageUse = ObjectUtil.isNotNull(packageDishesCount) && packageDishesCount > 0L; -// boolean recipeUse = ObjectUtil.isNotNull(recipeDishesCount) && recipeDishesCount > 0L; -// if (!packageUse && !recipeUse) { -// List customIdList = ((MenuDishesMapper)this.baseMapper).selectCustomIdByDishesId((Wrapper)Wrappers.lambdaQuery(MenuDishes.class).in(MenuDishes::getDishesId, dishesIdList)); -// if (CollUtil.isNotEmpty(customIdList)) { -// this.menuCustomDictMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuCustomDict.class).in(MenuCustomDict::getCustomId, customIdList)).set(MenuCustomDict::getIfUse, MenuCustomIfUseEnum.UNUSED.key())); -// } -// -// ((MenuDishesMapper)this.baseMapper).update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)(new UpdateWrapper()).lambda().in(MenuDishes::getDishesId, dishesIdList)).set(MenuDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())).set(MenuDishes::getCustomId, -1)); -// this.menuMaterialDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuMaterialDishes.class).in(MenuMaterialDishes::getDishesId, dishesIdList)).set(MenuMaterialDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuLabelDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuLabelDishes.class).in(MenuLabelDishes::getDishesId, dishesIdList)).set(MenuLabelDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuTasteDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuTasteDishes.class).in(MenuTasteDishes::getDishesId, dishesIdList)).set(MenuTasteDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// this.menuSuitDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuSuitDishes.class).in(MenuSuitDishes::getDishesId, dishesIdList)).set(MenuSuitDishes::getDelFlag, DelFlagEnum.DEL_TRUE.key())); -// } else { -// throw new LeException(I18n.getMessage("menu_dishes_use_del", new Object[0])); -// } -// } -// } -// -// public void insertMaterialDishesBatch(List materialList, Long dishesId, String username) { -// Iterator var4 = materialList.iterator(); -// -// while(var4.hasNext()) { -// MenuMaterialDishes materialDishes = (MenuMaterialDishes)var4.next(); -// materialDishes.setDishesId(dishesId); -// materialDishes.setCrby(username); -// } -// -// this.menuMaterialDishesMapper.insertBatch(materialList); -// } -// -// public void insertLabelDishesBatch(List labelIdList, Long dishesId, String username) { -// List labelDishesList = new ArrayList(); -// Iterator var5 = labelIdList.iterator(); -// -// while(var5.hasNext()) { -// Long labelId = (Long)var5.next(); -// MenuLabelDishes labelDishes = new MenuLabelDishes(); -// labelDishes.setDishesId(dishesId); -// labelDishes.setLabelId(labelId); -// labelDishes.setCrby(username); -// labelDishesList.add(labelDishes); -// } -// -// this.menuLabelDishesMapper.insertBatch(labelDishesList); -// } -// -// public void insertTasteDishesBatch(List tasteIdList, Long dishesId, String username) { -// List tasteDishesList = new ArrayList(); -// Iterator var5 = tasteIdList.iterator(); -// -// while(var5.hasNext()) { -// Long tasteId = (Long)var5.next(); -// MenuTasteDishes tasteDishes = new MenuTasteDishes(); -// tasteDishes.setDishesId(dishesId); -// tasteDishes.setTasteId(tasteId); -// tasteDishes.setCrby(username); -// tasteDishesList.add(tasteDishes); -// } -// -// this.menuTasteDishesMapper.insertBatch(tasteDishesList); -// } -// -// public void insertSuitDishesBatch(List suitIdList, Long dishesId, String username) { -// List suitDishesList = new ArrayList(); -// Iterator var5 = suitIdList.iterator(); -// -// while(var5.hasNext()) { -// Long suitId = (Long)var5.next(); -// MenuSuitDishes suitDishes = new MenuSuitDishes(); -// suitDishes.setDishesId(dishesId); -// suitDishes.setSuitId(suitId); -// suitDishes.setCrby(username); -// suitDishesList.add(suitDishes); -// } -// -// this.menuSuitDishesMapper.insertBatch(suitDishesList); -// } -// -// public void updateDishesNutritionByNutritionId(Long nutritionId) { -// List materialIdList = this.menuMaterialService.listObjs((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuMaterial.class).select(new SFunction[]{MenuMaterial::getMaterialId}).eq(MenuMaterial::getNutritionId, nutritionId)).eq(MenuMaterial::getDelFlag, DelFlagEnum.DEL_FALSE.key()), (x) -> { -// return Long.valueOf(x.toString()); -// }); -// if (!ObjectUtil.isEmpty(materialIdList)) { -// this.menuMaterialNutritionMapper.delete((Wrapper)Wrappers.lambdaQuery(MenuMaterialNutrition.class).in(MenuMaterialNutrition::getMaterialId, materialIdList)); -// this.updateDishesNutrition(materialIdList); -// } -// } -// -// public Boolean uploadBatchDishes(MultipartFile[] files) { -// if (ObjectUtil.isEmpty(files)) { -// throw new LeException("上传文件不能为空"); -// } else { -// String dishesLockRedisKey = "yst:merchant-id:dishes:pic:batch:lock".replace("merchant-id", TenantContextHolder.getTenantId().toString()); -// String asyncState = (String)this.stringRedisTemplate.opsForValue().get(dishesLockRedisKey); -// if (StringUtils.isNotBlank(asyncState)) { -// throw new LeException("导入图片进行中,不要重复操作哦 ^_^"); -// } else { -// List collect = (List)Arrays.stream(files).map(SyncMultipartFileDto::new).collect(Collectors.toList()); -// this.asyncTaskExecutor.execute(() -> { -// ArrayList results = new ArrayList(); -// boolean var26 = false; -// -// String resultRedisKey; -// label161: { -// try { -// var26 = true; -// Iterator var4 = collect.iterator(); -// -// while(var4.hasNext()) { -// SyncMultipartFileDto file = (SyncMultipartFileDto)var4.next(); -// UploadDishesPicResult uploadDishesPicResult = new UploadDishesPicResult(); -// -// try { -// String name = file.getFileName(); -// uploadDishesPicResult.setFineName(name); -// if (StringUtils.isBlank(name)) { -// uploadDishesPicResult.setSuccess(false); -// uploadDishesPicResult.setErrorMsg("文件名为空"); -// results.add(uploadDishesPicResult); -// continue; -// } -// -// String[] split = name.split("_"); -// if (split.length != 2) { -// uploadDishesPicResult.setSuccess(false); -// uploadDishesPicResult.setErrorMsg("文件名格式不正确"); -// results.add(uploadDishesPicResult); -// continue; -// } -// -// String disheNum = split[0]; -// String disheName = split[1].split("\\.")[0]; -// boolean exists = this.menuDishesMapper.exists((Wrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).eq(MenuDishes::getDelFlag, LeConstants.COMMON_NO)).eq(MenuDishes::getDishesNum, disheNum)).eq(MenuDishes::getDishesName, disheName)); -// if (exists) { -// String var10000 = IdUtil.simpleUUID(); -// String newFileName = var10000 + "." + FileUtil.extName(name); -// Long var34 = TenantContextHolder.getTenantId(); -// String objectName = "" + var34 + "/" + FileUploadSourceEnum.CUST.key() + "/" + newFileName; -// String bucketName = this.ossProperties.getBucketName(); -// -// try { -// InputStream inputStream = file.getInputStream(); -// -// try { -// this.ossTemplate.putObject(bucketName, objectName, inputStream); -// String dishesImage = "/" + bucketName + "/" + objectName; -// this.menuDishesMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishes.class).eq(MenuDishes::getDelFlag, LeConstants.COMMON_NO)).eq(MenuDishes::getDishesNum, disheNum)).eq(MenuDishes::getDishesName, disheName)).set(MenuDishes::getImageUrl, dishesImage)); -// uploadDishesPicResult.setSuccess(true); -// } catch (Throwable var28) { -// if (inputStream != null) { -// try { -// inputStream.close(); -// } catch (Throwable var27) { -// var28.addSuppressed(var27); -// } -// } -// -// throw var28; -// } -// -// if (inputStream != null) { -// inputStream.close(); -// } -// } catch (Exception var29) { -// uploadDishesPicResult.setSuccess(false); -// uploadDishesPicResult.setErrorMsg(var29.getMessage()); -// } -// } else { -// uploadDishesPicResult.setSuccess(false); -// uploadDishesPicResult.setErrorMsg("菜品不存在"); -// } -// } catch (Exception var30) { -// log.error("上传菜品图片失败", var30); -// uploadDishesPicResult.setSuccess(false); -// uploadDishesPicResult.setErrorMsg(var30.getMessage()); -// } -// -// results.add(uploadDishesPicResult); -// } -// -// var26 = false; -// break label161; -// } catch (Exception var31) { -// log.error("上传菜品图片失败", var31); -// var26 = false; -// } finally { -// if (var26) { -// String var19 = "yst:merchant-id:dishes:pic:batch:result".replace("merchant-id", TenantContextHolder.getTenantId().toString()); -// RedisUtil.setString(var19, JSONUtil.toJsonStr(results), 60L); -// this.stringRedisTemplate.delete(dishesLockRedisKey); -// } -// } -// -// resultRedisKey = "yst:merchant-id:dishes:pic:batch:result".replace("merchant-id", TenantContextHolder.getTenantId().toString()); -// RedisUtil.setString(resultRedisKey, JSONUtil.toJsonStr(results), 60L); -// this.stringRedisTemplate.delete(dishesLockRedisKey); -// return; -// } -// -// resultRedisKey = "yst:merchant-id:dishes:pic:batch:result".replace("merchant-id", TenantContextHolder.getTenantId().toString()); -// RedisUtil.setString(resultRedisKey, JSONUtil.toJsonStr(results), 60L); -// this.stringRedisTemplate.delete(dishesLockRedisKey); -// }); -// return true; -// } -// } -// } -// -// public void openLimitCustomId() { -// ((MenuDishesMapper)this.baseMapper).openLimitCustomId(); -// } -// -// public void closeLimitCustomId() { -// ((MenuDishesMapper)this.baseMapper).openLimitCustomId(); -// ((MenuDishesMapper)this.baseMapper).update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuDishes.class).gt(MenuDishes::getCustomId, LeConstants.MAX_CUST_LIMIT_ID)).set(MenuDishes::getCustomId, -1)); -// } -// -// @Transactional( -// rollbackFor = {Exception.class} -// ) -// public void replaceMaterialDishes(ReplaceMaterialDto content) { -// List baseDishesIds = content.getBaseDishesIds(); -// if (!ObjectUtil.isEmpty(baseDishesIds)) { -// List menuDishes = this.list((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).select(new SFunction[]{MenuDishes::getDishesId, MenuDishes::getId}).in(MenuDishes::getBaseDishesId, baseDishesIds)).eq(MenuDishes::getDelFlag, DelFlagEnum.DEL_FALSE.key())); -// if (!CollUtil.isEmpty(menuDishes)) { -// List dishesIds = (List)menuDishes.stream().map(MenuDishes::getDishesId).collect(Collectors.toList()); -// List menuUpdateDishesModels = BeanUtil.copyToList(menuDishes, MenuUpdateDishesModel.class); -// this.menuMaterialDishesService.update((Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(MenuMaterialDishes.class).in(MenuMaterialDishes::getDishesId, dishesIds)).eq(MenuMaterialDishes::getMaterialId, content.getOldMaterialId())).set(MenuMaterialDishes::getMaterialId, content.getNewMaterialId())); -// this.updateNutrition(menuUpdateDishesModels); -// } -// } -// } -// -// public List getDishesNutrition(List dishesIdList) { -// List menuDishes = ((MenuDishesMapper)this.baseMapper).selectList((Wrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(MenuDishes.class).in(MenuDishes::getDishesId, dishesIdList)).eq(MenuDishes::getDelFlag, LeConstants.COMMON_NO)); -// if (ObjectUtil.isEmpty(menuDishes)) { -// return null; -// } else { -// List dishesIds = (List)menuDishes.stream().map(MenuDishes::getDishesId).collect(Collectors.toList()); -// Map> dishesTastes = this.selectDishesTasteByDishesIds(dishesIds); -// List dishesNutritionDtos = BeanUtil.copyToList(menuDishes, DishesNutritionDto.class); -// Iterator var6 = dishesNutritionDtos.iterator(); -// -// while(var6.hasNext()) { -// DishesNutritionDto dishesNutritionDto = (DishesNutritionDto)var6.next(); -// dishesNutritionDto.setTasteNames((List)dishesTastes.get(dishesNutritionDto.getDishesId())); -// } -// -// return dishesNutritionDtos; -// } -// } -// -// public Map> selectDishesTasteByDishesIds(List dishesIds) { -// List dishesLabelDtos = ((MenuDishesMapper)this.baseMapper).selectTasteByDishesIds(dishesIds); -// return (Map)dishesLabelDtos.stream().collect(Collectors.groupingBy(DishesLabelDto::getDishesId, Collectors.mapping(DishesLabelDto::getName, Collectors.toList()))); -// } -// -// // $FF: synthetic method -// private static Object $deserializeLambda$(SerializedLambda lambda) { -// switch (lambda.getImplMethodName()) { -// case "getDishesNum": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getDishesNum; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getDishesNum; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getDishesNum; -// } -// break; -// case "getSizeType": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuRecipeDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuRecipeDishes::getSizeType; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuRecipeDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuRecipeDishes::getSizeType; -// } -// break; -// case "getDelFlag": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesType") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesType::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesCook::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesType") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesType::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesCook::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuMaterialDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuLabelDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuTasteDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuSuitDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuEvaluaOrder") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuEvaluaOrder::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterial") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuMaterial::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesType") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesType::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesCook::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesType") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesType::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesCook::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuMaterialDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuLabelDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuTasteDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuSuitDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterial") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuMaterial::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesType") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesType::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesCook::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuMaterialDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuMaterialDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuLabelDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuTasteDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuSuitDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterial") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuMaterial::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getDelFlag; -// } -// break; -// case "getOrdId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuEvaluaOrder") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuEvaluaOrder::getOrdId; -// } -// break; -// case "getId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getId; -// } -// break; -// case "getStarLevel": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuEvaluaDetail") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuEvaluaDetail::getStarLevel; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuEvaluaOrder") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuEvaluaOrder::getStarLevel; -// } -// break; -// case "getTypeId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesType") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesType::getTypeId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesType") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesType::getTypeId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesType") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesType::getTypeId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesType") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesType::getTypeId; -// } -// break; -// case "getNutritionId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterial") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterial::getNutritionId; -// } -// break; -// case "getLikeSurvey": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getLikeSurvey; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getLikeSurvey; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getLikeSurvey; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getLikeSurvey; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getLikeSurvey; -// } -// break; -// case "getEvaluateLevel": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesSaleRecord") && lambda.getImplMethodSignature().equals("()Ljava/math/BigDecimal;")) { -// return MenuDishesSaleRecord::getEvaluateLevel; -// } -// break; -// case "getIndexRecommend": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getIndexRecommend; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getIndexRecommend; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getIndexRecommend; -// } -// break; -// case "getStallId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesSaleRecord") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesSaleRecord::getStallId; -// } -// break; -// case "getPungencyDegree": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getPungencyDegree; -// } -// break; -// case "getLikeNum": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getLikeNum; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getLikeNum; -// } -// break; -// case "getBaseDishesId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getBaseDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getBaseDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getBaseDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesSize") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesSize::getBaseDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getBaseDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesSize") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesSize::getBaseDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getBaseDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesSize") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesSize::getBaseDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getBaseDishesId; -// } -// break; -// case "getMaterialId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterial") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterial::getMaterialId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterial") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterial::getMaterialId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialNutrition") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialNutrition::getMaterialId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getMaterialId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getMaterialId; -// } -// break; -// case "getImageUrl": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getImageUrl; -// } -// break; -// case "getCustomId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getCustomId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getCustomId; -// } -// break; -// case "getHideFlag": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getHideFlag; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getHideFlag; -// } -// break; -// case "getDishesId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuLabelDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuTasteDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuSuitDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuPackageDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuPackageDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuLabelDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuTasteDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuSuitDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCollectionDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuCollectionDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesSaleRecord") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesSaleRecord::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesSaleRecord") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesSaleRecord::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuRecipeDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuRecipeDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuRecipeDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuRecipeDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuRecipeDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuRecipeDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuLabelDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuTasteDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuSuitDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuPackageDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuPackageDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuLabelDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuTasteDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuSuitDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menuai/entity/MenuaiPicture") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuaiPicture::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuLabelDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuTasteDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuSuitDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuLabelDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuTasteDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuSuitDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuPackageDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuPackageDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuPackageDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuPackageDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuRecipeDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuRecipeDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuLabelDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuLabelDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuTasteDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuTasteDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuSuitDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuSuitDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterialDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuMaterialDishes::getDishesId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getDishesId; -// } -// break; -// case "getDetailId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuEvaluaDetail") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuEvaluaDetail::getDetailId; -// } -// break; -// case "getPackageId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuPackageDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuPackageDishes::getPackageId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuPackageDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuPackageDishes::getPackageId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuPackageDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuPackageDishes::getPackageId; -// } -// break; -// case "getMaterialName": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuMaterial") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuMaterial::getMaterialName; -// } -// break; -// case "getCookName": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishesCook::getCookName; -// } -// break; -// case "getEvaluateNum": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesSaleRecord") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishesSaleRecord::getEvaluateNum; -// } -// break; -// case "getIfUse": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getIfUse; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getIfUse; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getIfUse; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getIfUse; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getIfUse; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getIfUse; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getIfUse; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCustomDict") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuCustomDict::getIfUse; -// } -// break; -// case "getMealId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuEvaluaDetail") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuEvaluaDetail::getMealId; -// } -// break; -// case "getInventoryId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getInventoryId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getInventoryId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getInventoryId; -// } -// break; -// case "getLikeBatch": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getLikeBatch; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getLikeBatch; -// } -// break; -// case "getEvaluaId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuEvaluaDetail") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuEvaluaDetail::getEvaluaId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuEvaluaDetail") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuEvaluaDetail::getEvaluaId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuEvaluaOrder") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuEvaluaOrder::getEvaluaId; -// } -// break; -// case "getCustId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuCollectionDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuCollectionDishes::getCustId; -// } -// break; -// case "getIfDel": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/allocation/canteen/model/AllocArea") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return AllocArea::getIfDel; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/allocation/canteen/model/AllocStall") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return AllocStall::getIfDel; -// } -// break; -// case "getDishesName": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getDishesName; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getDishesName; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getDishesName; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getDishesName; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getDishesName; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getDishesName; -// } -// break; -// case "getCookId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesCook::getCookId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesCook::getCookId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesCook::getCookId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesCook::getCookId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getCookId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishesCook") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishesCook::getCookId; -// } -// break; -// case "getPrice": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { -// return MenuDishes::getPrice; -// } -// break; -// case "getSizeJson": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getSizeJson; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { -// return MenuDishes::getSizeJson; -// } -// break; -// case "getStyleId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getStyleId; -// } -// break; -// case "getGrossProfitRate": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/math/BigDecimal;")) { -// return MenuDishes::getGrossProfitRate; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/math/BigDecimal;")) { -// return MenuDishes::getGrossProfitRate; -// } -// break; -// case "getEffectId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getEffectId; -// } -// break; -// case "getCanteenId": -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getCanteenId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getCanteenId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getCanteenId; -// } -// -// if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("net/xnzn/core/menu/entity/MenuDishes") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { -// return MenuDishes::getCanteenId; -// } -// } -// -// throw new IllegalArgumentException("Invalid lambda deserialization"); -// } } diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/AppletDishesDetailVO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/AppletDishesDetailVO.java new file mode 100644 index 00000000..0e8c6fab --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/AppletDishesDetailVO.java @@ -0,0 +1,129 @@ +package com.bonus.core.menu.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.bonus.core.common.utils.SysUtil; +import java.util.List; + +@ApiModel("小程序菜品详情") +public class AppletDishesDetailVO { + @ApiModelProperty("菜品id") + private Long baseDishesId; + @ApiModelProperty("类型(1-菜品,2-套餐)") + private Integer mealType; + @ApiModelProperty("自定义id") + private Long customId; + @ApiModelProperty("菜品名称") + private String dishesName; + @ApiModelProperty("菜品别称") + private String aliasName; + @ApiModelProperty("菜品图片url") + private String imageUrl; + @ApiModelProperty("菜品简介") + private String intro; + @ApiModelProperty("菜品详情") + private String particulars; + @ApiModelProperty("是否收藏(1-收藏,2-未收藏)") + private Integer isFavorites; + @ApiModelProperty("菜品规格") + private List dishesDetailList; + List materialList; + @ApiModelProperty("套餐菜品明细") + private List packageDishesList; + + public String getImageUrl() { + return SysUtil.getCutFileUrl(this.imageUrl); + } + + public Long getBaseDishesId() { + return this.baseDishesId; + } + + public Integer getMealType() { + return this.mealType; + } + + public Long getCustomId() { + return this.customId; + } + + public String getDishesName() { + return this.dishesName; + } + + public String getAliasName() { + return this.aliasName; + } + + public String getIntro() { + return this.intro; + } + + public String getParticulars() { + return this.particulars; + } + + public Integer getIsFavorites() { + return this.isFavorites; + } + + public List getDishesDetailList() { + return this.dishesDetailList; + } + + public List getMaterialList() { + return this.materialList; + } + + public List getPackageDishesList() { + return this.packageDishesList; + } + + public void setBaseDishesId(final Long baseDishesId) { + this.baseDishesId = baseDishesId; + } + + public void setMealType(final Integer mealType) { + this.mealType = mealType; + } + + public void setCustomId(final Long customId) { + this.customId = customId; + } + + public void setDishesName(final String dishesName) { + this.dishesName = dishesName; + } + + public void setAliasName(final String aliasName) { + this.aliasName = aliasName; + } + + public void setImageUrl(final String imageUrl) { + this.imageUrl = imageUrl; + } + + public void setIntro(final String intro) { + this.intro = intro; + } + + public void setParticulars(final String particulars) { + this.particulars = particulars; + } + + public void setIsFavorites(final Integer isFavorites) { + this.isFavorites = isFavorites; + } + + public void setDishesDetailList(final List dishesDetailList) { + this.dishesDetailList = dishesDetailList; + } + + public void setMaterialList(final List materialList) { + this.materialList = materialList; + } + + public void setPackageDishesList(final List packageDishesList) { + this.packageDishesList = packageDishesList; + } +} diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/AppletDishesSizeV2VO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/AppletDishesSizeV2VO.java new file mode 100644 index 00000000..faf24827 --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/AppletDishesSizeV2VO.java @@ -0,0 +1,298 @@ +package com.bonus.core.menu.vo; + +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.bonus.core.menu.constant.BigDecimalSerializer; +import java.math.BigDecimal; +import java.math.RoundingMode; +import java.util.Optional; + +@ApiModel("菜品详情(大小份)") +public class AppletDishesSizeV2VO { + @ApiModelProperty("菜品id") + private Long dishesId; + @ApiModelProperty("菜品名称") + private String dishesName; + @ApiModelProperty("库存数量") + private Integer surplusNum; + @ApiModelProperty("限购数量") + private Integer restrictNum; + @ApiModelProperty("菜品价格") + private Integer dishesPrice; + @ApiModelProperty("优惠价") + private Integer prefPrice; + @ApiModelProperty("规格类型(1-标准,2-大份,3-小份,4-50g,5-100g)") + private Long sizeType; + @ApiModelProperty("菜品规格") + private String sizeJson; + @ApiModelProperty("月销量") + private Integer monthlySales; + @ApiModelProperty("好评率") + private BigDecimal goodProbability; + @ApiModelProperty("热量(千卡/100g)") + @JsonSerialize( + using = BigDecimalSerializer.class + ) + private BigDecimal calories; + @ApiModelProperty("蛋白质(g/100g)") + @JsonSerialize( + using = BigDecimalSerializer.class + ) + private BigDecimal protein; + @ApiModelProperty("脂肪(g/100g)") + @JsonSerialize( + using = BigDecimalSerializer.class + ) + private BigDecimal fat; + @ApiModelProperty("碳水化合物(g/100g)") + @JsonSerialize( + using = BigDecimalSerializer.class + ) + private BigDecimal carbohydrate; + @ApiModelProperty("膳食纤维(g/100g)") + @JsonSerialize( + using = BigDecimalSerializer.class + ) + private BigDecimal dietaryFiber; + @ApiModelProperty("胆固醇(mg/100g)") + @JsonSerialize( + using = BigDecimalSerializer.class + ) + private BigDecimal cholesterol; + @ApiModelProperty("钙(mg/100g)") + @JsonSerialize( + using = BigDecimalSerializer.class + ) + private BigDecimal calcium; + @ApiModelProperty("钠(mg/100g)") + @JsonSerialize( + using = BigDecimalSerializer.class + ) + private BigDecimal sodium; + @ApiModelProperty("热量NRV(千卡/100g)") + private BigDecimal caloriesNrv; + @ApiModelProperty("蛋白质NRV(g/100g)") + private BigDecimal proteinNrv; + @ApiModelProperty("脂肪NRV(g/100g)") + private BigDecimal fatNrv; + @ApiModelProperty("碳水化合物NRV(g/100g)") + private BigDecimal carbohydrateNrv; + @ApiModelProperty("膳食纤维NRV(g/100g)") + private BigDecimal dietaryFiberNrv; + @ApiModelProperty("胆固醇NRV(mg/100g)") + private BigDecimal cholesterolNrv; + @ApiModelProperty("钙NRV(mg/100g)") + private BigDecimal calciumNrv; + @ApiModelProperty("钠NRV(mg/100g)") + private BigDecimal sodiumNrv; + + public Integer getMonthlySales() { + return (Integer)Optional.ofNullable(this.monthlySales).orElse(0); + } + + public BigDecimal getGoodProbability() { + return (BigDecimal)Optional.ofNullable(this.goodProbability).orElse(BigDecimal.ZERO); + } + + public Long getSizeType() { + return (Long)Optional.ofNullable(this.sizeType).orElse(1L); + } + + public BigDecimal getCaloriesNrv() { + return ((BigDecimal)Optional.ofNullable(this.calories).orElse(BigDecimal.ZERO)).multiply(new BigDecimal("4.185")).divide(new BigDecimal("8400"), 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP); + } + + public BigDecimal getProteinNrv() { + return ((BigDecimal)Optional.ofNullable(this.protein).orElse(BigDecimal.ZERO)).divide(new BigDecimal("60"), 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP); + } + + public BigDecimal getFatNrv() { + return ((BigDecimal)Optional.ofNullable(this.fat).orElse(BigDecimal.ZERO)).divide(new BigDecimal("60"), 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP); + } + + public BigDecimal getCarbohydrateNrv() { + return ((BigDecimal)Optional.ofNullable(this.carbohydrate).orElse(BigDecimal.ZERO)).divide(new BigDecimal("300"), 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP); + } + + public BigDecimal getDietaryFiberNrv() { + return ((BigDecimal)Optional.ofNullable(this.dietaryFiber).orElse(BigDecimal.ZERO)).divide(new BigDecimal("25"), 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP); + } + + public BigDecimal getCholesterolNrv() { + return ((BigDecimal)Optional.ofNullable(this.cholesterol).orElse(BigDecimal.ZERO)).divide(new BigDecimal("300"), 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP); + } + + public BigDecimal getCalciumNrv() { + return ((BigDecimal)Optional.ofNullable(this.calcium).orElse(BigDecimal.ZERO)).divide(new BigDecimal("800"), 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP); + } + + public BigDecimal getSodiumNrv() { + return ((BigDecimal)Optional.ofNullable(this.sodium).orElse(BigDecimal.ZERO)).divide(new BigDecimal("2000"), 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100")).setScale(2, RoundingMode.HALF_UP); + } + + public Long getDishesId() { + return this.dishesId; + } + + public String getDishesName() { + return this.dishesName; + } + + public Integer getSurplusNum() { + return this.surplusNum; + } + + public Integer getRestrictNum() { + return this.restrictNum; + } + + public Integer getDishesPrice() { + return this.dishesPrice; + } + + public Integer getPrefPrice() { + return this.prefPrice; + } + + public String getSizeJson() { + return this.sizeJson; + } + + public BigDecimal getCalories() { + return this.calories; + } + + public BigDecimal getProtein() { + return this.protein; + } + + public BigDecimal getFat() { + return this.fat; + } + + public BigDecimal getCarbohydrate() { + return this.carbohydrate; + } + + public BigDecimal getDietaryFiber() { + return this.dietaryFiber; + } + + public BigDecimal getCholesterol() { + return this.cholesterol; + } + + public BigDecimal getCalcium() { + return this.calcium; + } + + public BigDecimal getSodium() { + return this.sodium; + } + + public void setDishesId(final Long dishesId) { + this.dishesId = dishesId; + } + + public void setDishesName(final String dishesName) { + this.dishesName = dishesName; + } + + public void setSurplusNum(final Integer surplusNum) { + this.surplusNum = surplusNum; + } + + public void setRestrictNum(final Integer restrictNum) { + this.restrictNum = restrictNum; + } + + public void setDishesPrice(final Integer dishesPrice) { + this.dishesPrice = dishesPrice; + } + + public void setPrefPrice(final Integer prefPrice) { + this.prefPrice = prefPrice; + } + + public void setSizeType(final Long sizeType) { + this.sizeType = sizeType; + } + + public void setSizeJson(final String sizeJson) { + this.sizeJson = sizeJson; + } + + public void setMonthlySales(final Integer monthlySales) { + this.monthlySales = monthlySales; + } + + public void setGoodProbability(final BigDecimal goodProbability) { + this.goodProbability = goodProbability; + } + + public void setCalories(final BigDecimal calories) { + this.calories = calories; + } + + public void setProtein(final BigDecimal protein) { + this.protein = protein; + } + + public void setFat(final BigDecimal fat) { + this.fat = fat; + } + + public void setCarbohydrate(final BigDecimal carbohydrate) { + this.carbohydrate = carbohydrate; + } + + public void setDietaryFiber(final BigDecimal dietaryFiber) { + this.dietaryFiber = dietaryFiber; + } + + public void setCholesterol(final BigDecimal cholesterol) { + this.cholesterol = cholesterol; + } + + public void setCalcium(final BigDecimal calcium) { + this.calcium = calcium; + } + + public void setSodium(final BigDecimal sodium) { + this.sodium = sodium; + } + + public void setCaloriesNrv(final BigDecimal caloriesNrv) { + this.caloriesNrv = caloriesNrv; + } + + public void setProteinNrv(final BigDecimal proteinNrv) { + this.proteinNrv = proteinNrv; + } + + public void setFatNrv(final BigDecimal fatNrv) { + this.fatNrv = fatNrv; + } + + public void setCarbohydrateNrv(final BigDecimal carbohydrateNrv) { + this.carbohydrateNrv = carbohydrateNrv; + } + + public void setDietaryFiberNrv(final BigDecimal dietaryFiberNrv) { + this.dietaryFiberNrv = dietaryFiberNrv; + } + + public void setCholesterolNrv(final BigDecimal cholesterolNrv) { + this.cholesterolNrv = cholesterolNrv; + } + + public void setCalciumNrv(final BigDecimal calciumNrv) { + this.calciumNrv = calciumNrv; + } + + public void setSodiumNrv(final BigDecimal sodiumNrv) { + this.sodiumNrv = sodiumNrv; + } + +} diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/MenuMaterialBasVO.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/MenuMaterialBasVO.java new file mode 100644 index 00000000..938658bf --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/core/menu/vo/MenuMaterialBasVO.java @@ -0,0 +1,92 @@ +package com.bonus.core.menu.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.bonus.core.common.utils.SysUtil; + +import java.io.Serializable; + +@ApiModel("菜品标签分页返回") +public class MenuMaterialBasVO implements Serializable { + @ApiModelProperty("食材id") + private Long materialId; + @ApiModelProperty("食材名称") + private String materialName; + @ApiModelProperty("原料编号") + private String materialCode; + @ApiModelProperty("食材重量(g)") + private Double weight; + @ApiModelProperty("材料类型(1主料,2辅料,3配料)") + private Integer materialType; + @ApiModelProperty("大类") + private String bigType; + @ApiModelProperty("小类") + private String littleType; + @ApiModelProperty("原料图片") + private String imageUrl; + + public void setImageUrl(String imageUrl) { + this.imageUrl = SysUtil.getCutPath(imageUrl); + } + + public String getImageUrl() { + return SysUtil.getCutFileUrl(this.imageUrl); + } + + public Long getMaterialId() { + return this.materialId; + } + + public String getMaterialName() { + return this.materialName; + } + + public String getMaterialCode() { + return this.materialCode; + } + + public Double getWeight() { + return this.weight; + } + + public Integer getMaterialType() { + return this.materialType; + } + + public String getBigType() { + return this.bigType; + } + + public String getLittleType() { + return this.littleType; + } + + public void setMaterialId(final Long materialId) { + this.materialId = materialId; + } + + public void setMaterialName(final String materialName) { + this.materialName = materialName; + } + + public void setMaterialCode(final String materialCode) { + this.materialCode = materialCode; + } + + public void setWeight(final Double weight) { + this.weight = weight; + } + + public void setMaterialType(final Integer materialType) { + this.materialType = materialType; + } + + public void setBigType(final String bigType) { + this.bigType = bigType; + } + + public void setLittleType(final String littleType) { + this.littleType = littleType; + } + +} diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/menu/MenuMaterialDishesMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/menu/MenuMaterialDishesMapper.xml new file mode 100644 index 00000000..460a03f8 --- /dev/null +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/menu/MenuMaterialDishesMapper.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +