提交 b1cc380c authored 作者: zhang wei's avatar zhang wei

fix:诗仙太白页面报表: 改动

上级 c84e5f4b
...@@ -7235,17 +7235,15 @@ def bonusPoints_edit_list(request, id=None, type=None): ...@@ -7235,17 +7235,15 @@ def bonusPoints_edit_list(request, id=None, type=None):
else: else:
list = [] list = []
for r in t.parent_points: for r in t.parent_points:
aa = r["points"] a = str(r["points"]) + '积分'
cur = connection.cursor() cur = connection.cursor()
s = f""" select (select name from company_company where {t.company_id}=id),(select name from company_company where {r["company_fr_id"]}=id), s = f""" select (select name from company_company where {t.company_id}=id),(select name from company_company where {r["company_fr_id"]}=id),
(select last_name from company_user where {t.user_id}=id) from company_BonusPointsLog b where company_id={t.company_id} (select last_name from company_user where {t.user_id}=id) from company_BonusPointsLog b where company_id={t.company_id}
""" """
cur.execute(s) cur.execute(s)
r = cur.fetchone() r = cur.fetchone()
list.append([r[1],aa]) aa = r[1] + '/' + a
print(list) list.append([aa])
data['data'].append([r[0], str(t.self_points), list, t.tm.strftime("%Y-%m-%d %H:%M:%S"), r[2]]) data['data'].append([r[0], str(t.self_points), list, t.tm.strftime("%Y-%m-%d %H:%M:%S"), r[2]])
data['data'] = SafeString(data['data']) data['data'] = SafeString(data['data'])
return render(request, 'company/points_list.html', data) return render(request, 'company/points_list.html', data)
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论