feat: 优化mlogbw bulk update 2
This commit is contained in:
parent
fa7d3095de
commit
3e8bce688a
|
@ -969,7 +969,7 @@ class MlogbwViewSet(CustomModelViewSet):
|
|||
mlog.cal_mlog_count_from_mlogb()
|
||||
|
||||
def after_bulk_update(self, objs):
|
||||
mlogbIds = list(set([obj.mlogb for obj in objs]))
|
||||
mlogbIds = list(set([obj["mlogb"] for obj in objs]))
|
||||
for mlogbId in mlogbIds:
|
||||
mlogbw = Mlogbw.objects.get(id=mlogbId)
|
||||
Mlogbw.cal_count_notok(mlogbw.mlogb)
|
||||
|
|
Loading…
Reference in New Issue