Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
Project
Project
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
竹天卫
tianjin-cement
Commits
f6035433
Commit
f6035433
authored
Apr 19, 2021
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码获取样品信息3
parent
f243652d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
SampleController.java
.../wise/sc/cement/business/controller/SampleController.java
+5
-5
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/controller/SampleController.java
View file @
f6035433
...
@@ -169,11 +169,11 @@ public class SampleController {
...
@@ -169,11 +169,11 @@ public class SampleController {
SampleVo
sampleVo
=
sampleService
.
getDetail
(
Integer
.
valueOf
(
sampleId
)).
getData
();
SampleVo
sampleVo
=
sampleService
.
getDetail
(
Integer
.
valueOf
(
sampleId
)).
getData
();
String
content
=
""
;
String
content
=
""
;
if
(
sampleVo
!=
null
){
if
(
sampleVo
!=
null
){
content
=
"样品名称:"
+
sampleVo
.
getName
()!=
null
?
sampleVo
.
getName
():
""
+
" \n "
+
content
=
"样品名称:"
+
(
sampleVo
.
getName
()!=
null
?
sampleVo
.
getName
():
""
)
+
" \n "
+
"本所编号:"
+
sampleVo
.
getCementCode
()!=
null
?
sampleVo
.
getCementCode
():
""
+
" \n "
+
"本所编号:"
+
(
sampleVo
.
getCementCode
()!=
null
?
sampleVo
.
getCementCode
():
""
)
+
" \n "
+
"项目编号:"
+
sampleVo
.
getProjectCode
()!=
null
?
sampleVo
.
getProjectCode
():
""
+
" \n "
+
"项目编号:"
+
(
sampleVo
.
getProjectCode
()!=
null
?
sampleVo
.
getProjectCode
():
""
)
+
" \n "
+
"项目名称:"
+
sampleVo
.
getProjectName
()!=
null
?
sampleVo
.
getProjectName
():
""
+
" \n "
+
"项目名称:"
+
(
sampleVo
.
getProjectName
()!=
null
?
sampleVo
.
getProjectName
():
""
)
+
" \n "
+
"小样位置:"
+
sampleVo
.
getLittlePosition
()!=
null
?
sampleVo
.
getLittlePosition
():
""
;
"小样位置:"
+
(
sampleVo
.
getLittlePosition
()!=
null
?
sampleVo
.
getLittlePosition
():
""
)
;
}
}
ByteArrayOutputStream
stream
=
new
ByteArrayOutputStream
();
ByteArrayOutputStream
stream
=
new
ByteArrayOutputStream
();
BufferedImage
bufferedImage
=
QrCodeUtil
.
generate
(
content
,
200
,
200
);
BufferedImage
bufferedImage
=
QrCodeUtil
.
generate
(
content
,
200
,
200
);
...
...
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