Commit 5283b29f by chenjinjing

no message

parent 90df5b8a
......@@ -22,6 +22,7 @@ import { BizError } from "../../util/bizError";
function analysisParamToWhere(param, column) {
let where = {};
let order = [];
let group = "";
let limit = 0;
for (let key in param) {
if (typeof param[key] == "object") {
......@@ -68,6 +69,9 @@ function analysisParamToWhere(param, column) {
case "%limit%":
limit = param[key];
break;
case "%group%":
group = param[key];
break;
default: where[key] = param[key];
}
}
......@@ -77,6 +81,7 @@ function analysisParamToWhere(param, column) {
if (column && column.length) selectParam.attributes = column;
if (order && order.length) selectParam.order = order;
if (limit) selectParam.limit = limit;
if (group) selectParam.group = group;
return selectParam;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment