明树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
3105652c
Commit
3105652c
authored
Mar 10, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f8cea7e0
Pipeline
#108168
passed with stage
in 3 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
88 deletions
+93
-88
projectRcController.js
controller/projectRcController.js
+2
-2
projectThController.js
controller/projectThController.js
+1
-1
rcTwhgl.js
db/model/jt/rcTwhgl.js
+90
-85
No files found.
controller/projectRcController.js
View file @
3105652c
...
@@ -413,8 +413,8 @@ async function getCgqygl(req, res, next) {
...
@@ -413,8 +413,8 @@ async function getCgqygl(req, res, next) {
let
info
=
await
DB
.
RcCgqygl
.
findOne
({
where
:
search
,
raw
:
true
});
let
info
=
await
DB
.
RcCgqygl
.
findOne
({
where
:
search
,
raw
:
true
});
if
(
!
(
info
&&
info
.
id
&&
info
.
projectId
))
return
res
.
sendError
(
errorMessage
.
resourceNotFound
);
if
(
!
(
info
&&
info
.
id
&&
info
.
projectId
))
return
res
.
sendError
(
errorMessage
.
resourceNotFound
);
let
tzfhs
=
await
DB
.
RcCgqyglTzfh
.
findAll
({
where
:
{
projectId
:
info
.
projectId
,
sourceId
:
info
.
id
}
,
raw
:
true
});
let
tzfhs
=
await
DB
.
RcCgqyglTzfh
.
findAll
({
where
:
{
projectId
:
info
.
projectId
,
sourceId
:
info
.
id
}});
let
wtyys
=
await
DB
.
RcCgqyglWtyy
.
findAll
({
where
:
{
projectId
:
info
.
projectId
,
sourceId
:
info
.
id
}
,
raw
:
true
});
let
wtyys
=
await
DB
.
RcCgqyglWtyy
.
findAll
({
where
:
{
projectId
:
info
.
projectId
,
sourceId
:
info
.
id
}});
info
.
tzfhs
=
tzfhs
||
[];
info
.
tzfhs
=
tzfhs
||
[];
info
.
wtyys
=
wtyys
||
[];
info
.
wtyys
=
wtyys
||
[];
return
res
.
sendData
(
info
);
return
res
.
sendData
(
info
);
...
...
controller/projectThController.js
View file @
3105652c
...
@@ -481,7 +481,7 @@ async function getYjglList(req, res, next) {
...
@@ -481,7 +481,7 @@ async function getYjglList(req, res, next) {
let
offset
=
(
page
-
1
)
*
limit
;
let
offset
=
(
page
-
1
)
*
limit
;
let
search
=
{};
let
search
=
{};
search
.
order
=
[[
'
createdAt
'
,
'DESC'
]];
search
.
order
=
[[
'
id
'
,
'DESC'
]];
search
.
limit
=
limit
;
search
.
limit
=
limit
;
search
.
offset
=
offset
;
search
.
offset
=
offset
;
...
...
db/model/jt/rcTwhgl.js
View file @
3105652c
...
@@ -23,7 +23,12 @@ const RcTwhgl = sequelize.define('RcTwhgl', {
...
@@ -23,7 +23,12 @@ const RcTwhgl = sequelize.define('RcTwhgl', {
meetingDate
:
{
meetingDate
:
{
type
:
DataTypes
.
DATE
,
type
:
DataTypes
.
DATE
,
allowNull
:
false
,
allowNull
:
false
,
comment
:
'会议时间'
comment
:
'会议时间'
,
defaultValue
:
new
Date
(),
get
()
{
const
rawValue
=
this
.
getDataValue
(
'createdAt'
);
return
rawValue
?
moment
(
rawValue
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
;
}
},
},
meetingLocation
:
{
meetingLocation
:
{
type
:
DataTypes
.
STRING
(
200
),
type
:
DataTypes
.
STRING
(
200
),
...
...
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