报告模板菜单

This commit is contained in:
tangw 2025-12-29 16:54:28 +08:00
parent 5137b0a843
commit c335ce54c7
2 changed files with 4 additions and 1 deletions

View File

@ -361,6 +361,9 @@ public class ReportUtil {
if(comReportInstr==null) { if(comReportInstr==null) {
return new Result("-1","未找到打印模板,请检查报告单设置"); return new Result("-1","未找到打印模板,请检查报告单设置");
} }
if(comReportInstr.getReportId()==null) {
return new Result("-1","未找到打印模板,请检查报告单设置");
}
reportParam.setReportId(comReportInstr.getReportId()); reportParam.setReportId(comReportInstr.getReportId());
String filename=labReportvsitemMapper.getreportCode(comReportInstr.getReportBgdh()); String filename=labReportvsitemMapper.getreportCode(comReportInstr.getReportBgdh());
return printToPdf(filename, reportParam, UUID.randomUUID().toString(), true); return printToPdf(filename, reportParam, UUID.randomUUID().toString(), true);

View File

@ -38,7 +38,7 @@
</select> </select>
<select id="getLabReportCount" resultType="int"> <select id="getLabReportCount" resultType="int">
SELECT sum(LEN(refs) - LEN(REPLACE(refs, '|', '')))+count(1) FROM lab_result,xm_info WHERE SELECT sum(LEN(refs) - LEN(REPLACE(refs, '|', '')))+count(1) FROM lab_result,xm_info WHERE
xm_info.yq=lab_result.yq and xm_info.xmdh=lab_result.xmdh and xm_info.dylx !='3' and xm_info.yq=lab_result.yq and xm_info.xmdh=lab_result.xmdh and xm_info.dylx !='3'
AND ( lab_result.jyrq =#{jyrq} ) AND ( lab_result.yq = #{yq}) AND ( lab_result.ybh = #{ybh} ) AND ( lab_result.jyrq =#{jyrq} ) AND ( lab_result.yq = #{yq}) AND ( lab_result.ybh = #{ybh} )
</select> </select>
<select id="getLabReportCountwithitem" resultType="int"> <select id="getLabReportCountwithitem" resultType="int">