Commit 2729e82f by 王昆

gsb

parent 5cf8c725
...@@ -52,7 +52,7 @@ class DKcontractApi { ...@@ -52,7 +52,7 @@ class DKcontractApi {
if (!await this.idcardClient.checkIDCard(param.idNo)) { if (!await this.idcardClient.checkIDCard(param.idNo)) {
return this.returnjson(-1, "身份证格式不正确"); return this.returnjson(-1, "身份证格式不正确");
} }
let busi = await this.etemplatebusiSve.busiByTemplate(param.ecid); let busi = await this.etemplatebusiSve.busiByTemplate2(pobj.appId, param.ecid, 2);
let num = await this.esettleSve.isValidAge(busi[0].busi_id); let num = await this.esettleSve.isValidAge(busi[0].busi_id);
if (num) { if (num) {
......
...@@ -42,6 +42,11 @@ class EtemplatebusiService extends ServiceBase { ...@@ -42,6 +42,11 @@ class EtemplatebusiService extends ServiceBase {
return await this.customQuery(sql, {template_id: template_id}); return await this.customQuery(sql, {template_id: template_id});
} }
async busiByTemplate2(app_id, template_id, template_type) {
var sql = "SELECT * FROM c_etemplate_busi WHERE template_type = :template_type AND template_id = :template_id AND app_id = :app_id";
return await this.customQuery(sql, {template_id: template_id, app_id: app_id, template_type: template_type});
}
async getinfo(qobj) { async getinfo(qobj) {
var sql = "SELECT * FROM c_etemplate_busi WHERE template_id = " + qobj.template_id + " AND busi_id = " + qobj.company_id; var sql = "SELECT * FROM c_etemplate_busi WHERE template_id = " + qobj.template_id + " AND busi_id = " + qobj.company_id;
var page = await this.customQuery(sql); var page = await this.customQuery(sql);
......
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