import user bug
This commit is contained in:
parent
781ea35fe2
commit
ca77bb091e
|
@ -198,7 +198,7 @@ class ConsumerViewSet(ModelViewSet):
|
|||
# 验证文件内容
|
||||
if sheet['a2'].value != '姓名':
|
||||
return Response({"error":"姓名列错误!"})
|
||||
if sheet['b2'].value != '账户(微信绑定的手机号)':
|
||||
if sheet['b2'].value != '账户(手机号)':
|
||||
return Response({"error":"账户列错误!"})
|
||||
if sheet['c2'].value != '单位':
|
||||
return Response({"error":"单位列错误!"})
|
||||
|
@ -240,9 +240,6 @@ class ConsumerViewSet(ModelViewSet):
|
|||
if queryset.exists():
|
||||
PaySubject.objects.create(subject=queryset.first(), consumer=obj)
|
||||
i = i + 1
|
||||
if consumerdict:
|
||||
return {"code":206,"data":consumerdict,"msg":"导入部分成功"}
|
||||
else:
|
||||
return Response(status=status.HTTP_200_OK)
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue