Quellcode durchsuchen

预匹配数据校验

zhaops vor 4 Jahren
Ursprung
Commit
e01ed14cf6
1 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 4 3
      src/main/java/com/diagbot/web/MappingConfigController.java

+ 4 - 3
src/main/java/com/diagbot/web/MappingConfigController.java

@@ -56,9 +56,10 @@ public class MappingConfigController {
                     "type(必填): 类型:1-化验、3-辅检、4-诊断、5-药品、6-手术和操作、7-科室、8-输血、10-量表、11-护理、12-中医诊断、13-中医证候、14-麻醉 <br>")
     @PostMapping(value = "/dataVerify", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
     @SysLogger("dataVerify")
-    public void dataVerify(@RequestParam("file") MultipartFile file,
-                           @RequestParam("type") Integer type) {
-        mappingConfigFacade.dataVerify(file, type);
+    public RespDTO<Boolean> dataVerify(@RequestParam("file") MultipartFile file,
+                                       @RequestParam("type") Integer type) {
+        Boolean data = mappingConfigFacade.dataVerify(file, type);
+        return RespDTO.onSuc(data);
     }
 
     @ApiOperation(value = "预匹配[by:zhaops]",