Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ejercicio2-framework-back
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josue
ejercicio2-framework-back
Commits
5ff47b23
Commit
5ff47b23
authored
Jan 03, 2022
by
Roberto Loayza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Despliegue de base de conocimiento.
parent
ba62812c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
FileManagementService.java
...ava/com/bytesw/bytebot/service/FileManagementService.java
+5
-9
No files found.
src/main/java/com/bytesw/bytebot/service/FileManagementService.java
View file @
5ff47b23
...
...
@@ -196,19 +196,15 @@ public class FileManagementService {
if
(
recordsErrorMap
.
size
()
!=
fileHeaders
.
length
){
recordsRowErrorMap
.
put
(
rowNumber
+
1
,
recordsErrorMap
);
}
else
{
rowError
++;
Map
<
String
,
String
>
rowErrorResult
=
new
HashMap
<>();
rowErrorResult
.
put
(
"ROW.NULL"
,
"ROW.DATA.NULL"
);
recordsRowErrorMap
.
put
(
rowNumber
,
rowErrorResult
);
}
}
rowNumber
++;
}
if
(
rowError
>
0
)
{
Map
<
String
,
String
>
rowErrorResult
=
new
HashMap
<>();
rowErrorResult
.
put
(
"ROW.NULL"
,
"ROW.DATA.NULL"
);
recordsRowErrorMap
.
put
(
rowError
,
rowErrorResult
);
}
if
(!
recordsRowErrorMap
.
isEmpty
())
{
log
.
info
(
"Hay errores en el contenido del archivo: "
+
recordsRowErrorMap
);
result
.
setStatus
(
ValidationStatusEnum
.
CONTENT_ERROR
);
...
...
@@ -284,14 +280,14 @@ public class FileManagementService {
}
if
(!
headerErrorMap
.
isEmpty
())
{
result
.
setHeadersErrorMap
(
headerErrorMap
);
result
.
setStatus
(
ValidationStatusEnum
.
HEADER_ERROR
);
result
.
setStatus
(
ValidationStatusEnum
.
FORMAT_INCORRECT
);
response
.
setFileValidationResult
(
result
);
return
response
;
}
if
(!
recordsRowErrorMap
.
isEmpty
())
{
log
.
info
(
"Hay errores en el contenido del archivo: "
+
recordsRowErrorMap
);
result
.
setStatus
(
ValidationStatusEnum
.
CONTENT_ERROR
);
result
.
setStatus
(
ValidationStatusEnum
.
DATA_INCOMPLETE
);
result
.
setRecordsErrorMap
(
recordsRowErrorMap
);
response
.
setFileValidationResult
(
result
);
return
response
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment