Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-soil
Overview
Overview
Details
Activity
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
wangweidong
patzn-cloud-service-soil
Commits
f3d66813
Commit
f3d66813
authored
Mar 24, 2021
by
wangweidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
土工平台修改
parent
2b865129
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
CollectUtil.java
...java/com/patzn/cloud/service/lims/common/CollectUtil.java
+21
-2
No files found.
src/main/java/com/patzn/cloud/service/lims/common/CollectUtil.java
View file @
f3d66813
...
@@ -13,10 +13,10 @@ import java.util.List;
...
@@ -13,10 +13,10 @@ import java.util.List;
public
class
CollectUtil
{
public
class
CollectUtil
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
File
file
=
new
File
(
"D://
颗粒分析试验 GB SieveS-99
.txt"
);
File
file
=
new
File
(
"D://
三轴压缩S-10r
.txt"
);
try
{
try
{
FileInputStream
io
=
new
FileInputStream
(
file
);
FileInputStream
io
=
new
FileInputStream
(
file
);
txt2String
KeliFenxi
(
io
);
txt2String
(
io
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
}
}
...
@@ -277,10 +277,29 @@ public class CollectUtil {
...
@@ -277,10 +277,29 @@ public class CollectUtil {
List
<
String
>
allStringList
=
new
ArrayList
<>();
List
<
String
>
allStringList
=
new
ArrayList
<>();
String
e50
=
""
;
while
((
s
=
brCheck
.
readLine
())!=
null
){
while
((
s
=
brCheck
.
readLine
())!=
null
){
allStringList
.
add
(
s
);
allStringList
.
add
(
s
);
String
content
=
s
.
replace
(
" "
,
""
);
String
content
=
s
.
replace
(
" "
,
""
);
if
(
content
.
contains
(
"剪切峰值50%ε50"
)){
String
[]
e50s
=
content
.
split
(
"│"
);
if
(
e50s
.
length
>
3
){
SoilExperimentCollectData
njlData
=
new
SoilExperimentCollectData
();
njlData
.
setName
(
"剪切峰值50%ε50"
);
njlData
.
setTestValue
(
e50s
[
2
]);
dataList
.
add
(
njlData
);
}
}
sbAll
.
append
(
content
);
sbAll
.
append
(
content
);
}
}
if
(
sbAll
.
toString
().
contains
(
"无侧限抗压强度试验"
)){
if
(
sbAll
.
toString
().
contains
(
"无侧限抗压强度试验"
)){
...
...
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