Commit 87891d01 authored by wty's avatar wty

更新prod4

parent 80f1570e
......@@ -39,21 +39,8 @@ getMysql.then(Mysql => {
router.get('/queryToolBox', (req, res) => {
let {isFollow, type_id} = req.query
let SQL = `SELECT toolbox.*, type_childtype_toolbox.child_type_id, type_childtype_toolbox.type_id FROM type_childtype_toolbox INNER JOIN toolbox ON type_childtype_toolbox.toolbox_id = toolbox.toolbox_id`
if (isFollow) {
// type_id = JSON.parse(type_id)
if (Array.isArray(type_id) && !type_id.length){
res.send({
success: true,
data: []
})
}
SQL = 'SELECT * FROM toolbox WHERE toolbox_id IN (?)'
}
Mysql.query(SQL, [type_id], (err, result) => {
Mysql.query(SQL, [], (err, result) => {
if (err) {
res.send({
success: false,
......
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