daoru user

This commit is contained in:
caoqianming 2020-04-17 10:13:58 +08:00
parent 51494b42cc
commit c149785de7
2 changed files with 1 additions and 2 deletions

View File

@ -206,8 +206,7 @@ class ConsumerViewSet(ModelViewSet):
return Response({"error":"不存在单位("+companyname+")!请先新建"}) return Response({"error":"不存在单位("+companyname+")!请先新建"})
else: else:
companyobj = Company.objects.get(id=companydict[companyname]) companyobj = Company.objects.get(id=companydict[companyname])
subjects = sheet['d'+str(m)].value workscope = sheet['d'+str(m)].value
workscope = sheet['e'+str(m)].value
if Consumer.objects.filter(username = username).exists(): if Consumer.objects.filter(username = username).exists():
obj = Consumer.objects.filter(username = username).first() obj = Consumer.objects.filter(username = username).first()
else: else:

Binary file not shown.