소스 검색

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

郭齐峰 1 년 전
부모
커밋
080376ae2b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/custom/restcontroller/webmanage/sale/reporttype/ReportType.java

+ 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();