明树Git Lab

Commit 16f9f1e9 authored by zfp1's avatar zfp1

1

parent fd79bab8
Pipeline #109215 passed with stage
in 3 seconds
const itclfiMap = {
"655d4e5247323defddafcf1b": {
isPromise: 1,
promiseType: 2,
approvalType: 2
},
"6218b527cebadc014222e863": {
isPromise: 1,
promiseType: 2,
approvalType: 2
},
"622c56d3672bb1f158cf6d25": {
isPromise: 1,
promiseType: 1,
promiseDay: 20,
approvalType: 2
},
"622c56dd672bb1f158cf6d26": {
isPromise: 1,
promiseType: 1,
promiseDay: 20,
approvalType: 2
},
"6218b500cebadc014222e6ea": {
isPromise: 1,
promiseType: 1,
promiseDay: 7,
approvalType: 2
}
}
let b = {
// key : "6218b500cebadc014222e6ea"
}
let a = {
a: 1,
...(itclfiMap[b.key] || {})
}
console.log(a);
\ No newline at end of file
......@@ -574,7 +574,7 @@ async function startJuece(req, res, next) {
projectId: req.body.id,
creator: req.user.id,
receivers: approvers.map(o => o.id),
type: 2,
type: 3,
title: `项目【${req.body.projectName}】已发起项目决策,请尽快处理!`,
content: `项目【${req.body.projectName}】已发起项目决策,请尽快处理!`
});
......@@ -1256,7 +1256,7 @@ async function startZaiJuece(req, res, next) {
projectId: req.body.id,
creator: req.user.id,
receivers: approvers.map(o => o.id),
type: 2,
type: 4,
title: `项目【${req.body.projectName}】已发起项目再决策,请尽快处理!`,
content: `项目【${req.body.projectName}】已发起项目再决策,请尽快处理!`
});
......
......@@ -37,7 +37,7 @@ const Message = sequelize.define('Message', {
type: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "消息类型 1 系统消息 2 项目初步审核 3.项目终审"
comment: "消息类型 1 系统消息 2 项目立项审批 3.项目决策审批 4. 项目再决策审批"
},
/**
* 其他待存字段
......
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