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.

51 lines
1.5 KiB

5 months ago
8 months ago
8 months ago
8 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. USE FastMoneyPro_Remit;
  2. --SessionId created from one IP do not accept from another IP
  3. --Check for duplicate partner sessionId(User wise unique)
  4. CREATE TABLE TBL_REMIT_INBOUND_LOG
  5. (
  6. RowId BIGINT NOT NULL IDENTITY(1, 1) PRIMARY KEY
  7. , SessionIdentifier VARCHAR(40) NULL
  8. , ProcessIdentifier VARCHAR(40) NULL
  9. , RequestedBy VARCHAR(80) NOT NULL
  10. , RequestedDate DATETIME DEFAULT(GETDATE()) NOT NULL
  11. , MethodName VARCHAR(50) NOT NULL
  12. , IpAddress VARCHAR(20) NOT NULL
  13. , PartnerSessionId VARCHAR(40) NULL
  14. , RequestJson NVARCHAR(MAX) NOT NULL
  15. , ResponseJson NVARCHAR(MAX) NULL
  16. , ResponseCode VARCHAR(5) NULL
  17. , ResponseMessage NVARCHAR(500) NULL
  18. );
  19. CREATE TABLE TBL_USER_SESSION
  20. (
  21. RowId BIGINT NOT NULL IDENTITY(1, 1)
  22. , UserId INT NOT NULL
  23. , SessionIdentifier VARCHAR(40) NOT NULL
  24. , IpAddress VARCHAR(20) NOT NULL
  25. , CreatedDate DATETIME DEFAULT(GETDATE()) NOT NULL
  26. , ExpiryDate DATETIME NOT NULL
  27. , IsExpired BIT NOT NULL DEFAULT(0)
  28. );
  29. select dbo.decryptDb(pwd),* from applicationUsers where userid='52903'
  30. SELECT GETDATE()
  31. SELECT * FROM TBL_REMIT_INBOUND_LOG
  32. SELECT * FROM TBL_USER_SESSION
  33. select * from logdb.dbo.TBL_REMIT_INBOUND_APPLICATION_LOG order by id desc
  34. EXEC PROC_REMIT_INBOUND_LOGIN @Flag = 'APPID', @UserName = 'sandip01'
  35. update applicationUsers set isLocked=0 , lastLoginTs=GETDATE() where userid='52903'
  36. select * FROM TBL_API_SECRET_KEY
  37. EXEC PROC_REMIT_INBOUND_LOGS @Flag = 'U-LOG' @ResponseCode= '101', @ResponseMessage = 'Password can not be empty.', @RowId = '4'