|
@@ -160,7 +160,10 @@ async def update_contact(
|
|
|
old_person_type_list = get_person_type_by_person_id(db, person.id)
|
|
|
for old_person_type in old_person_type_list:
|
|
|
old_person_type.del_flag = '2'
|
|
|
- old_person_other_type_list = get_person_other_info_by_person_id(db, person.id)
|
|
|
+ old_person_other_info_list = get_person_other_info_by_person_id(db, person.id)
|
|
|
+ for old_person_other_info in old_person_other_info_list:
|
|
|
+ old_person_other_info.del_flag = '2'
|
|
|
+ old_person_other_type_list = get_person_other_type_by_person_id(db, person.id)
|
|
|
for old_person_other_type in old_person_other_type_list:
|
|
|
old_person_other_type.del_flag = '2'
|
|
|
for type_info in type_list:
|