明树Git Lab

Commit 2149364c authored by zfp1's avatar zfp1

update

parent 4934da66
Pipeline #108813 passed with stage
in 3 seconds
...@@ -57,7 +57,7 @@ async function getYyqtzhsInfo(req, res, next) { ...@@ -57,7 +57,7 @@ async function getYyqtzhsInfo(req, res, next) {
} }
let lastyear = moment().subtract(1, 'year').format('YYYY'); let lastyear = moment().subtract(1, 'year').format('YYYY');
let lastyeartzhs = await DB.ThYyqtzhs.findOne({where: {projectId: tzhs.projectId, nd: lastyear}}); let lastyeartzhs = await DB.ThYyqtzhs.findOne({where: {projectId: tzhs.projectId, nd: lastyear}});
tzhs.lastyeartzhs = lastyeartzhs; tzhs.lastyeartzhs = lastyeartzhs || null;
// let yyqtzhss = await DB.ThYyqtzhszb.findAll({ where: { projectId: tzhs.projectId, sourceId: req.body.id }, raw: true }); // let yyqtzhss = await DB.ThYyqtzhszb.findAll({ where: { projectId: tzhs.projectId, sourceId: req.body.id }, raw: true });
// tzhs.yyqtzhss = _.values(_.groupBy(yyqtzhss, 'groupBy')) || [[]] // tzhs.yyqtzhss = _.values(_.groupBy(yyqtzhss, 'groupBy')) || [[]]
return res.sendData(tzhs); return res.sendData(tzhs);
......
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