修正过早的键更新
This commit is contained in:
@@ -5856,24 +5856,24 @@ class FaKuanLieBiaoView(APIView):
|
||||
for r in records:
|
||||
results.append({
|
||||
'id': r.id,
|
||||
'PenalizedUserID': r.PenalizedUserID,
|
||||
'Identity': r.Identity,
|
||||
'Identity_text': dict(Penalty._meta.get_field('Identity').choices).get(r.Identity, ''),
|
||||
'ApplicantID': r.ApplicantID or '',
|
||||
'ApplicantIdentity': r.ApplicantIdentity,
|
||||
'Reason': r.Reason or '',
|
||||
'FineAmount': str(r.FineAmount),
|
||||
'RelatedOrderID': r.RelatedOrderID or '',
|
||||
'Status': r.Status,
|
||||
'AffectsGrabbing': r.AffectsGrabbing,
|
||||
'AppealReason': r.AppealReason or '',
|
||||
'RejectReason': r.RejectReason or '',
|
||||
'ProcessorID': r.ProcessorID or '',
|
||||
'ProcessorIdentity': r.ProcessorIdentity,
|
||||
'beichufa_id': r.PenalizedUserID,
|
||||
'shenfen': r.Identity,
|
||||
'shenfen_text': dict(Penalty._meta.get_field('Identity').choices).get(r.Identity, ''),
|
||||
'shenqing_chufa': r.ApplicantID or '',
|
||||
'shenqingren_shenfen': r.ApplicantIdentity,
|
||||
'chufaliyou': r.Reason or '',
|
||||
'fakuanjine': str(r.FineAmount),
|
||||
'guanliandingdan_id': r.RelatedOrderID or '',
|
||||
'zhuangtai': r.Status,
|
||||
'yingxiang_qiangdan': r.AffectsGrabbing,
|
||||
'shensuliyou': r.AppealReason or '',
|
||||
'bohuiliyou': r.RejectReason or '',
|
||||
'chulizhe': r.ProcessorID or '',
|
||||
'chulizhe_shenfen': r.ProcessorIdentity,
|
||||
'zhengju_tupian': zhengju_map.get(r.id, []),
|
||||
'shensu_tupian': shensu_map.get(r.id, []),
|
||||
'CreateTime': r.CreateTime.strftime('%Y-%m-%d %H:%M:%S') if r.CreateTime else '',
|
||||
'UpdateTime': r.UpdateTime.strftime('%Y-%m-%d %H:%M:%S') if r.UpdateTime else '',
|
||||
'creat_time': r.CreateTime.strftime('%Y-%m-%d %H:%M:%S') if r.CreateTime else '',
|
||||
'update_time': r.UpdateTime.strftime('%Y-%m-%d %H:%M:%S') if r.UpdateTime else '',
|
||||
})
|
||||
|
||||
return Response({
|
||||
@@ -7161,7 +7161,7 @@ class CwhqjtddsjView(APIView):
|
||||
'success_count': item['success_count'],
|
||||
'success_amount': float(item['success_amount'] or 0),
|
||||
'refund_count': item['refund_count'],
|
||||
'PlayerCommission': float(item['PlayerCommission_sum'] or 0),
|
||||
'dashou_fencheng': float(item['PlayerCommission_sum'] or 0),
|
||||
'dianpu_fenhong': float(item['dianpu_fenhong_sum'] or 0),
|
||||
'profit': round(total_profit, 2)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user