明树Git Lab

Commit a2329ed8 authored by zfp1's avatar zfp1

update

parent 2149364c
Pipeline #108824 passed with stage
in 3 seconds
......@@ -51,10 +51,11 @@ async function getYyqtzhsInfo(req, res, next) {
if (_.isEmpty(search)) {
return res.sendError(errorMessage.paramsError);
}
let tzhs = await DB.ThYyqtzhs.findOne({ where: search, raw: true });
let tzhs = await DB.ThYyqtzhs.findOne({ where: search});
if (!(tzhs && tzhs.id && tzhs.projectId)) {
return res.sendError(errorMessage.resourceNotFound);
}
tzhs = tzhs.toJSON();
let lastyear = moment().subtract(1, 'year').format('YYYY');
let lastyeartzhs = await DB.ThYyqtzhs.findOne({where: {projectId: tzhs.projectId, nd: lastyear}});
tzhs.lastyeartzhs = lastyeartzhs || null;
......
......@@ -103,8 +103,8 @@ router.post('/getZdsxspInfo', projectTzController.getZdsxspInfo);
//2.7 重新决策
router.post('/saveZaiJuece', projectController.saveZaiJuece); //决策保存
router.post('/startZaiJuece', projectController.startZaiJuece); //发起决策
// router.post('/queryJueceResult', projectController.queryJueceResult); //查询决策审批结果
router.post('/approvalZaiJuece', projectController.approvalZaiJuece);
// router.post('/queryJueceResult', projectController.queryJueceResult); //查询决策审批结果
//2.8 项目退出 ***
router.post('/createXmtc', projectTzController.createXmtc);
......
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