Browse Source

fixes for postcode/zip

master
shakun 1 year ago
parent
commit
606e73d14c
  1. 23
      Deployment/17825/GetUserInfo.sql
  2. BIN
      StoredProc/JsonRx_Proc_UserRegistration.sql
  3. BIN
      StoredProc/JsonRx_Proc_UserRegistration_V2.sql
  4. BIN
      StoredProc/mobile_proc_customerMaster_V2.sql
  5. BIN
      StoredProc/proc_customerBankModify.sql
  6. BIN
      StoredProc/proc_online_core_customerSetup.sql
  7. 32
      update.sql

23
Deployment/17825/GetUserInfo.sql

@ -4,7 +4,7 @@ GO
SET QUOTED_IDENTIFIER ON SET QUOTED_IDENTIFIER ON
GO GO
CREATE PROCEDURE [dbo].[GetUserInfo]
ALTER PROCEDURE [dbo].[GetUserInfo]
( (
@FLAG VARCHAR(20) @FLAG VARCHAR(20)
,@customerId VARCHAR(200) = NULL ,@customerId VARCHAR(200) = NULL
@ -20,9 +20,28 @@ AS
BEGIN BEGIN
IF @FLAG = 'basic-reg' IF @FLAG = 'basic-reg'
BEGIN 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, SELECT CONCAT(ISNULL(firstName,''), ' ', ISNULL(middleName,''), ' ', ISNULL(lastName1,'')) AS fullName, customerId, membershipId, firstName, ISNULL(middleName,'') AS middleName,
lastName1, mobile, 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 return
END END

BIN
StoredProc/JsonRx_Proc_UserRegistration.sql

BIN
StoredProc/JsonRx_Proc_UserRegistration_V2.sql

BIN
StoredProc/mobile_proc_customerMaster_V2.sql

BIN
StoredProc/proc_customerBankModify.sql

BIN
StoredProc/proc_online_core_customerSetup.sql

32
update.sql

@ -1,28 +1,36 @@
select lawsoncardno,txnpin, membershipid, mobileverifieddate,agreeYn, HasDeclare, idNumber, idExpiryDate, idIssueCountry, idIssueDate, 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' 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 txnpin=123456,isForcedPwdChange=0
where username='stha@yopmail.com'
where username='luffy1@yopmail.com'
update customermaster set update customermaster set
txnpin=123456 txnpin=123456
where username='stha@yopmail.com' 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 update customermastertemp set isemailverified=1
where username='stha@yopmail.com' where username='stha@yopmail.com'
EXEC GetUserInfo @flag='basic-reg', @emailId='luffy@yopmail.com'
update mobile_userRegistration update mobile_userRegistration
set isForcePinChange=0 ,isForcePassChange=0 set isForcePinChange=0 ,isForcePassChange=0
where username='stha@yopmail.com' 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 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', 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' ,@gender = '97'
,@FirstName = 'shakub' ,@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', EXEC mobile_proc_customerMaster @flag='refresh-customer-info', @userName = 'stha@yopmail.com',
@appVersion = '2.5',@phoneBrand = 'samsung', @appVersion = '2.5',@phoneBrand = 'samsung',

Loading…
Cancel
Save