修复销售发票接口返回值调整
This commit is contained in:
parent
7f472d5694
commit
d13ff6e55b
|
@ -138,9 +138,11 @@ public class saveCommitAction extends AbstractNCCRestResource {
|
|||
SaleInvoiceToTaxInvServiceImpl saleInvoiceToTaxInvService = new SaleInvoiceToTaxInvServiceImpl();
|
||||
saleInvoiceToTaxInvService.issueTaxInvoice(saleInvoiceVO, typeObj);
|
||||
|
||||
return r != null
|
||||
? ResultMessageUtil.toJSON(r.getDesc(), "0")
|
||||
: ResultMessageUtil.exceptionToJSON(new NullPointerException("δ֪Òì³£"));
|
||||
JSONObject desc = r.getDesc();
|
||||
if (desc != null) {
|
||||
desc.put("vos", saleInvoiceVO);
|
||||
}
|
||||
return ResultMessageUtil.toJSON(desc, "0");
|
||||
} catch (Exception e) {
|
||||
return ResultMessageUtil.exceptionToJSON(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue