明树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
b868f0e0
Commit
b868f0e0
authored
Mar 24, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c63e5996
Pipeline
#108774
passed with stage
in 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
projectTzController.js
controller/projectTzController.js
+6
-6
No files found.
controller/projectTzController.js
View file @
b868f0e0
...
...
@@ -995,12 +995,12 @@ async function updateZdsxsp(req, res, next) {
// await Promise.all(info.map(item => { return DB.TzZdsxspfl.update(item, { where: { id: item.id } }) }));
// delete req.body.zdsxspfls;
//处理文件
req
.
body
.
qylht
=
(
req
.
body
.
qylht
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
jjlht
=
(
req
.
body
.
jjlht
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
zjwj
=
(
req
.
body
.
zjwj
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
ybfspwj
=
(
req
.
body
.
ybfspwj
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
cwjr
=
(
req
.
body
.
cwjr
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
gqjg
=
(
req
.
body
.
gqjg
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
//
req.body.qylht = (req.body.qylht || []).map(o => { return o && o.id || o });
//
req.body.jjlht = (req.body.jjlht || []).map(o => { return o && o.id || o });
//
req.body.zjwj = (req.body.zjwj || []).map(o => { return o && o.id || o });
//
req.body.ybfspwj = (req.body.ybfspwj || []).map(o => { return o && o.id || o });
//
req.body.cwjr = (req.body.cwjr || []).map(o => { return o && o.id || o });
//
req.body.gqjg = (req.body.gqjg || []).map(o => { return o && o.id || o });
await
DB
.
TzZdsxsp
.
update
(
req
.
body
,
{
where
:
{
id
:
req
.
body
.
id
}
});
return
res
.
sendData
({});
}
catch
(
error
)
{
...
...
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