sql语句修复
This commit is contained in:
@@ -38,7 +38,7 @@ module.exports = {
|
|||||||
query(`select 1 from ${table} where name like '%${con}%' ${sqlCon}`).then(res => {
|
query(`select 1 from ${table} where name like '%${con}%' ${sqlCon}`).then(res => {
|
||||||
return total = res.length
|
return total = res.length
|
||||||
}),
|
}),
|
||||||
query(`select * from ${table} where name like '%${con}%' ${sqlCon} order by ${sort||'createTime'} desc limit ${((current-1)||0)*size},${size||10}`).then(res => {
|
query(`select * from ${table} where name like '%${con}%' ${sqlCon} order by ${sort||'createTime'} desc limit ${((current-1)||0)*size},${size}`).then(res => {
|
||||||
return records = res
|
return records = res
|
||||||
})
|
})
|
||||||
]).then(() => {
|
]).then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user