|
@ -76,14 +76,14 @@ public class CraftsController { |
|
|
return Result.failed(); |
|
|
return Result.failed(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Operation(summary = "暂停工艺") |
|
|
|
|
|
|
|
|
@Operation(summary = "暂停执行工艺") |
|
|
@PostMapping("/pause") |
|
|
@PostMapping("/pause") |
|
|
public Result<String> pauseCrafts(@Parameter(description = "加热区id") @RequestParam String heatId) { |
|
|
public Result<String> pauseCrafts(@Parameter(description = "加热区id") @RequestParam String heatId) { |
|
|
craftsStepService.pauseCrafts(heatId); |
|
|
craftsStepService.pauseCrafts(heatId); |
|
|
return Result.success(); |
|
|
return Result.success(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Operation(summary = "恢复工艺") |
|
|
|
|
|
|
|
|
@Operation(summary = "恢复执行工艺") |
|
|
@PostMapping("/resume") |
|
|
@PostMapping("/resume") |
|
|
public Result<String> resumeCrafts(@Parameter(description = "加热区id") @RequestParam String heatId) { |
|
|
public Result<String> resumeCrafts(@Parameter(description = "加热区id") @RequestParam String heatId) { |
|
|
craftsStepService.resumeCrafts(heatId); |
|
|
craftsStepService.resumeCrafts(heatId); |
|
|