明树Git Lab

Commit 614eec7f authored by zfp1's avatar zfp1

update

parent 33c24818
Pipeline #109240 passed with stage
in 4 seconds
...@@ -67,7 +67,7 @@ async function getYyqtzhsInfo(req, res, next) { ...@@ -67,7 +67,7 @@ async function getYyqtzhsInfo(req, res, next) {
// } // }
let tzhs = await DB.ThYyqtzhs.findOne({ where: search }); let tzhs = await DB.ThYyqtzhs.findOne({ where: search });
if (!(tzhs && tzhs.id && tzhs.projectId)) { if (!(tzhs && tzhs.id && tzhs.projectId)) {
return res.sendError(errorMessage.resourceNotFound); return res.sendData({})
} }
tzhs = tzhs.toJSON(); tzhs = tzhs.toJSON();
let lastyear = moment(tzhs.nd).subtract(1, 'year').format('YYYY'); let lastyear = moment(tzhs.nd).subtract(1, 'year').format('YYYY');
......
...@@ -685,7 +685,7 @@ async function getJsqtzhsInfo(req, res, next) { ...@@ -685,7 +685,7 @@ async function getJsqtzhsInfo(req, res, next) {
} }
let tzhs = await DB.TzJsqtzhs.findOne({ where: search }); let tzhs = await DB.TzJsqtzhs.findOne({ where: search });
if (!(tzhs && tzhs.id && tzhs.projectId)) { if (!(tzhs && tzhs.id && tzhs.projectId)) {
return res.sendError(errorMessage.resourceNotFound); return res.sendData({})
} }
tzhs = tzhs.toJSON(); tzhs = tzhs.toJSON();
let lastyear = moment(tzhs.nd).subtract(1, 'year').format('YYYY'); let lastyear = moment(tzhs.nd).subtract(1, 'year').format('YYYY');
......
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