d62f4b3c by chenyao

添加限制被保险人位置的条件

1 parent 1e6d9aa7
......@@ -2080,7 +2080,7 @@ class Command(BaseCommand, LoggerMixin):
if isinstance(license_dict_tmp, dict):
if "被保险人姓名" in license_dict_tmp.keys():
if license_dict_tmp.get("被保险人姓名") is not None:
if isinstance(license_dict_tmp.get("被保险人姓名"), str) and license_dict_tmp.get("被保险人姓名") != "":
if isinstance(license_dict_tmp.get("被保险人姓名"), str) and license_dict_tmp.get("被保险人姓名") != "" and "保险" not in license_dict_tmp.get("被保险人姓名"):
license_first_page_list[license_list_tmp_idx] = 1
break
# 获取 license_first_page_list 中为 1 的索引
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!