|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- {
- "meta": {
- "$_GET": [
- {
- "type": "text",
- "name": "sort"
- },
- {
- "type": "text",
- "name": "dir"
- },
- {
- "type": "text",
- "name": "filter"
- },
- {
- "type": "number",
- "name": "userid"
- }
- ]
- },
- "exec": {
- "steps": {
- "name": "query",
- "module": "dbconnector",
- "action": "select",
- "options": {
- "connection": "authdb",
- "sql": {
- "type": "select",
- "columns": [
- {
- "table": "xuserrole",
- "column": "id"
- },
- {
- "table": "roles",
- "column": "id",
- "alias": "roleid"
- },
- {
- "table": "roles",
- "column": "name"
- }
- ],
- "params": [
- {
- "operator": "equal",
- "type": "expression",
- "name": ":P1",
- "value": "{{$_GET.userid}}",
- "test": ""
- }
- ],
- "table": {
- "name": "xuserrole"
- },
- "primary": "id",
- "joins": [
- {
- "table": "roles",
- "column": "*",
- "type": "INNER",
- "clauses": {
- "condition": "AND",
- "rules": [
- {
- "table": "roles",
- "column": "id",
- "operator": "equal",
- "operation": "=",
- "value": {
- "table": "xuserrole",
- "column": "roleid"
- }
- }
- ]
- },
- "primary": "id"
- }
- ],
- "query": "select `xuserrole`.`id`, `roles`.`id` as `roleid`, `roles`.`name` from `xuserrole` inner join `roles` on `roles`.`id` = `xuserrole`.`roleid` where `xuserrole`.`roleid` <> ? and `xuserrole`.`roleid` <> ? and `xuserrole`.`roleid` <> ? and `xuserrole`.`roleid` <> ? and `xuserrole`.`userid` = ?",
- "wheres": {
- "condition": "AND",
- "rules": [
- {
- "id": "xuserrole.roleid",
- "field": "xuserrole.roleid",
- "type": "double",
- "operator": "not_equal",
- "value": 4,
- "data": {
- "table": "xuserrole",
- "column": "roleid",
- "type": "number",
- "columnObj": {
- "type": "integer",
- "primary": false,
- "unique": false,
- "nullable": true,
- "name": "roleid"
- }
- },
- "operation": "<>"
- },
- {
- "id": "xuserrole.roleid",
- "field": "xuserrole.roleid",
- "type": "double",
- "operator": "not_equal",
- "value": 6,
- "data": {
- "table": "xuserrole",
- "column": "roleid",
- "type": "number",
- "columnObj": {
- "type": "integer",
- "primary": false,
- "unique": false,
- "nullable": true,
- "name": "roleid"
- }
- },
- "operation": "<>"
- },
- {
- "id": "xuserrole.roleid",
- "field": "xuserrole.roleid",
- "type": "double",
- "operator": "not_equal",
- "value": 1,
- "data": {
- "table": "xuserrole",
- "column": "roleid",
- "type": "number",
- "columnObj": {
- "type": "integer",
- "primary": false,
- "unique": false,
- "nullable": true,
- "name": "roleid"
- }
- },
- "operation": "<>"
- },
- {
- "id": "xuserrole.roleid",
- "field": "xuserrole.roleid",
- "type": "double",
- "operator": "not_equal",
- "value": 7,
- "data": {
- "table": "xuserrole",
- "column": "roleid",
- "type": "number",
- "columnObj": {
- "type": "integer",
- "primary": false,
- "unique": false,
- "nullable": true,
- "name": "roleid"
- }
- },
- "operation": "<>"
- },
- {
- "id": "xuserrole.userid",
- "field": "xuserrole.userid",
- "type": "double",
- "operator": "equal",
- "value": "{{$_GET.userid}}",
- "data": {
- "table": "xuserrole",
- "column": "userid",
- "type": "number",
- "columnObj": {
- "type": "integer",
- "primary": false,
- "unique": false,
- "nullable": true,
- "name": "userid"
- }
- },
- "operation": "="
- }
- ],
- "conditional": null,
- "valid": true
- }
- }
- },
- "output": true,
- "meta": [
- {
- "type": "number",
- "name": "id"
- },
- {
- "type": "number",
- "name": "roleid"
- },
- {
- "type": "text",
- "name": "name"
- }
- ],
- "outputType": "array"
- }
- }
- }
|