Commit 2ec4a89d authored by wty's avatar wty

上线前准备

parent 8dda73e7
......@@ -67,10 +67,10 @@ router.get('/queryTypeForManage', (req, res) => {
router.get('/deleteChildType', ((req, res) => {
const {childTypeId} = req.query
let SQL = 'DELETE FROM child_type WHERE childTypeId = ?;\n' +
'DELETE FROM type_childtype_toolbox WHERE childTypeId = ?;'
let SQL = 'DELETE FROM child_type 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) {
res.send({
success: false,
......@@ -78,9 +78,12 @@ router.get('/deleteChildType', ((req, res) => {
})
return
}
res.send({
success: true,
Mysql.query(SQL2, [childTypeId], (err, result) => {
res.send({
success: true,
})
})
})
}))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment