{
 "hidden": false,
 "children": [{
  "configs": {
   "itemId": "module",
   "serverScript": "/**\
 *Description:查询条件用户类别，租户\
 *Author: wangll\
 *Version: 1.0\
 *Create Date Time: 2020-03-23\
 */\
var data = app.get(),sql= '';\
var superFlag = app.get('sys.superFlag');\
if(superFlag =='0' && !Wb.isEmpty(data.tenancyId)){\
  sql += \" and TENANCY_ID = {?tenancyId?} \";\
}\
request.setAttribute(\"whereSql\",sql);"
  },
  "expanded": true,
  "children": [{
   "configs": {
    "itemId": "dataprovider1",
    "sql": "select  TENANCY_ID, TENANCY_CODE, TENANCY_NAME, NOTES\
from WB_TENANCY\
where 1=1 {#whereSql#}"
   },
   "expanded": false,
   "children": [],
   "type": "dataprovider"
  }],
  "type": "module"
 }],
 "roles": {"default": 1},
 "title": "查询租户代码",
 "iconCls": "",
 "inframe": false,
 "pageLink": ""
}