Commit cd2a07c2 by 王昆

gsb

parent b79710d4
...@@ -10,9 +10,9 @@ class EtemplatebusiService extends ServiceBase { ...@@ -10,9 +10,9 @@ class EtemplatebusiService extends ServiceBase {
var page = await this.customQuery(sql); var page = await this.customQuery(sql);
return page; return page;
} }
async busiIdsByTemplateId(id) { async busiIdsByTemplateId(template_id) {
var sql = "SELECT busi_id FROM c_etemplate_busi WHERE template_id = " + id; var sql = "SELECT busi_id FROM c_etemplate_busi WHERE template_id = :template_id";
var list = await this.customQuery(sql); var list = await this.customQuery(sql, {template_id: template_id});
let rs = []; let rs = [];
if (!list || list.length == 0) { if (!list || list.length == 0) {
return rs; return rs;
......
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