明树Git Lab

Commit b3aa5ec5 authored by zfp1's avatar zfp1

1

parent ec07c517
Pipeline #109219 passed with stage
in 3 seconds
......@@ -55,6 +55,9 @@ async function getYyqtzhsInfo(req, res, next) {
ndYear
);
}
if(req.body.projectId) {
search.projectId = req.body.projectId;
}
console.log(search, "===")
// if (_.isEmpty(search)) {
// return res.sendError(errorMessage.paramsError);
......@@ -201,6 +204,9 @@ async function getYyqtzjcInfo(req, res, next) {
if (req.body.id) {
search.id = req.body.id;
}
if(req.body.projectId) {
search.projectId = req.body.projectId;
}
if (_.isEmpty(search)) {
return res.sendError(errorMessage.paramsError);
}
......@@ -429,6 +435,9 @@ async function getTzhpjInfo(req, res, next) {
if (req.body.id) {
search.id = req.body.id;
}
if(req.body.projectId) {
search.projectId = req.body.projectId;
}
if (_.isEmpty(search)) {
return res.sendError(errorMessage.paramsError);
}
......@@ -524,6 +533,9 @@ async function getYjglInfo(req, res, next) {
if (req.body.id) {
search.id = req.body.id;
}
if(req.body.projectId) {
search.projectId = req.body.projectId;
}
if (_.isEmpty(search)) {
return res.sendError(errorMessage.paramsError);
}
......
......@@ -140,6 +140,9 @@ async function getTzmbzrsInfo(req, res, next) {
if (req.body.id) {
sewhere.id = req.body.id;
}
if(req.body.projectId) {
sewhere.projectId = req.body.projectId;
}
if (_.isEmpty(sewhere)) {
return res.sendError(errorMessage.paramsError);
}
......@@ -667,6 +670,9 @@ async function getJsqtzhsInfo(req, res, next) {
if (req.body.id) {
search.id = req.body.id;
}
if(req.body.projectId) {
search.projectId = req.body.projectId;
}
if (_.isEmpty(search)) {
return res.sendError(errorMessage.paramsError);
}
......
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