Browse Source

Post方式统一请求类型

gaodm 6 years ago
parent
commit
19dadd0b42

+ 2 - 1
user-service/src/main/java/com/diagbot/web/ReportFormController.java

@@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletResponse;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
 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.ResponseBody;
 import org.springframework.web.bind.annotation.RestController;
@@ -51,7 +52,7 @@ public class ReportFormController {
     @PostMapping("/exportUserInfo")
     @SysLogger("exportUserInfo")
     @Transactional
-    public RespDTO export(UserExportVO userExportVO)
+    public RespDTO export(@RequestBody UserExportVO userExportVO)
             throws Exception {
         RespDTO resul = userFacade.export(userExportVO);
         return resul;