Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lmp_server
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
lmp
lmp_server
Commits
3acdacec
Commit
3acdacec
authored
Apr 26, 2024
by
pengxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据优化处理。
parent
2b853d01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
DatasetOutputServiceImpl.java
...e/webadmin/app/service/impl/DatasetOutputServiceImpl.java
+6
-2
No files found.
application-webadmin/src/main/java/com/yice/webadmin/app/service/impl/DatasetOutputServiceImpl.java
View file @
3acdacec
...
...
@@ -211,6 +211,10 @@ public class DatasetOutputServiceImpl extends BaseService<DatasetOutput, Long> i
JsonNode
rootNode
=
objectMapper
.
readTree
(
datasetData
.
getData
());
String
output
=
rootNode
.
get
(
DatasetConstant
.
OUTPUT
).
textValue
();
String
instruction
=
rootNode
.
get
(
DatasetConstant
.
INSTRUCTION
).
textValue
();
// 替换"\n "为"\n"
output
=
output
.
replaceAll
(
"\\n "
,
"\\n"
);
instruction
=
instruction
.
replaceAll
(
"\\n "
,
"\\n"
);
txtData
.
append
(
instruction
).
append
(
"[["
).
append
(
output
).
append
(
"]],\n"
);
}
String
text
=
txtData
.
substring
(
0
,
txtData
.
lastIndexOf
(
","
)
);
...
...
@@ -342,8 +346,8 @@ public class DatasetOutputServiceImpl extends BaseService<DatasetOutput, Long> i
cell
.
setCellValue
(
rootNode
.
get
(
DatasetConstant
.
OUTPUT
).
textValue
());
//根据内容自动填充列大小
sheet
.
autoSizeColumn
(
0
);
sheet
.
autoSizeColumn
(
1
);
//
sheet.autoSizeColumn(0);
//
sheet.autoSizeColumn(1);
}
String
fileName
=
null
;
InputStream
inputStream
=
null
;
...
...
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