|
@@ -35,12 +35,7 @@ from UserAccount
|
|
|
//用户预扣款表
|
|
//用户预扣款表
|
|
|
SELECT Id as id, UserId as user_id,CreateDate as create_time, UpdateDate as update_time,
|
|
SELECT Id as id, UserId as user_id,CreateDate as create_time, UpdateDate as update_time,
|
|
|
ChargeAmount as amount, Remark as remark, SeoTitle as create_by, Status as status,
|
|
ChargeAmount as amount, Remark as remark, SeoTitle as create_by, Status as status,
|
|
|
- CASE
|
|
|
|
|
- WHEN ChargeType = 1 AND Kind =0 THEN 0
|
|
|
|
|
- WHEN ChargeType = 2 AND Kind =0 THEN 1
|
|
|
|
|
- WHEN ChargeType = 1 AND Kind =1 THEN 3
|
|
|
|
|
- WHEN ChargeType = 1 AND Kind =2 THEN 4
|
|
|
|
|
- END advance_type,
|
|
|
|
|
|
|
+ChargeType as advance_type, Kind as kind,
|
|
|
CASE Status WHEN -1 THEN 1 ELSE 0 END del_flag
|
|
CASE Status WHEN -1 THEN 1 ELSE 0 END del_flag
|
|
|
FROM ToChargeBackRecord ORDER BY advance_type desc
|
|
FROM ToChargeBackRecord ORDER BY advance_type desc
|
|
|
|
|
|