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.
 
 
 
 
 

622 lines
18 KiB

use sq_zhiluo_nf
SELECT * FROM Master
SELECT * FROM Shop
SELECT * FROM yinchuan_xindadi_zhiluo..MemCard WHERE CardId = '680019'
SELECT * FROM yinchuan_xindadi_zhiluo..MemCard WHERE CardId = '680240'
WHERE shopId NOT IN(5,6)
SELECT * FROM CardLevel WHERE id = 17
SELECT * FROM MemCard WHERE State > 2
SELECT * FROM CardByCount
SELECT * FROM StaffClass
SELECT * FROM
use yinchuan_xindadi
SELECT * FROM yinchuan_xindadi_zhiluo..Shop
SELECT * FROM yinchuan_xindadi_zhiluo..CardLevel
SELECT * FROM TCompany
SELECT * FROM yinchuan_xindadi_zhiluo..MemCard
--把会员转过来
SELECT * INTO TImpMember FROM yinchuan_xindadi_zhiluo..MemCard WHERE ShopId NOT IN(5,6)
--疗程转过来
SELECT FCardNo = CardId, FItemName=Msg,TotalCount as FPurTimes,OverCount as FRemainTimes,StartTime as FCreateDate,EndTime AS FExpiredDate,Money as FPurAmount
INTO TImpMemberCourse
FROM yinchuan_xindadi_zhiluo..CardByCount
WHERE CardId IN(SELECT CardId FROM TImpMember)
SELECT * INTO TImpCustomField FROM yinchuan_xindadi_zhiluo..CustomField
--卡类别
INSERT INTO TMemberCardType(FId,FNo,FName,FValueType,FMaterial,FPrice,FCardFeeAmt,FAcctId,FDeposit,FAcctId2,FDeposit2,FAcctId3,FDeposit3,FTimes,FAlertBalance,FMinRchgAmt,FSalePointMode,FSalePointValue,FRchgPointMode,FRchgPointValue,FPaySmsFee,FTimeCard,FValidityPeriod,FValidityPeriodUnit,FExpiredDate,FDefaultMemo,FCreateTime,FAllowSale,FAllowRchg,FDeptId,FEnabled,FOrder)
SELECT FId =10000+Id, LevelName,LevelName as name,1,FMaterial = 2,0,FCardFeeAmt = 0,FAcctId = 3,FDeposit = 0,FAcctId2 = 0,FDeposit2 = 0 ,FAcctId3 = 0,FDeposit3 = 0,
FTimes = 0,FAlertBalance = 0,FMinRchgAmt = 0,FSalePointMode = 0,FSalePointValue = 0 ,FRchgPointMode = 0,FRchgPointValue = 0,FPaySmsFee = 0,FTimeCard = 0,FValidityPeriod = 100,FValidityPeriodUnit = 1,
FExpiredDate = NULL,FDefaultMemo = '',FCreateTime = GETDATE(),1,1,FDeptId = 0,FEnabled =1,FOrder = 1
FROM yinchuan_xindadi_zhiluo..CardLevel
WHERE Id IN(SELECT LevelId FROM TImpMember)
INSERT INTO TMemberCardTypeSub(FId,FCompId,FCardTypeId,FAllowSale,FAllowRchg,FEnabled)
SELECT dbo.FNNewId(),C.FId,I.FId,FAllowSale,FAllowRchg,FEnabled
FROM TMemberCardType AS I,TCompany AS C
WHERE I.FId > 1
AND C.FId != 0
AND NOT EXISTS(SELECT TOP 1 1 FROM TMemberCardTypeSub AS B WHERE B.FCompId = C.FId AND B.FCardTypeId = I.FId)
ALTER TABLE TImpMember ADD FMemId AS 10000 + Id
ALTER TABLE TImpMember ADD FCardId AS 20000 + Id
ALTER TABLE TImpMember ADD FMemNo AS CardId
ALTER TABLE TImpMember ADD FCardNo AS CardId
ALTER TABLE TImpMember ADD FName AS CASE WHEN ISNULL(Name,'') = '' THEN CASE WHEN ISNULL(Mobile,'') = '' THEN CardId ELSE Mobile END ELSE NAME END
ALTER TABLE TImpMember ADD FGender AS 0
ALTER TABLE TImpMember ADD FMobile AS ISNULL(Mobile,'')
ALTER TABLE TImpMember ADD FBirthdayType AS 'G'
ALTER TABLE TImpMember ADD FBirthday DATETIME
ALTER TABLE TImpMember ADD FCompId AS 1
ALTER TABLE TImpMember ADD FCardState AS CASE WHEN State = 1 THEN 4 WHEN State =2 THEN 5 ELSE 1 END
ALTER TABLE TImpMember ADD FCardTypeId AS 10000 + LevelId
ALTER TABLE TImpMember ADD FCreateDate AS ISNULL(CreateTime,getdate())
ALTER TABLE TImpMember ADD FExpiredDate AS CASE WHEN IsPast = 1 THEN PastTime ELSE '9000-01-01' END
ALTER TABLE TImpMember ADD FMemo VARCHAR(MAX)
ALTER TABLE TImpMember ADD FBalance AS Money
ALTER TABLE TImpMember ADD FBalance2 DECIMAL(18,6)
ALTER TABLE TImpMember ADD FDeleted BIT
UPDATE TImpMember SET FMemo = ''
DECLARE List CURSOR
FOR SELECT FieldName,Field FROM TImpCustomField
WHERE FieldName != '办卡日期'
OPEN LIST
DECLARE @Name VARCHAR(100)
DECLARE @Field VARCHAR(100)
FETCH List INTO @Name,@Field
WHILE @@FETCH_STATUS = 0
BEGIN
IF EXISTS(SELECT 1 FROM syscolumns WHERE name = @Field)
BEGIN
DECLARE @Sql VARCHAR(1000)
SELECT @Sql = ' UPDATE TImpMember SET FMemo = FMemo + ''' + @Name + ''' + ' + @Field + ' + ''
'' WHERE ISNULL('+@Field+','''') != '''' '
PRINT @Sql
EXEC(@SQL)
END
PRINT @Name
PRINT @Field
FETCH List INTO @Name,@Field
END
CLOSE LIST
DEALLOCATE LIST
UPDATE A
SET A.FMemo = B.FMemo
FROM TMemberCard AS A,TImpMember AS B
WHERE A.FCardId = B.FCardId
--疗程
CREATE TABLE TImpItem
(
FItemId BIGINT,
FCourseId BIGINT,
FNo VARCHAR(100),
FName VARCHAR(100)
)
INSERT TImpItem
SELECT DBO.FNNewId(),DBO.FNNewId(),FItemName,FItemName
FROM TImpMemberCourse
GROUP BY FItemName
SELECT * FROM TImpMemberCourse
ALTER TABLE TImpMemberCourse ADD FMemId BIGINT
ALTER TABLE TImpMemberCourse ADD FId BIGINT
ALTER TABLE TImpMemberCourse ADD FCourseId BIGINT
ALTER TABLE TImpMemberCourse ADD FItemId BIGINT
ALTER TABLE TImpMemberCourse ADD FCompId AS 1
UPDATE A
SET A.FMemId = B.FMemId
FROM TImpMemberCourse AS A,TImpMember AS B
WHERE A.FCardNo = B.FCardnO
UPDATE A
SET A.FCourseId = B.FCourseId,
A.FItemId = B.FItemId
FROM TImpMemberCourse AS A,TImpItem AS B
WHERE A.FItemName = B.FName
update TImpMemberCourse SET FId = dbo.FNNewId()
INSERT TItem(FId,FNo,FNoOfPad,FName,FAbbr,FTypeId,FBriefCode,FDescription,FPriceMode,FIsService,FStatTimes,FCustom1,FCustom2,FCustom3,FEnabled,FPrice,FVipPrice,FTime,FDctId,FPointMode,FPointValue,FDeptId,FAllowBooking)
SELECT FItemId,FNo,FName,FName,FName,0,dbo.FNGetFirstPinYin(FName),'',1,1,1,'','','',1,0,0,0,0,0,0,0,1
FROM TImpItem
INSERT INTO TCourse(FId,FNo,FName,FBriefCode,FItemId,FPackId,FSequence,FTypeId,FTimes,FFreeTimes,FDurable,FValidityPeriodUnit,FValidityPeriod,FCreateDate,FExpiredDate,FDescription,FEnabled,FPrice,FAmount,FCalcMode)
SELECT FCourseId AS FId,
I.FNo + 'L1',
I.FName + '-' + '疗程1' AS FName,
'' AS FBriefCode,
I.FItemId AS FItemId,
0 AS FPackId,
1 AS FSequence,
4822791688865541970 AS FTypeId,
1 AS FTimes,
0 AS FFreeTimes,
0 AS FDurable,
0 AS FValidityPeriodUnit,
0 AS FValidityPeriod,
getdate() AS FCreateDate,
NULL AS FExpiredDate,
'' AS FDescription,
1 AS FEnabled,
0 AS FPrice,
0 AS FAmount,
1 AS FCalcMode
FROM TImpItem AS I
SELECT * FROM TImpMember order by id
SELECT * FROM TImpMember WHERE CardID= '860355'
INSERT INTO TMember(
FMemId,
FMemNo,
FName,
FBriefCode,
FTypeId,
FCompId,
FCreateDate,
FGender,
FBirthdayType,
FBirthday,FTelephone,FMobilePhone,FQQ,FWeChat,FIdCard,FEmail,FAddress,FProId,FCPW,FQPW,
FChargeEmpId,FPoint,FRecvConsSMS,FRecvBulkSMS,FMemo,FCustom1,FCustom2,FCustom3,FCustom4,FCustom5)
SELECT FMemId AS FMemId,
FMemNo AS FMemNo,
FName AS FName,
dbo.FNGetFirstPinYin(FName),
0 AS FTypeId,
FCompId AS FCompId,
ISNULL( FCreateDate ,GETDATE()) AS FCreateDate,
FGender AS FGender,
FBirthdayType AS FBirthdayType,
FBirthday AS FBirthday,
'' AS FTelephone,
ISNULL(FMobile,'') AS FMobilePhone,
'' AS FQQ,
'' AS FWeChat,
'' AS FIdCard,
'' AS FEmail,
'' AS FAddress,
0 AS FProId,
'' AS FCPW,
'' AS FQPW,
0 AS FChargeEmpId,
0 AS FPoint,
1 AS FRecvConsSMS,
1 AS FRecvBulkSMS,
'' AS FMemo,
'老系统导入' AS FCustom1,'' AS FCustom2,'' AS FCustom3,'' AS FCustom4,'' AS FCustom5
from TImpMember
WHERE CardId NOT IN(
SELECT CardId
FROM TImpMember
GROUP BY CardId
HAVING(SUM(1) > 1))
INSERT INTO TMemberCard(
FCardId,
FCardNo,
FTypeId,
FValueType,
FCompId,
FMemId,
FState,
FCreateDate,
FExpiredDate,
FTotalTimes,
FUsedTimes,
FSaleCompId,
FSaleBillId,
FMemo)
SELECT
FCardId AS FId,
FMemNo AS FNo,
FCardTypeId AS FTypeId,
(SELECT FValueType FROM TMemberCardType WHERE FId = FCardTypeId) AS FValueType,
FCompId AS FCompId,
FMemId AS FMemId,
FCardState AS FState,
FCreateDate AS FCreateDate,
FExpiredDate = ISNULL(FExpiredDate,DATEADD(YEAR,100,FCreateDate)),
0 AS FTotalTimes,
0 AS FUsedTimes,
FCompId AS FSaleCompId,
0 AS FSaleBillId,
FMemo AS FMemo
FROM TImpMember
WHERE FCardTypeId IS NOT NULL
AND FMemId IN(SELECT FMemId FROM TMember)
INSERT TMemberCardAccount(FMemId,FId,FCardId,FAcctId,FDeposit,FBalance,FArrear,FCreateDate,FExpiredDate,FMemo)
SELECT FMemId,dbo.FNNewId(),FCardId AS FCardId,3,FBalance,FBalance,0,FCreateDate,NULL AS FExpiredDate,''
FROM TImpMember
WHERE FCardTypeId IS NOT NULL
AND FMemId IN(SELECT FMemId FROM TMember)
INSERT TMemberCardAcctHist(FId,FMemId,FCardId,FAcctId,FTime,FCardTypeId,FCompId,FBillType,FBizType,FTransId,FTransNo,FInAmount,FOutAmount,FBalance,FArrear,FRecordTime,FMemo)
select dbo.FNNewId(),A.FMemId,A.FCardId,3,getdate(),A.FCardTypeId,A.FCompId,'DR','Import',0,'',A.FBalance,0,A.FBalance,0,getdate(),'星沙龙导入'
FROM TImpMember AS A
WHERE FCardTypeId IS NOT NULL
AND FMemId IN(SELECT FMemId FROM TMember)
INSERT TMemberCourse(FId,FMemId,FCourseId,FMemPackId,FItemId,FCompId,FPurTimes,FPurAmount,FFreeTimes,FUsedPurTimes,FFreeAmount,FPurchaseDate,FExpiredDate,FBizType,FTransId,FArrear,FDurable,FMemo,FCalcMode,FAdjustPrice)
SELECT FId,FMemId,FCourseId,0,FItemId,FCompId,FPurTimes,ISNULL(FPurAmount,0),0,FPurTimes - FRemainTimes AS FUsedPurTimes,0,FCreateDate,FExpiredDate,'DR.Import',0,0,0,'',1,FPurAmount / FPurTimes
FROM TImpMemberCourse
--WHERE FCourseId IS NOT NULL
WHERE FMemId IN(SELECT FMemId FROM TMember)
AND FId NOT IN(SELECT FId FROM TMemberCourse)
AND FItemName IN(SELECT FName FROM TImpItem)
INSERT INTO TMemberCourseLog(FId,FMemId,FCardId,FPackId,FCourseId,FTime,FInPurTimes,FInFreeTimes,FOutPurTimes,FOutFreeTimes,
FCompId,
FBillType,FBizType,FBillId,FBillNo,FBillDetailId)
SELECT dbo.FNNewId(),FMemId,FId,0,FCourseId,FTime = getdate(),FPurTimes,FPurTimes - FRemainTimes AS FUsedPurTimes,0,0,
FCompId,
'DR','Import',0,'',0
FROM TImpMemberCourse
WHERE FMemId IN(SELECT FMemId FROM TMember)
AND FItemName IN(SELECT FName FROM TImpItem)
DELETE TImpItem
WHERE FName NOT IN(
SELECT F FROM
(
SELECT '风格烫无忧' AS F
UNION ALL SELECT '剪发造型系列' AS F
UNION ALL SELECT '美发主管剪发包卡' AS F
UNION ALL SELECT '发质还原' AS F
UNION ALL SELECT '韩国亮发膜套餐' AS F
UNION ALL SELECT '姜医生去屑止痒套' AS F
UNION ALL SELECT '发型师烫无忧' AS F
UNION ALL SELECT '发克舒' AS F
UNION ALL SELECT '毛发医生' AS F
UNION ALL SELECT '营养焗油加工' AS F
UNION ALL SELECT '剪发卡' AS F
UNION ALL SELECT '冰疗包卡' AS F
UNION ALL SELECT '色彩368' AS F
UNION ALL SELECT '美发冰疗包卡' AS F
UNION ALL SELECT '德国博柔包卡' AS F
UNION ALL SELECT '单次营养120' AS F
UNION ALL SELECT '优能发膜' AS F
UNION ALL SELECT '优能水疗包卡' AS F
UNION ALL SELECT '发型剪无忧' AS F
UNION ALL SELECT '施华蔻1380热烫' AS F
UNION ALL SELECT '198迪韵诗冰疗生化导入' AS F
UNION ALL SELECT '总监剪烫染无忧' AS F
UNION ALL SELECT '发型师烫染无忧' AS F
UNION ALL SELECT '姜医生缓解疲劳套' AS F
UNION ALL SELECT '风格剪烫染无忧' AS F
UNION ALL SELECT '烫护理' AS F
UNION ALL SELECT '头皮理疗' AS F
UNION ALL SELECT '发型师剪烫染无忧' AS F
UNION ALL SELECT '剪发80' AS F
UNION ALL SELECT '剪发(100)' AS F
UNION ALL SELECT '总监全无忧' AS F
UNION ALL SELECT '总监烫无忧' AS F
UNION ALL SELECT '技术总监剪发包卡' AS F
UNION ALL SELECT '瑞士优能包卡' AS F
UNION ALL SELECT '风格染无忧' AS F
UNION ALL SELECT '剪染卡' AS F
UNION ALL SELECT '色彩180' AS F
UNION ALL SELECT '染色498' AS F
UNION ALL SELECT '兴博隆488热烫' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '优能水疗' AS F
UNION ALL SELECT '姜医生防脱育发套' AS F
UNION ALL SELECT '营养单次180' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '单次营养180' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '技术主理剪发包卡' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '总监全年补发根' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '营养单次120' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '发型师营养无忧' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '总监染无忧' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '发型师染无忧' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '单次营养280' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '风格剪无忧' AS F
UNION ALL SELECT '总监营养无忧' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '韩国爱梦包卡' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '焗黑180' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '姜医生全套' AS F
UNION ALL SELECT '局黑' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '造型40' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '造型80' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '发型师全无忧' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '焗黑' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '首席发型师剪发包卡' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '烫染2299' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '全年完美润色 补发根' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '韩国爱梦发膜' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT 'JL营养包卡' AS F
UNION ALL SELECT '剪发30' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '总监剪无忧' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '琪莎琦倒模' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '剪发50' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '总监烫染无忧' AS F
UNION ALL SELECT '造型50' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '造型30' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '风格营养无忧' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '' AS F
UNION ALL SELECT '姜医生控油清爽套' AS F
UNION ALL SELECT '单次营养480' AS F
) AS T )