Commit b600eb45 by 王悦

fix筛选支持多选,支持大类搜索

parent 414887bb
......@@ -462,12 +462,16 @@ class TrademarktransactionService extends ServiceBase {
countObj["id"] = { [this.db.Op.in]: ab.tmList };
}
if (ab.publish_status) {// publish_status
whereObj["publish_status"] = ab.publish_status;
countObj["publish_status"] = ab.publish_status;
whereObj["publish_status"] = {$in:ab.publish_status};
countObj["publish_status"] = {$in:ab.publish_status};
}
if (ab.TmType) {// publish_status
whereObj["TmType"] = ab.TmType;
countObj["TmType"] = ab.TmType;
whereObj["TmType"] = {$in:ab.TmType};
countObj["TmType"] = {$in:ab.TmType};
}
if (ab.ncl_one_code) {
whereObj["ncl_one_code"] = {$in: ab.ncl_one_code};
countObj["ncl_one_code"] = {$in: ab.ncl_one_code};
}
var count = await this.dao.findCount({ where: countObj });
var list = await this.dao.model.findAll({
......
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