|
@@ -32,22 +32,29 @@ public class ConceptDetailTestController {
|
|
|
|
|
|
@PostMapping("/saveRecord")
|
|
|
@SysLogger("saveRecord")
|
|
|
- public RespDTO<ConceptIntroduceDTO> saveRecord(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
+ public RespDTO<ConceptDetail> saveRecord(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
ConceptDetail data = conceptDetailTestFacade.saveRecord(conceptDetail);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/getById")
|
|
|
@SysLogger("getById")
|
|
|
- public RespDTO<ConceptIntroduceDTO> getById(@RequestParam Long id) {
|
|
|
+ public RespDTO<ConceptDetail> getById(@RequestParam Long id) {
|
|
|
ConceptDetail data = conceptDetailTestFacade.getByIds(id);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/getByParam")
|
|
|
@SysLogger("getByParam")
|
|
|
- public RespDTO<ConceptIntroduceDTO> getByParam(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
+ public RespDTO<ConceptDetail> getByParam(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
List<ConceptDetail> data = conceptDetailTestFacade.getByParam(conceptDetail);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
-}
|
|
|
+
|
|
|
+ @PostMapping("/selectByParam")
|
|
|
+ @SysLogger("selectByParam")
|
|
|
+ public RespDTO<ConceptDetail> selectByParam(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
+ List<ConceptDetail> data = conceptDetailTestFacade.selectByParam(conceptDetail);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+}
|