|
@@ -24,10 +24,7 @@ import com.qmth.teachcloud.common.annotation.ExcelDBFieldDesc;
|
|
|
import com.qmth.teachcloud.common.bean.dto.excel.*;
|
|
|
import com.qmth.teachcloud.common.bean.params.ArraysParams;
|
|
|
import com.qmth.teachcloud.common.contant.SystemConstant;
|
|
|
-import com.qmth.teachcloud.common.entity.BasicAttachment;
|
|
|
-import com.qmth.teachcloud.common.entity.BasicSchool;
|
|
|
-import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
-import com.qmth.teachcloud.common.entity.TBTask;
|
|
|
+import com.qmth.teachcloud.common.entity.*;
|
|
|
import com.qmth.teachcloud.common.enums.ExceptionResultEnum;
|
|
|
import com.qmth.teachcloud.common.enums.FlowStatusEnum;
|
|
|
import com.qmth.teachcloud.common.enums.PageSizeEnum;
|
|
@@ -1325,6 +1322,38 @@ public class TaskLogicServiceImpl implements TaskLogicService {
|
|
|
if (finalExcelErrorList.size() > 0) {
|
|
|
throw ExceptionResultEnum.ERROR.exception(JSONObject.toJSONString(finalExcelErrorList));
|
|
|
}
|
|
|
+ List<ExcelError> excelErrorTemp = new ArrayList<>();
|
|
|
+ for (int i = 0; i < finalExcelList.size(); i++) {
|
|
|
+ LinkedMultiValueMap<Integer, Object> excelMap = finalExcelList.get(i);
|
|
|
+ List<Object> statisticsTempList = excelMap.get(i);
|
|
|
+ for (int y = 0; y < statisticsTempList.size(); y++) {
|
|
|
+ StatisticsImportDto statisticsImportDto = (StatisticsImportDto) statisticsTempList.get(y);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (excelErrorTemp.size() > 0) {
|
|
|
+ List<String> errors = excelErrorTemp.stream().map(m -> m.getExcelErrorType()).collect(Collectors.toList());
|
|
|
+ throw ExceptionResultEnum.ERROR.exception(JSONObject.toJSONString(errors));
|
|
|
+ }
|
|
|
return finalExcelList;
|
|
|
});
|
|
|
return map;
|