Browse Source

no message

libushang 4 tháng trước cách đây
mục cha
commit
a9bcc77741
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      routers/api/eventManagement/event.py

+ 3 - 0
routers/api/eventManagement/event.py

@@ -925,6 +925,9 @@ async def send_emergency_plan_task_by_yzy(
         _user_id = 0
         user_name = ''
         contact_row = db.query(EmergencyContactInfo).filter(and_(EmergencyContactInfo.del_flag == "0", EmergencyContactInfo.unit_id == dept_id)).first()
+        if contact_row is None:
+            continue
+        
         yzy_account = contact_row.yue_gov_ease_phone
         nick_name = contact_row.contact_name