|
|
@@ -12,6 +12,7 @@ import org.apache.poi.ss.usermodel.Workbook;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.http.MediaType;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
@@ -30,11 +31,11 @@ public class PerformanceVerificationController extends GenericProvider{
|
|
|
private PerformanceVerificationService performanceVerificationService;
|
|
|
|
|
|
|
|
|
- @PostMapping("/importExcelRecord")
|
|
|
+ @PostMapping(value = "/importExcelRecord",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
|
@ApiOperation("导入检测数据")
|
|
|
public APIResult<Void> importExcelRecord(@RequestParam(value = "name") String name,
|
|
|
@RequestParam(value = "id") String id,
|
|
|
- @RequestParam(value = "applyFiles") MultipartFile applyFiles
|
|
|
+ @RequestPart(value = "applyFiles") MultipartFile applyFiles
|
|
|
) {
|
|
|
APIResult<Void> apiResult = new APIResult<>();
|
|
|
InspectionItemVO itemVO = null;
|