明树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
f6a4df2e
Commit
f6a4df2e
authored
Dec 11, 2025
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
57c90c20
Pipeline
#104514
passed with stage
in 3 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
projectController.js
controller/projectController.js
+3
-0
projectXmtzze.js
db/model/jt/projectXmtzze.js
+1
-1
projectModule.js
module/projectModule.js
+1
-1
No files found.
controller/projectController.js
View file @
f6a4df2e
...
...
@@ -446,6 +446,9 @@ async function xiangmujuecegengxin(body, projectLzType) {
// 上会议案
let
shya
=
_
.
compact
(
body
.
shya
||
[]);
shya
.
map
(
o
=>
{
if
(
!
o
.
proFieldKey
)
{
createIds
.
push
({
id
:
o
.
id
,
proFieldKey
:
'shya'
})
}
else
{
needIds
.
push
(
o
.
id
)
};
return
{
fileId
:
o
.
id
,
projectId
:
projectInfo
.
id
,
proFieldKey
:
'shya'
}
});
// 里程碑计划审批表
let
lcbjhspb
=
_
.
compact
(
body
.
lcbjhspb
||
[]);
lcbjhspb
.
map
(
o
=>
{
if
(
!
o
.
proFieldKey
)
{
createIds
.
push
({
id
:
o
.
id
,
proFieldKey
:
'lcbjhspb'
})
}
else
{
needIds
.
push
(
o
.
id
)
};
return
{
fileId
:
o
.
id
,
projectId
:
projectInfo
.
id
,
proFieldKey
:
'lcbjhspb'
}
});
// 处理文件
//1. 删除
await
DB
.
ProjectFile
.
destroy
({
...
...
db/model/jt/projectXmtzze.js
View file @
f6a4df2e
...
...
@@ -71,7 +71,7 @@ const ProjectXmtzze = sequelize.define('ProjectXmtzze', {
// 同步模型到数据库(创建表)
ProjectXmtzze
.
sync
({
//
force: false,
force
:
false
,
// force: true ,//会删除已存在表并重新创建
// alter: true
})
...
...
module/projectModule.js
View file @
f6a4df2e
...
...
@@ -214,7 +214,7 @@ async function getProjectInfo({ id }) {
project
.
projectTzzjlls
=
await
DB
.
ProjectTzzjll
.
findAll
({
where
:
{
projectId
:
id
},
raw
:
true
});
project
.
projectTzzts
=
await
DB
.
ProjectTzzt
.
findAll
({
where
:
{
projectId
:
id
},
raw
:
true
});
project
.
projectXmtzzes
=
await
DB
.
ProjectXmtzze
.
findAll
({
where
:
{
projectId
:
id
},
raw
:
true
});
project
.
projectZqrzs
=
await
DB
.
ProjectZqrz
.
findAll
({
where
:
{
projectId
:
id
},
raw
:
true
});
project
.
projectXmtzzes
=
utils
.
buildTree2
(
project
.
projectXmtzzes
,
{
keyName
:
"key"
,
parentKeyName
:
'parentKey'
,
...
...
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