Commit 7fa60cff authored by gary's avatar gary

1、fix

parent 40eb5a1a
......@@ -382,6 +382,9 @@ public class DataImportService extends BaseService {
if (addDataImportLog(dataImportLogs) < 1) {
return OperationResultDto.error(ErrorMessage.ImportFailed);
}
if(!dataImportLogs.stream().filter(dil -> !dil.getImportResult()).collect(Collectors.toList()).isEmpty()){
return OperationResultDto.error();
}
return OperationResultDto.success();
} catch (ServiceException e) {
throw e;
......@@ -553,6 +556,9 @@ public class DataImportService extends BaseService {
if (addDataImportLog(dataImportLogs) < 1) {
return OperationResultDto.error(ErrorMessage.SystemError);
}
if(!dataImportLogs.stream().filter(dil -> !dil.getImportResult()).collect(Collectors.toList()).isEmpty()){
return OperationResultDto.error();
}
return OperationResultDto.success();
} catch (ServiceException e) {
throw e;
......@@ -698,6 +704,9 @@ public class DataImportService extends BaseService {
if (addDataImportLog(dataImportLogs) < 1) {
return OperationResultDto.error(ErrorMessage.SystemError);
}
if(!dataImportLogs.stream().filter(dil -> !dil.getImportResult()).collect(Collectors.toList()).isEmpty()){
return OperationResultDto.error();
}
return OperationResultDto.success();
} catch (ServiceException e) {
throw e;
......@@ -912,6 +921,9 @@ public class DataImportService extends BaseService {
if (addDataImportLog(dataImportLogs) < 1) {
return OperationResultDto.error(ErrorMessage.SystemError);
}
if(!dataImportLogs.stream().filter(dil -> !dil.getImportResult()).collect(Collectors.toList()).isEmpty()){
return OperationResultDto.error();
}
return OperationResultDto.success();
} catch (ServiceException e) {
throw e;
......@@ -1385,6 +1397,9 @@ public class DataImportService extends BaseService {
if (addDataImportLog(dataImportLogs) < 1) {
return OperationResultDto.error(ErrorMessage.SystemError);
}
if(!dataImportLogs.stream().filter(dil -> !dil.getImportResult()).collect(Collectors.toList()).isEmpty()){
return OperationResultDto.error();
}
return OperationResultDto.success();
} catch (ServiceException e) {
throw e;
......
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