BUG
This commit is contained in:
parent
30e08cf2d1
commit
53ec5f5d9e
@ -130,7 +130,7 @@ public class ReportUtil {
|
||||
if (base64) {
|
||||
//删除图片文件
|
||||
String[] pic = barCodeParam.getPic();
|
||||
if(pic.length > 0){
|
||||
if(pic != null && pic.length > 0){
|
||||
for (int i = 0; i < pic.length; i++) {
|
||||
String picFilePath = RuoYiConfig.getProfile() + "/config/static/graphs/"+ StrUtil.splitToArray(pic[i], "graphs/")[1];
|
||||
FileUtils.deleteFile(picFilePath);
|
||||
@ -346,14 +346,16 @@ public class ReportUtil {
|
||||
barCodeParam.setSqh(sqh);
|
||||
barCodeParam.setHospitalName(hospitalName);
|
||||
String[] filename = getReportpic(jyrq, yq, ybh);
|
||||
String httpPath = getHttpURL("graphs");
|
||||
String[] picPath = new String[filename.length];
|
||||
for (int i = 0; i < filename.length; i++) {
|
||||
//EntityUtils.setItem(barCodeParam, "pic" + (i + 1), httpPath + "/" + filename[i]);
|
||||
picPath[i] = httpPath + "/" + filename[i];
|
||||
log.info("传给模板的地址:{}", httpPath + "/" + filename[i]);
|
||||
if(filename != null && filename.length > 0) {
|
||||
String httpPath = getHttpURL("graphs");
|
||||
String[] picPath = new String[filename.length];
|
||||
for (int i = 0; i < filename.length; i++) {
|
||||
//EntityUtils.setItem(barCodeParam, "pic" + (i + 1), httpPath + "/" + filename[i]);
|
||||
picPath[i] = httpPath + "/" + filename[i];
|
||||
log.info("传给模板的地址:{}", httpPath + "/" + filename[i]);
|
||||
}
|
||||
barCodeParam.setPic(picPath);
|
||||
}
|
||||
barCodeParam.setPic(picPath);
|
||||
return printToPdf("report_image2", barCodeParam, UUID.randomUUID().toString(), true);
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user