|
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -35,7 +36,7 @@ public class DisScaleController {
|
|
@ApiOperation(value = "知识库标准化-返回诊断量表列表[by:zhoutg]",
|
|
@ApiOperation(value = "知识库标准化-返回诊断量表列表[by:zhoutg]",
|
|
notes = "")
|
|
notes = "")
|
|
@PostMapping("/getList")
|
|
@PostMapping("/getList")
|
|
- public RespDTO<List<DisScaleDTO>> getList(@RequestBody DisScaleVO scaleVO) {
|
|
|
|
|
|
+ public RespDTO<List<DisScaleDTO>> getList(@Valid @RequestBody DisScaleVO scaleVO) {
|
|
List<DisScaleDTO> data = disScaleFacade.getDisScaleFac(scaleVO);
|
|
List<DisScaleDTO> data = disScaleFacade.getDisScaleFac(scaleVO);
|
|
return RespDTO.onSuc(data);
|
|
return RespDTO.onSuc(data);
|
|
}
|
|
}
|