更新代码管事分红问题

This commit is contained in:
XingQue
2026-06-16 01:56:14 +08:00
parent 790f397893
commit 58b2bdf215
4 changed files with 110 additions and 32 deletions

View File

@@ -359,6 +359,8 @@ class GetCrossOrderDetailView(APIView):
'partner_club_id': dingdan_obj.partner_club_id or '',
'jine': float(dingdan_obj.jine) if dingdan_obj.jine else 0.00,
'dashou_fencheng': float(dingdan_obj.dashou_fencheng) if dingdan_obj.dashou_fencheng else 0.00,
'guanshi_fencheng': float(dingdan_obj.guanshi_fencheng) if dingdan_obj.guanshi_fencheng else 0.00,
'guanshi_shangjia_fencheng': float(dingdan_obj.guanshi_shangjia_fencheng) if dingdan_obj.guanshi_shangjia_fencheng else 0.00,
'jiedan_dashou_id': dingdan_obj.jiedan_dashou_id or '',
'dashou_liuyan': dingdan_obj.dashou_liuyan or '',
'zhiding_id': dingdan_obj.zhiding_id or '',
@@ -6833,6 +6835,8 @@ class UpdateWithdrawSettingsView(APIView):
val = order_rates.get(str(role), order_rates.get(role))
if val is not None:
rate = Decimal(str(val))
if rate > 1:
rate = (rate / Decimal('100')).quantize(Decimal('0.0001'))
code = order_rate_code_map[role]
obj, created = Lilubiao.objects.select_for_update().get_or_create(
fadanpingtai=code,