소스 검색

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 년 전
부모
커밋
3c49777cd1
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      src/custom/restcontroller/system/report/SQL/应用报表查询2.sql

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