Преглед изворни кода

报表查询逻辑更新,git提交排除out文件夹

郭齐峰 пре 1 година
родитељ
комит
3831dadc3f

BIN
lib/yos.core-2.2.1-sources.jar → lib/yos.core-2.2.2-sources.jar


BIN
lib/yos.core-2.2.1.jar → lib/yos.core-2.2.2.jar


+ 11 - 0
src/custom/restcontroller/system/report/SQL/应用报表查询2.sql

@@ -0,0 +1,11 @@
+select t1.sys_reportid,
+       t1.siteid,
+       if(t1.reporttype = '积木报表', t2.type, 'datainfo') type,
+       if(t1.reporttype = '积木报表', t2.name, t1.name)    name
+from sys_report t1
+         left join jimureport.jimu_report t2 on t1.jimu_report_id = t2.id
+where (ifnull(t1.siteid, '') = '' or t1.siteid = $siteid$)
+  and t1.systemappid = $systemappid$
+  and t1.isused = 1
+  and ((t1.reporttype = '积木报表' and t2.id is not null)
+    or (t1.reporttype != '积木报表'))