更新医保类型判断

This commit is contained in:
2024-07-09 14:24:47 +08:00
parent 835cb78e57
commit a7d1c479a8

View File

@@ -118,7 +118,7 @@ def handle_name(string):
def handle_insurance_type(string):
if not string:
return ""
worker_insurance_keys = ["社保", "城保", ""]
worker_insurance_keys = ["社保", "城保", "", "退休"]
villager_insurance_keys = ["农保", "居民"]
migrant_worker_insurance_keys = ["农民工"]
no_insurance_keys = ["自费", "全费"]
@@ -130,7 +130,7 @@ def handle_insurance_type(string):
return "农民工医保"
if any(key in string for key in no_insurance_keys):
return "无医保"
return ""
return "其他"
# 处理原始数据