结束开料接口参数修改

This commit is contained in:
liuzhaotian
2024-07-02 17:07:26 +08:00
parent 3a5d688304
commit 22c430ddf4
@@ -64,10 +64,10 @@ public class OptimizePlanController {
return CommonResult.success(optimizePlanService.commit(planId));
}
@PutMapping("/endCutting")
@GetMapping("/endCutting")
@Operation(summary = "结束开料")
@PreAuthorize("@ss.hasPermission('executor:optimize-plate:create')")
public CommonResult<Boolean> endCutting(@Valid @RequestBody @NotNull(message = "排单id不能空") Long planId) {
public CommonResult<Boolean> endCutting(@RequestParam @Valid @NotNull(message = "排单id不能空") Long planId) {
return success(optimizePlanService.endCutting(planId));
}