package com.bonus.core.order.common.service.impl;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.ListUtil;
import cn.hutool.core.text.CharSequenceUtil;
import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
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.LeConstants;
import com.bonus.core.common.constant.LeRetCodeEnum;
import com.bonus.core.order.android.vo.OrderListAndroidVO;
import com.bonus.core.order.common.constants.OrderRefundStateEnum;
import com.bonus.core.order.common.constants.OrderStateEnum;
import com.bonus.core.order.common.constants.OrderTips;
import com.bonus.core.order.common.dto.OrderSearchParam;
import com.bonus.core.order.common.mapper.OrderInfoMapper;
import com.bonus.core.order.common.model.OrderInfo;
import com.bonus.core.order.common.service.OrderInfoService;
import com.bonus.core.order.common.vo.OrderIdDateVO;
import com.bonus.core.order.mobile.vo.OrderInfoMobileVO;
import com.bonus.core.order.mobile.vo.OrderListMobileVO;
import com.bonus.core.order.utils.LeNumUtil;
import com.bonus.core.order.utils.LeOrderUtil;
import com.bonus.core.order.web.dto.OrderUserPermissionDTO;
import com.bonus.core.pay.api.TradeRecordApi;
import com.bonus.core.pay.common.constants.PayStateEnum;
import com.bonus.core.pay.common.model.TradeOrderRecharge;
import com.bonus.i18n.I18n;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.lang.invoke.SerializedLambda;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;

@Service
public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo> implements OrderInfoService {
   private static final Logger log = LoggerFactory.getLogger(OrderInfoServiceImpl.class);
//   @Autowired
//   @Lazy
//   protected OrderDetailService orderDetailService;
//   @Autowired
//   @Lazy
//   protected OrderPhotoService orderPhotoService;
//   @Autowired
//   @Lazy
//   protected OrderDetailMapper orderDetailMapper;
//   @Autowired
//   @Lazy
//   protected DeviceApi deviceApi;
   @Resource
   @Lazy
   protected TradeRecordApi tradeRecordApi;
//   @Autowired
//   @Lazy
//   private OrderModuleClient orderModuleClient;

   @Transactional(
      rollbackFor = {Exception.class}
   )
   public void saveList(Collection<OrderInfo> entityList) {
      if (!CollUtil.isEmpty(entityList)) {
         Iterator var2 = entityList.iterator();

         while(var2.hasNext()) {
            OrderInfo entity = (OrderInfo)var2.next();
            if (this.existOrderId(entity.getOrderId(), entity.getOrderDate())) {
               this.updateOrderInfo(entity);
            } else {
               ((OrderInfoMapper)this.baseMapper).insert(entity);
            }
         }

      }
   }

   public OrderInfo getById(Long id, LocalDate... orderDates) {
      return this.getByIdDate(id);
   }

   private OrderInfo getByIdDate(Long id, LocalDate... orderDates) {
      if (id == null) {
         return null;
      } else {
         int argLength = ArrayUtil.length(orderDates);
         OrderInfo orderInfo;
         if (argLength == 2) {
            orderInfo = (OrderInfo)((OrderInfoMapper)this.baseMapper).selectOne((Wrapper<OrderInfo>)((LambdaQueryWrapper<OrderInfo>)Wrappers.lambdaQuery(OrderInfo.class).eq(OrderInfo::getOrderId, id)).between(OrderInfo::getOrderDate, orderDates[0], orderDates[1]));
         } else if (argLength == 1) {
            orderInfo = (OrderInfo)((OrderInfoMapper)this.baseMapper).selectOne((Wrapper<OrderInfo>)((LambdaQueryWrapper<OrderInfo>)Wrappers.lambdaQuery(OrderInfo.class).eq(OrderInfo::getOrderId, id)).eq(OrderInfo::getOrderDate, orderDates));
         } else {
            List<LocalDate> dateRange = LeOrderUtil.queryDateRange(id);
            orderInfo = (OrderInfo)((OrderInfoMapper)this.baseMapper).selectOne((Wrapper<OrderInfo>)((LambdaQueryWrapper<OrderInfo>)Wrappers.lambdaQuery(OrderInfo.class).eq(OrderInfo::getOrderId, id)).between(OrderInfo::getOrderDate, dateRange.get(0), dateRange.get(1)));
         }

         if (orderInfo == null) {
            orderInfo = (OrderInfo)((OrderInfoMapper)this.baseMapper).selectOne((Wrapper<OrderInfo>)Wrappers.lambdaQuery(OrderInfo.class).eq(OrderInfo::getOrderId, id));
         }

         return orderInfo;
      }
   }
//
//   public OrderInfoVO getVoById(Long orderId, LocalDate... orderDate) {
//      return !LeNumUtil.isValidId(orderId) ? null : (OrderInfoVO)this.listVoByOrderIds(CollUtil.toList(new Long[]{orderId}), orderDate != null ? CollUtil.toList(orderDate) : null).stream().findFirst().orElse((Object)null);
//   }
//
//   public List<OrderInfoVO> listVoByParam(OrderSearchParamDTO paramDTO, OrderUserPermissionDTO permissionDTO, boolean fillDetailVO) {
//      OrderSearchParam searchParam = paramDTO.toSearchParam();
//      LogUtil.info("[查询订单ID]", searchParam, permissionDTO);
//      List<OrderIdDateVO> orderIds = ((OrderInfoMapper)this.baseMapper).queryOrderId(searchParam, permissionDTO);
//      if (CollUtil.isEmpty(orderIds)) {
//         return ListUtil.empty();
//      } else {
//         List<OrderInfoVO> orderInfoVOList = ((OrderInfoMapper)this.baseMapper).listVoByIds((List)orderIds.stream().map(OrderIdDateVO::getId).collect(Collectors.toList()), (LocalDate)orderIds.stream().map(OrderIdDateVO::getOrderDate).min(LocalDate::compareTo).get(), (LocalDate)orderIds.stream().map(OrderIdDateVO::getOrderDate).max(LocalDate::compareTo).get());
//         if (fillDetailVO) {
//            this.fillOrderDetailVOList(orderInfoVOList);
//         }
//
//         return orderInfoVOList;
//      }
//   }
//
//   public List<OrderInfoVO> listVoByOrderIds(List<Long> orderIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(orderIds)) {
//         return CollUtil.newArrayList(new OrderInfoVO[0]);
//      } else {
//         List<LocalDate> dageRange = LeOrderUtil.queryDateRange((Collection)orderIds, (Collection)orderDates);
//         List<OrderInfoVO> orderInfoVOList = ((OrderInfoMapper)this.baseMapper).listVoByIds(orderIds, (LocalDate)dageRange.get(0), (LocalDate)dageRange.get(1));
//         this.fillOrderDetailVOList(orderInfoVOList);
//         return orderInfoVOList;
//      }
//   }
//
//   protected void fillOrderDetailVOList(List<OrderInfoVO> orderInfoVOList) {
//      if (!CollUtil.isEmpty(orderInfoVOList)) {
//         List<Long> orderIds = (List)orderInfoVOList.stream().map(OrderInfoVO::getOrderId).collect(Collectors.toList());
//         List<LocalDate> orderDates = (List)orderInfoVOList.stream().map(OrderInfoVO::getOrderDate).collect(Collectors.toList());
//         Map<Long, List<OrderDetailVO>> orderDetailGroup = (Map)this.orderDetailService.getOrderDetailList((List)orderIds, (Collection)orderDates).stream().map(OrderDetailVO::of).collect(Collectors.groupingBy(OrderDetailVO::getOrderId));
//         Iterator var5 = orderInfoVOList.iterator();
//
//         while(var5.hasNext()) {
//            OrderInfoVO orderInfoVO = (OrderInfoVO)var5.next();
//            orderInfoVO.setOrderDetailList((List)orderDetailGroup.getOrDefault(orderInfoVO.getOrderId(), CollUtil.newArrayList(new OrderDetailVO[0])));
//         }
//
//      }
//   }

   public void existWaitPlaceOrder(Long custId, Integer sourceType) {
      long count = this.count(((LambdaQueryWrapper<OrderInfo>) Wrappers
              .lambdaQuery(OrderInfo.class).eq(OrderInfo::getCustId, custId).eq(OrderInfo::getSourceType, sourceType)
              .eq(OrderInfo::getOrderState, OrderStateEnum.WAIT_PLACE.getKey()))
              .eq(OrderInfo::getPayState, PayStateEnum.UN_PAY.getKey())
              .between(OrderInfo::getOrderDate, LocalDate.now(), LocalDate.now().plusMonths(3L)));
      if (count > 0L) {
         throw new ServiceException(I18n.getMessage("order.exists-un-pay-order", new Object[0]), LeRetCodeEnum.PAY_ORD_EXISTS_UN_PAY.getKey());
      }
   }

   public List<OrderInfo> getPlacedOrderInfoList(Long custId, LocalDate nowDate) {
      return this.list(this.getOrderSelectWrappers()
              .eq(OrderInfo::getCustId, custId).ge(OrderInfo::getOrderDate, nowDate)
              .eq(OrderInfo::getOrderState, OrderStateEnum.PLACE.getKey()));
   }
//
//   public void initOrderCustInfo(List<OrderInfo> orderInfoList, Long custId) {
//      if (!CollUtil.isEmpty(orderInfoList)) {
//         if (orderInfoList.stream().anyMatch((s) -> {
//            return !s.hasCustInfo(custId);
//         })) {
//            CustPayVO custInfo = this.orderModuleClient.custPayInfoQuery(CustPayInfoQueryParam.ofCustId(LeNumUtil.idOrDefault(custId)));
//            orderInfoList.forEach((s) -> {
//               s.fillCustInfo(custInfo);
//            });
//         }
//
//      }
//   }
//
//   public <T extends OrderInfoWithCustName> void fillOrderCustName(List<T> orderInfoList, boolean skipIfNameExists) {
//      if (!CollUtil.isEmpty(orderInfoList)) {
//         List<Long> custIds = (List)orderInfoList.stream().filter((orderInfox) -> {
//            return orderInfox.getCustId() != null && (!skipIfNameExists || CharSequenceUtil.isBlank(orderInfox.getCustName()));
//         }).map(OrderInfoWithCustName::getCustId).collect(Collectors.toList());
//         if (!CollUtil.isEmpty(custIds)) {
//            Map<Long, CustInfo> custInfoMap = (Map)this.orderModuleClient.custList(CustListQueryParam.of(custIds)).stream().collect(Collectors.toMap(CustInfo::getCustId, Function.identity()));
//            Iterator var5 = orderInfoList.iterator();
//
//            while(var5.hasNext()) {
//               T orderInfo = (OrderInfoWithCustName)var5.next();
//               CustInfo custInfo = (CustInfo)custInfoMap.get(orderInfo.getCustId());
//               if (custInfo != null) {
//                  orderInfo.setCustName(custInfo.getCustName());
//                  orderInfo.setMobile(custInfo.getMobile());
//                  orderInfo.setCustPhotoUrl(CharSequenceUtil.isNotBlank(custInfo.getHeadPortraitUrl()) ? custInfo.getHeadPortraitUrl() : custInfo.getCustPhotoUrl());
//                  if (CharSequenceUtil.isNotBlank(custInfo.getMobile())) {
//                     orderInfo.setMobile(SM4EncryptUtils.desensitizedByConfig(custInfo.getMobile(), DesensitizedType.MOBILE_PHONE));
//                  }
//               }
//            }
//
//         }
//      }
//   }

   @Override
   public OrderInfo checkAndGetOrderInfo(Long orderId) {
      if (!LeNumUtil.isValidId(orderId)) {
         throw new ServiceException(OrderTips.noOrder());
      } else {
         OrderInfo orderInfo = this.getByIdDate(orderId);
         if (orderInfo == null) {
            throw new ServiceException(OrderTips.noOrder());
         } else {
            return orderInfo;
         }
      }
   }

   public OrderInfo checkAndGetOrderInfoByMacOrderId(String macOrderId) {
      List<OrderInfo> orderInfoList = this.listOrderInfoByMacOrderId(macOrderId);
      return (OrderInfo)orderInfoList.stream().max(Comparator.comparing(OrderInfo::getOrderId)).orElseThrow(() -> {
         return new ServiceException(OrderTips.noOrder());
      });
   }
//
//   public boolean existMacOrderId(String macOrderId, boolean validPayState) {
//      if (CharSequenceUtil.isBlank(macOrderId)) {
//         return false;
//      } else {
//         Integer rs = ((OrderInfoMapper)this.baseMapper).existOrder((Long)null, macOrderId, validPayState ? CollUtil.toList(new Integer[]{PayStateEnum.PAY_INPROCESS.getKey(), PayStateEnum.PAY_SUCC.getKey(), PayStateEnum.PART_PAY.getKey()}) : null, LocalDate.now(), LocalDate.now());
//         return rs != null && rs == 1;
//      }
//   }

   public boolean existOrderId(Long orderId, LocalDate orderDate) {
      if (orderId == null) {
         return false;
      } else {
         List<LocalDate> dateRange = orderDate != null ? CollUtil.newArrayList(new LocalDate[]{orderDate, orderDate}) : LeOrderUtil.queryDateRange(orderId);
         Integer rs = ((OrderInfoMapper)this.baseMapper).existOrder(orderId, (String)null, (Collection)null, (LocalDate)((List)dateRange).get(0), (LocalDate)((List)dateRange).get(1));
         return rs != null && rs == 1;
      }
   }
//
//   public List<OrderDeliveryDetailVO> queryOrderDeliveryDetailList(List<Long> deliveryIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(deliveryIds)) {
//         return ListUtil.empty();
//      } else {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)deliveryIds, (Collection)orderDates);
//         return ((OrderInfoMapper)this.baseMapper).queryOrderDeliveryDetailList(deliveryIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//      }
//   }

   public void updateOrderState(Long orderId, LocalDate orderDate, Integer payState, Integer orderState, Integer dishesState, String mealCode) {
      List<LocalDate> dateRange = orderDate != null ? CollUtil.toList(new LocalDate[]{orderDate, orderDate}) : LeOrderUtil.queryDateRange(orderId);
      this.update(Wrappers.lambdaUpdate(OrderInfo.class)
              .eq(OrderInfo::getOrderId, orderId).between(OrderInfo::getOrderDate, ((List)dateRange)
              .get(0), ((List)dateRange).get(1)).set(ObjectUtil.isNotNull(payState), OrderInfo::getPayState, payState)
              .set(ObjectUtil.isNotNull(orderState), OrderInfo::getOrderState, orderState).set(ObjectUtil.isNotNull(dishesState),
              OrderInfo::getDishesState, dishesState).set(CharSequenceUtil.isNotBlank(mealCode), OrderInfo::getMealCode, mealCode));
   }
//
//   public void updateOrderFinishByOrderIds(List<Long> orderIds, List<LocalDate> orderDates) {
//      if (!CollUtil.isEmpty(orderIds)) {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)orderIds, (Collection)orderDates);
//         ((OrderInfoMapper)this.baseMapper).update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(OrderInfo.class).in(OrderInfo::getOrderId, orderIds)).between(OrderInfo::getOrderDate, dateRange.get(0), dateRange.get(1))).set(OrderInfo::getDishesState, DishesStateEnum.ALREADY_TAKE.getKey())).set(OrderInfo::getOrderState, OrderStateEnum.FINISH.getKey()));
//      }
//   }

   @Override
   public List<OrderListMobileVO> getOrderMobileList(List<Long> orderIds, List<LocalDate> orderDates) {
      if (CollUtil.isEmpty(orderIds)) {
         return CollUtil.newArrayList(new OrderListMobileVO[0]);
      } else {
         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)orderIds, (Collection)orderDates);
         return ((OrderInfoMapper)this.baseMapper).getOrderMobileList(orderIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
      }
   }

//   public List<OrderGroupMobileVO> getOrderMobileGroup(OrderGroupMobileQueryDTO queryDTO) {
//      return ((OrderInfoMapper)this.baseMapper).getOrderMobileGroup(queryDTO);
//   }
//
//   public List<OrderRefundListMobileVO> getOrderRefundMobileList(List<Long> orderIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(orderIds)) {
//         return ListUtil.empty();
//      } else {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)orderIds, (Collection)orderDates);
//         return ((OrderInfoMapper)this.baseMapper).getOrderRefundMobileList(orderIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//      }
//   }

   @Override
   public OrderInfoMobileVO getOrderInfoMobileByOrderId(Long orderId) {
      OrderInfo orderInfo = this.getByIdDate(orderId);
      return orderInfo != null ? OrderInfoMobileVO.of(orderInfo) : null;
   }

   public List<OrderInfo> listOrderInfoByMacOrderId(String macOrderId, LocalDate... orderDates) {
      int argLength = ArrayUtil.length(orderDates);
      List orderInfoList;
      if (argLength == 2) {
         orderInfoList = this.baseMapper.selectList(Wrappers
                 .lambdaQuery(OrderInfo.class).eq(OrderInfo::getMacOrderId, macOrderId)
                 .between(OrderInfo::getOrderDate, orderDates[0], orderDates[1]));
      } else if (argLength == 1) {
         orderInfoList = this.baseMapper.selectList(Wrappers
                 .lambdaQuery(OrderInfo.class).eq(OrderInfo::getMacOrderId, macOrderId).eq(OrderInfo::getOrderDate, orderDates));
      } else {
         List<LocalDate> dateRange = LeOrderUtil.queryDateRange();
         orderInfoList = this.baseMapper.selectList(Wrappers
                 .lambdaQuery(OrderInfo.class).eq(OrderInfo::getMacOrderId, macOrderId)
                 .between(OrderInfo::getOrderDate, dateRange.get(0), dateRange.get(1)));
      }

      if (orderInfoList == null) {
         orderInfoList = this.baseMapper.selectList(Wrappers
                 .lambdaQuery(OrderInfo.class).eq(OrderInfo::getMacOrderId, macOrderId));
      }

      return orderInfoList;
   }

   public List<OrderInfo> listByOrderIds(Collection<Long> orderIds, Collection<LocalDate> orderDates) {
      if (CollUtil.isEmpty(orderIds)) {
         return CollUtil.newArrayList(new OrderInfo[0]);
      } else {
         List<LocalDate> dateRange = LeOrderUtil.queryDateRange(orderIds, orderDates);
         return ((OrderInfoMapper)this.baseMapper).selectList(Wrappers.lambdaQuery(OrderInfo.class)
                 .in(OrderInfo::getOrderId, orderIds)
                 .between(OrderInfo::getOrderDate, dateRange.get(0), dateRange.get(1)));
      }
   }
//
//   public List<OrderRefundWebVO> pageOrderRefundList(List<Long> orderRefundIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(orderRefundIds)) {
//         return ListUtil.empty();
//      } else {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)orderRefundIds, (Collection)orderDates);
//         return ((OrderInfoMapper)this.baseMapper).queryOrderRefundList(orderRefundIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//      }
//   }
//
   @Override
   public List<OrderInfo> getOrderInfoListByTradeId(Long tradeId) {
      List<TradeOrderRecharge> orderRecharges = this.tradeRecordApi.listOrderRechargeByTradeId(tradeId);
      return CollUtil.isEmpty(orderRecharges) ? ListUtil.empty() : this.listByOrderIds((Collection)orderRecharges.stream().map(TradeOrderRecharge::getOrderRechargeId).collect(Collectors.toList()), (Collection)null);
   }

   public void updateOrderRefundState(Long orderId, LocalDate orderDate, Integer orderRefundState, BigDecimal refundAmount) {
      this.update(Wrappers.lambdaUpdate(OrderInfo.class)
              .set(OrderInfo::getOrderRefundState, orderRefundState).set(OrderInfo::getRefundAmount, refundAmount)
              .set(OrderRefundStateEnum.FINISH.getKey().equals(orderRefundState), OrderInfo::getOrderState, OrderStateEnum.CANCEL.getKey())
              .eq(OrderInfo::getOrderId, orderId));
   }

   public void updateOrderInfo(OrderInfo updateOrderInfo) {
      this.baseMapper.update(updateOrderInfo, Wrappers.lambdaUpdate(OrderInfo.class)
              .eq(OrderInfo::getOrderId, updateOrderInfo.getOrderId()).eq(OrderInfo::getOrderDate, updateOrderInfo.getOrderDate()));
   }
//
//   public void updateCancelByOrderIds(Collection<Long> orderIds, Collection<LocalDate> orderDates) {
//      if (!CollUtil.isEmpty(orderIds)) {
//         log.info("[更新订单取消状态] {}", orderIds);
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange(orderIds, orderDates);
//         ((OrderInfoMapper)this.baseMapper).update((Object)null, (Wrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(OrderInfo.class).set(OrderInfo::getOrderState, OrderStateEnum.CANCEL.getKey())).set(OrderInfo::getPayState, PayStateEnum.PAY_CLOSE.getKey())).in(OrderInfo::getOrderId, orderIds)).between(OrderInfo::getOrderDate, dateRange.get(0), dateRange.get(1)));
//      }
//   }

   @Override
   public void updateOrderCommented(Long orderId) {
      List<LocalDate> dateRange = LeOrderUtil.queryDateRange(orderId);
      ((OrderInfoMapper)this.baseMapper).update(null,
              Wrappers.lambdaUpdate(OrderInfo.class)
                      .set(OrderInfo::getCommentState, LeConstants.COMMON_YES)
                      .eq(OrderInfo::getOrderId, orderId).between(OrderInfo::getOrderDate, dateRange.get(0),
                      dateRange.get(1)).eq(OrderInfo::getOrderState, OrderStateEnum.FINISH.getKey()));
   }

   public Integer getOrderCounterNum(LocalDate orderDate, Integer mealtimeType, Long counterId) {
      return ((OrderInfoMapper)this.baseMapper).getOrderCounterNum(orderDate, mealtimeType, counterId);
   }
//
//   public long existOrderUnTake(Long canteenId, Long stallId) {
//      return this.count((Wrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(OrderInfo.class).between(OrderInfo::getOrderDate, LocalDate.now(), LeOrderUtil.queryDateRange().get(1))).eq(ObjectUtil.isNotNull(canteenId), OrderInfo::getCanteenId, canteenId)).eq(ObjectUtil.isNotNull(stallId), OrderInfo::getStallId, stallId)).eq(OrderInfo::getOrderState, OrderStateEnum.validStateList())).ne(OrderInfo::getDishesState, DishesStateEnum.ALREADY_TAKE.getKey())).in(OrderInfo::getDeliveryType, new Object[]{DeliveryTypeEnum.DINING_CABINET.getKey(), DeliveryTypeEnum.FOOD_PLACE.getKey()}));
//   }
//
//   public long existReserveOrderUnPrint(Long canteenId, Long stallId, Integer mealtimeType) {
//      return this.count((Wrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(OrderInfo.class).eq(ObjectUtil.isNotNull(canteenId), OrderInfo::getCanteenId, canteenId)).eq(ObjectUtil.isNotNull(stallId), OrderInfo::getStallId, stallId)).eq(ObjectUtil.isNotNull(mealtimeType), OrderInfo::getMealtimeType, mealtimeType)).between(OrderInfo::getOrderDate, LocalDate.now(), LeOrderUtil.queryDateRange().get(1))).eq(OrderInfo::getOrderType, OrderTypeEnum.RESERVE_MEAL.getKey())).eq(OrderInfo::getOrderState, OrderStateEnum.PLACE.getKey()));
//   }
//
//   public String getMaxMealCodeOfDate(LocalDate orderDate, Integer mealtimeType, Long canteenId, Long stallId) {
//      OrderInfo orderInfo = (OrderInfo)((OrderInfoMapper)this.baseMapper).selectOne((Wrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(OrderInfo.class).select(new SFunction[]{OrderInfo::getMealCode}).eq(OrderInfo::getOrderDate, orderDate)).eq(OrderInfo::getCanteenId, LeNumUtil.isValidId(canteenId) ? canteenId : LeConstants.DATA_DEFAULT_LONG)).eq(OrderInfo::getStallId, LeNumUtil.isValidId(stallId) ? stallId : LeConstants.DATA_DEFAULT_LONG)).eq(LeNumUtil.isValidId(mealtimeType), OrderInfo::getMealtimeType, mealtimeType)).in(!LeNumUtil.isValidId(mealtimeType), OrderInfo::getMealtimeType, AllocMealtimeTypeEnum.allTypeList())).in(OrderInfo::getOrderType, OrderTypeEnum.allTypeList())).orderByDesc(OrderInfo::getOrderId)).last("limit 1"));
//      return orderInfo != null ? orderInfo.getMealCode() : null;
//   }

   protected LambdaQueryWrapper<OrderInfo> getOrderSelectWrappers() {
      return Wrappers.lambdaQuery(OrderInfo.class).select(OrderInfo::getOrderId, OrderInfo::getCustId, OrderInfo::getSourceType, OrderInfo::getCanteenId, OrderInfo::getStallId, OrderInfo::getMealtimeType, OrderInfo::getCanteenName, OrderInfo::getStallName, OrderInfo::getMealtimeName, OrderInfo::getOrderDate, OrderInfo::getCouponId, OrderInfo::getPayableAmount, OrderInfo::getRealAmount, OrderInfo::getAccPayAmount, OrderInfo::getOutPayAmount, OrderInfo::getOrderTime, OrderInfo::getOrderType, OrderInfo::getOrderState, OrderInfo::getPayTime, OrderInfo::getPayType, OrderInfo::getPayState, OrderInfo::getDeliveryType, OrderInfo::getDishesState, OrderInfo::getOrderRefundState);
   }

   @Override
   public List<OrderIdDateVO> queryOrderId(OrderSearchParam param, OrderUserPermissionDTO permission) {
      log.info("[查询订单ID]", param, permission);
      if (param.getStartDate() == null && param.getEndDate() == null) {
         param.setStartDate((LocalDate)LeOrderUtil.queryDateRange().get(0));
         param.setEndDate((LocalDate)LeOrderUtil.queryDateRange().get(1));
      }

      return ((OrderInfoMapper)this.baseMapper).queryOrderId(param, permission);
   }

//   public List<OrderIdDateVO> queryDeliveryId(OrderDeliverySearchParam param, OrderUserPermissionDTO permission) {
//      LogUtil.info("[查询订单配送ID]", param, permission);
//      return ((OrderInfoMapper)this.baseMapper).queryDeliveryId(param, permission);
//   }
//
//   public List<OrderIdDateVO> queryRefundId(OrderRefundSearchParam param, OrderUserPermissionDTO permission) {
//      LogUtil.info("[查询订单退款ID]", param, permission);
//      if (param.getEndDate() == null && param.getStartDate() == null && param.getEndDate() == null) {
//         param.setStartDate((LocalDate)LeOrderUtil.queryDateRange().get(0));
//         param.setEndDate((LocalDate)LeOrderUtil.queryDateRange().get(1));
//      }
//
//      return ((OrderInfoMapper)this.baseMapper).queryRefundId(param, permission);
//   }
//
//   public List<OrderListWebVO> queryOrderInfoWeb(List<Long> orderIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(orderIds)) {
//         return ListUtil.empty();
//      } else {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)orderIds, (Collection)orderDates);
//         List<OrderListWebVO> orderListWebVOS = ((OrderInfoMapper)this.baseMapper).queryOrderInfoWeb(orderIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//         this.orderPhotoService.fillOrderPhoto(orderListWebVOS);
//         return orderListWebVOS;
//      }
//   }
//
//   public List<OrderDetailSumGetVO> queryOrderDetailSumGet(List<Long> deliveryIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(deliveryIds)) {
//         return ListUtil.empty();
//      } else {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)deliveryIds, (Collection)orderDates);
//         return ((OrderInfoMapper)this.baseMapper).queryOrderDetailSumGet(deliveryIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//      }
//   }
//
//   public boolean existRoomWaitPlacedOrder(Long roomId, LocalDate orderDate, Integer mealtimeType) {
//      return ((OrderInfoMapper)this.baseMapper).exists((Wrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(OrderInfo.class).eq(OrderInfo::getRoomId, roomId)).eq(OrderInfo::getOrderDate, orderDate)).eq(OrderInfo::getOrderState, OrderStateEnum.WAIT_PLACE.getKey())).eq(OrderInfo::getMealtimeType, mealtimeType));
//   }
//
//   public List<OrderInfo> listBasicRoomWaitPlacedOrder(List<Long> roomIds, LocalDate orderDate, Integer mealtimeType) {
//      return CollUtil.isEmpty(roomIds) ? ListUtil.empty() : ((OrderInfoMapper)this.baseMapper).selectList(((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(OrderInfo.class).select(new SFunction[]{OrderInfo::getOrderId, OrderInfo::getRoomId, OrderInfo::getOrderDate, OrderInfo::getMealtimeType}).in(OrderInfo::getRoomId, roomIds)).eq(OrderInfo::getOrderState, OrderStateEnum.WAIT_PLACE.getKey())).eq(orderDate != null, OrderInfo::getOrderDate, orderDate)).eq(LeNumUtil.isValidId(mealtimeType), OrderInfo::getMealtimeType, mealtimeType));
//   }
//
//   public List<OrderListPadVO> listOrderForPad(List<Long> orderIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(orderIds)) {
//         return ListUtil.empty();
//      } else {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)orderIds, (Collection)orderDates);
//         return ((OrderInfoMapper)this.baseMapper).listOrderForPad(orderIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//      }
//   }
//
//   public Long getDinningOrderByRoom(Long roomId, Integer mealtimeType) {
//      List<OrderInfo> orderInfoList = ((OrderInfoMapper)this.baseMapper).selectList((Wrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)((LambdaQueryWrapper)Wrappers.lambdaQuery(OrderInfo.class).select(new SFunction[]{OrderInfo::getOrderId}).eq(OrderInfo::getRoomId, roomId)).eq(OrderInfo::getOrderState, OrderStateEnum.WAIT_PLACE.getKey())).eq(OrderInfo::getMealtimeType, mealtimeType)).orderByDesc(OrderInfo::getOrderId));
//      return orderInfoList.isEmpty() ? null : ((OrderInfo)orderInfoList.get(0)).getOrderId();
//   }

   public List<OrderListAndroidVO> listOrderForAndroid(List<Long> orderIds, List<LocalDate> orderDates) {
      if (CollUtil.isEmpty(orderIds)) {
         return CollUtil.newArrayList(new OrderListAndroidVO[0]);
      } else {
         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)orderIds, (Collection)orderDates);
         return ((OrderInfoMapper)this.baseMapper).listOrderForAndroid(orderIds, (LocalDate)dateRange.get(0),
                 (LocalDate)dateRange.get(1));
      }
   }
//
//   public List<Long> queryOrderIdsByGoodsId(Long goodsDishesId, Long menuDetailId) {
//      List<LocalDate> dateRange = LeOrderUtil.queryDateRange(goodsDishesId);
//      return ((OrderInfoMapper)this.baseMapper).queryOrderIdsByGoodsId(goodsDishesId, menuDetailId, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//   }
//
//   public List<OrderInfoBackfieldVO> listOrderForBackfield(List<Long> orderIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(orderIds)) {
//         return ListUtil.empty();
//      } else {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange(orderIds);
//         List<OrderInfoBackfieldVO> orderInfoBackfieldVOS = ((OrderInfoMapper)this.baseMapper).listOrderForBackfield(orderIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//         this.orderPhotoService.fillOrderPhoto(orderInfoBackfieldVOS);
//         return orderInfoBackfieldVOS;
//      }
//   }

   public List<OrderInfo> listCustOrder(Long custId, LocalDate beginDate, LocalDate endDate, List<Integer> mealTimeTypes, List<Integer> orderTypes) {
      return ((OrderInfoMapper)this.baseMapper).selectList(((LambdaQueryWrapper<OrderInfo>) Wrappers.lambdaQuery(OrderInfo.class).eq(OrderInfo::getCustId, custId).ge(OrderInfo::getOrderDate, beginDate != null ? beginDate : LeOrderUtil.queryDateRange().get(0)).le(OrderInfo::getOrderDate, endDate != null ? endDate : LeOrderUtil.queryDateRange().get(1)).in(CollUtil.isNotEmpty(mealTimeTypes), OrderInfo::getMealtimeType, mealTimeTypes)).in(CollUtil.isNotEmpty(orderTypes), OrderInfo::getOrderType, orderTypes));
   }
//
//   public OrderAppInfoVO getAppOrderInfo(Long orderId) {
//      List<LocalDate> dateRange = LeOrderUtil.queryDateRange(orderId);
//      return ((OrderInfoMapper)this.baseMapper).getAppOrderInfo(orderId, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//   }
//
//   public List<OrderAppListVO> listAppOrderDetail(List<Long> orderIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(orderIds)) {
//         return ListUtil.empty();
//      } else {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)orderIds, (Collection)orderDates);
//         return ((OrderInfoMapper)this.baseMapper).listAppOrderDetail(orderIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//      }
//   }
//
//   public List<OrderAppRefundVO> listOrderAppRefundCheckList(List<Long> orderRefundIds, List<LocalDate> orderDates) {
//      if (CollUtil.isEmpty(orderRefundIds)) {
//         return ListUtil.empty();
//      } else {
//         List<LocalDate> dateRange = LeOrderUtil.queryDateRange((Collection)orderRefundIds, (Collection)orderDates);
//         return ((OrderInfoMapper)this.baseMapper).listOrderAppRefundCheckList(orderRefundIds, (LocalDate)dateRange.get(0), (LocalDate)dateRange.get(1));
//      }
//   }
//
//   // $FF: synthetic method
//   private static Object $deserializeLambda$(SerializedLambda lambda) {
//      switch (lambda.getImplMethodName()) {
//         case "getPayTime":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDateTime;")) {
//               return OrderInfo::getPayTime;
//            }
//            break;
//         case "getRefundAmount":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/math/BigDecimal;")) {
//               return OrderInfo::getRefundAmount;
//            }
//            break;
//         case "getOutPayAmount":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/math/BigDecimal;")) {
//               return OrderInfo::getOutPayAmount;
//            }
//            break;
//         case "getStallName":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getStallName;
//            }
//            break;
//         case "getOrderId":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getOrderId;
//            }
//            break;
//         case "getRealAmount":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/math/BigDecimal;")) {
//               return OrderInfo::getRealAmount;
//            }
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getStallId;
//            }
//            break;
//         case "getCouponId":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getCouponId;
//            }
//            break;
//         case "getPayableAmount":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/math/BigDecimal;")) {
//               return OrderInfo::getPayableAmount;
//            }
//            break;
//         case "getMealtimeType":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getMealtimeType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getMealtimeType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getMealtimeType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getMealtimeType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getMealtimeType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getMealtimeType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getMealtimeType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getMealtimeType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getMealtimeType;
//            }
//            break;
//         case "getPayType":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getPayType;
//            }
//            break;
//         case "getOrderTime":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDateTime;")) {
//               return OrderInfo::getOrderTime;
//            }
//            break;
//         case "getAccPayAmount":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/math/BigDecimal;")) {
//               return OrderInfo::getAccPayAmount;
//            }
//            break;
//         case "getDeliveryType":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getDeliveryType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getDeliveryType;
//            }
//            break;
//         case "getCommentState":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getCommentState;
//            }
//            break;
//         case "getMealtimeName":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getMealtimeName;
//            }
//            break;
//         case "getMealCode":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getMealCode;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getMealCode;
//            }
//            break;
//         case "getPayState":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getPayState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getPayState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getPayState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getPayState;
//            }
//            break;
//         case "getRoomId":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getRoomId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getRoomId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getRoomId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getRoomId;
//            }
//            break;
//         case "getOrderType":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderType;
//            }
//            break;
//         case "getOrderDate":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/time/LocalDate;")) {
//               return OrderInfo::getOrderDate;
//            }
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getCustId;
//            }
//            break;
//         case "getSourceType":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getSourceType;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getSourceType;
//            }
//            break;
//         case "getDishesState":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getDishesState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getDishesState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getDishesState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getDishesState;
//            }
//            break;
//         case "getCanteenName":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getCanteenName;
//            }
//            break;
//         case "getOrderState":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderState;
//            }
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) {
//               return OrderInfo::getCanteenId;
//            }
//            break;
//         case "getMacOrderId":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getMacOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getMacOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getMacOrderId;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) {
//               return OrderInfo::getMacOrderId;
//            }
//            break;
//         case "getOrderRefundState":
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderRefundState;
//            }
//
//            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/order/common/model/OrderInfo") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) {
//               return OrderInfo::getOrderRefundState;
//            }
//      }
//
//      throw new IllegalArgumentException("Invalid lambda deserialization");
//   }
}
