|
@@ -1,11 +1,9 @@
|
|
package com.qmth.cqb.paper.web;
|
|
package com.qmth.cqb.paper.web;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.util.Map;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
-import org.apache.commons.lang.StringUtils;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.HttpStatus;
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.http.ResponseEntity;
|
|
@@ -15,13 +13,9 @@ import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
-import org.springframework.web.multipart.MultipartFile;
|
|
|
|
-import org.springframework.web.multipart.commons.CommonsMultipartFile;
|
|
|
|
|
|
|
|
import com.qmth.cqb.paper.dao.PaperDetailRepo;
|
|
import com.qmth.cqb.paper.dao.PaperDetailRepo;
|
|
-import com.qmth.cqb.paper.dao.PaperRepo;
|
|
|
|
import com.qmth.cqb.paper.model.PaperDetail;
|
|
import com.qmth.cqb.paper.model.PaperDetail;
|
|
import com.qmth.cqb.paper.model.PaperDetailUnit;
|
|
import com.qmth.cqb.paper.model.PaperDetailUnit;
|
|
import com.qmth.cqb.paper.service.PaperDetailService;
|
|
import com.qmth.cqb.paper.service.PaperDetailService;
|
|
@@ -134,13 +128,4 @@ public class PaperDetailController {
|
|
return new ResponseEntity(paperService.findPaperDetailsById(paperId), HttpStatus.OK);
|
|
return new ResponseEntity(paperService.findPaperDetailsById(paperId), HttpStatus.OK);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- @ApiOperation(value = "上传音频文件", notes = "上传音频文件")
|
|
|
|
- @PostMapping(value = "/uploadRadio")
|
|
|
|
- public ResponseEntity uploadRadio(List<MultipartFile> files,HttpServletRequest request){
|
|
|
|
- for(MultipartFile file:files){
|
|
|
|
- System.out.println("名称:"+file.getOriginalFilename()+",大小:"+file.getSize());
|
|
|
|
- }
|
|
|
|
- return null;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|