明树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) {
search.offset = offset;
let where = { del: 0 };
if (req.body.projectName) {
where = {
[Op.or]: [
{ projectName: { [Op.like]: `%${req.body.projectName}%` } },
],
del: 0
}
}
// if (req.body.projectName) {
// where = {
// [Op.or]: [
// { projectName: { [Op.like]: `%${req.body.projectName}%` } },
// ],
// del: 0
// }
// }
search.where = where;
if (req.body.attributes && req.body.attributes.length) {
search.attributes = req.body.attributes;
}
let ret = await DB.TzJsqtzhs.findAndCountAll(search);
let ret = await DB.TzJsqtzjc.findAndCountAll(search);
return res.sendData(ret);
} catch (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