diff --git a/Deployment/17825/GetUserInfo.sql b/Deployment/17825/GetUserInfo.sql index 0627d0c..cf74c70 100644 --- a/Deployment/17825/GetUserInfo.sql +++ b/Deployment/17825/GetUserInfo.sql @@ -4,7 +4,7 @@ GO SET QUOTED_IDENTIFIER ON GO -CREATE PROCEDURE [dbo].[GetUserInfo] +ALTER PROCEDURE [dbo].[GetUserInfo] ( @FLAG VARCHAR(20) ,@customerId VARCHAR(200) = NULL @@ -20,9 +20,28 @@ AS BEGIN IF @FLAG = 'basic-reg' BEGIN + + DECLARE @MEMBESHIP_ID VARCHAR(50) = NULL; + IF EXISTS ( + SELECT * + FROM dbo.customerMastertemp(NOLOCK) + WHERE username = @emailId + AND membershipId IS NULL + ) + BEGIN + EXEC PROC_GENERATE_MEMBERSHIP_ID @CUSTOMERID = 0 + ,@USER = 'mobile' + ,@loginBranchId = 0 + ,@MEMBESHIP_ID = @MEMBESHIP_ID OUT + + UPDATE dbo.customerMasterTemp + SET MEMBERSHIPID = @MEMBESHIP_ID + WHERE username = @emailId + END + SELECT CONCAT(ISNULL(firstName,''), ' ', ISNULL(middleName,''), ' ', ISNULL(lastName1,'')) AS fullName, customerId, membershipId, firstName, ISNULL(middleName,'') AS middleName, lastName1, mobile, - CONCAT(ISNULL(zipCode,''), ' ', ISNULL(city,''), ' ',ISNULL(ADDITIONALADDRESS,'')) AS address, email, createdDate FROM customerMaster WHERE email = @emailId --and mobile = @mobile + CONCAT(ISNULL(zipCode,''), ' ', ISNULL(city,''), ' ',ISNULL(ADDITIONALADDRESS,'')) AS address, email, createdDate FROM customerMastertemp WHERE email = @emailId --and mobile = @mobile return END diff --git a/StoredProc/JsonRx_Proc_UserRegistration.sql b/StoredProc/JsonRx_Proc_UserRegistration.sql index 8ca5b43..d7f00f4 100644 Binary files a/StoredProc/JsonRx_Proc_UserRegistration.sql and b/StoredProc/JsonRx_Proc_UserRegistration.sql differ diff --git a/StoredProc/JsonRx_Proc_UserRegistration_V2.sql b/StoredProc/JsonRx_Proc_UserRegistration_V2.sql index bd1e343..5abc825 100644 Binary files a/StoredProc/JsonRx_Proc_UserRegistration_V2.sql and b/StoredProc/JsonRx_Proc_UserRegistration_V2.sql differ diff --git a/StoredProc/mobile_proc_customerMaster_V2.sql b/StoredProc/mobile_proc_customerMaster_V2.sql index 0a6a656..e264e1f 100644 Binary files a/StoredProc/mobile_proc_customerMaster_V2.sql and b/StoredProc/mobile_proc_customerMaster_V2.sql differ diff --git a/StoredProc/proc_customerBankModify.sql b/StoredProc/proc_customerBankModify.sql index ac66904..3ae7614 100644 Binary files a/StoredProc/proc_customerBankModify.sql and b/StoredProc/proc_customerBankModify.sql differ diff --git a/StoredProc/proc_online_core_customerSetup.sql b/StoredProc/proc_online_core_customerSetup.sql new file mode 100644 index 0000000..d2d0aed Binary files /dev/null and b/StoredProc/proc_online_core_customerSetup.sql differ diff --git a/update.sql b/update.sql index 2218415..cfdf99b 100644 --- a/update.sql +++ b/update.sql @@ -1,28 +1,36 @@ select lawsoncardno,txnpin, membershipid, mobileverifieddate,agreeYn, HasDeclare, idNumber, idExpiryDate, idIssueCountry, idIssueDate, -fullname, * FROM customermaster where username='stha@yopmail.com' -select membershipid, mobileverifieddate,agreeYn, HasDeclare, isemailverified, * FROM customermastertemp where username='stha@yopmail.com' +fullname, * FROM customermaster where username='luffy1@yopmail.com' +select membershipid, mobileverifieddate,agreeYn, HasDeclare, isemailverified, * FROM customermastertemp where username='luffy@yopmail.com' select * FROM TBL_MOBILE_OTP_REQUEST where user_id='stha@yopmail.com' ---delete FROM customermaster where username='mukta@yopmail.com' ---delete FROM CustomerMasterTemp where username='stha@yopmail.com' ---delete FROM mobile_userRegistration where username='stha@yopmail.com' ---delete FROM TBL_MOBILE_OTP_REQUEST where user_id='stha@yopmail.com' ---select * FROM mobile_userRegistration where username='stha@yopmail.com' -update customermaster set mobileverifieddate=getdate() , HasDeclare=0, agreeYn=0, +delete FROM customermaster where username='luffy@yopmail.com' +delete FROM CustomerMasterTemp where username='luffy@yopmail.com' +delete FROM mobile_userRegistration where username='luffy@yopmail.com' +delete FROM TBL_MOBILE_OTP_REQUEST where user_id='luffy@yopmail.com' +delete from customerDocument where customerid='46' +select * FROM mobile_userRegistration where username='luffy@yopmail.com' +update customermaster set mobileverifieddate=null , HasDeclare=0, agreeYn=0, txnpin=123456,isForcedPwdChange=0 - where username='stha@yopmail.com' + where username='luffy1@yopmail.com' update customermaster set txnpin=123456 where username='stha@yopmail.com' +select * FROM TBL_MOBILE_OTP_REQUEST where user_id='luffy@yopmail.com' + +UPDATE TBL_MOBILE_OTP_REQUEST set IS_SUCCESS=0 , REQUESTED_DATE=GETDATE(), IS_EXPIRED=0 where user_id='luffy@yopmail.com' - update customermaster set lawsoncardno='KYC_NOW' where username='mukta@yopmail.com' + update customermaster set lawsoncardno='KYC_NOW' where username='luffy1@yopmail.com' + update CustomerMasterTemp set isEmailVerified='1' where username='luffy1@yopmail.com' update customermastertemp set isemailverified=1 where username='stha@yopmail.com' - + EXEC GetUserInfo @flag='basic-reg', @emailId='luffy@yopmail.com' update mobile_userRegistration set isForcePinChange=0 ,isForcePassChange=0 where username='stha@yopmail.com' + --CustomerInfoAgree + + EXEC JsonRx_Proc_UserRegistration @flag='agree' , @username = 'luffy@yopmail.com' EXEC JsonRx_Proc_UserRegistration @flag='save-kyc-option', @username = 'stha@yopmail.com', @registrationType = 'MKYC', @clientId = 'KYC_LATER' EXEC mobile_proc_customerMaster @flag='refresh-customer-info', @userName='stha@yopmail.com',@appVersion='22', @@ -52,7 +60,7 @@ EXEC JsonRx_Proc_UserRegistration_V2 @flag = 'sign-up-v2-new-cust' ,@gender = '97' ,@FirstName = 'shakub' - EXEC proc_mobile_StaticData @flag='kycV3', @customerId='stha@yopmail.com' + EXEC proc_mobile_StaticData @flag='kycV3', @customerId='luffy@yopmail.com' EXEC mobile_proc_customerMaster @flag='refresh-customer-info', @userName = 'stha@yopmail.com', @appVersion = '2.5',@phoneBrand = 'samsung',