|
@@ -1,54 +1,54 @@
|
|
|
-package com.diagbot.web;
|
|
|
-
|
|
|
-
|
|
|
-import com.diagbot.dto.DisScaleDTO;
|
|
|
-import com.diagbot.dto.RespDTO;
|
|
|
-import com.diagbot.dto.ScaleIndexDTO;
|
|
|
-import com.diagbot.facade.DisScaleFacade;
|
|
|
-import com.diagbot.vo.DisScaleVO;
|
|
|
-import com.diagbot.vo.ScaleIndexVO;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-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>
|
|
|
- *
|
|
|
- * @author zhoutg
|
|
|
- * @since 2019-05-05
|
|
|
- */
|
|
|
-@RestController
|
|
|
-@RequestMapping("/scale")
|
|
|
-@Api(value = "诊断量表API", tags = { "知识库标准化-诊断量表API" })
|
|
|
-@SuppressWarnings("unchecked")
|
|
|
-public class DisScaleController {
|
|
|
-
|
|
|
- @Autowired
|
|
|
- DisScaleFacade disScaleFacade;
|
|
|
-
|
|
|
- @ApiOperation(value = "知识库标准化-返回诊断量表列表[by:zhoutg]",
|
|
|
- notes = "")
|
|
|
- @PostMapping("/getList")
|
|
|
- public RespDTO<List<DisScaleDTO>> getList(@Valid @RequestBody DisScaleVO scaleVO) {
|
|
|
- List<DisScaleDTO> data = disScaleFacade.getDisScaleFac(scaleVO);
|
|
|
- return RespDTO.onSuc(data);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- @ApiOperation(value = "知识库标准化-量表搜索[by:zhoutg]",
|
|
|
- notes = "")
|
|
|
- @PostMapping("/index")
|
|
|
- public RespDTO<List<ScaleIndexDTO>> index(@Valid @RequestBody ScaleIndexVO scaleVO) {
|
|
|
- List<ScaleIndexDTO> data = disScaleFacade.indexFac(scaleVO);
|
|
|
- return RespDTO.onSuc(data);
|
|
|
- }
|
|
|
-}
|
|
|
+//package com.diagbot.web;
|
|
|
+//
|
|
|
+//
|
|
|
+//import com.diagbot.dto.DisScaleDTO;
|
|
|
+//import com.diagbot.dto.RespDTO;
|
|
|
+//import com.diagbot.dto.ScaleIndexDTO;
|
|
|
+//import com.diagbot.facade.DisScaleFacade;
|
|
|
+//import com.diagbot.vo.DisScaleVO;
|
|
|
+//import com.diagbot.vo.ScaleIndexVO;
|
|
|
+//import io.swagger.annotations.Api;
|
|
|
+//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>
|
|
|
+// *
|
|
|
+// * @author zhoutg
|
|
|
+// * @since 2019-05-05
|
|
|
+// */
|
|
|
+//@RestController
|
|
|
+//@RequestMapping("/scale")
|
|
|
+//@Api(value = "诊断量表API", tags = { "知识库标准化-诊断量表API" })
|
|
|
+//@SuppressWarnings("unchecked")
|
|
|
+//public class DisScaleController {
|
|
|
+//
|
|
|
+// @Autowired
|
|
|
+// DisScaleFacade disScaleFacade;
|
|
|
+//
|
|
|
+// @ApiOperation(value = "知识库标准化-返回诊断量表列表[by:zhoutg]",
|
|
|
+// notes = "")
|
|
|
+// @PostMapping("/getList")
|
|
|
+// public RespDTO<List<DisScaleDTO>> getList(@Valid @RequestBody DisScaleVO scaleVO) {
|
|
|
+// List<DisScaleDTO> data = disScaleFacade.getDisScaleFac(scaleVO);
|
|
|
+// return RespDTO.onSuc(data);
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// @ApiOperation(value = "知识库标准化-量表搜索[by:zhoutg]",
|
|
|
+// notes = "")
|
|
|
+// @PostMapping("/index")
|
|
|
+// public RespDTO<List<ScaleIndexDTO>> index(@Valid @RequestBody ScaleIndexVO scaleVO) {
|
|
|
+// List<ScaleIndexDTO> data = disScaleFacade.indexFac(scaleVO);
|
|
|
+// return RespDTO.onSuc(data);
|
|
|
+// }
|
|
|
+//}
|