明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengfanpei
jt_backend
Commits
16f9f1e9
Commit
16f9f1e9
authored
Apr 03, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fd79bab8
Pipeline
#109215
passed with stage
in 3 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
3 deletions
+41
-3
a.js
a.js
+38
-0
projectController.js
controller/projectController.js
+2
-2
message.js
db/model/system/message.js
+1
-1
No files found.
a.js
View file @
16f9f1e9
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
controller/projectController.js
View file @
16f9f1e9
...
...
@@ -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
}
】已发起项目再决策,请尽快处理!`
});
...
...
db/model/system/message.js
View file @
16f9f1e9
...
...
@@ -37,7 +37,7 @@ const Message = sequelize.define('Message', {
type
:
{
type
:
DataTypes
.
INTEGER
,
allowNull
:
true
,
comment
:
"消息类型 1 系统消息 2 项目
初步审核 3.项目终审
"
comment
:
"消息类型 1 系统消息 2 项目
立项审批 3.项目决策审批 4. 项目再决策审批
"
},
/**
* 其他待存字段
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment