1.职位模糊查询
This commit is contained in:
parent
3013957144
commit
f466fe3396
@ -1,3 +1,5 @@
|
||||
import re
|
||||
|
||||
from motor.motor_asyncio import AsyncIOMotorDatabase
|
||||
import schemas
|
||||
from crud.base import CRUDBase
|
||||
@ -25,7 +27,10 @@ class CRUDJobs(CRUDBase):
|
||||
for k, v in data_dict.items():
|
||||
if v != None and v != '' and v != []:
|
||||
if not isinstance(v,list):
|
||||
if k != 'job_name':
|
||||
where[k] = v
|
||||
else:
|
||||
where[k]=re.compile(v)
|
||||
else:
|
||||
for i in v:
|
||||
for kk,vv in i.items():
|
||||
|
Loading…
Reference in New Issue
Block a user