明树Git Lab

Commit 9b56a6c0 authored by zengfanpei's avatar zengfanpei

update

parent eba4e56b
...@@ -15,6 +15,9 @@ async function list(req, res, next) { ...@@ -15,6 +15,9 @@ async function list(req, res, next) {
if (req.body.name) { if (req.body.name) {
search.name = { $regex: req.body.name }; search.name = { $regex: req.body.name };
} }
if(_.isArray(req.body.deviceHQType)) {
search.deviceHQType = {$in: req.body.deviceHQType};
}
if(req.body.deviceHQType) { if(req.body.deviceHQType) {
search.deviceHQType = req.body.deviceHQType; search.deviceHQType = req.body.deviceHQType;
} }
......
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