| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得采购计划") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-plan:query')") |
| | | public CommonResult<ErpPurchasePlanRespVO> getPurchasePlan(@RequestParam("id") Long id) { |
| | | ErpPurchasePlanDO plan = purchasePlanService.getPurchasePlan(id); |
| | | if (plan == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得采购计划分页") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-plan:query')") |
| | | public CommonResult<PageResult<ErpPurchasePlanRespVO>> getPurchasePlanPage(@Valid ErpPurchasePlanPageReqVO pageReqVO) { |
| | | PageResult<ErpPurchasePlanDO> pageResult = purchasePlanService.getPurchasePlanPage(pageReqVO); |
| | | return success(buildPurchasePlanVOPageResult(pageResult)); |
| | |
| | | |
| | | @GetMapping("/approver-ids") |
| | | @Operation(summary = "获得采购计划的审批人编号集合,供前端判断是否展示审核按钮") |
| | | @PreAuthorize("@ss.hasPermission('erp:purchase-plan:query')") |
| | | public CommonResult<Set<Long>> getApproverUserIds() { |
| | | return success(purchasePlanService.getPurchasePlanApproverUserIds()); |
| | | } |