明树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
42d76b9c
Commit
42d76b9c
authored
May 27, 2026
by
zfp1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ac042cc9
Pipeline
#112028
passed with stage
in 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
projectRcController.js
controller/projectRcController.js
+6
-0
rcTzjh.js
db/model/jt/rcTzjh.js
+1
-1
No files found.
controller/projectRcController.js
View file @
42d76b9c
...
@@ -58,6 +58,12 @@ async function getTzjhList(req, res, next) {
...
@@ -58,6 +58,12 @@ async function getTzjhList(req, res, next) {
if
(
req
.
body
.
projectId
)
{
if
(
req
.
body
.
projectId
)
{
where
.
projectId
=
req
.
body
.
projectId
;
where
.
projectId
=
req
.
body
.
projectId
;
}
}
if
(
req
.
body
.
cwbblx
)
{
where
.
cwbblx
=
req
.
body
.
cwbblx
;
}
if
(
req
.
body
.
zyfzy
)
{
where
.
zyfzy
=
req
.
body
.
zyfzy
;
}
search
.
where
=
where
;
search
.
where
=
where
;
if
(
req
.
body
.
attributes
&&
req
.
body
.
attributes
.
length
)
{
if
(
req
.
body
.
attributes
&&
req
.
body
.
attributes
.
length
)
{
search
.
attributes
=
req
.
body
.
attributes
;
search
.
attributes
=
req
.
body
.
attributes
;
...
...
db/model/jt/rcTzjh.js
View file @
42d76b9c
...
@@ -254,7 +254,7 @@ const RcTzjh = sequelize.define('RcTzjh', {
...
@@ -254,7 +254,7 @@ const RcTzjh = sequelize.define('RcTzjh', {
RcTzjh
.
sync
({
RcTzjh
.
sync
({
// force: false,
// force: false,
// force: true ,//会删除已存在表并重新创建
// force: true ,//会删除已存在表并重新创建
alter
:
true
//
alter: true
})
})
.
then
(()
=>
{
.
then
(()
=>
{
console
.
log
(
'RcTzjh 表同步成功'
);
console
.
log
(
'RcTzjh 表同步成功'
);
...
...
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