|
@ -1,5 +1,6 @@ |
|
|
package com.qyft.gd.controller; |
|
|
package com.qyft.gd.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.qyft.gd.model.dto.StartCraftsDTO; |
|
|
import com.qyft.gd.model.entity.Crafts; |
|
|
import com.qyft.gd.model.entity.Crafts; |
|
|
import com.qyft.gd.service.CraftsService; |
|
|
import com.qyft.gd.service.CraftsService; |
|
|
import com.qyft.gd.service.CraftsStepService; |
|
|
import com.qyft.gd.service.CraftsStepService; |
|
@ -68,8 +69,8 @@ public class CraftsController { |
|
|
|
|
|
|
|
|
@Operation(summary = "开始执行工艺") |
|
|
@Operation(summary = "开始执行工艺") |
|
|
@PostMapping("/start") |
|
|
@PostMapping("/start") |
|
|
public Result<String> startCrafts(@Parameter(description = "工艺id") @RequestParam Long craftId, @Parameter(description = "加热区id") @RequestParam String heatId) { |
|
|
|
|
|
boolean isSuccess = craftsStepService.startCrafts(craftId, heatId); |
|
|
|
|
|
|
|
|
public Result<String> startCrafts(@RequestBody StartCraftsDTO startCraftsDTO) { |
|
|
|
|
|
boolean isSuccess = craftsStepService.startCrafts(startCraftsDTO.getCraftId(), startCraftsDTO.getHeatId()); |
|
|
if (isSuccess) { |
|
|
if (isSuccess) { |
|
|
return Result.success(); |
|
|
return Result.success(); |
|
|
} |
|
|
} |
|
|