Commit 2ec4a89d authored by wty's avatar wty

上线前准备

parent 8dda73e7
...@@ -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,9 +78,12 @@ router.get('/deleteChildType', ((req, res) => { ...@@ -78,9 +78,12 @@ router.get('/deleteChildType', ((req, res) => {
}) })
return return
} }
res.send({ Mysql.query(SQL2, [childTypeId], (err, result) => {
success: true, 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