Commit ed883eed by 孙亚楠

d

parent 0f353c14
......@@ -99,6 +99,9 @@ class ActionAPI extends APIBase {
case "invoiceBycreditCode" : //根据统一社会信用代码查询发票
opResult = await this.iinvoiceSve.invoiceBycreditCode(action_body);
break;
case "getSaasInvoiceById" : //根据统一社会信用代码查询发票
opResult = await this.saasinvoiceapplySve.getSaasInvoiceById(action_body);
break;
// case "verificationAndCalculation": // 发票试算接口
// opResult = await rule.dispatcher(action_body);
......
......@@ -217,6 +217,16 @@ class SaasinvoiceapplyService extends ServiceBase {
return system.getResult(null, `系统错误`);
}
}
/**
* 根据ID 查询想i昂
* @param params
* @returns {Promise<void>}
*/
async getSaasInvoiceById(params){
let res = await this.dao.getById(this.trim(params.id),this.trim(params.attrs));
return system.getResult(res || {});
}
}
module.exports = SaasinvoiceapplyService;
\ No newline at end of file
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