|
@@ -84,11 +84,11 @@ public class crmUpgradeController extends BaseController {
|
|
|
public AjaxResult checkInput(@RequestParam("file") MultipartFile file) throws Exception {
|
|
|
ExcelUtil<OrderExcelImportLoopModel> util = new ExcelUtil<>(OrderExcelImportLoopModel.class);
|
|
|
List<OrderExcelImportLoopModel> orderList = util.importExcel(file.getInputStream());
|
|
|
-// Map<String,String> fialmap = bizArchiveInputTempService.checkexcel(orderList,getTenantId());
|
|
|
-// String failureNum = fialmap.get("failureNum");
|
|
|
-// if (Integer.parseInt(failureNum) > 0) {
|
|
|
-// return success("错误数据",fialmap.get("failureMsg"));
|
|
|
-// }
|
|
|
+ Map<String,String> fialmap = bizArchiveInputTempService.checkexcel(orderList,getTenantId());
|
|
|
+ String failureNum = fialmap.get("failureNum");
|
|
|
+ if (Integer.parseInt(failureNum) > 0) {
|
|
|
+ return success("错误数据",fialmap.get("failureMsg"));
|
|
|
+ }
|
|
|
Map<String, List<importCheckModel>> map = bizArchiveInputTempService.checkInput(orderList,getTenantId());
|
|
|
return success(map);
|
|
|
}
|