数据详情

This commit is contained in:
Àî×ÚÕñ 2022-09-13 15:26:23 +08:00
parent fcc95b5a68
commit 59530cd7a1
2 changed files with 12 additions and 10 deletions

View File

@ -772,14 +772,14 @@ async def find_criterion(
data[i] = int(df[i][0])
else:
data[i] = df[i][0]
if data['work_exp'] == 0:
data['work_exp'] = '应届生'
elif data['work_exp'] >= 1 and data['work_exp'] < 3:
data['work_exp'] = '1-3年'
elif data['work_exp'] >= 3 and data['work_exp'] < 5:
data['work_exp'] = '1-3年'
else:
data['work_exp'] = '5年以上'
# if data['work_exp'] == 0:
# data['work_exp'] = '应届生'
# elif data['work_exp'] >= 1 and data['work_exp'] < 3:
# data['work_exp'] = '1-3年'
# elif data['work_exp'] >= 3 and data['work_exp'] < 5:
# data['work_exp'] = '1-3年'
# else:
# data['work_exp'] = '5年以上'
if data.get('work_list', []):
work_list = [json.loads(i) for i in data['work_list']]
if isinstance(work_list[0], str):

View File

@ -265,13 +265,15 @@ class InterviewDo:
for key, value in self.data_in.items():
if key == 'uid':
continue
if value == None:
continue
if value == '':
continue
if updateStr:
updateStr += ','
if isinstance(value, str):
updateStr += str(key) + ' = ' + "'" + value + "'" + ' '
continue
if value == None:
continue
updateStr += str(key) + ' = ' + str(value) + ' '
if 'uid' in self.data_in:
self.where.update({