Browse Source

已授权报表分类查询bug修复

郭齐峰 1 year ago
parent
commit
080376ae2b

+ 1 - 1
src/custom/restcontroller/webmanage/sale/reporttype/ReportType.java

@@ -109,7 +109,7 @@ public class ReportType extends Controller {
             QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sys_reporttype", "type");
             querySQL.setTableAlias("t1");
             querySQL.setSiteid(siteid);
-            querySQL.setWhere("exists(select 1 from sys_rolereportauth t2 where t1.siteid=t2.siteid and t1.sys_reportid=t2.sys_reportid and t2.roleid in" + roleids + ")");
+            querySQL.setWhere("exists(select 1 from sys_rolereportauth t2 where t1.sys_reportid=t2.sys_reportid and t2.roleid in" + roleids + ")");
             querySQL.addGroupBy("type");
             querySQL.setPage(pageSize, pageNumber);
             Rows query = querySQL.query();