| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得盘点方案") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-plan:query')") |
| | | public CommonResult<MesWmStockTakingPlanRespVO> getStockTakingPlan(@RequestParam("id") Long id) { |
| | | MesWmStockTakingPlanDO plan = stockTakingPlanService.getStockTakingPlan(id); |
| | | return success(plan == null ? null : BeanUtils.toBean(plan, MesWmStockTakingPlanRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得盘点方案分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-plan:query')") |
| | | public CommonResult<PageResult<MesWmStockTakingPlanRespVO>> getStockTakingPlanPage(@Valid MesWmStockTakingPlanPageReqVO pageReqVO) { |
| | | PageResult<MesWmStockTakingPlanDO> pageResult = stockTakingPlanService.getStockTakingPlanPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesWmStockTakingPlanRespVO.class)); |