返回id
This commit is contained in:
parent
461bbaec56
commit
af1102a1b9
@ -89,7 +89,7 @@ public class AiolPaperController extends JeecgController<AiolPaper, IAiolPaperSe
|
|||||||
public Result<String> add(@RequestBody AiolPaper aiolPaper) {
|
public Result<String> add(@RequestBody AiolPaper aiolPaper) {
|
||||||
aiolPaperService.save(aiolPaper);
|
aiolPaperService.save(aiolPaper);
|
||||||
|
|
||||||
return Result.OK("添加成功!");
|
return Result.OK(aiolPaper.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -101,7 +101,7 @@ public class AiolQuestionController extends JeecgController<AiolQuestion, IAiolQ
|
|||||||
aiolQuestionRepo.setQuestionId(aiolQuestion.getId());
|
aiolQuestionRepo.setQuestionId(aiolQuestion.getId());
|
||||||
aiolQuestionRepoController.add(aiolQuestionRepo);
|
aiolQuestionRepoController.add(aiolQuestionRepo);
|
||||||
}
|
}
|
||||||
return Result.OK("添加成功!");
|
return Result.OK(aiolQuestion.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -118,7 +118,7 @@ public class AiolRepoController extends JeecgController<AiolRepo, IAiolRepoServi
|
|||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||||
public Result<String> edit(@RequestBody AiolRepo aiolRepo) {
|
public Result<String> edit(@RequestBody AiolRepo aiolRepo) {
|
||||||
aiolRepoService.updateById(aiolRepo);
|
aiolRepoService.updateById(aiolRepo);
|
||||||
return Result.OK("编辑成功!");
|
return Result.OK(aiolRepo.getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user