1.优化面试阶段

This commit is contained in:
李伟 2022-09-20 14:51:43 +08:00
parent c2edd6b83a
commit b709076cf7

View File

@ -24,7 +24,12 @@ class CRUDJobs(CRUDBase):
data_dict = data_in.dict() data_dict = data_in.dict()
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 != []:
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}) return await self.find_many(db, where, {'_id': 0})
# 修改职位的数据 # 修改职位的数据