commit 77ab5a3b1453df85e2cda2f202d396e45f68be33 Author: Rubbish Date: Mon Sep 25 18:02:21 2023 +0800 first commit diff --git a/连锁分离单店.sql b/连锁分离单店.sql new file mode 100644 index 0000000..17e80d7 --- /dev/null +++ b/连锁分离单店.sql @@ -0,0 +1,64 @@ +-- -- ѯ˾ +SELECT * FROM TCompany WHERE FId = '3472333586818924544' + +INSERT INTO QingDao_saidao12.dbo.TCompany ([FId] ,[FNo] ,[FName] ,[FAbbr] ,[FAreaId] ,[FParentId] ,[FAddress] ,[FTelephone] ,[FEmail] ,[FWebsite] ,[FWeChatNo] ,[FWeChatQRCode] ,[FAppId] ,[FIntroduction] ,[FAdmin] ,[FIsCenter] ,[FAllowBooking] ,[FDeleted] ,[FDataNameIndex] ,[FWeChatAppNo] ,[FBookingOrder] ,[FLocationLat] ,[FLocationLng] ,[FAvatar] ,[FRegId] ,[FAddressProvince] ,[FAddressCity] ,[FAddressDistrict] ,[FAddressStreet] ,[FAddressDetail] ,[FWindowImages]) +SELECT [FId],[FNo],[FName],[FAbbr],[FAreaId],[FParentId],[FAddress],[FTelephone],[FEmail],[FWebsite],[FWeChatNo],[FWeChatQRCode],[FAppId],[FIntroduction],[FAdmin],[FIsCenter],[FAllowBooking],[FDeleted],[FDataNameIndex],[FWeChatAppNo],[FBookingOrder],[FLocationLat],[FLocationLng],[FAvatar],[FRegId],[FAddressProvince],[FAddressCity],[FAddressDistrict],[FAddressStreet],[FAddressDetail],[FWindowImages] +FROM TCompany WHERE FId = '3472333586818924544' + + + +-- ѯ˾µĻԱ +INSERT INTO QingDao_saidao12.dbo.TMember ([FMemId],[FMemNo],[FName],[FBriefCode],[FCompId],[FTypeId],[FIsVisitor],[FCreateDate],[FExpiredDate],[FGender],[FBirthdayType],[FBirthday],[FTelephone],[FMobilePhone],[FQQ],[FWeChat],[FWXName],[FIdCard],[FEmail],[FAddress],[FProId],[FPlateNo],[FDriverLicense],[FVehicleLicense],[FInsurer],[FCPW],[FPWReset],[FQPW],[FValidationMode],[FIntrId],[FChargeEmpId],[FPoint],[FLevelId],[FRecvConsSMS],[FRecvBulkSMS],[FMemo],[FCustom1],[FCustom2],[FCustom3],[FCustom4],[FCustom5],[FState],[FDeleted]) SELECT [FMemId],[FMemNo],[FName],[FBriefCode],[FCompId],[FTypeId],[FIsVisitor],[FCreateDate],[FExpiredDate],[FGender],[FBirthdayType],[FBirthday],[FTelephone],[FMobilePhone],[FQQ],[FWeChat],[FWXName],[FIdCard],[FEmail],[FAddress],[FProId],[FPlateNo],[FDriverLicense],[FVehicleLicense],[FInsurer],[FCPW],[FPWReset],[FQPW],[FValidationMode],[FIntrId],[FChargeEmpId],[FPoint],[FLevelId],[FRecvConsSMS],[FRecvBulkSMS],[FMemo],[FCustom1],[FCustom2],[FCustom3],[FCustom4],[FCustom5],[FState],[FDeleted] FROM TMember WHERE FCompId = '3472333586818924544' +SELECT * FROM QingDao_saidao12.dbo.TMember +UPDATE QingDao_saidao12.dbo.TMember SET FCompId = '1' + +SELECT * FROM TMemberTransHist WHERE FMemId IN (SELECT FMemId FROM TMember WHERE FCompId = '3472333586818924544') + +SELECT distinct FTypeId FROM TMemberCard WHERE FCompId = '3472333586818924544' +SELECT * FROM TMemberCardType WHERE FId = '5100645820915463158' + +INSERT INTO QingDao_saidao12.dbo.TMemberCardType ([FId],[FNo],[FName] + ,[FValueType] + ,[FMaterial] + ,[FPrice] + ,[FCardFeeAmt] + ,[FAcctId] + ,[FDeposit] + ,[FAcctId2] + ,[FDeposit2] + ,[FAcctId3] + ,[FDeposit3] + ,[FTimes] + ,[FAlertBalance] + ,[FMinRchgAmt] + ,[FMinSaleAmt] + ,[FSalePointMode] + ,[FSalePointValue] + ,[FRchgPointMode] + ,[FRchgPointValue] + ,[FPaySmsFee] + ,[FTimeCard] + ,[FValidityPeriod] + ,[FValidityPeriodUnit] + ,[FExpiredDate] + ,[FDefaultMemo] + ,[FCreateTime] + ,[FAllowSale] + ,[FAllowRchg] + ,[FAllowUpgrade] + ,[FDeptId] + ,[FEnabled] + ,[FNeedPush] + ,[FNeedPushTimes] + ,[FNeedPushExpired] + ,[FPopupRemindExpiredDays] + ,[FDisplay] + ,[FLevel] + ,[FOrder] + ,[FDeleted] + ,[FRowVersion] + ,[FSaleMaxArrear] + ,[FRchgMaxArrear] + ,[FRetainRate] + ,[FNewMemberOnly]) +INSERT INTO QingDao_saidao12.dbo.TMemberCard ([FCardId],[FCardNo],[FCardFaceNo],[FTypeId],[FValueType],[FCompId],[FMemId],[FState],[FCreateDate],[FExpiredDate],[FTotalTimes],[FUsedTimes],[FSaleCompId],[FSaleBillId],[FPaySmsFee],[FMemo],[FDeleted],[FBizEmpid])SELECT [FCardId],[FCardNo],[FCardFaceNo],[FTypeId],[FValueType],[FCompId],[FMemId],[FState],[FCreateDate],[FExpiredDate],[FTotalTimes],[FUsedTimes],[FSaleCompId],[FSaleBillId],[FPaySmsFee],[FMemo],[FDeleted],[FBizEmpid] FROM TMemberCard WHERE FMemId IN (SELECT FMemId FROM TMember WHERE FCompId = '3472333586818924544')