Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
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-hmhj
Commits
3f544d45
Commit
3f544d45
authored
Jul 15, 2021
by
ghxdhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生成原始记录修改
parent
5974521d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
7 deletions
+67
-7
MoreItemMoreOperation.java
...oud/service/lims/hmhj/original/MoreItemMoreOperation.java
+14
-1
SingleSheetLittleOperation.java
...ervice/lims/hmhj/original/SingleSheetLittleOperation.java
+14
-1
SingleSheetMoreItemOperation.java
...vice/lims/hmhj/original/SingleSheetMoreItemOperation.java
+15
-2
SingleSheetMoreOperation.java
.../service/lims/hmhj/original/SingleSheetMoreOperation.java
+14
-1
OriginalTemplateServiceImpl.java
...e/lims/hmhj/service/impl/OriginalTemplateServiceImpl.java
+10
-2
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/original/MoreItemMoreOperation.java
View file @
3f544d45
...
@@ -65,6 +65,7 @@ public class MoreItemMoreOperation implements Operation {
...
@@ -65,6 +65,7 @@ public class MoreItemMoreOperation implements Operation {
XSSFRow
xssfRow
=
sheetIndex
.
getRow
(
beginRow
);
XSSFRow
xssfRow
=
sheetIndex
.
getRow
(
beginRow
);
XSSFRow
xssfRowTwo
=
null
;
XSSFRow
xssfRowTwo
=
null
;
XSSFRow
xssfRowThree
=
null
;
XSSFRow
xssfRowThree
=
null
;
XSSFRow
xssfRow4
=
null
;
if
(
sampleMergerNum
==
2
)
{
if
(
sampleMergerNum
==
2
)
{
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
}
}
...
@@ -72,15 +73,24 @@ public class MoreItemMoreOperation implements Operation {
...
@@ -72,15 +73,24 @@ public class MoreItemMoreOperation implements Operation {
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
}
}
if
(
sampleMergerNum
==
4
)
{
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
xssfRow4
=
sheetOne
.
getRow
(
beginRow
+
3
);
}
for
(
OriginalTemplateConfig
config:
configList
)
{
for
(
OriginalTemplateConfig
config:
configList
)
{
XSSFCell
cell
=
xssfRow
.
getCell
(
config
.
getColumnPlace
());
XSSFCell
cell
=
xssfRow
.
getCell
(
config
.
getColumnPlace
());
XSSFCell
cell2
=
null
;
XSSFCell
cell2
=
null
;
XSSFCell
cell3
=
null
;
XSSFCell
cell3
=
null
;
XSSFCell
cell4
=
null
;
if
(
null
!=
xssfRowTwo
)
{
if
(
null
!=
xssfRowTwo
)
{
cell2
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
cell2
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
}
}
if
(
null
!=
xssfRowThree
)
{
if
(
null
!=
xssfRowThree
)
{
cell3
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
cell3
=
xssfRowThree
.
getCell
(
config
.
getColumnPlace
());
}
if
(
null
!=
xssfRow4
)
{
cell4
=
xssfRow4
.
getCell
(
config
.
getColumnPlace
());
}
}
if
(
"sn"
.
equals
(
config
.
getDataAttribute
())){
if
(
"sn"
.
equals
(
config
.
getDataAttribute
())){
continue
;
continue
;
...
@@ -99,6 +109,9 @@ public class MoreItemMoreOperation implements Operation {
...
@@ -99,6 +109,9 @@ public class MoreItemMoreOperation implements Operation {
if
(
null
!=
cell3
&&
vo
.
getCollectionDataList
().
size
()
>=
3
)
{
if
(
null
!=
cell3
&&
vo
.
getCollectionDataList
().
size
()
>=
3
)
{
cell3
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
2
).
get
(
mapKey
));
cell3
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
2
).
get
(
mapKey
));
}
}
if
(
null
!=
cell4
&&
vo
.
getCollectionDataList
().
size
()
>=
4
)
{
cell4
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
3
).
get
(
mapKey
));
}
}
}
continue
;
continue
;
}
}
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/original/SingleSheetLittleOperation.java
View file @
3f544d45
...
@@ -46,6 +46,7 @@ public class SingleSheetLittleOperation implements Operation {
...
@@ -46,6 +46,7 @@ public class SingleSheetLittleOperation implements Operation {
XSSFRow
xssfRow
=
sheetOne
.
getRow
(
beginRow
);
XSSFRow
xssfRow
=
sheetOne
.
getRow
(
beginRow
);
XSSFRow
xssfRowTwo
=
null
;
XSSFRow
xssfRowTwo
=
null
;
XSSFRow
xssfRowThree
=
null
;
XSSFRow
xssfRowThree
=
null
;
XSSFRow
xssfRow4
=
null
;
if
(
sampleMergerNum
==
2
)
{
if
(
sampleMergerNum
==
2
)
{
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
}
}
...
@@ -53,15 +54,24 @@ public class SingleSheetLittleOperation implements Operation {
...
@@ -53,15 +54,24 @@ public class SingleSheetLittleOperation implements Operation {
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
}
}
if
(
sampleMergerNum
==
4
)
{
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
xssfRow4
=
sheetOne
.
getRow
(
beginRow
+
3
);
}
for
(
OriginalTemplateConfig
config:
configList
)
{
for
(
OriginalTemplateConfig
config:
configList
)
{
XSSFCell
cell
=
xssfRow
.
getCell
(
config
.
getColumnPlace
());
XSSFCell
cell
=
xssfRow
.
getCell
(
config
.
getColumnPlace
());
XSSFCell
cell2
=
null
;
XSSFCell
cell2
=
null
;
XSSFCell
cell3
=
null
;
XSSFCell
cell3
=
null
;
XSSFCell
cell4
=
null
;
if
(
null
!=
xssfRowTwo
)
{
if
(
null
!=
xssfRowTwo
)
{
cell2
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
cell2
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
}
}
if
(
null
!=
xssfRowThree
)
{
if
(
null
!=
xssfRowThree
)
{
cell3
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
cell3
=
xssfRowThree
.
getCell
(
config
.
getColumnPlace
());
}
if
(
null
!=
xssfRow4
)
{
cell4
=
xssfRow4
.
getCell
(
config
.
getColumnPlace
());
}
}
if
(
"sn"
.
equals
(
config
.
getDataAttribute
())){
if
(
"sn"
.
equals
(
config
.
getDataAttribute
())){
continue
;
continue
;
...
@@ -80,6 +90,9 @@ public class SingleSheetLittleOperation implements Operation {
...
@@ -80,6 +90,9 @@ public class SingleSheetLittleOperation implements Operation {
if
(
null
!=
cell3
&&
vo
.
getCollectionDataList
().
size
()
>=
3
)
{
if
(
null
!=
cell3
&&
vo
.
getCollectionDataList
().
size
()
>=
3
)
{
cell3
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
2
).
get
(
mapKey
));
cell3
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
2
).
get
(
mapKey
));
}
}
if
(
null
!=
cell4
&&
vo
.
getCollectionDataList
().
size
()
>=
4
)
{
cell4
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
3
).
get
(
mapKey
));
}
}
}
continue
;
continue
;
}
}
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/original/SingleSheetMoreItemOperation.java
View file @
3f544d45
...
@@ -90,6 +90,7 @@ public class SingleSheetMoreItemOperation implements Operation {
...
@@ -90,6 +90,7 @@ public class SingleSheetMoreItemOperation implements Operation {
XSSFRow
xssfRow
=
sheetOne
.
getRow
(
beginRow
);
XSSFRow
xssfRow
=
sheetOne
.
getRow
(
beginRow
);
XSSFRow
xssfRowTwo
=
null
;
XSSFRow
xssfRowTwo
=
null
;
XSSFRow
xssfRowThree
=
null
;
XSSFRow
xssfRowThree
=
null
;
XSSFRow
xssfRow4
=
null
;
if
(
sampleMergerNum
==
2
)
{
if
(
sampleMergerNum
==
2
)
{
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
}
}
...
@@ -97,15 +98,24 @@ public class SingleSheetMoreItemOperation implements Operation {
...
@@ -97,15 +98,24 @@ public class SingleSheetMoreItemOperation implements Operation {
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
}
}
if
(
sampleMergerNum
==
4
)
{
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
xssfRow4
=
sheetOne
.
getRow
(
beginRow
+
3
);
}
for
(
OriginalTemplateConfig
config:
configList
)
{
for
(
OriginalTemplateConfig
config:
configList
)
{
XSSFCell
cell
=
xssfRow
.
getCell
(
config
.
getColumnPlace
());
XSSFCell
cell
=
xssfRow
.
getCell
(
config
.
getColumnPlace
());
XSSFCell
cell2
=
null
;
XSSFCell
cell2
=
null
;
XSSFCell
cell3
=
null
;
XSSFCell
cell3
=
null
;
XSSFCell
cell4
=
null
;
if
(
null
!=
xssfRowTwo
)
{
if
(
null
!=
xssfRowTwo
)
{
cell2
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
cell2
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
}
}
if
(
null
!=
xssfRowThree
)
{
if
(
null
!=
xssfRowThree
)
{
cell3
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
cell3
=
xssfRowThree
.
getCell
(
config
.
getColumnPlace
());
}
if
(
null
!=
xssfRow4
)
{
cell4
=
xssfRow4
.
getCell
(
config
.
getColumnPlace
());
}
}
if
(
"sn"
.
equals
(
config
.
getDataAttribute
())){
if
(
"sn"
.
equals
(
config
.
getDataAttribute
())){
continue
;
continue
;
...
@@ -113,7 +123,7 @@ public class SingleSheetMoreItemOperation implements Operation {
...
@@ -113,7 +123,7 @@ public class SingleSheetMoreItemOperation implements Operation {
if
(
StringUtils
.
isBlank
(
config
.
getDataAttribute
())){
if
(
StringUtils
.
isBlank
(
config
.
getDataAttribute
())){
continue
;
continue
;
}
}
if
(
config
.
getDataAttribute
().
startsWith
(
collectionDatePrefix
))
{
if
(
sampleIdMap
.
size
()
!=
0
&&
config
.
getDataAttribute
().
startsWith
(
collectionDatePrefix
))
{
String
mapKey
=
config
.
getDataAttribute
().
substring
(
4
);
String
mapKey
=
config
.
getDataAttribute
().
substring
(
4
);
if
(
sampleIdMap
.
get
(
vo
.
getId
()).
size
()
>
0
)
{
if
(
sampleIdMap
.
get
(
vo
.
getId
()).
size
()
>
0
)
{
cell
.
setCellValue
(
sampleIdMap
.
get
(
vo
.
getId
()).
get
(
mapKey
));
cell
.
setCellValue
(
sampleIdMap
.
get
(
vo
.
getId
()).
get
(
mapKey
));
...
@@ -124,6 +134,9 @@ public class SingleSheetMoreItemOperation implements Operation {
...
@@ -124,6 +134,9 @@ public class SingleSheetMoreItemOperation implements Operation {
if
(
null
!=
cell3
&&
vo
.
getCollectionDataList
().
size
()
>=
3
)
{
if
(
null
!=
cell3
&&
vo
.
getCollectionDataList
().
size
()
>=
3
)
{
cell3
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
2
).
get
(
mapKey
));
cell3
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
2
).
get
(
mapKey
));
}
}
if
(
null
!=
cell4
&&
vo
.
getCollectionDataList
().
size
()
>=
4
)
{
cell4
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
3
).
get
(
mapKey
));
}
}
}
continue
;
continue
;
}
}
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/original/SingleSheetMoreOperation.java
View file @
3f544d45
...
@@ -65,6 +65,7 @@ public class SingleSheetMoreOperation implements Operation {
...
@@ -65,6 +65,7 @@ public class SingleSheetMoreOperation implements Operation {
XSSFRow
xssfRow
=
sheetOne
.
getRow
(
beginRow
);
XSSFRow
xssfRow
=
sheetOne
.
getRow
(
beginRow
);
XSSFRow
xssfRowTwo
=
null
;
XSSFRow
xssfRowTwo
=
null
;
XSSFRow
xssfRowThree
=
null
;
XSSFRow
xssfRowThree
=
null
;
XSSFRow
xssfRow4
=
null
;
if
(
sampleMergerNum
==
2
)
{
if
(
sampleMergerNum
==
2
)
{
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
}
}
...
@@ -72,6 +73,11 @@ public class SingleSheetMoreOperation implements Operation {
...
@@ -72,6 +73,11 @@ public class SingleSheetMoreOperation implements Operation {
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
}
}
if
(
sampleMergerNum
==
4
)
{
xssfRowTwo
=
sheetOne
.
getRow
(
beginRow
+
1
);
xssfRowThree
=
sheetOne
.
getRow
(
beginRow
+
2
);
xssfRow4
=
sheetOne
.
getRow
(
beginRow
+
3
);
}
for
(
OriginalTemplateConfig
config:
configList
)
{
for
(
OriginalTemplateConfig
config:
configList
)
{
if
(
null
==
config
.
getColumnPlace
()){
if
(
null
==
config
.
getColumnPlace
()){
...
@@ -80,11 +86,15 @@ public class SingleSheetMoreOperation implements Operation {
...
@@ -80,11 +86,15 @@ public class SingleSheetMoreOperation implements Operation {
XSSFCell
cell
=
xssfRow
.
getCell
(
config
.
getColumnPlace
());
XSSFCell
cell
=
xssfRow
.
getCell
(
config
.
getColumnPlace
());
XSSFCell
cell2
=
null
;
XSSFCell
cell2
=
null
;
XSSFCell
cell3
=
null
;
XSSFCell
cell3
=
null
;
XSSFCell
cell4
=
null
;
if
(
null
!=
xssfRowTwo
)
{
if
(
null
!=
xssfRowTwo
)
{
cell2
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
cell2
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
}
}
if
(
null
!=
xssfRowThree
)
{
if
(
null
!=
xssfRowThree
)
{
cell3
=
xssfRowTwo
.
getCell
(
config
.
getColumnPlace
());
cell3
=
xssfRowThree
.
getCell
(
config
.
getColumnPlace
());
}
if
(
null
!=
xssfRow4
)
{
cell4
=
xssfRow4
.
getCell
(
config
.
getColumnPlace
());
}
}
if
(
null
==
config
.
getDataAttribute
())
{
if
(
null
==
config
.
getDataAttribute
())
{
continue
;
continue
;
...
@@ -102,6 +112,9 @@ public class SingleSheetMoreOperation implements Operation {
...
@@ -102,6 +112,9 @@ public class SingleSheetMoreOperation implements Operation {
if
(
null
!=
cell3
&&
vo
.
getCollectionDataList
().
size
()
>=
3
)
{
if
(
null
!=
cell3
&&
vo
.
getCollectionDataList
().
size
()
>=
3
)
{
cell3
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
2
).
get
(
mapKey
));
cell3
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
2
).
get
(
mapKey
));
}
}
if
(
null
!=
cell4
&&
vo
.
getCollectionDataList
().
size
()
>=
4
)
{
cell4
.
setCellValue
(
vo
.
getCollectionDataList
().
get
(
3
).
get
(
mapKey
));
}
}
}
continue
;
continue
;
}
else
{
}
else
{
...
...
src/main/java/com/patzn/cloud/service/lims/hmhj/service/impl/OriginalTemplateServiceImpl.java
View file @
3f544d45
...
@@ -361,7 +361,11 @@ public class OriginalTemplateServiceImpl extends BaseServiceImpl<OriginalTemplat
...
@@ -361,7 +361,11 @@ public class OriginalTemplateServiceImpl extends BaseServiceImpl<OriginalTemplat
if
(
StringUtils
.
isBlank
(
config
.
getDataAttribute
())){
if
(
StringUtils
.
isBlank
(
config
.
getDataAttribute
())){
collectEntity
.
setName
(
config
.
getAttributeName
());
collectEntity
.
setName
(
config
.
getAttributeName
());
}
else
{
}
else
{
collectEntity
.
setName
(
config
.
getDataAttribute
());
if
(
config
.
getDataAttribute
().
startsWith
(
"clc."
)){
collectEntity
.
setName
(
config
.
getAttributeName
());
}
else
{
collectEntity
.
setName
(
config
.
getDataAttribute
());
}
}
}
collectEntity
.
setSingleElse
(
1
);
collectEntity
.
setSingleElse
(
1
);
collectEntitiesList
.
add
(
collectEntity
);
collectEntitiesList
.
add
(
collectEntity
);
...
@@ -379,7 +383,11 @@ public class OriginalTemplateServiceImpl extends BaseServiceImpl<OriginalTemplat
...
@@ -379,7 +383,11 @@ public class OriginalTemplateServiceImpl extends BaseServiceImpl<OriginalTemplat
if
(
StringUtils
.
isBlank
(
config
.
getDataAttribute
())){
if
(
StringUtils
.
isBlank
(
config
.
getDataAttribute
())){
collectEntity
.
setName
(
config
.
getAttributeName
());
collectEntity
.
setName
(
config
.
getAttributeName
());
}
else
{
}
else
{
collectEntity
.
setName
(
config
.
getDataAttribute
());
if
(
config
.
getDataAttribute
().
startsWith
(
"clc."
)){
collectEntity
.
setName
(
config
.
getAttributeName
());
}
else
{
collectEntity
.
setName
(
config
.
getDataAttribute
());
}
}
}
collectEntitiesList
.
add
(
collectEntity
);
collectEntitiesList
.
add
(
collectEntity
);
...
...
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