feat: MlogSerializer 处理 work_start_time 的 bug2

This commit is contained in:
caoqianming 2025-09-02 11:32:05 +08:00
parent c997cba6a5
commit 45af751350
1 changed files with 4 additions and 0 deletions

View File

@ -639,6 +639,10 @@ class MlogSerializer(CustomModelSerializer):
attrs['handle_date'] = mtask.end_date
if attrs['handle_date'] != handle_date:
raise ParseError('任务日期与生产日期不一致')
else:
attrs['handle_date'] = handle_date
else:
attrs['handle_date'] = handle_date
handle_user = attrs.get('handle_user', None)
if handle_user is None and hasattr(self, "request"):