增加关于标准库的筛选
This commit is contained in:
@@ -3,9 +3,10 @@ module.exports = {
|
||||
action: "/node/wechatapps/list",
|
||||
method: "post",
|
||||
execute: (request, response) => {
|
||||
let total = 0, records = [], {size, current = 1, name = "", type} = request.query
|
||||
let total = 0, records = [], {size, current = 1, name = "", type, isMain} = request.query
|
||||
if (type) {
|
||||
let condition = `where type='${type}' and (name like '%${name}%' or label like '%${name}%')`
|
||||
isMain && (condition += ` and libPath not like '%project%'`)
|
||||
Promise.all([
|
||||
dbUtils.query(`select 1 from node_wechat_apps ${condition}`).then(res => {
|
||||
return total = res.length
|
||||
|
||||
Reference in New Issue
Block a user