Browse Source

backup

master
shakun 9 months ago
parent
commit
1b900ffba4
  1. BIN
      Back/GetUserInfo.sql
  2. BIN
      Back/PROC_TP_TXN_PUSH.sql
  3. BIN
      Back/PROC_TRANSACTION_REPORT.sql
  4. BIN
      Back/ProcMobileConfig.sql
  5. BIN
      Back/mobile_proc_customerMaster_V2.sql
  6. 54
      Back/mobile_proc_userLogin.sql
  7. BIN
      Back/proc_ApproveHoldedTXN.sql
  8. BIN
      Back/proc_InsertRewardPoints.sql
  9. BIN
      Back/proc_approveOFACCompliance.sql
  10. BIN
      Back/proc_cancelTran.sql
  11. BIN
      Back/proc_customerInfoWithPinNo.sql
  12. BIN
      Back/proc_customerRegistrationStatus.sql
  13. BIN
      Back/proc_modifyTXN.sql
  14. BIN
      Back/proc_online_approve_Customer.sql
  15. BIN
      Back/proc_online_core_customerSetup.sql
  16. BIN
      Back/proc_sendIntlReceipt.sql
  17. BIN
      StoredProc/PROC_TP_TXN_PUSH.sql
  18. BIN
      StoredProc/ProcMobileConfig.sql
  19. BIN
      StoredProc/proc_ApproveHoldedTXN.sql
  20. BIN
      StoredProc/proc_modifyTXN.sql
  21. BIN
      StoredProc/proc_online_approve_Customer.sql
  22. 8
      rewards.sql

BIN
Back/GetUserInfo.sql

BIN
Back/PROC_TP_TXN_PUSH.sql

BIN
Back/PROC_TRANSACTION_REPORT.sql

BIN
Back/ProcMobileConfig.sql

BIN
Back/mobile_proc_customerMaster_V2.sql

54
Back/mobile_proc_userLogin.sql

@ -1,15 +1,12 @@
USE [FastMoneyPro_Remit] USE [FastMoneyPro_Remit]
GO GO
/****** Object: StoredProcedure [dbo].[mobile_proc_userLogin] Script Date: 12/11/2023 2:04:40 PM ******/
/****** Object: StoredProcedure [dbo].[mobile_proc_userLogin] Script Date: 12/18/2023 11:01:32 PM ******/
SET ANSI_NULLS ON SET ANSI_NULLS ON
GO GO
SET QUOTED_IDENTIFIER ON SET QUOTED_IDENTIFIER ON
GO GO
ALTER PROCEDURE [dbo].[mobile_proc_userLogin] @flag VARCHAR(30) ALTER PROCEDURE [dbo].[mobile_proc_userLogin] @flag VARCHAR(30)
,@userName VARCHAR(100) = NULL ,@userName VARCHAR(100) = NULL
,@Password VARCHAR(100) = NULL ,@Password VARCHAR(100) = NULL
@ -159,22 +156,29 @@ BEGIN TRY
SET @UserData = 'User: ' + @username + ' ,Password: ' + @Password + ' ,User Type:Mobile User' + ' ,Device Info: ' + @imei + ' ,IsBiometricLogin: ' + @isBiometricLogin + ' ,BiometricTypeLogin: ' + @biometricLoginType + ' ,DeviceType: ' + @deviceType + ' ,AccessCode: ' + ISNULL(@accessCode, '') + ' ,AccessToken: ' + ISNULL(@accessToken, '') SET @UserData = 'User: ' + @username + ' ,Password: ' + @Password + ' ,User Type:Mobile User' + ' ,Device Info: ' + @imei + ' ,IsBiometricLogin: ' + @isBiometricLogin + ' ,BiometricTypeLogin: ' + @biometricLoginType + ' ,DeviceType: ' + @deviceType + ' ,AccessCode: ' + ISNULL(@accessCode, '') + ' ,AccessToken: ' + ISNULL(@accessToken, '')
DECLARE @isReferred BIT = 0
DECLARE @isReferred BIT = 0,@existingCustomer INT,@createdFrom VARCHAR(50)
IF EXISTS (
SELECT TOP 1 'x'
FROM referralmaster(NOLOCK)
WHERE email = @userName
OR mobile = @userName
)
SET @isReferred = 1
--IF EXISTS (
-- SELECT TOP 1 'x'
-- FROM referralmaster(NOLOCK)
-- WHERE email = @userName
-- OR mobile = @userName
-- )
-- SET @isReferred = 1
--SELECT * FROM customerMaster WHERE email = @userName
SELECT @_lastLoggedInDevice = lastLoggedInDevice SELECT @_lastLoggedInDevice = lastLoggedInDevice
,@_accessCodeExpiry = accessCodeExpiry ,@_accessCodeExpiry = accessCodeExpiry
,@_accessCode = accessCode ,@_accessCode = accessCode
FROM dbo.mobile_userRegistration(NOLOCK) FROM dbo.mobile_userRegistration(NOLOCK)
WHERE username = @userName WHERE username = @userName
SELECT
@existingCustomer= ISNULL(isexistingcustomer,0),
@customerPwd=customerPassword
,@createdFrom=createdFrom
FROM customerMaster WITH (NOLOCK)
WHERE ISNULL(username,email)=@userName --and ISNULL(onlineUser, 'N')='Y'
--IF @_lastLoggedInDevice = @Imei AND @_accessCodeExpiry > GETDATE() --IF @_lastLoggedInDevice = @Imei AND @_accessCodeExpiry > GETDATE()
--BEGIN --BEGIN
-- SET @accessCode=@_accessCode -- SET @accessCode=@_accessCode
@ -222,6 +226,26 @@ BEGIN TRY
DECLARE @redirectTo VARCHAR(100) = 'EYKC'; DECLARE @redirectTo VARCHAR(100) = 'EYKC';
IF( @existingCustomer=1 and (@customerPwd IS NULL OR @customerPwd=''))
BEGIN
SELECT '1' ErrorCode
,'Login Failed. Please click forgot Password to set new password.' Msg
,NULL
RETURN
END
IF( @createdFrom='C' and (@customerPwd IS NULL OR @customerPwd=''))
BEGIN
SELECT '1' ErrorCode
,'Login Failed. Please click forgot Password to set new password.' Msg
,NULL
RETURN
END
IF EXISTS ( IF EXISTS (
SELECT TOP 1 'X' SELECT TOP 1 'X'
FROM customerMasterTemp cm(NOLOCK) FROM customerMasterTemp cm(NOLOCK)
@ -425,7 +449,7 @@ BEGIN TRY
IF @isMobileLoginEnabled = 'N' IF @isMobileLoginEnabled = 'N'
BEGIN BEGIN
SELECT '20' errorCode SELECT '20' errorCode
,'Your JME account is disabled. Contact JME support.' msg
,'Your IME account is disabled. Contact JME support.' msg
,@username id ,@username id
SET @UserInfoDetail = 'Reason = Login fails, Your mobile login is disabled. Please, contact your administrator.' SET @UserInfoDetail = 'Reason = Login fails, Your mobile login is disabled. Please, contact your administrator.'
@ -909,5 +933,3 @@ BEGIN CATCH
,NULL ID ,NULL ID
END CATCH END CATCH
GO

BIN
Back/proc_ApproveHoldedTXN.sql

BIN
Back/proc_InsertRewardPoints.sql

BIN
Back/proc_approveOFACCompliance.sql

BIN
Back/proc_cancelTran.sql

BIN
Back/proc_customerInfoWithPinNo.sql

BIN
Back/proc_customerRegistrationStatus.sql

BIN
Back/proc_modifyTXN.sql

BIN
Back/proc_online_approve_Customer.sql

BIN
Back/proc_online_core_customerSetup.sql

BIN
Back/proc_sendIntlReceipt.sql

BIN
StoredProc/PROC_TP_TXN_PUSH.sql

BIN
StoredProc/ProcMobileConfig.sql

BIN
StoredProc/proc_ApproveHoldedTXN.sql

BIN
StoredProc/proc_modifyTXN.sql

BIN
StoredProc/proc_online_approve_Customer.sql

8
rewards.sql

@ -41,4 +41,10 @@ UPDATE customermaster set bonusPoint=0
FROM Customer_Promotion (NOLOCK) FROM Customer_Promotion (NOLOCK)
WHERE destinationCustomerId = 77 WHERE destinationCustomerId = 77
and codeTYPE = 'REGISTRATION' and rewardType='REFER_EARN'; and codeTYPE = 'REGISTRATION' and rewardType='REFER_EARN';
EXEC proc_InsertRewardPoints @Flag = 'TRANSACTION', @CustomerId = 24358, @TranId = 10001419
EXEC PROC_TP_TXN_PUSH @FLAG = 'INSTANT-PAID_V2', @TRAN_ID='10001419'
select * from customerMaster where membershipId='MOB000135'
select * FROM Customer_Promotion where sourceCustomerId='24358'
Loading…
Cancel
Save