Commit 4a995984 authored by 李小芳's avatar 李小芳

Merge branch 'solve_problem' into 'master'

add

See merge request !60
parents fe51a8a5 0abbb8ea
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import sys, re
import logging
import traceback
from libs.tools import tzlc, getMd5Digest
......@@ -81,7 +81,8 @@ class DoctorTransfer(object):
def get_doctor_suggest_data_list(cls, instance):
try:
ret_list = list()
keyword = instance.name
sub_query = re.sub('\W+', '', instance.name)
keyword = sub_query
cut_bool = False
cut_word = ["下线", "停用", "已经下线", "账号停用"]
for i in cut_word:
......@@ -177,7 +178,8 @@ class DoctorTransferV1(object):
def get_doctor_suggest_data_list(cls, instance):
try:
ret_list = list()
keyword = instance.name
sub_query = re.sub('\W+', '', instance.name)
keyword = sub_query
cut_bool = False
cut_word = ["下线", "停用", "已经下线", "账号停用"]
for i in cut_word:
......@@ -185,7 +187,7 @@ class DoctorTransferV1(object):
cut_bool = True
item_dict = dict()
suggest_list = list()
if not cut_bool :
if not cut_bool:
item_dict["id"] = getMd5Digest(str(instance.name))
item_dict["ori_name"] = instance.name
item_dict["is_online"] = instance.is_online
......
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import sys, re
import logging
import traceback
from libs.tools import tzlc, getMd5Digest
......@@ -19,10 +19,12 @@ class HospitalTransfer(object):
def get_hospital_suggest_data_list(cls, instance):
try:
ret_list = list()
name = instance.name.strip()
sub_query = re.sub('\W+', '', name)
name = sub_query
cut_bool = False
cut_word = ["下线", "停用", "已经下线", "账号停用"]
for i in cut_word:
if name.find(i) >= 0:
cut_bool = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment