解决冲突
This commit is contained in:
parent
e172a4eae4
commit
d730f5a962
@ -238,16 +238,22 @@ public class ReportUtil {
|
||||
e.printStackTrace();
|
||||
log.error("打印条码失败,参数{}",barCodeParam,e);
|
||||
}
|
||||
String httpPath = "";
|
||||
if(printURL == null || printURL.equals("")){
|
||||
httpPath = "http://"+ IpUtils.getHostIp() +":" + port + "/"+pdfName+".pdf";
|
||||
}else{
|
||||
httpPath = "http://"+ printURL +":" + port + "/"+pdfName+".pdf";
|
||||
}
|
||||
String httpPath = getPrintURL(pdfName);
|
||||
log.info("传给前端的pdf地址:{}",httpPath);
|
||||
return new Result("0","打印成功!",httpPath);
|
||||
}
|
||||
|
||||
public String getPrintURL(String pdfName){
|
||||
String httpPath = "";
|
||||
if(printURL == null || printURL.equals("")){
|
||||
httpPath = "http://"+ IpUtils.getHostIp() +":" + port + "/printPDF/"+pdfName+".pdf";
|
||||
}else{
|
||||
httpPath = "http://"+ printURL +":" + port + "/printPDF/"+pdfName+".pdf";
|
||||
}
|
||||
|
||||
return httpPath;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前报告单是否使用A4报告单
|
||||
* @param jyrq
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user