Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Dui123
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
王天宇
Dui123
Commits
2ec4a89d
Commit
2ec4a89d
authored
Sep 30, 2021
by
wty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上线前准备
parent
8dda73e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
typeManage.js
expressServer/routes/typeManage.js
+8
-5
No files found.
expressServer/routes/typeManage.js
View file @
2ec4a89d
...
@@ -67,10 +67,10 @@ router.get('/queryTypeForManage', (req, res) => {
...
@@ -67,10 +67,10 @@ router.get('/queryTypeForManage', (req, res) => {
router
.
get
(
'/deleteChildType'
,
((
req
,
res
)
=>
{
router
.
get
(
'/deleteChildType'
,
((
req
,
res
)
=>
{
const
{
childTypeId
}
=
req
.
query
const
{
childTypeId
}
=
req
.
query
let
SQL
=
'DELETE FROM child_type WHERE childTypeId = ?;
\
n'
+
let
SQL
=
'DELETE FROM child_type WHERE childTypeId = ?;
'
'DELETE FROM type_childtype_toolbox WHERE childTypeId = ?;'
let
SQL2
=
'DELETE FROM type_childtype_toolbox WHERE childTypeId = ?;'
Mysql
.
query
(
SQL
,
[
childTypeId
,
childTypeId
],
(
err
,
result
)
=>
{
Mysql
.
query
(
SQL
,
[
childTypeId
],
(
err
,
result
)
=>
{
if
(
err
)
{
if
(
err
)
{
res
.
send
({
res
.
send
({
success
:
false
,
success
:
false
,
...
@@ -78,10 +78,13 @@ router.get('/deleteChildType', ((req, res) => {
...
@@ -78,10 +78,13 @@ router.get('/deleteChildType', ((req, res) => {
})
})
return
return
}
}
Mysql
.
query
(
SQL2
,
[
childTypeId
],
(
err
,
result
)
=>
{
res
.
send
({
res
.
send
({
success
:
true
,
success
:
true
,
})
})
})
})
})
}))
}))
router
.
get
(
'/updateType'
,
(
req
,
res
)
=>
{
router
.
get
(
'/updateType'
,
(
req
,
res
)
=>
{
...
...
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