|
@@ -3,9 +3,9 @@ package com.diagbot.web;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
+import com.diagbot.dto.DeptInfoDTO;
|
|
|
import com.diagbot.dto.GetQuestionInfoDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
-import com.diagbot.entity.DeptInfo;
|
|
|
import com.diagbot.entity.QuestionUsual;
|
|
|
import com.diagbot.facade.DeptInfoFacade;
|
|
|
import com.diagbot.facade.QuestionInfoFacade;
|
|
@@ -93,8 +93,8 @@ public class QuestionUsualController {
|
|
|
notes = "")
|
|
|
@PostMapping("/getDeptName")
|
|
|
@SysLogger("getDeptName")
|
|
|
- public RespDTO<List<DeptInfo>> getDeptName() {
|
|
|
- List<DeptInfo> data = deptInfoFacade.getAllDeptInfo();
|
|
|
+ public RespDTO<List<DeptInfoDTO>> getDeptName() {
|
|
|
+ List<DeptInfoDTO> data = deptInfoFacade.getAllDeptInfo();
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
|
|
@@ -103,8 +103,8 @@ public class QuestionUsualController {
|
|
|
"deptId: 科室id,如果是添加不用填,如果是修改,必填<br>")
|
|
|
@PostMapping("/getQuestionInfo")
|
|
|
@SysLogger("getQuestionInfo")
|
|
|
- public RespDTO<List<DeptInfo>> getQuestionInfo(@Valid @RequestBody GetQuestionInfoVO getQuestionInfoVO) {
|
|
|
- List<GetQuestionInfoDTO> data = questionInfoFacade.getQuestiongInfoByName(getQuestionInfoVO);
|
|
|
+ public RespDTO<List<GetQuestionInfoDTO>> getQuestionInfo(@Valid @RequestBody GetQuestionInfoVO getQuestionInfoVO) {
|
|
|
+ List<GetQuestionInfoDTO> data = questionInfoFacade.getQuestiongInfosByName(getQuestionInfoVO);
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
}
|