业务申请查询报表经销商权限更改
This commit is contained in:
parent
dd61a5b999
commit
6897763f78
@ -8,6 +8,13 @@
|
||||
History Log:
|
||||
*/
|
||||
String userid=CurUser.getUserID();
|
||||
|
||||
BizObjectManager b=JBOFactory.getBizObjectManager("jbo.awe.USER_INFO");
|
||||
BizObject boo = b.createQuery("userid=:userid").setParameter("userid", userid).getSingleResult(false);
|
||||
|
||||
|
||||
String BELONGORG = boo.getAttribute("BELONGORG").toString();
|
||||
System.out.println(BELONGORG);
|
||||
ASObjectModel doTemp = new ASObjectModel("VI_BUSINESS_QUERYStatement");
|
||||
|
||||
//加权限
|
||||
@ -41,7 +48,7 @@
|
||||
|
||||
//登录人属于经销商角色 401:经销商roleid
|
||||
if(roleList.contains("401")){
|
||||
doTemp.appendJboWhere(" and ui.userid='"+userid+"'");
|
||||
doTemp.appendJboWhere(" and ui.BELONGORG='"+BELONGORG+"'");
|
||||
//导出有权限
|
||||
template = "20cd01d204b84726962cbdeba698f5d1";
|
||||
}else{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user