Commit c6372040 by 赵庆

gsb

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