From 57266ee8c62f0fddb42c18c705507fc0dc2416f6 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 18 八月 2023 17:42:39 +0800
Subject: [PATCH] 2023-08-18

---
 src/utils/option.js |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/utils/option.js b/src/utils/option.js
index f876513..1652359 100644
--- a/src/utils/option.js
+++ b/src/utils/option.js
@@ -905,3 +905,12 @@
 }
 
 export const queryTableSql = 'select top 999999 TbName,Remark from (select TbName,Remark from sDataDictb where appkey= @appkey@ and Deleted=0 union select a.TbName,Remark from (select TbName,Remark from sDataDictb where appkey= \'\' and Deleted=0 ) a left join (select TbName from sDataDictb where appkey= @appkey@ and Deleted=0 ) b on a.TbName=b.TbName where b.TbName is null ) t order by TbName'
+
+export const queryPrintSql = `select ID,Images,PrintTempNO+PrintTempName as PN from sPrintTemplate 
+  where appkey= @appkey@ and Deleted=0 and typechartwo='web_print'
+  union select ID,Images,a.PrintTempNO+PrintTempName as PN 
+  from (select * from sPrintTemplate where appkey= '' and Deleted=0 and typechartwo='web_print') a 
+  left join (select PrintTempNO from sPrintTemplate where appkey= @appkey@ and Deleted=0 ) b 
+  on a.PrintTempNO=b.PrintTempNO 
+  left join (select Srcid from sPrintTemplate_Log where appkey='' and apicode= @appkey@ and Deleted=0 ) c 
+  on a.ID=c.Srcid where b.PrintTempNO is null and c.Srcid is null`
\ No newline at end of file

--
Gitblit v1.8.0