| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- -- admin 查看指定信息
- SELECT
- *
- FROM
- /matrix/filesystem
- where
- fullname like '*new.png'
- /**
- output()
- count(3)
- match("fullname","/app/matrix/m3appstore/assets/graph/tools/mail_new.png")
- match("fullname","/assets/images/graph/tools/mail_new.png")
- match("fullname","/assets/images/product_screenshot/new.png")
- **/
- ;
- -- 用户信息
- select * from /matrix/ldap where username='user111'
- /**
- output()
- count(1)
- match("otype", "usr")
- match("grpset.0", "/产品测试部/aaa")
- match("parent", "/产品测试部")
- match("fullname", "/产品测试部/user111")
- **/
- ;
- -- 用户所属父级组织
- select * from /matrix/ldap where fullname='/产品测试部'
- /**
- output()
- count(1)
- match("grpset.0", "/产品测试部")
- match("fullname", "/产品测试部")
- **/
- ;
- -- 用户所属关联组信息 角色
- select * from /matrix/group where fullname='/产品测试部'
- /**
- output()
- count(1)
- match("sdata.~/matrix/entity/biz","id='biz:查账系统'")
- **/
- ;
- insert into /matrix/group (name,fullname,parent,member,isldap,sdata) values (?,?,?,?,?,?)
- /**
- params("aaa", "/产品测试部/aaa", "/产品测试部", ["U/产品测试部/user111"],false, {
- "/matrix/filesystem": "{\"should\":[{\"type\":\"wildcard\",\"field\":\"varchar_19\",\"value\":\"*new.png\"},{\"type\":\"phrase\",\"field\":\"varchar_19\",\"value\":\"new.png\"}],\"type\":\"boolean\"}",
- "~/matrix/filesystem": "fullname like '*new.png'"})
- **/
- ;
- -- 用户所属关联组信息 角色
- select * from /matrix/group where fullname='/产品测试部/aaa'
- /**
- output()
- count(1)
- match("sdata.~/matrix/filesystem","fullname like '*new.png'")
- **/
- ;
- -- 用户查看授权信息
- SELECT
- *
- FROM
- /matrix/filesystem
- /**
- qmeta({"user":"user111"})
- output()
- count(3)
- **/
- ;
|