Commit c6372040 by 赵庆

gsb

parent cd2a07c2
......@@ -743,8 +743,7 @@ class EcontractApi {
return this.returnjson(-1, "身份证格式不正确");
}
// TODO 赵庆测试
let busiIds = await etemplatebusiSve.busiIdsByTemplateId(param.ecid);
let busiIds = await this.etemplatebusiSve.busiIdsByTemplateId(param.ecid);
let num = await this.esettleSve.isValidAge(busiIds);
if(num) {
let card = await this.idcardClient.cardInfo(param.idNo);
......@@ -762,8 +761,6 @@ class EcontractApi {
}
}
}
// TODO END
if (!param.bankno) {
return this.returnjson(-1, "请提供该用户银行卡号")
......
......@@ -856,7 +856,7 @@ class EsettleService extends ServiceBase {
return 0;
}
let sql = "SELECT COUNT(1) AS num FROM tbl_busi WHERE id IN (:ids) AND age_flag = 1 ";
let list = await this.settledb.query(sql.join(" "), {replacements: {ids: ids}});
let list = await this.settledb.query(sql, {replacements: {ids: ids}});
if (list && list.length > 0) {
list = list[0, 0] || [];
if (!list || list.length == 0) {
......
......@@ -6,8 +6,8 @@ class EtemplatebusiService extends ServiceBase {
}
async getlist(id) {
var sql = "SELECT * FROM c_etemplate_busi WHERE template_id = " + id;
var page = await this.customQuery(sql);
var sql = "SELECT * FROM c_etemplate_busi WHERE template_id = :template_id";
var page = await this.customQuery(sql,{template_id:id});
return page;
}
async busiIdsByTemplateId(template_id) {
......
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