Commit 17f3776f by 王昆

dd

parent 521c2ac1
......@@ -110,9 +110,6 @@ class ActionAPI extends APIBase {
case "merchantTitleAddrPage": //查询 title and addr list
opResult = await this.saasmerchantSve.merchantTitleAddrPage(action_body);
break;
case "updateMerchantTitleAndAddr":
opResult = await this.saasmerchantSve.updateMerchantTitleAndAddr(action_body);
break;
case "queryInvoiceTitleAndAddr": //查询商户title&addr
opResult = await this.saasmerchantSve.queryInvoiceTitleAndAddr(action_body);
break;
......
......@@ -10,7 +10,7 @@ class SaasmerchantaddrDao extends Dao {
*/
async getAllByMerchantId(id){
let sql = `select * from saas_merchant_addr where saas_merchant_id = :saas_merchant_id`;
return await this.customUpdate(sql.join(" "), {saas_merchant_id:id});
return await this.customQuery(sql, {saas_merchant_id:id});
}
......
......@@ -7,7 +7,7 @@ class SaasmerchanttitleDao extends Dao {
async getAllByMerchantId(id){
let sql = `select * from saas_merchant_title where saas_merchant_id = :saas_merchant_id`;
return await this.customUpdate(sql.join(" "), {saas_merchant_id:id});
return await this.customQuery(sql, {saas_merchant_id: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