Commit 9651cfab by Zllgogo

no message

parent 4d5292be
......@@ -7,6 +7,7 @@ import { BizError } from "../util/bizError";
/**
* where条件查询参数
* @param param
* %or%: 或者条件 [{"列名": 条件}, {"列名":条件}]
* %like%:模糊查询 {列名: {"%like%": }}
* %gt%:大于 {列名: {"%gt%": }}
* %gte%:大于等于 {列名: {"%gte%": }}
......@@ -21,6 +22,7 @@ import { BizError } from "../util/bizError";
*/
function analysisParamToWhere(param, column) {
let where = {};
let or = {};
let order = [];
let group = "";
let limit = 0;
......@@ -63,7 +65,7 @@ function analysisParamToWhere(param, column) {
break;
}
}
}else {
} else {
switch (key) {
case "%orderDesc%":
order = [[Sequelize.col(param[key]), "DESC"]];
......
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