feat: wpr_bxerp只统计提交的日志

This commit is contained in:
caoqianming 2025-07-18 09:53:43 +08:00
parent 9c391add48
commit 357b1fdfa0
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ def main(wprId, mgroup:Mgroup):
wpr = Wpr.objects.get(id=wprId)
data = {}
mgroup_name = mgroup.name
mlogbw = Mlogbw.objects.filter(wpr=wpr).order_by("-update_time").first()
mlogbw = Mlogbw.objects.filter(wpr=wpr, mlogb__mlog__submit_time__isnull=False).order_by("-update_time").first()
data[f"{mgroup_name}_批次号"] = mlogbw.mlogb.batch
data[f"{mgroup_name}_日期"] = mlogbw.mlogb.mlog.handle_date.strftime("%Y-%m-%d")
ftestitems = FtestItem.objects.filter(ftest__mlogbw_ftest__wpr=wpr,