明树Git Lab

Commit 05986797 authored by zfp1's avatar zfp1

1

parent d0e25964
Pipeline #105221 passed with stage
in 3 seconds
...@@ -725,20 +725,20 @@ async function getJsqtzjcList (req, res, next) { ...@@ -725,20 +725,20 @@ async function getJsqtzjcList (req, res, next) {
search.offset = offset; search.offset = offset;
let where = { del: 0 }; let where = { del: 0 };
if (req.body.projectName) { // if (req.body.projectName) {
where = { // where = {
[Op.or]: [ // [Op.or]: [
{ projectName: { [Op.like]: `%${req.body.projectName}%` } }, // { projectName: { [Op.like]: `%${req.body.projectName}%` } },
], // ],
del: 0 // del: 0
} // }
} // }
search.where = where; search.where = where;
if (req.body.attributes && req.body.attributes.length) { if (req.body.attributes && req.body.attributes.length) {
search.attributes = req.body.attributes; search.attributes = req.body.attributes;
} }
let ret = await DB.TzJsqtzhs.findAndCountAll(search); let ret = await DB.TzJsqtzjc.findAndCountAll(search);
return res.sendData(ret); return res.sendData(ret);
} catch (error) { } catch (error) {
next(error); next(error);
......
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