DockerERTFF/app/api/qSubSection.json

119 lines
2.9 KiB
JSON

{
"meta": {
"$_GET": [
{
"type": "text",
"name": "sort"
},
{
"type": "text",
"name": "dir"
},
{
"type": "text",
"name": "subid"
}
]
},
"exec": {
"steps": {
"name": "query",
"module": "dbconnector",
"action": "select",
"options": {
"connection": "DB",
"sql": {
"type": "SELECT",
"distinct": false,
"columns": [
{
"table": "tblSection",
"column": "*",
"field": "*"
}
],
"table": {
"name": "tblSection"
},
"joins": [],
"orders": [],
"params": [
{
"operator": "begins_with",
"type": "expression",
"name": ":P1",
"value": "{{$_GET.subid}}",
"test": ""
}
],
"query": "select * from `tblSection` where `tblSection`.`numSection` like ? and `tblSection`.`isSection` = ?",
"wheres": {
"condition": "AND",
"rules": [
{
"id": "tblSection.numSection",
"field": "tblSection.numSection",
"type": "string",
"operator": "begins_with",
"value": "{{$_GET.subid}}",
"data": {
"table": "tblSection",
"column": "numSection",
"type": "text",
"columnObj": {
"type": "text",
"maxLength": 255,
"primary": false,
"unique": false,
"nullable": true,
"name": "numSection"
}
},
"operation": "LIKE"
},
{
"id": "tblSection.isSection",
"field": "tblSection.isSection",
"type": "string",
"operator": "equal",
"value": "0",
"data": {
"table": "tblSection",
"column": "isSection",
"type": "text",
"columnObj": {
"type": "text",
"primary": false,
"unique": false,
"nullable": true,
"name": "isSection"
}
},
"operation": "="
}
],
"conditional": null,
"valid": true
}
}
},
"output": true,
"meta": [
{
"type": "text",
"name": "isSection"
},
{
"type": "text",
"name": "numSection"
},
{
"type": "text",
"name": "txtSection"
}
],
"type": "dbconnector_select",
"outputType": "array"
}
}
}