diff --git a/WebContent/Tenwa/Lease/Flow/RentCollection/rentcollection/rentCollectionList.jsp b/WebContent/Tenwa/Lease/Flow/RentCollection/rentcollection/rentCollectionList.jsp index 522d65546..5532e817c 100644 --- a/WebContent/Tenwa/Lease/Flow/RentCollection/rentcollection/rentCollectionList.jsp +++ b/WebContent/Tenwa/Lease/Flow/RentCollection/rentcollection/rentCollectionList.jsp @@ -25,13 +25,13 @@ String distributorNo = Sqlca.getString("select distributor_no from distributor_info where orgid = '" + CurUser.getOrgID() + "'"); if(!StringX.isEmpty(distributorNo)){ doTemp.appendJboWhere(" o.distributor_id = '"+distributorNo+"'"); + }else{ + //重催组角色查看所有,其余角色查看分配给当前角色数据 + String roleidq = Sqlca.getString("select group_concat(roleid) from USER_ROLE where USERID='"+CurUser.getUserID()+"'"); + if (!(StringX.isEmpty(roleidq) || roleidq.contains("800R00000043"))) { + doTemp.appendJboWhere(" odi.part_dept='" + userid + "'"); + } } - //重催组角色查看所有,其余角色查看分配给当前角色数据 - String roleidq = Sqlca.getString("select group_concat(roleid) from USER_ROLE where USERID='"+CurUser.getUserID()+"'"); - if(!StringX.isEmpty(roleidq) && !roleidq.contains("800R00000043")){ - doTemp.appendJboWhere(" odi.part_dept='" + userid + "'"); - } - ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); dwTemp.Style="1"; //--设置为Grid风格-- dwTemp.ReadOnly = "1"; //只读模式