Commit a812c4ac authored by huyuchen's avatar huyuchen

优化修改

parent a6e41457
......@@ -168,9 +168,6 @@ implements TVacationInfoService {
}
if (!CollUtil.isEmpty(list)) {
errorMessageList.addAll(Common.commonImportErrorMessage(list));
if (!errorMessageList.isEmpty()) {
return R.failed(errorMessageList,"数据校验失败");
}
List<TBusinessEmployeeExtendInfo> employeeExtentList = new ArrayList<>();
List<TBusDept> busDeptList = busDeptService.list();
R<TBusinessDataListVo> sdRes = archivesDaprUtil.getAllExtendList();
......@@ -214,6 +211,9 @@ implements TVacationInfoService {
}
TBusDept busDept = busDeptMap.get(businessEmployeeExtend.getDepartName());
boolean isSave = true;
if (!errorMessageList.isEmpty() && errorMessageList.stream().allMatch(e -> e.getLineNum() == line)) {
continue;
}
if (Common.isEmpty(sysMap.get(dto.getVacationType()))) {
errorMessageList.add(new ErrorMessage(line, BusinessResultErrorMsg.VACATION_TYPE_DATA_NOT_EXIST, CommonConstants.RED));
isSave = false;
......
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