优化
This commit is contained in:
@ -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));
|
||||
|
@ -61,7 +61,4 @@ public interface DishesTypeService {
|
||||
* @return
|
||||
*/
|
||||
List<DishesTypeListRespVO> getDishesTypeList(Long carteenId, LocalDateTime startTime,LocalDateTime endTime);
|
||||
|
||||
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user