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.FoodCategoryDO;
import org.apache.ibatis.annotations.Mapper;


/**
 * 菜品分类 Mapper
 *
 * @author 系统管理员
 */
@Mapper
public interface FoodCategoryMapper extends BaseMapperX<FoodCategoryDO> {

//    default PageResult<FoodCategoryDO> selectPage(FoodCategoryPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<FoodCategoryDO>()
//                .eqIfPresent(FoodCategoryDO::getParentId, reqVO.getParentId())
//                .likeIfPresent(FoodCategoryDO::getCategoryName, reqVO.getCategoryName())
//                .eqIfPresent(FoodCategoryDO::getCategoryCode, reqVO.getCategoryCode())
//                .eqIfPresent(FoodCategoryDO::getRemarks, reqVO.getRemarks())
//                .eqIfPresent(FoodCategoryDO::getSort, reqVO.getSort())
//                .eqIfPresent(FoodCategoryDO::getStatus, reqVO.getStatus())
//                .eqIfPresent(FoodCategoryDO::getCreatedBy, reqVO.getCreatedBy())
//                .betweenIfPresent(FoodCategoryDO::getCreatedTime, reqVO.getCreatedTime())
//                .orderByDesc(FoodCategoryDO::getId));
//    }

}