彻底解决了 create_time 的问题,将所有字段都改为了 CreateTime
This commit is contained in:
114
users/views.py
114
users/views.py
@@ -1512,7 +1512,7 @@ class GuanshiYaoqingDashouListView(APIView):
|
||||
pass
|
||||
|
||||
# 6. 排序和分页
|
||||
base_qs = base_qs.order_by('-create_time')
|
||||
base_qs = base_qs.order_by('-CreateTime')
|
||||
paginator = Paginator(base_qs, page_size)
|
||||
try:
|
||||
page_obj = paginator.page(page)
|
||||
@@ -1980,7 +1980,7 @@ class TixianShenqingView(APIView):
|
||||
'jine': str(jine.quantize(decimal.Decimal('0.01'))),
|
||||
'fangshi': fangshi,
|
||||
'zhuangtai': 1,
|
||||
'create_time': tixian_record.create_time.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'CreateTime': tixian_record.CreateTime.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'current_rate': str(current_rate.quantize(decimal.Decimal('0.0000'))),
|
||||
'shouxufei': str(shouxufei.quantize(decimal.Decimal('0.01'))),
|
||||
'shijidaozhang': str(shijidaozhang.quantize(decimal.Decimal('0.01'))),
|
||||
@@ -2175,10 +2175,10 @@ class TixianJiluHuoquViewV2(APIView):
|
||||
# 自动提现:含新审核关联记录;zhuangtai>0 时按状态筛选
|
||||
if zhuangtai_filter > 0:
|
||||
qs = qs.filter(zhuangtai=zhuangtai_filter)
|
||||
qs = qs.order_by('-create_time')
|
||||
qs = qs.order_by('-CreateTime')
|
||||
|
||||
records_queryset = qs.values(
|
||||
'id', 'leixing', 'jine', 'zhuangtai', 'create_time', 'fangshi',
|
||||
'id', 'leixing', 'jine', 'zhuangtai', 'CreateTime', 'fangshi',
|
||||
'phone', 'skzhanghao', 'zhifu', 'bhliyou',
|
||||
'shenhe_jilu_id', 'shenhe_danhao',
|
||||
)[offset:offset + limit + 1]
|
||||
@@ -2202,7 +2202,7 @@ class TixianJiluHuoquViewV2(APIView):
|
||||
if danhao_list:
|
||||
for ar in TixianAutoRecord.query.filter(
|
||||
shenhe_danhao__in=danhao_list, zhuangtai=2
|
||||
).order_by('-create_time').values('shenhe_danhao', 'fail_reason'):
|
||||
).order_by('-CreateTime').values('shenhe_danhao', 'fail_reason'):
|
||||
if ar['shenhe_danhao'] not in auto_fail_map:
|
||||
auto_fail_map[ar['shenhe_danhao']] = ar['fail_reason']
|
||||
|
||||
@@ -2227,7 +2227,7 @@ class TixianJiluHuoquViewV2(APIView):
|
||||
'leixing': record['leixing'],
|
||||
'jine': jine_val,
|
||||
'zhuangtai': record['zhuangtai'],
|
||||
'create': record['create_time'].strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'create': record['CreateTime'].strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'fangshi': record['fangshi'],
|
||||
'txdianhua': record['phone'] or '',
|
||||
'txzh': record['skzhanghao'] or '',
|
||||
@@ -2484,7 +2484,7 @@ class AdminFinancialDataView(APIView):
|
||||
# 如果需要汇总多条记录,可以使用aggregate进行聚合查询
|
||||
|
||||
# 方法1:获取最新的一条记录(假设表中只有一条汇总记录)
|
||||
shouzhijilu = Szjilu.query.order_by('-create_time').first()
|
||||
shouzhijilu = Szjilu.query.order_by('-CreateTime').first()
|
||||
|
||||
# 方法2:如果表中可能有多条记录,需要汇总,可以使用以下方式:
|
||||
# from django.db.models Sum
|
||||
@@ -3150,7 +3150,7 @@ class AdGuanLiYongHu(APIView):
|
||||
total_count = queryset.count()
|
||||
|
||||
# 获取当前页的数据
|
||||
users = list(queryset.order_by('-create_time')[offset:offset + limit])
|
||||
users = list(queryset.order_by('-CreateTime')[offset:offset + limit])
|
||||
|
||||
# 计算是否有更多数据
|
||||
current_count = len(users)
|
||||
@@ -3193,7 +3193,7 @@ class AdGuanLiYongHu(APIView):
|
||||
total_count = queryset.count()
|
||||
|
||||
# 获取当前页的数据
|
||||
dashou_list = list(queryset.order_by('-create_time')[offset:offset + limit])
|
||||
dashou_list = list(queryset.order_by('-CreateTime')[offset:offset + limit])
|
||||
|
||||
# 计算是否有更多数据
|
||||
current_count = len(dashou_list)
|
||||
@@ -3237,7 +3237,7 @@ class AdGuanLiYongHu(APIView):
|
||||
total_count = queryset.count()
|
||||
|
||||
# 获取当前页的数据
|
||||
guanshi_list = list(queryset.order_by('-create_time')[offset:offset + limit])
|
||||
guanshi_list = list(queryset.order_by('-CreateTime')[offset:offset + limit])
|
||||
|
||||
# 计算是否有更多数据
|
||||
current_count = len(guanshi_list)
|
||||
@@ -3280,7 +3280,7 @@ class AdGuanLiYongHu(APIView):
|
||||
total_count = queryset.count()
|
||||
|
||||
# 获取当前页的数据
|
||||
shangjia_list = list(queryset.order_by('-create_time')[offset:offset + limit])
|
||||
shangjia_list = list(queryset.order_by('-CreateTime')[offset:offset + limit])
|
||||
|
||||
# 计算是否有更多数据
|
||||
current_count = len(shangjia_list)
|
||||
@@ -3487,8 +3487,8 @@ class CfGuanLi(APIView):
|
||||
'bhliyou': chufa.RejectReason,
|
||||
'jifen': chufa.DeductedPoints,
|
||||
'dingdan_id': chufa.OrderID,
|
||||
'create_time': chufa.create_time,
|
||||
'update_time': chufa.update_time,
|
||||
'CreateTime': chufa.CreateTime,
|
||||
'UpdateTime': chufa.UpdateTime,
|
||||
# 🔴【新增】申诉理由字段
|
||||
'ssliyou': chufa.AppealReason or '',
|
||||
# 🔴【新增】商家证据图片
|
||||
@@ -3863,8 +3863,8 @@ class AdckyhxqView(APIView):
|
||||
'avatar': user_main.Avatar,
|
||||
'phone': user_main.Phone,
|
||||
'ip': user_main.IP,
|
||||
'create_time': user_main.UserCreateTime,
|
||||
'update_time': user_main.UserCreateTime,
|
||||
'CreateTime': user_main.UserCreateTime,
|
||||
'UpdateTime': user_main.UserCreateTime,
|
||||
'user_type': user_type
|
||||
}
|
||||
|
||||
@@ -3879,7 +3879,7 @@ class AdckyhxqView(APIView):
|
||||
'zonge': boss_profile.zonge,
|
||||
'alldingdan': boss_profile.alldingdan,
|
||||
'alltui': boss_profile.alltui,
|
||||
'create_time_boss': boss_profile.create_time
|
||||
'CreateTime_boss': boss_profile.CreateTime
|
||||
})
|
||||
|
||||
elif user_type == 2: # 打手
|
||||
@@ -3910,14 +3910,14 @@ class AdckyhxqView(APIView):
|
||||
'jinyueshouyi': dashou_profile.jinyueshouyi,
|
||||
'jifen': dashou_profile.jifen,
|
||||
'yajin': dashou_profile.yajin,
|
||||
'create_time_dashou': dashou_profile.create_time
|
||||
'CreateTime_dashou': dashou_profile.CreateTime
|
||||
})
|
||||
|
||||
# 查询打手的会员信息(只返回未过期的)
|
||||
# 使用select_related预取huiyuan信息(如果有关联的话)
|
||||
member_records = Huiyuangoumai.query.filter(
|
||||
yonghu_id=uid
|
||||
).order_by('-create_time')
|
||||
).order_by('-CreateTime')
|
||||
|
||||
member_list = []
|
||||
for record in member_records:
|
||||
@@ -3936,7 +3936,7 @@ class AdckyhxqView(APIView):
|
||||
'huiyuan_name': huiyuan.jieshao,
|
||||
'daoqi_time': record.daoqi_time,
|
||||
'is_active': record.huiyuan_zhuangtai == 1,
|
||||
'create_time': record.create_time
|
||||
'CreateTime': record.CreateTime
|
||||
})
|
||||
|
||||
response_data['member_list'] = member_list
|
||||
@@ -3957,7 +3957,7 @@ class AdckyhxqView(APIView):
|
||||
'jinyuechongzhi': guanshi_profile.jinyuechongzhi,
|
||||
'chongzhifenrun': guanshi_profile.chongzhifenrun,
|
||||
'yue': guanshi_profile.yue, # 管事可提现余额
|
||||
'create_time_guanshi': guanshi_profile.create_time
|
||||
'CreateTime_guanshi': guanshi_profile.CreateTime
|
||||
})
|
||||
|
||||
elif user_type == 4: # 商家
|
||||
@@ -3978,7 +3978,7 @@ class AdckyhxqView(APIView):
|
||||
'jinriliushui': shop_profile.jinriliushui,
|
||||
'jinyuedingdan': shop_profile.jinyuedingdan,
|
||||
'jinyueliushui': shop_profile.jinyueliushui,
|
||||
'create_time_shop': shop_profile.create_time
|
||||
'CreateTime_shop': shop_profile.CreateTime
|
||||
})
|
||||
|
||||
# 获取所有会员列表(用于前端下拉选择)
|
||||
@@ -4092,7 +4092,7 @@ class AdcjxgView(APIView):
|
||||
'xiugaiid': zhanghao,
|
||||
'leixing': user_type,
|
||||
'qitashuoming': '',
|
||||
'create_time': timezone.now()
|
||||
'CreateTime': timezone.now()
|
||||
}
|
||||
|
||||
# 标记是否有敏感字段被修改
|
||||
@@ -4499,7 +4499,7 @@ class AddtxshView(APIView):
|
||||
query &= Q(yonghuid=search_uid)
|
||||
|
||||
# 🔴【修改】排序改为按申请时间升序(最早申请排最前)
|
||||
queryset = Tixianjilu.query.filter(query).order_by('create_time')
|
||||
queryset = Tixianjilu.query.filter(query).order_by('CreateTime')
|
||||
|
||||
# 🔴【修改】分页逻辑:如果是搜索模式,不分页,返回所有匹配记录
|
||||
if search_uid:
|
||||
@@ -4541,8 +4541,8 @@ class AddtxshView(APIView):
|
||||
'fangshi': record.fangshi,
|
||||
'shenheid': record.shenheid,
|
||||
'bhliyou': record.bhliyou,
|
||||
'create_time': record.create_time,
|
||||
'update_time': record.update_time
|
||||
'CreateTime': record.CreateTime,
|
||||
'UpdateTime': record.UpdateTime
|
||||
})
|
||||
|
||||
return Response({
|
||||
@@ -4628,7 +4628,7 @@ class AdtixianqkView(APIView):
|
||||
if result == 3: # 拒绝
|
||||
withdrawal.bhliyou = reason
|
||||
|
||||
withdrawal.update_time = timezone.now()
|
||||
withdrawal.UpdateTime = timezone.now()
|
||||
withdrawal.save()
|
||||
|
||||
# 🟢 新增:如果同意提现(result=2),更新收支记录表
|
||||
@@ -4646,7 +4646,7 @@ class AdtixianqkView(APIView):
|
||||
szjilu_record.TotalIncome -= tixian_jine # 总收益减去提现金额
|
||||
szjilu_record.TotalExpense += tixian_jine # 总支出加上提现金额
|
||||
szjilu_record.DailyExpense += tixian_jine # 今日支出加上提现金额
|
||||
szjilu_record.update_time = timezone.now()
|
||||
szjilu_record.UpdateTime = timezone.now()
|
||||
szjilu_record.save()
|
||||
|
||||
except Szjilu.DoesNotExist:
|
||||
@@ -4668,7 +4668,7 @@ class AdtixianqkView(APIView):
|
||||
'id': withdrawal.id,
|
||||
'zhuangtai': withdrawal.zhuangtai,
|
||||
'shenheid': withdrawal.shenheid,
|
||||
'update_time': withdrawal.update_time
|
||||
'UpdateTime': withdrawal.UpdateTime
|
||||
}
|
||||
}, status=status.HTTP_200_OK)
|
||||
|
||||
@@ -6224,8 +6224,8 @@ class ChufaJiluHuoquView(APIView):
|
||||
'sqzhuangtai': record.ApplyStatus or 0,
|
||||
'ssliyou': record.AppealReason or '',
|
||||
'jifen': record.DeductedPoints or 0,
|
||||
'create_time': record.create_time.strftime('%Y-%m-%d %H:%M:%S') if record.create_time else '',
|
||||
'update_time': record.update_time.strftime('%Y-%m-%d %H:%M:%S') if record.update_time else '',
|
||||
'CreateTime': record.CreateTime.strftime('%Y-%m-%d %H:%M:%S') if record.CreateTime else '',
|
||||
'UpdateTime': record.UpdateTime.strftime('%Y-%m-%d %H:%M:%S') if record.UpdateTime else '',
|
||||
'zhengju_tupian': zhengju_tupian, # 商家上传的证据图片
|
||||
'shensu_tupian': shensu_tupian, # 打手上传的申诉图片
|
||||
}
|
||||
@@ -6402,8 +6402,8 @@ class DashouShensuView(APIView):
|
||||
'shensu_liyou': shensu_liyou,
|
||||
'shensu_tupian_urls': saved_tupian_urls,
|
||||
'sqzhuangtai': chufa_record.ApplyStatus,
|
||||
'update_time': chufa_record.update_time.strftime(
|
||||
'%Y-%m-%d %H:%M:%S') if chufa_record.update_time else ''
|
||||
'UpdateTime': chufa_record.UpdateTime.strftime(
|
||||
'%Y-%m-%d %H:%M:%S') if chufa_record.UpdateTime else ''
|
||||
}
|
||||
|
||||
# 记录操作日志
|
||||
@@ -6652,8 +6652,8 @@ class ShangjiaChufaJiluHuoquView(APIView):
|
||||
'sqzhuangtai': record.ApplyStatus or 0,
|
||||
'ssliyou': record.AppealReason or '',
|
||||
'jifen': record.DeductedPoints or 0,
|
||||
'create_time': record.create_time.strftime('%Y-%m-%d %H:%M:%S') if record.create_time else '',
|
||||
'update_time': record.update_time.strftime('%Y-%m-%d %H:%M:%S') if record.update_time else '',
|
||||
'CreateTime': record.CreateTime.strftime('%Y-%m-%d %H:%M:%S') if record.CreateTime else '',
|
||||
'UpdateTime': record.UpdateTime.strftime('%Y-%m-%d %H:%M:%S') if record.UpdateTime else '',
|
||||
'zhengju_tupian': zhengju_tupian, # 商家自己上传的证据图片
|
||||
'shensu_tupian': shensu_tupian, # 打手上传的申诉图片
|
||||
}
|
||||
@@ -8481,7 +8481,7 @@ class KefuGetDashouListView(APIView):
|
||||
# 4. 计算总数并分页
|
||||
total = queryset.count()
|
||||
offset = (page - 1) * page_size
|
||||
dashou_list = queryset.order_by('-create_time')[offset:offset + page_size]
|
||||
dashou_list = queryset.order_by('-CreateTime')[offset:offset + page_size]
|
||||
|
||||
# 5. 构建返回数据(只取需要的字段)
|
||||
result = []
|
||||
@@ -8584,7 +8584,7 @@ class KefuGetDashouDetailView(APIView):
|
||||
'dianhua': '',
|
||||
'wechat': '',
|
||||
'phone': user_main.Phone or '',
|
||||
'create_time': user_main.UserCreateTime,
|
||||
'CreateTime': user_main.UserCreateTime,
|
||||
'ip': user_main.IP or '',
|
||||
'jiedanzongliang': 0,
|
||||
'chengjiaozongliang': 0,
|
||||
@@ -8620,7 +8620,7 @@ class KefuGetDashouDetailView(APIView):
|
||||
'dianhua': dashou.dianhua or '',
|
||||
'wechat': dashou.wechat or '',
|
||||
'phone': user_main.Phone or '',
|
||||
'create_time': user_main.UserCreateTime,
|
||||
'CreateTime': user_main.UserCreateTime,
|
||||
'ip': user_main.IP or '',
|
||||
'jiedanzongliang': dashou.jiedanzongliang,
|
||||
'chengjiaozongliang': dashou.chengjiaozongliang,
|
||||
@@ -8639,7 +8639,7 @@ class KefuGetDashouDetailView(APIView):
|
||||
# 5. 查询打手会员信息(仅未过期)
|
||||
member_records = Huiyuangoumai.query.filter(
|
||||
yonghu_id=uid
|
||||
).order_by('-create_time')
|
||||
).order_by('-CreateTime')
|
||||
|
||||
member_list = []
|
||||
for record in member_records:
|
||||
@@ -9047,8 +9047,8 @@ class KefuPunishmentListView(APIView):
|
||||
'qingqiuid': item.ApplicantID,
|
||||
'cfliyou': item.PenaltyReason,
|
||||
'sqzhuangtai': item.ApplyStatus,
|
||||
'create_time': item.CreateTime,
|
||||
'update_time': item.UpdateTime,
|
||||
'CreateTime': item.CreateTime,
|
||||
'UpdateTime': item.UpdateTime,
|
||||
# 其他字段按需添加
|
||||
})
|
||||
|
||||
@@ -9282,8 +9282,8 @@ class KefuPunishmentDetailView(APIView):
|
||||
'ssliyou': record.AppealReason or '',
|
||||
'zhengju_tupian': zhengju_images,
|
||||
'shensu_tupian': shensu_images,
|
||||
'create_time': record.CreateTime,
|
||||
'update_time': record.UpdateTime,
|
||||
'CreateTime': record.CreateTime,
|
||||
'UpdateTime': record.UpdateTime,
|
||||
}
|
||||
|
||||
return Response({'code': 0, 'data': data})
|
||||
@@ -9619,7 +9619,7 @@ if not kefu_txsh_list_logger.handlers:
|
||||
_TIXIAN_LIST_BASE_FIELDS = (
|
||||
'id', 'yonghuid', 'avatar', 'phone', 'nicheng', 'leixing',
|
||||
'zhifu', 'skzhanghao', 'jine', 'zhuangtai', 'fangshi',
|
||||
'shenheid', 'bhliyou', 'create_time', 'update_time',
|
||||
'shenheid', 'bhliyou', 'CreateTime', 'UpdateTime',
|
||||
)
|
||||
_TIXIAN_LIST_AUDIT_FIELDS = ('shenhe_jilu_id', 'shenhe_danhao')
|
||||
|
||||
@@ -9773,7 +9773,7 @@ class KefuWithdrawListView(APIView):
|
||||
q &= Q(yonghuid=search_uid)
|
||||
|
||||
if date_filter:
|
||||
q &= Q(update_time__date=date_filter)
|
||||
q &= Q(UpdateTime__date=date_filter)
|
||||
|
||||
if min_amount is not None and str(min_amount).strip() != '':
|
||||
try:
|
||||
@@ -9821,7 +9821,7 @@ class KefuWithdrawListView(APIView):
|
||||
'total_amount': str(round(float(total_amount), 2)),
|
||||
}
|
||||
|
||||
queryset = base_qs.order_by('create_time')
|
||||
queryset = base_qs.order_by('CreateTime')
|
||||
total = queryset.count()
|
||||
records = list(queryset[(page - 1) * page_size: page * page_size])
|
||||
|
||||
@@ -9865,8 +9865,8 @@ class KefuWithdrawListView(APIView):
|
||||
'dakuan_mode': self._resolve_row_dakuan_mode(item, audit_mode_map, shenhe_field_ok),
|
||||
'shenheid': item.shenheid or '',
|
||||
'bhliyou': item.bhliyou or '',
|
||||
'create_time': item.create_time.strftime('%Y-%m-%d %H:%M:%S') if item.create_time else '',
|
||||
'update_time': item.update_time.strftime('%Y-%m-%d %H:%M:%S') if item.update_time else '',
|
||||
'CreateTime': item.CreateTime.strftime('%Y-%m-%d %H:%M:%S') if item.CreateTime else '',
|
||||
'UpdateTime': item.UpdateTime.strftime('%Y-%m-%d %H:%M:%S') if item.UpdateTime else '',
|
||||
})
|
||||
|
||||
return Response({
|
||||
@@ -9973,8 +9973,8 @@ class KefuWithdrawDetailView(APIView):
|
||||
'fangshi': record.fangshi,
|
||||
'shenheid': record.shenheid or '',
|
||||
'bhliyou': record.bhliyou or '',
|
||||
'create_time': record.create_time,
|
||||
'update_time': record.update_time,
|
||||
'CreateTime': record.CreateTime,
|
||||
'UpdateTime': record.UpdateTime,
|
||||
}
|
||||
|
||||
# 根据提现类型添加扩展信息
|
||||
@@ -10145,11 +10145,11 @@ class KefuWithdrawActionView(APIView):
|
||||
refund_balance(user, audit.leixing, audit.shijidaozhang)
|
||||
tixian.shenheid = kefu_user.UserUID
|
||||
tixian.bhliyou = limit_msg
|
||||
tixian.save(update_fields=['shenheid', 'bhliyou', 'update_time'])
|
||||
tixian.save(update_fields=['shenheid', 'bhliyou', 'UpdateTime'])
|
||||
raise ValueError(f'提现记录{tixian_id}:{limit_msg},已自动驳回并退款')
|
||||
sync_audit_and_jilu_status(audit, 6, shenhe_ren_id=kefu_user.UserUID)
|
||||
tixian.shenheid = kefu_user.UserUID
|
||||
tixian.save(update_fields=['shenheid', 'update_time'])
|
||||
tixian.save(update_fields=['shenheid', 'UpdateTime'])
|
||||
else:
|
||||
sync_audit_and_jilu_status(
|
||||
audit, 5,
|
||||
@@ -10160,7 +10160,7 @@ class KefuWithdrawActionView(APIView):
|
||||
refund_balance(user, audit.leixing, audit.shijidaozhang)
|
||||
tixian.shenheid = kefu_user.UserUID
|
||||
tixian.bhliyou = reason
|
||||
tixian.save(update_fields=['shenheid', 'bhliyou', 'update_time'])
|
||||
tixian.save(update_fields=['shenheid', 'bhliyou', 'UpdateTime'])
|
||||
|
||||
def _process_manual_item(self, item, action, reason, phone):
|
||||
"""手动打款单条处理(原逻辑,须在 transaction.atomic 内调用)"""
|
||||
@@ -10195,7 +10195,7 @@ class KefuWithdrawActionView(APIView):
|
||||
szjilu.TotalIncome -= tixian.jine
|
||||
szjilu.TotalExpense += tixian.jine
|
||||
szjilu.DailyExpense += tixian.jine
|
||||
szjilu.update_time = timezone.now()
|
||||
szjilu.UpdateTime = timezone.now()
|
||||
szjilu.save()
|
||||
except Exception as e:
|
||||
logger.error(f'更新收支记录失败: {e}')
|
||||
@@ -10208,7 +10208,7 @@ class KefuWithdrawActionView(APIView):
|
||||
tixian.bhliyou = reason
|
||||
|
||||
tixian.shenheid = phone
|
||||
tixian.update_time = timezone.now()
|
||||
tixian.UpdateTime = timezone.now()
|
||||
tixian.save()
|
||||
|
||||
def post(self, request):
|
||||
@@ -11482,7 +11482,7 @@ class DaShouFaKuanLieBiaoView(APIView):
|
||||
yingxiang_qiangdan, shensuliyou, bohuiliyou,
|
||||
zhengju_tupian: [...], // 证据图片(yongtu=1)
|
||||
shensu_tupian: [...], // 申诉图片(yongtu=2)
|
||||
create_time, update_time
|
||||
CreateTime, UpdateTime
|
||||
}],
|
||||
has_more, page, page_size
|
||||
}
|
||||
@@ -11565,8 +11565,8 @@ class DaShouFaKuanLieBiaoView(APIView):
|
||||
'bohuiliyou': r.RejectReason or '',
|
||||
'zhengju_tupian': zhengju_map.get(rid, []), # 证据图片
|
||||
'shensu_tupian': shensu_map.get(rid, []), # 申诉图片
|
||||
'create_time': r.create_time.strftime('%Y-%m-%d %H:%M:%S') if r.create_time else '',
|
||||
'update_time': r.update_time.strftime('%Y-%m-%d %H:%M:%S') if r.update_time else '',
|
||||
'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 '',
|
||||
}
|
||||
chufa_list.append(item)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user