批量上传案件证据
This commit is contained in:
+25
@@ -1,5 +1,6 @@
|
||||
package com.ruoyi.web.controller.wisdomarbitrate;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
@@ -55,6 +56,30 @@ public class CaseEvidenceController extends BaseController {
|
||||
Long userId = this.getUserId();
|
||||
return caseEvidenceService.uploadEvidence(file, annexType, id, username, userId);
|
||||
}
|
||||
@PostMapping("/batchUpload")
|
||||
public AjaxResult batchUpload(@RequestParam("file") MultipartFile[] file, Integer annexType, Long id) {
|
||||
if(file==null){
|
||||
return error("请选择要上传的文件");
|
||||
}
|
||||
String username = this.getUsername();
|
||||
Long userId = this.getUserId();
|
||||
return caseEvidenceService.batchUpload(file, annexType, id, username, userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取附件
|
||||
* @param caseAppliId
|
||||
* @param annexTypeList
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/fileList")
|
||||
public AjaxResult fileList(Long caseAppliId, @RequestParam("annexTypeList") List<Integer> annexTypeList){
|
||||
if(caseAppliId==null){
|
||||
return error("案件id不能为空");
|
||||
}
|
||||
return caseEvidenceService.fileList(caseAppliId, annexTypeList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询当前用户案件列表
|
||||
|
||||
Reference in New Issue
Block a user