visit_driver_end bug

This commit is contained in:
曹前明 2022-09-22 11:40:17 +08:00
parent f827bcf5f6
commit cc0845af97
1 changed files with 4 additions and 0 deletions

View File

@ -94,3 +94,7 @@ def visit_driver_end(ticket):
HrmService.sync_dahua_employee(ep, '', visit.visit_time, visit.leave_time) HrmService.sync_dahua_employee(ep, '', visit.visit_time, visit.leave_time)
visit.state = Visit.V_ENTER visit.state = Visit.V_ENTER
visit.save() visit.save()
# 发送通知?
phone = visit.create_by.phone
if phone:
send_sms(phone=phone, template_code=1004, template_param={'name': '拉送货入厂'})