|
|
@ -59,7 +59,7 @@ public class MatrixCraftController { |
|
|
|
} |
|
|
|
|
|
|
|
@Operation(summary = "更新工艺") |
|
|
|
@PutMapping |
|
|
|
@PutMapping("/update") |
|
|
|
public Result<Boolean> update(@RequestBody MatrixCraft matrixCraft) { |
|
|
|
// 如果名称和除了当前的重复, 则返回失败 |
|
|
|
if (matrixCraftService.getBaseMapper().selectOne(new QueryWrapper<MatrixCraft>().eq("name", matrixCraft.getName()).ne("id", matrixCraft.getId())) != null) { |
|
|
|