public Response DelSalesInvoice(string token, [FromBody] SalesInvoiceSaveParam sisp) { Response response = new Response(); if (string.IsNullOrEmpty(token) || !token.Equals(_token)) { response.code = "404"; response.message = "Invild token"; } else { int intExCount = 0; intExCount = SalesInvoiceHelper.DelSalesInvoice(sisp); if (intExCount == 0) { response.code = "500"; response.message = "process failed"; } else { response.code = "200"; } } return(response); }
/// <summary> /// 回退 by Angel Jiang /// </summary> /// <param name="sisp"></param> /// <returns></returns> public static int DelSalesInvoice(SalesInvoiceSaveParam sisp) { int intExCount = 0; try { if (sisp == null) { throw new Exception("CloseInvoiceSaveParam is null"); } // 执行设置开票区间 intExCount = factory.DelSalesInvoice(sisp); } catch (Exception ex) { LogHelper.WriteLog(new Log() { message = ex.Message }, "CloseSalesInvoice"); } return(intExCount); }