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