Commit bc98f3ec authored by 廖旭伟's avatar 廖旭伟

批量下载附件

parent fae5cea5
......@@ -280,19 +280,15 @@ public class MatterApplyController extends BaseCRUDJsonBodyMappingController<Mat
}
@PostMapping("/batchDownloadFile")
public void batchDownloadFile(@RequestBody MatterApplyDatumEntity query,
HttpServletRequest request,
HttpServletResponse response) {
@PostMapping(value = "download/matter/file")
public void downloadFile(@RequestBody MatterApplyDatumEntity query) {
List<MatterApplyDatumEntity> datumEntityList = matterApplyDatumService.find(query);
//List<String> fileList = splitToLong(ids);
batchDownloadFile(datumEntityList, request, response);
}
@PostMapping("/batchDownloadAllFile")
public void batchDownloadAllFile(@RequestBody MatterApplyEntity query,
HttpServletRequest request,
HttpServletResponse response) {
@PostMapping(value = "download/all/file")
public void downloadAllFile(@RequestBody MatterApplyEntity query) {
List<MatterApplyDatumEntity> datumEntityList = matterApplyDatumService.find(new MatterApplyDatumQuery().applyId(query.getId()));
//List<String> fileList = splitToLong(ids);
batchDownloadFile(datumEntityList, request, response);
......@@ -305,7 +301,7 @@ public class MatterApplyController extends BaseCRUDJsonBodyMappingController<Mat
* @param request request
* @param response response
*/
public void batchDownloadFile(List<MatterApplyDatumEntity> list, HttpServletRequest request, HttpServletResponse response) {
private void batchDownloadFile(List<MatterApplyDatumEntity> list, HttpServletRequest request, HttpServletResponse response) {
//设置响应头信息
response.reset();
response.setCharacterEncoding("utf-8");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment