This commit is contained in:
zengtao01
2024-07-11 16:33:58 +08:00
parent 25f780154c
commit 92b8d938f4
16 changed files with 84 additions and 25 deletions

View File

@ -92,6 +92,14 @@ public class DishesTypeController {
@Operation(summary = "获得菜品分类分页")
@PreAuthorize("@ss.hasPermission('t:dishes-type:query')")
public CommonResult<PageResult<DishesTypeRespVO>> getDishesTypePage(@Valid DishesTypePageReqVO pageReqVO) {
//pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
PageResult<DishesTypeDO> pageResult = dishesTypeService.getDishesTypePage(pageReqVO);
return success(BeanUtils.toBean(pageResult, DishesTypeRespVO.class));
}
@GetMapping("/typeList")
@Operation(summary = "获得菜品分类不分页")
public CommonResult<PageResult<DishesTypeRespVO>> getTypeList(@Valid DishesTypePageReqVO pageReqVO) {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
PageResult<DishesTypeDO> pageResult = dishesTypeService.getDishesTypePage(pageReqVO);
return success(BeanUtils.toBean(pageResult, DishesTypeRespVO.class));

View File

@ -61,7 +61,4 @@ public interface DishesTypeService {
* @return
*/
List<DishesTypeListRespVO> getDishesTypeList(Long carteenId, LocalDateTime startTime,LocalDateTime endTime);
}

View File

@ -14,6 +14,7 @@ import cn.iocoder.yudao.module.system.dal.mysql.dishes.DishesMapper;
import cn.iocoder.yudao.module.system.dal.mysql.dishestype.DishesTypeMapper;
import cn.iocoder.yudao.module.system.enums.ErrorCodeConstants;
import cn.iocoder.yudao.module.system.enums.TimePeriodEnum;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;