明树Git Lab

Commit 4be5e24d authored by zfp1's avatar zfp1

update

parent 27daf809
Pipeline #109161 passed with stage
in 4 seconds
......@@ -1044,6 +1044,24 @@ async function listProject(req, res, next) {
if (req.body.attributes && req.body.attributes.length) {
search.attributes = req.body.attributes;
}
if(req.body.projectName) {
search.where.projectName = { [Op.like]: `%${req.body.projectName}%` };
}
if(req.body.projectCode) {
search.where.projectCode = { [Op.like]: `%${req.body.projectCode}%` };
}
if(req.body.glzt) {
search.where.glzt = { [Op.like]: `%${req.body.glzt}%` };
}
if(req.body.zsqy) {
search.where.sqr = { [Op.like]: `%${req.body.zsqy}%` };
}
if(req.body.xmjd) {
search.where.xmjd =req.body.xmjd;
}
if(req.body.xmqy) {
search.where.xmqy = req.body.xmqy ;
}
console.log(search)
search.raw = true
let ret = await DB.Project.findAndCountAll(search);
......
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