明树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
4c0745b4
Commit
4c0745b4
authored
Mar 13, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4e0e5429
Pipeline
#108283
passed with stage
in 3 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
projectRcController.js
controller/projectRcController.js
+1
-1
rcTwhgl.js
db/model/jt/rcTwhgl.js
+1
-1
rcTzjh.js
db/model/jt/rcTzjh.js
+22
-4
No files found.
controller/projectRcController.js
View file @
4c0745b4
...
@@ -495,7 +495,7 @@ async function updateTwhgl(req, res, next) {
...
@@ -495,7 +495,7 @@ async function updateTwhgl(req, res, next) {
async
function
getTwhgl
(
req
,
res
,
next
)
{
async
function
getTwhgl
(
req
,
res
,
next
)
{
try
{
try
{
if
(
!
req
.
body
.
id
)
return
res
.
sendError
(
errorMessage
.
paramsError
);
if
(
!
req
.
body
.
id
)
return
res
.
sendError
(
errorMessage
.
paramsError
);
let
info
=
await
DB
.
RcTwhgl
.
findOne
({
where
:
{
id
:
req
.
body
.
id
,
del
:
0
}
,
raw
:
true
});
let
info
=
await
DB
.
RcTwhgl
.
findOne
({
where
:
{
id
:
req
.
body
.
id
,
del
:
0
}
});
if
(
!
(
info
&&
info
.
id
))
return
res
.
sendError
(
errorMessage
.
resourceNotFound
);
if
(
!
(
info
&&
info
.
id
))
return
res
.
sendError
(
errorMessage
.
resourceNotFound
);
return
res
.
sendData
(
info
);
return
res
.
sendData
(
info
);
}
catch
(
error
)
{
}
catch
(
error
)
{
...
...
db/model/jt/rcTwhgl.js
View file @
4c0745b4
...
@@ -26,7 +26,7 @@ const RcTwhgl = sequelize.define('RcTwhgl', {
...
@@ -26,7 +26,7 @@ const RcTwhgl = sequelize.define('RcTwhgl', {
comment
:
'会议时间'
,
comment
:
'会议时间'
,
defaultValue
:
new
Date
(),
defaultValue
:
new
Date
(),
get
()
{
get
()
{
const
rawValue
=
this
.
getDataValue
(
'
createdAt
'
);
const
rawValue
=
this
.
getDataValue
(
'
meetingDate
'
);
return
rawValue
?
moment
(
rawValue
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
;
return
rawValue
?
moment
(
rawValue
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
;
}
}
},
},
...
...
db/model/jt/rcTzjh.js
View file @
4c0745b4
...
@@ -15,8 +15,18 @@ const RcTzjh = sequelize.define('RcTzjh', {
...
@@ -15,8 +15,18 @@ const RcTzjh = sequelize.define('RcTzjh', {
projectForeignName
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"项目外文名称"
,
_mark
:
"lixiang"
},
projectForeignName
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"项目外文名称"
,
_mark
:
"lixiang"
},
sbdw
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"申报单位"
},
sbdw
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"申报单位"
},
xmgsmc
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"项目公司名称/被投资企业名称"
},
xmgsmc
:
{
type
:
DataTypes
.
STRING
,
allowNull
:
true
,
comment
:
"项目公司名称/被投资企业名称"
},
xmkgsjyj
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
,
comment
:
"项目开工时间(预计) 项目预计起始时间"
,
_mark
:
"lixiang"
},
xmkgsjyj
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
,
comment
:
"项目开工时间(预计) 项目预计起始时间"
,
_mark
:
"lixiang"
,
xmjgsjyj
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
,
comment
:
"项目交工时间(预计) 项目预计完成时间"
,
_mark
:
"lixiang"
},
get
()
{
const
rawValue
=
this
.
getDataValue
(
'xmkgsjyj'
);
return
rawValue
?
moment
(
rawValue
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
;
}
},
xmjgsjyj
:
{
type
:
DataTypes
.
DATE
,
allowNull
:
true
,
comment
:
"项目交工时间(预计) 项目预计完成时间"
,
_mark
:
"lixiang"
,
get
()
{
const
rawValue
=
this
.
getDataValue
(
'xmjgsjyj'
);
return
rawValue
?
moment
(
rawValue
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
;
}
},
xmjd
:
{
xmjd
:
{
type
:
DataTypes
.
STRING
,
type
:
DataTypes
.
STRING
,
comment
:
"项目阶段"
comment
:
"项目阶段"
...
@@ -95,7 +105,11 @@ const RcTzjh = sequelize.define('RcTzjh', {
...
@@ -95,7 +105,11 @@ const RcTzjh = sequelize.define('RcTzjh', {
xmRzLdSjHyyjLdSj
:
{
xmRzLdSjHyyjLdSj
:
{
type
:
DataTypes
.
DATE
,
type
:
DataTypes
.
DATE
,
comment
:
'项目融资落地时间或预计落地时间'
comment
:
'项目融资落地时间或预计落地时间'
,
get
()
{
const
rawValue
=
this
.
getDataValue
(
'xmRzLdSjHyyjLdSj'
);
return
rawValue
?
moment
(
rawValue
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
;
}
},
},
yjSxZbjNbsyl
:
{
yjSxZbjNbsyl
:
{
type
:
DataTypes
.
FLOAT
(
5
,
2
),
type
:
DataTypes
.
FLOAT
(
5
,
2
),
...
@@ -124,7 +138,11 @@ const RcTzjh = sequelize.define('RcTzjh', {
...
@@ -124,7 +138,11 @@ const RcTzjh = sequelize.define('RcTzjh', {
},
},
xmSjKgSj
:
{
xmSjKgSj
:
{
type
:
DataTypes
.
DATE
,
type
:
DataTypes
.
DATE
,
comment
:
'项目实际开工时间'
comment
:
'项目实际开工时间'
,
get
()
{
const
rawValue
=
this
.
getDataValue
(
'xmSjKgSj'
);
return
rawValue
?
moment
(
rawValue
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
;
}
},
},
yqSxXg
:
{
yqSxXg
:
{
type
:
DataTypes
.
TEXT
,
type
:
DataTypes
.
TEXT
,
...
...
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