Ver código fonte

Merge remote-tracking branch 'origin/dev/mapping_20210824' into test

zhaops 3 anos atrás
pai
commit
52c2d58e89

+ 5 - 1
cdssman-service/src/main/java/com/diagbot/facade/MappingConfigFacade.java

@@ -347,7 +347,11 @@ public class MappingConfigFacade extends MappingConfigServiceImpl {
         }
         RespDTO<List<MappingConfigWrapper>> respDTO = cdssClient.importExcel_remote(file, hospitalId, type, userId);
         if (RespDTOUtil.respIsOK(respDTO)) {
-            exportExcel(response, respDTO.data, type, "非标准词", 1);
+            if (ListUtil.isNotEmpty(respDTO.data)) {
+                exportExcel(response, respDTO.data, type, "非标准词", 1);
+            }
+        } else {
+            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, respDTO.msg);
         }
     }