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.

76 lines
2.6 KiB

1 year ago
  1. USE [FastMoneyPro_Remit]
  2. GO
  3. /****** Object: StoredProcedure [dbo].[ws_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_proc_responseLog]
  9. @flag VARCHAR(10) = NULL
  10. ,@requestId BIGINT = NULL
  11. ,@errorCode VARCHAR(10) = NULL
  12. ,@errorMsg VARCHAR(MAX) = NULL
  13. ,@remarks VARCHAR(30) = NULL
  14. AS
  15. SET NOCOUNT ON
  16. /*
  17. s - Standard Send
  18. u - SMA USA Send
  19. o - Other Methods
  20. p - Pay
  21. */
  22. IF @flag = 's'
  23. BEGIN
  24. UPDATE apiRequestLog SET
  25. errorCode = @errorCode
  26. ,errorMsg = @errorMsg
  27. WHERE rowId = @requestId
  28. RETURN
  29. END
  30. IF @flag = 'u'
  31. BEGIN
  32. UPDATE apiRequestLogSMA SET
  33. errorCode = @errorCode
  34. ,errorMsg = @errorMsg
  35. WHERE rowId = @requestId
  36. RETURN
  37. END
  38. IF @flag = 'p'
  39. BEGIN
  40. UPDATE apiRequestLogPay SET
  41. errorCode = @errorCode
  42. ,errorMsg = @errorMsg
  43. ,remarks = @remarks
  44. WHERE rowId = @requestId
  45. RETURN
  46. END
  47. IF @flag = 'sma'
  48. BEGIN
  49. UPDATE dbo.apiRequestLogSMA SET
  50. errorCode = @errorCode
  51. ,errorMsg = @errorMsg
  52. WHERE rowId = @requestId
  53. RETURN
  54. END
  55. IF @flag = 'exrate'
  56. BEGIN
  57. UPDATE apiRequestLog_GetExRate SET
  58. errorCode = @errorCode
  59. ,errorMsg = @errorMsg
  60. WHERE rowId = @requestId
  61. RETURN
  62. END
  63. GO