Commit 443c0ba2 authored by 竹天卫's avatar 竹天卫

扫码获取样品信息

parent 858dc07d
...@@ -187,10 +187,10 @@ public class SampleController { ...@@ -187,10 +187,10 @@ 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()+"\n"+ content = "样品名称:"+sampleVo.getName()+" \n "+
"本所编号:"+sampleVo.getCementCode()+"\n"+ "本所编号:"+sampleVo.getCementCode()+" \n "+
"项目编号:"+sampleVo.getProjectCode()+"\n"+ "项目编号:"+sampleVo.getProjectCode()+" \n "+
"项目名称:"+sampleVo.getProjectName()+"\n"+ "项目名称:"+sampleVo.getProjectName()+" \n "+
"小样位置:"+sampleVo.getLittlePosition(); "小样位置:"+sampleVo.getLittlePosition();
} }
ByteArrayOutputStream stream = new ByteArrayOutputStream(); ByteArrayOutputStream stream = new ByteArrayOutputStream();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment