|
@@ -10,6 +10,7 @@ import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.dto.VerifyDataDTO;
|
|
|
import com.diagbot.entity.wrapper.DiagnoseWrapper;
|
|
|
import com.diagbot.facade.DiagnoseFacade;
|
|
|
+import com.diagbot.facade.LibraryInfoFacade;
|
|
|
import com.diagbot.vo.DeleteDiagnoseVO;
|
|
|
import com.diagbot.vo.DiagnosePageVO;
|
|
|
import com.diagbot.vo.DiseaseIndexVO;
|
|
@@ -22,6 +23,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
+import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
@@ -40,6 +42,8 @@ public class DiagnoseController {
|
|
|
|
|
|
@Autowired
|
|
|
DiagnoseFacade diagnoseFacade;
|
|
|
+ @Autowired
|
|
|
+ LibraryInfoFacade libraryInfoFacade;
|
|
|
|
|
|
@ApiOperation(value = "诊断依据-分页[by:zhoutg]", notes = "")
|
|
|
@PostMapping("/page")
|
|
@@ -106,4 +110,15 @@ public class DiagnoseController {
|
|
|
DiagnoseDetailSaveDTO diagnoseDetailSaveDTO = diagnoseFacade.getDetail(getDiagnoseDetailVO);
|
|
|
return RespDTO.onSuc(diagnoseDetailSaveDTO);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "诊断依据-加载诊断依据所需词库[by:zhoutg]")
|
|
|
+ @PostMapping("/loadRedisWithDiagnose")
|
|
|
+ @SysLogger("loadRedisWithDiagnose")
|
|
|
+ @ApiIgnore
|
|
|
+ public RespDTO<Boolean> loadRedisWithDiagnose() {
|
|
|
+ libraryInfoFacade.loadRedisWithDiagnose();
|
|
|
+ return RespDTO.onSuc(true);
|
|
|
+ }
|
|
|
+
|
|
|
}
|