|
@@ -1,97 +1,97 @@
|
|
-package com.diagbot.web;
|
|
|
|
-
|
|
|
|
-import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
-import com.diagbot.annotation.SysLogger;
|
|
|
|
-import com.diagbot.config.CryptConfiguer;
|
|
|
|
-import com.diagbot.dto.RespDTO;
|
|
|
|
-import com.diagbot.entity.ConceptDetail;
|
|
|
|
-import com.diagbot.facade.ConceptDetailTestFacade;
|
|
|
|
-import com.diagbot.vo.ConceptDetailPageVO;
|
|
|
|
-import io.swagger.annotations.Api;
|
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
-import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
-
|
|
|
|
-import javax.validation.Valid;
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * @Description:
|
|
|
|
- * @Author:zhaops
|
|
|
|
- * @time: 2019/12/30 20:22
|
|
|
|
- */
|
|
|
|
-@RestController
|
|
|
|
-@RequestMapping("/conceptDetailTest")
|
|
|
|
-@Api(value = "提示信息加密测试", tags = { "知识库标准化-提示信息加密测试相关API" })
|
|
|
|
-@SuppressWarnings("unchecked")
|
|
|
|
-@Deprecated
|
|
|
|
-@ApiIgnore
|
|
|
|
-public class ConceptDetailTestController {
|
|
|
|
- @Autowired
|
|
|
|
- private CryptConfiguer cryptConfiguer;
|
|
|
|
-
|
|
|
|
- @Autowired
|
|
|
|
- private ConceptDetailTestFacade conceptDetailTestFacade;
|
|
|
|
-
|
|
|
|
- @PostMapping("/saveRecord")
|
|
|
|
- @SysLogger("saveRecord")
|
|
|
|
- public RespDTO<ConceptDetail> saveRecord(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
|
- ConceptDetail data = conceptDetailTestFacade.saveRecord(conceptDetail);
|
|
|
|
- return RespDTO.onSuc(data);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @PostMapping("/getById")
|
|
|
|
- @SysLogger("getById")
|
|
|
|
- public RespDTO<ConceptDetail> getById(@RequestParam Long id) {
|
|
|
|
- ConceptDetail data = conceptDetailTestFacade.getByIds(id);
|
|
|
|
- System.out.println(cryptConfiguer.cryptFlag);
|
|
|
|
- return RespDTO.onSuc(data);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @PostMapping("/getByParam")
|
|
|
|
- @SysLogger("getByParam")
|
|
|
|
- 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);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @PostMapping("/getOneByParam")
|
|
|
|
- @SysLogger("getOneByParam")
|
|
|
|
- public RespDTO<ConceptDetail> getOneByParam(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
|
- List<ConceptDetail> data = conceptDetailTestFacade.getByParam(conceptDetail);
|
|
|
|
- return RespDTO.onSuc(data.size() > 0 ? data.get(0) : null);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- @PostMapping("/selectOneByParam")
|
|
|
|
- @SysLogger("selectOneByParam")
|
|
|
|
- public RespDTO<ConceptDetail> selectOneByParam(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
|
- List<ConceptDetail> data = conceptDetailTestFacade.selectByParam(conceptDetail);
|
|
|
|
- return RespDTO.onSuc(data.size() > 0 ? data.get(0) : null);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * 分页查询静态知识,可带过滤条件
|
|
|
|
- *
|
|
|
|
- * @param conceptDetailPageVO
|
|
|
|
- * @return
|
|
|
|
- */
|
|
|
|
- @PostMapping("/getConceptDetailPage")
|
|
|
|
- @SysLogger("getConceptDetailPage")
|
|
|
|
- public RespDTO getConceptDetailPage(@RequestBody ConceptDetailPageVO conceptDetailPageVO) {
|
|
|
|
- IPage<ConceptDetail> conceptDetailIPage = conceptDetailTestFacade.selectiveTestPage(conceptDetailPageVO);
|
|
|
|
- return RespDTO.onSuc(conceptDetailIPage);
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+//package com.diagbot.web;
|
|
|
|
+//
|
|
|
|
+//import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
+//import com.diagbot.annotation.SysLogger;
|
|
|
|
+//import com.diagbot.config.CryptConfiguer;
|
|
|
|
+//import com.diagbot.dto.RespDTO;
|
|
|
|
+//import com.diagbot.entity.ConceptDetail;
|
|
|
|
+//import com.diagbot.facade.ConceptDetailTestFacade;
|
|
|
|
+//import com.diagbot.vo.ConceptDetailPageVO;
|
|
|
|
+//import io.swagger.annotations.Api;
|
|
|
|
+//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+//import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+//import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
+//import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+//import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
+//import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+//import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
+//
|
|
|
|
+//import javax.validation.Valid;
|
|
|
|
+//import java.util.List;
|
|
|
|
+//
|
|
|
|
+///**
|
|
|
|
+// * @Description:
|
|
|
|
+// * @Author:zhaops
|
|
|
|
+// * @time: 2019/12/30 20:22
|
|
|
|
+// */
|
|
|
|
+//@RestController
|
|
|
|
+//@RequestMapping("/conceptDetailTest")
|
|
|
|
+//@Api(value = "提示信息加密测试", tags = { "知识库标准化-提示信息加密测试相关API" })
|
|
|
|
+//@SuppressWarnings("unchecked")
|
|
|
|
+//@Deprecated
|
|
|
|
+//@ApiIgnore
|
|
|
|
+//public class ConceptDetailTestController {
|
|
|
|
+// @Autowired
|
|
|
|
+// private CryptConfiguer cryptConfiguer;
|
|
|
|
+//
|
|
|
|
+// @Autowired
|
|
|
|
+// private ConceptDetailTestFacade conceptDetailTestFacade;
|
|
|
|
+//
|
|
|
|
+// @PostMapping("/saveRecord")
|
|
|
|
+// @SysLogger("saveRecord")
|
|
|
|
+// public RespDTO<ConceptDetail> saveRecord(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
|
+// ConceptDetail data = conceptDetailTestFacade.saveRecord(conceptDetail);
|
|
|
|
+// return RespDTO.onSuc(data);
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// @PostMapping("/getById")
|
|
|
|
+// @SysLogger("getById")
|
|
|
|
+// public RespDTO<ConceptDetail> getById(@RequestParam Long id) {
|
|
|
|
+// ConceptDetail data = conceptDetailTestFacade.getByIds(id);
|
|
|
|
+// System.out.println(cryptConfiguer.cryptFlag);
|
|
|
|
+// return RespDTO.onSuc(data);
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// @PostMapping("/getByParam")
|
|
|
|
+// @SysLogger("getByParam")
|
|
|
|
+// 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);
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+//
|
|
|
|
+// @PostMapping("/getOneByParam")
|
|
|
|
+// @SysLogger("getOneByParam")
|
|
|
|
+// public RespDTO<ConceptDetail> getOneByParam(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
|
+// List<ConceptDetail> data = conceptDetailTestFacade.getByParam(conceptDetail);
|
|
|
|
+// return RespDTO.onSuc(data.size() > 0 ? data.get(0) : null);
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+//
|
|
|
|
+// @PostMapping("/selectOneByParam")
|
|
|
|
+// @SysLogger("selectOneByParam")
|
|
|
|
+// public RespDTO<ConceptDetail> selectOneByParam(@Valid @RequestBody ConceptDetail conceptDetail) {
|
|
|
|
+// List<ConceptDetail> data = conceptDetailTestFacade.selectByParam(conceptDetail);
|
|
|
|
+// return RespDTO.onSuc(data.size() > 0 ? data.get(0) : null);
|
|
|
|
+// }
|
|
|
|
+//
|
|
|
|
+// /**
|
|
|
|
+// * 分页查询静态知识,可带过滤条件
|
|
|
|
+// *
|
|
|
|
+// * @param conceptDetailPageVO
|
|
|
|
+// * @return
|
|
|
|
+// */
|
|
|
|
+// @PostMapping("/getConceptDetailPage")
|
|
|
|
+// @SysLogger("getConceptDetailPage")
|
|
|
|
+// public RespDTO getConceptDetailPage(@RequestBody ConceptDetailPageVO conceptDetailPageVO) {
|
|
|
|
+// IPage<ConceptDetail> conceptDetailIPage = conceptDetailTestFacade.selectiveTestPage(conceptDetailPageVO);
|
|
|
|
+// return RespDTO.onSuc(conceptDetailIPage);
|
|
|
|
+// }
|
|
|
|
+//}
|