算法修改
This commit is contained in:
parent
b8b122980f
commit
9915158530
@ -35,9 +35,8 @@ public class AlgorithmController {
|
||||
return algorithmService.save(algorithm);
|
||||
}
|
||||
|
||||
@PutMapping("/{id}")
|
||||
public boolean updateAlgorithm(@PathVariable String id, @RequestBody Algorithm algorithm) {
|
||||
algorithm.setAlgorithmId(id);
|
||||
@PutMapping
|
||||
public boolean updateAlgorithm(@RequestBody Algorithm algorithm) {
|
||||
algorithm.setModifier(currentUsername());
|
||||
algorithm.setUpdatedAt(LocalDateTime.now());
|
||||
return algorithmService.updateById(algorithm);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user