feat: MlogSerializer 处理 work_start_time 的 bug2
This commit is contained in:
parent
c997cba6a5
commit
45af751350
|
@ -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"):
|
||||
|
|
Loading…
Reference in New Issue