导入excel修改bug

This commit is contained in:
guoshengxiong 2025-09-09 17:44:43 +08:00
parent fc1c57457e
commit 46e05204df

View File

@ -561,13 +561,13 @@ public class VideoItemController {
@ApiOperation(value = "导入excel", notes = "导入excel")
@ApiImplicitParams({
@ApiImplicitParam(name = "projectSn", value = "项目sn", paramType = "body", required = true, dataType = "String"),
@ApiImplicitParam(name = "excelFile", value = "导入文件", paramType = "body", required = true, dataType = "String"),
@ApiImplicitParam(name = "videoType", value = "视频类型1:萤石云,3:ISC,4:ICC", paramType = "body", required = true, dataType = "String"),
@ApiImplicitParam(name = "projectSn", value = "项目sn", paramType = "form", required = true, dataType = "String"),
@ApiImplicitParam(name = "excelFile", value = "导入文件", paramType = "form", required = true, dataType = "String"),
@ApiImplicitParam(name = "videoType", value = "视频类型1:萤石云,3:ISC,4:ICC", paramType = "form", required = true, dataType = "String"),
})
@PostMapping(value = "/importExcel")
@Transactional(rollbackFor = Exception.class)
public Result importExcel(MultipartFile excelFile, @RequestBody HashMap<String, Object> param) {
public Result importExcel(MultipartFile excelFile, @RequestParam HashMap<String, Object> param) {
try {
String projectSn = MapUtils.getString(param, "projectSn");
Integer videoType = MapUtils.getInteger(param, "videoType");