明树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
83adadec
Commit
83adadec
authored
Jan 13, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5e2bee82
Pipeline
#106036
passed with stage
in 3 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
4 deletions
+28
-4
projectTzController.js
controller/projectTzController.js
+4
-3
tzTzkzAqzlhb.js
db/model/jt/tzTzkzAqzlhb.js
+4
-0
tzTzkzCwpj.js
db/model/jt/tzTzkzCwpj.js
+4
-1
tzTzkzGq.js
db/model/jt/tzTzkzGq.js
+4
-0
tzTzkzJcpfyj.js
db/model/jt/tzTzkzJcpfyj.js
+4
-0
tzTzkzTzekz.js
db/model/jt/tzTzkzTzekz.js
+4
-0
tzTzkzTzsy.js
db/model/jt/tzTzkzTzsy.js
+4
-0
No files found.
controller/projectTzController.js
View file @
83adadec
...
...
@@ -15,12 +15,13 @@ async function createTzmbzrs(req, res, next) {
if
(
!
req
.
body
.
projectId
)
{
return
res
.
sendError
(
errorMessage
.
paramsError
);
}
//创建投资目标责任书数据
let
ret
=
await
DB
.
TzTzmbzrs
.
create
(
req
.
body
);
//处理文件参数
req
.
body
.
zrswj
=
(
req
.
body
.
zrswj
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
chwj
=
(
req
.
body
.
chwj
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
req
.
body
.
jyglzrs
=
(
req
.
body
.
jyglzrs
||
[]).
map
(
o
=>
{
return
o
&&
o
.
id
||
o
});
//创建投资目标责任书数据
let
ret
=
await
DB
.
TzTzmbzrs
.
create
(
req
.
body
);
//处理 责任指标 表
let
tzmbzrsZbs
=
(
req
.
body
.
tzmbzrsZbs
||
[]).
map
(
o
=>
{
o
.
projectId
=
req
.
body
.
projectId
;
o
.
sourceId
=
ret
.
id
;
return
o
});
delete
req
.
body
.
tzmbzrsZbs
;
...
...
@@ -160,7 +161,7 @@ async function getTzmbzrsInfo(req, res, next) {
let
files
=
await
DB
.
File
.
findAll
({
where
:
{
id
:
{
[
Op
.
in
]:
fileIds
}
},
raw
:
true
});
let
fileMap
=
{};
files
.
map
(
o
=>
{
fileMap
[
o
.
id
]
=
o
});
console
.
log
(
fileMap
,
fileIds
,
"======================="
)
zrs
.
zrswj
=
(
zrs
.
zrswj
||
[]).
map
(
o
=>
{
return
fileMap
[
o
]
});
zrs
.
chwj
=
(
zrs
.
chwj
||
[]).
map
(
o
=>
{
return
fileMap
[
o
]
});
zrs
.
jyglzrs
=
(
zrs
.
jyglzrs
||
[]).
map
(
o
=>
{
return
fileMap
[
o
]
});
...
...
db/model/jt/tzTzkzAqzlhb.js
View file @
83adadec
...
...
@@ -27,6 +27,10 @@ const TzTzkzAqzlhb = sequelize.define('TzTzkzAqzlhb', {
// type: DataTypes.INTEGER,
// comment: "所属投资控制主表id",
// },
sourceId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属投资控制主表id"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
...
...
db/model/jt/tzTzkzCwpj.js
View file @
83adadec
...
...
@@ -30,7 +30,10 @@ const TzTzkzCwpj = sequelize.define('TzTzkzCwpj', {
type
:
DataTypes
.
TEXT
,
comment
:
"主要差异说明"
,
},
sourceId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属投资控制主表id"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
...
...
db/model/jt/tzTzkzGq.js
View file @
83adadec
...
...
@@ -59,6 +59,10 @@ const TzTzkzGq = sequelize.define('TzTzkzGq', {
// type: DataTypes.INTEGER,
// comment: "所属投资控制主表id",
// },
sourceId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属投资控制主表id"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
...
...
db/model/jt/tzTzkzJcpfyj.js
View file @
83adadec
...
...
@@ -91,6 +91,10 @@ const TzTzkzJcpfyj = sequelize.define('TzTzkzJcpfyj', {
// type: DataTypes.INTEGER,
// comment: "所属投资控制主表id",
// },
sourceId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属投资控制主表id"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
...
...
db/model/jt/tzTzkzTzekz.js
View file @
83adadec
...
...
@@ -82,6 +82,10 @@ const TzTzkzTzekz = sequelize.define('TzTzkzTzekz', {
// type: DataTypes.INTEGER,
// comment: "所属投资控制主表id",
// },
sourceId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属投资控制主表id"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
...
...
db/model/jt/tzTzkzTzsy.js
View file @
83adadec
...
...
@@ -20,6 +20,10 @@ const TzTzkzTzsy = sequelize.define('TzTzkzTzsy', {
// type: DataTypes.INTEGER,
// comment: "所属投资控制主表id",
// },
sourceId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属投资控制主表id"
},
projectId
:
{
type
:
DataTypes
.
INTEGER
,
comment
:
"所属项目ID"
,
...
...
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