Merge branch 'develop-business-css' of http://121.37.111.42:3000/ThbTech/JavaProjectRepo into develop-business-css
This commit is contained in:
commit
9475db4619
@ -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