You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.9 KiB

1 year ago
  1. USE [FastMoneyPro_Remit]
  2. GO
  3. /****** Object: StoredProcedure [dbo].[ws_int_proc_responseLog] Script Date: 9/27/2019 1:30:14 PM ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. CREATE proc [dbo].[ws_int_proc_responseLog]
  9. @flag VARCHAR(10) = NULL
  10. ,@requestId BIGINT = NULL
  11. ,@errorCode VARCHAR(10) = NULL
  12. ,@errorMsg VARCHAR(MAX) = NULL
  13. AS
  14. SET NOCOUNT ON
  15. /*
  16. s - Standard Send
  17. u - SMA USA Send
  18. o - Other Methods
  19. sp_helptext ws_int_proc_responseLog
  20. */
  21. IF @flag = 's'
  22. BEGIN
  23. UPDATE apiRequestLog SET
  24. errorCode = @errorCode
  25. ,errorMsg = @errorMsg
  26. WHERE rowId = @requestId
  27. RETURN
  28. END
  29. IF @flag = 'u'
  30. BEGIN
  31. UPDATE apiRequestLogSMA SET
  32. errorCode = @errorCode
  33. ,errorMsg = @errorMsg
  34. WHERE rowId = @requestId
  35. RETURN
  36. END
  37. IF @flag = 'o'
  38. BEGIN
  39. UPDATE requestApiLogOther SET
  40. errorCode = @errorCode
  41. ,errorMsg = @errorMsg
  42. WHERE rowId = @requestId
  43. RETURN
  44. END
  45. GO