Prechádzať zdrojové kódy

Merge remote-tracking branch 'origin/develop' into develop

# Conflicts:
#	lib/yos.core-2.2.2-sources.jar
#	lib/yos.core-2.2.2.jar
hu 1 rok pred
rodič
commit
3c49777cd1

+ 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 != '积木报表'))