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