| | |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping("/update-info") |
| | | @Operation(summary = "部分更新招标信息(仅发布中/投标中可编辑:招标说明和资质要求)") |
| | | @PreAuthorize("@ss.hasPermission('srm:tender-project:update')") |
| | | public CommonResult<Boolean> updateTenderProjectInfo(@Valid @RequestBody SrmTenderProjectPartialUpdateReqVO updateReqVO) { |
| | | tenderProjectService.updateTenderProjectPartial(updateReqVO); |
| | | return success(true); |
| | | } |
| | | |
| | | // ========== 简易模式操作 ========== |
| | | |
| | | @PutMapping("/start-price-comparing") |
| | | @Operation(summary = "开始比价(简易版)") |
| | | @PreAuthorize("@ss.hasPermission('srm:tender-project:update')") |
| | | public CommonResult<Boolean> startPriceComparing(@RequestParam("id") Long id) { |
| | | tenderProjectService.startPriceComparing(id); |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping("/confirm") |
| | | @Operation(summary = "确认中标并生成采购订单(简易版)") |
| | | @PreAuthorize("@ss.hasPermission('srm:tender-project:update')") |
| | | public CommonResult<Boolean> confirmTenderProject(@Valid @RequestBody SrmTenderConfirmReqVO reqVO) { |
| | | tenderProjectService.confirmTenderProject(reqVO.getId(), reqVO.getBidId()); |
| | | return success(true); |
| | | } |
| | | |
| | | // ========== 物料子表 ========== |
| | | |
| | | @PostMapping("/material/create") |