package cn.iocoder.yudao.module.system.dal.mysql.restaurant;


import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.dal.dataobject.restaurant.DishesOrderItemDO;
import org.apache.ibatis.annotations.Mapper;


/**
 * 长者点餐记录 Mapper
 *
 * @author 系统管理员
 */
@Mapper
public interface DishesOrderItemMapper extends BaseMapperX<DishesOrderItemDO> {

//    default PageResult<DishesOrderItemDO> selectPage(DishesOrderItemPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<DishesOrderItemDO>()
//                .eqIfPresent(DishesOrderItemDO::getFoodId, reqVO.getFoodId())
//                .likeIfPresent(DishesOrderItemDO::getFoodName, reqVO.getFoodName())
//                .eqIfPresent(DishesOrderItemDO::getCount, reqVO.getCount())
//                .eqIfPresent(DishesOrderItemDO::getPrice, reqVO.getPrice())
//                .eqIfPresent(DishesOrderItemDO::getAmount, reqVO.getAmount())
//                .betweenIfPresent(DishesOrderItemDO::getOrderTime, reqVO.getOrderTime())
//                .eqIfPresent(DishesOrderItemDO::getElderId, reqVO.getElderId())
//                .eqIfPresent(DishesOrderItemDO::getOrderStatisticsId, reqVO.getOrderStatisticsId())
//                .orderByDesc(DishesOrderItemDO::getId));
//    }

}