|
@@ -1,10 +1,12 @@
|
|
package com.diagbot.web;
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.config.CryptConfiguer;
|
|
import com.diagbot.config.CryptConfiguer;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.entity.ConceptDetail;
|
|
import com.diagbot.entity.ConceptDetail;
|
|
import com.diagbot.facade.ConceptDetailTestFacade;
|
|
import com.diagbot.facade.ConceptDetailTestFacade;
|
|
|
|
+import com.diagbot.vo.ConceptDetailPageVO;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -60,4 +62,33 @@ public class ConceptDetailTestController {
|
|
List<ConceptDetail> data = conceptDetailTestFacade.selectByParam(conceptDetail);
|
|
List<ConceptDetail> data = conceptDetailTestFacade.selectByParam(conceptDetail);
|
|
return RespDTO.onSuc(data);
|
|
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);
|
|
|
|
+ }
|
|
}
|
|
}
|