Commit c62c5061 by 王昆

dd

parent f3f0182f
......@@ -46,5 +46,14 @@ class IprocessDao extends Dao {
}
return result;
}
async queryInvoiceStatusName(status){
let sql = `select name from i_process where status = :status`;
let bean =await this.customQuery(sql, {
status: status
});
let rse = bean.length>0?bean[0].name:"";
return rse;
}
}
module.exports = IprocessDao;
\ No newline at end of file
......@@ -330,6 +330,8 @@ class IInvoiceService extends ServiceBase {
_invoice.invoiceinforeg= _invoiceinforeg;
_invoice.invoicedeliver= _invoicedeliver;
_invoice.invoicesummaryinfo= _invoicesummaryinfo;
_invoice.status_name = await this.iprocessDao.queryInvoiceStatusName(_invoice.status);
return system.getResult(_invoice);
} catch (error) {
console.log(error);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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