You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---资金交易流水select distinctsv.MembershipCardNumberas 会员卡号,
sv.TransactionDateas 交易时间,
sv.Amountas 金额,
(CASE WHEN sv.OperationType=0 THEN '储值'
WHEN OperationType =1 THEN '退费'
WHEN OperationType =2 THEN '预授权'
WHEN OperationType =3 THEN '消费支付'
WHEN OperationType =4 THEN '赠送'
WHEN OperationType =5 THEN '转账'
WHEN OperationType =6 THEN '冲账(支付退费),取消冲账'
WHEN OperationType =7 THEN '调整'
WHEN OperationType =8 THEN '取消奖励(赠送退费)'
WHEN OperationType =9 THEN '过期'
WHEN OperationType =10 THEN '合并会员卡'
WHEN OperationType =11 THEN '还款'
WHEN OperationType =12 THEN '初始化剩余透支额度'
WHEN OperationType =13 THEN '透支额度调整'
WHEN OperationType =15 THEN '初始卡值'
WHEN OperationType =16 THEN '退卡'
WHEN OperationType =18 THEN '入账'
WHEN OperationType =19 THEN '换卡'
END
) AS 交易类型,
sv.ThisBalanceas 余额,
sv.HotelCodeas 酒店,
sv.CheckNumberas 外部单号,
t.TransactionNumberas 业务单号,
u.Codeas 操作编号,
u.Nameas 操作员,
mct.Nameas 卡类型,
isnull(p.LastName,'''')+isnull(p.FirstName,'''') as 会员名称,
dp.codeas PlaceCode,
dp.nameas 交易地点,
d.Nameas 支付方式,
m.CardFaceNumberas 卡面号,
mca.Nameas 账户,
ms.nameas 注册渠道
from LPS_StoredValueAccountHistory sv
inner join LPS_MembershipCard m onsv.MembershipCardId=m.idleft join dic_member_source ms onm.MemberSourceCode=ms.codeleft join dic_place dp onsv.PlaceCode=dp.codeleft join hotels h onsv.HotelCode=h.codeleft join dic_payment d onsv.PaymentMode=d.codeleft join LPS_Transaction t onsv.TransactionId=t.idinner join LPS_MembershipCardAccount mca onsv.MembershipCardAccountId=mca.idleft join users u onsv.Insert_User=u.codeinner join LPS_MembershipCardLevel mcl onm.MembershipCardLevelId=mcl.idinner join LPS_MembershipCardType mct onm.MembershipCardTypeId=mct.idleft join LPS_Profile p onm.ProfileId=p.idleft join LPS_ConsumeHistory c onsv.HistoryId=c.idwhere1=1andsv.TransactionDate>='2024/9/1 0:00:00'andsv.TransactionDate<'2024/9/30 23:00:00'
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: