明树Git Lab

Commit 1eef9ec0 authored by zfp1's avatar zfp1

1

parent 765f4d85
Pipeline #106471 passed with stage
in 3 seconds
...@@ -504,13 +504,10 @@ async function getYjglInfo(req, res, next) { ...@@ -504,13 +504,10 @@ async function getYjglInfo(req, res, next) {
if (req.body.id) { if (req.body.id) {
search.id = req.body.id; search.id = req.body.id;
} }
if (req.body.projectId) {
search.projectId = req.body.projectId;
}
if (_.isEmpty(search)) { if (_.isEmpty(search)) {
return res.sendError(errorMessage.paramsError); return res.sendError(errorMessage.paramsError);
} }
let yjgl = await DB.ThYjgl.findOne({ where: search, raw: true }); let yjgl = await DB.ThYjgl.findOne({ where: search });
if (!(yjgl && yjgl.id)) { if (!(yjgl && yjgl.id)) {
return res.sendError(errorMessage.resourceNotFound); return res.sendError(errorMessage.resourceNotFound);
} }
......
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