Commit cf1c24b2 by 王昆

gsb

parent efbaaf2d
...@@ -88,16 +88,14 @@ class SaasinvoiceapplyService extends ServiceBase { ...@@ -88,16 +88,14 @@ class SaasinvoiceapplyService extends ServiceBase {
} }
async audit(params) { async audit(params) {
let status = Number(params.status || 0);
let apply = await this.dao.findById(params.id); let apply = await this.dao.findById(params.id);
if (!apply) { if (!apply) {
return system.getResult(null, "发票申请不存在"); return system.getResult(null, "发票申请不存在");
} }
if (apply.status != "1000") { if (apply.status != "1000") {
return system.getResult(null, "发票申请已审核成功,不要重复审核"); return system.getResult(null, "发票申请已审核");
} }
apply.status = params.status;
apply.status = status ? "1010" : "1020";
apply.audit_remark = this.trim(params.remark); apply.audit_remark = this.trim(params.remark);
await apply.save(); await apply.save();
return system.getResultSuccess(); return system.getResultSuccess();
......
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