Kaynağa Gözat

feature:数字推广批量下载改get方法

wuyongyi 2 yıl önce
ebeveyn
işleme
8e9e3b4615

+ 2 - 1
src/main/java/com/ywt/mg/web/controllers/enterprise/MarketApplyController.java

@@ -9,6 +9,7 @@ import io.swagger.annotations.ApiOperation;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
@@ -29,7 +30,7 @@ public class MarketApplyController {
     @ApiOperation(value = "批量下载")
     @RequestMapping({"/batchDownloadFiles"})
     @MGRight(menuCode = {"/batchDownloadFiles"}, type = MGRightTypeDef.Menu | MGRightTypeDef.Logined)
-    void getProjectDetail(@RequestBody BatchDownloadFilesRequest request, HttpServletResponse response) {
+    void getProjectDetail(@Validated BatchDownloadFilesRequest request, HttpServletResponse response) {
         applyProjectService.batchDownloadFiles(request, response);
     }