Commit 06d3b882 authored by lcl's avatar lcl

u

parent 10e0a6b9
...@@ -76,7 +76,7 @@ public class BusinessOpenTenderController extends BaseController { ...@@ -76,7 +76,7 @@ public class BusinessOpenTenderController extends BaseController {
@Log(title = "开标记录批量导入", businessType = BusinessType.IMPORT) @Log(title = "开标记录批量导入", businessType = BusinessType.IMPORT)
@PostMapping("/importData/{businessId}") @PostMapping("/importData/{businessId}")
public R<Map<String, Object>> importData(@RequestPart("file") MultipartFile file, @PathVariable Integer businessId) throws Exception { public R<Map<String, Object>> importData(@RequestPart("file") MultipartFile file, @PathVariable Integer businessId) throws Exception {
List<BusinessOpenTender> list = new ExcelUtils<>(BusinessOpenTender.class).importExcel(file.getInputStream(), 1); List<BusinessOpenTender> list = new ExcelUtils<>(BusinessOpenTender.class).importExcel(file.getInputStream(), 2);
if (list.isEmpty()) throw new BusinessException("请填写导入数据!"); if (list.isEmpty()) throw new BusinessException("请填写导入数据!");
int sucessCount = 0; int sucessCount = 0;
List<String> errorList = new ArrayList<>(); List<String> errorList = new ArrayList<>();
......
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