发票下载优化

This commit is contained in:
lihao 2025-06-19 10:42:04 +08:00
parent f32edfc7da
commit 12d4499755
1 changed files with 4 additions and 2 deletions

View File

@ -136,8 +136,10 @@ public class InvoiceDownloadAction implements ICommonAction {
"AND bd.pk_defdoc = '" + ivApplicationHeadVO.getDef2().toString() + "' ";
// List<Map<String,Object>> operationresult = (List<Map<String,Object>>) getQueryService().executeQuery(operationSql, new ArrayListProcessor());
Map<String, Object> valList = (Map<String, Object>) getQueryService().executeQuery(operationSql, new MapProcessor());
if(valList == null){
ctcode = ivApplicationHeadVO.getDef2(); // ºÏͬºÅ
if(!valList.isEmpty()){
ctcode = (String) valList.get("name"); // ºÏͬºÅ
}else{
ctcode =ivApplicationHeadVO.getDef2();
}
}
if(!ctcode.equals("") && !ctcode.equals("/") ){