Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
search_tips
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
search_tips
Commits
4a995984
Commit
4a995984
authored
Feb 24, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'solve_problem' into 'master'
add See merge request
!60
parents
fe51a8a5
0abbb8ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
doctor_transfer.py
trans2es/utils/doctor_transfer.py
+6
-4
hospital_transfer.py
trans2es/utils/hospital_transfer.py
+4
-2
No files found.
trans2es/utils/doctor_transfer.py
View file @
4a995984
#!/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
...
...
trans2es/utils/hospital_transfer.py
View file @
4a995984
#!/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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment