|
@@ -1,23 +1,20 @@
|
|
package com.diagbot.web;
|
|
package com.diagbot.web;
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
-
|
|
|
|
-import javax.validation.Valid;
|
|
|
|
-
|
|
|
|
-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.RestController;
|
|
|
|
-
|
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.dto.EvaluationDTO;
|
|
import com.diagbot.dto.EvaluationDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.facade.EvaluationFacade;
|
|
import com.diagbot.facade.EvaluationFacade;
|
|
import com.diagbot.vo.EvaluationdiseaseNameVO;
|
|
import com.diagbot.vo.EvaluationdiseaseNameVO;
|
|
-
|
|
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+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.RestController;
|
|
|
|
+
|
|
|
|
+import javax.validation.Valid;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -33,17 +30,15 @@ import io.swagger.annotations.ApiOperation;
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
public class EvaluationController {
|
|
public class EvaluationController {
|
|
|
|
|
|
- @Autowired
|
|
|
|
- EvaluationFacade evaluationFacade;
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "获取管理与评估模板[by:wangfeng]", notes = "获取管理与评估模板")
|
|
|
|
- @PostMapping("/getEvaluationModules")
|
|
|
|
- @SysLogger("getEvaluationModules")
|
|
|
|
- public RespDTO<List<EvaluationDTO>> getEvaluationModules(@Valid @RequestBody EvaluationdiseaseNameVO evaluationdiseaseNameVO) {
|
|
|
|
-
|
|
|
|
- List<EvaluationDTO> data = evaluationFacade.getEvaluationModule(evaluationdiseaseNameVO);
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ EvaluationFacade evaluationFacade;
|
|
|
|
|
|
- return RespDTO.onSuc(data);
|
|
|
|
- }
|
|
|
|
|
|
+ @ApiOperation(value = "获取管理与评估模板[by:wangfeng]", notes = "获取管理与评估模板")
|
|
|
|
+ @PostMapping("/getEvaluationModules")
|
|
|
|
+ @SysLogger("getEvaluationModules")
|
|
|
|
+ public RespDTO<List<EvaluationDTO>> getEvaluationModules(@Valid @RequestBody EvaluationdiseaseNameVO evaluationdiseaseNameVO) {
|
|
|
|
+ List<EvaluationDTO> data = evaluationFacade.getEvaluationModule(evaluationdiseaseNameVO);
|
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|