1.优化面试阶段
This commit is contained in:
parent
c2edd6b83a
commit
b709076cf7
@ -24,7 +24,12 @@ class CRUDJobs(CRUDBase):
|
||||
data_dict = data_in.dict()
|
||||
for k, v in data_dict.items():
|
||||
if v != None and v != '' and v != []:
|
||||
where[k] = v
|
||||
if not isinstance(v,list):
|
||||
where[k] = v
|
||||
else:
|
||||
for i in v:
|
||||
for kk,vv in i.items():
|
||||
where[k+'.'+kk]=vv
|
||||
return await self.find_many(db, where, {'_id': 0})
|
||||
|
||||
# 修改职位的数据
|
||||
|
Loading…
Reference in New Issue
Block a user