zhaops %!s(int64=3) %!d(string=hai) anos
pai
achega
bb872ff228

+ 1 - 2
cdssman-service/src/main/java/com/diagbot/client/CdssClient.java

@@ -77,8 +77,7 @@ public interface CdssClient {
      * @param type
      * @param userId
      */
-    @PostMapping("/tran/mappingConfig/importExcel")
-    @Transactional
+    @PostMapping(value ="/tran/mappingConfig/importExcel", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
     void importExcel(@RequestPart("file") MultipartFile file,
                      @RequestParam("hospitalId") Long hospitalId,
                      @RequestParam("type") Integer type,

+ 4 - 1
cdssman-service/src/main/java/com/diagbot/client/hystrix/CdssHystrix.java

@@ -54,7 +54,10 @@ public class CdssHystrix implements CdssClient {
     }
 
     @Override
-    public void importExcel(MultipartFile file, Long hospitalId, Integer type, String userId) {
+    public void importExcel(@RequestPart("file") MultipartFile file,
+                            @RequestParam("hospitalId") Long hospitalId,
+                            @RequestParam("type") Integer type,
+                            @RequestParam("uesrId") String userId) {
         log.error("【hystrix】调用{}异常", "importExcel");
     }