|
|
@@ -84,7 +84,7 @@ def clerk_sale_submit_api(request):
|
84
|
84
|
return response(ProductModelStatusCode.MODEL_NOT_FOUND)
|
85
|
85
|
|
86
|
86
|
try:
|
87
|
|
- clerk = SaleclerkInfo.objects.select_for_update().get(brand_id=brand.brand_id, unionid=user.unionid, status=True)
|
|
87
|
+ clerk = SaleclerkInfo.objects.select_for_update().get(brand_id=brand.brand_id, clerk_phone=user.phone, status=True)
|
88
|
88
|
except SaleclerkInfo.DoesNotExist:
|
89
|
89
|
return response(SaleclerkStatusCode.CLERK_NOT_FOUND)
|
90
|
90
|
|
|
|
@@ -371,7 +371,7 @@ def clerk_integral_list_api(request):
|
371
|
371
|
return response(ProductBrandStatusCode.BRAND_NOT_FOUND)
|
372
|
372
|
|
373
|
373
|
try:
|
374
|
|
- clerk = SaleclerkInfo.objects.get(brand_id=brand.brand_id, unionid=user.unionid, status=True)
|
|
374
|
+ clerk = SaleclerkInfo.objects.get(brand_id=brand.brand_id, clerk_phone=user.phone, status=True)
|
375
|
375
|
except SaleclerkInfo.DoesNotExist:
|
376
|
376
|
return response(SaleclerkStatusCode.CLERK_NOT_FOUND)
|
377
|
377
|
|
|
|
@@ -413,7 +413,7 @@ def clerk_model_list_api(request):
|
413
|
413
|
return response(ProductBrandStatusCode.BRAND_NOT_FOUND)
|
414
|
414
|
|
415
|
415
|
try:
|
416
|
|
- clerk = SaleclerkInfo.objects.get(brand_id=brand.brand_id, unionid=user.unionid, status=True)
|
|
416
|
+ clerk = SaleclerkInfo.objects.get(brand_id=brand.brand_id, clerk_phone=user.phone, status=True)
|
417
|
417
|
except SaleclerkInfo.DoesNotExist:
|
418
|
418
|
return response(SaleclerkStatusCode.CLERK_NOT_FOUND)
|
419
|
419
|
|
|
|
@@ -528,7 +528,7 @@ def clerk_writeoff_coupon(request):
|
528
|
528
|
return response(400001, 'MaintenancemanInfo Not Found', u'维修员不存在')
|
529
|
529
|
else:
|
530
|
530
|
try:
|
531
|
|
- clerk = SaleclerkInfo.objects.get(brand_id=brand.brand_id, unionid=user.unionid, status=True)
|
|
531
|
+ clerk = SaleclerkInfo.objects.get(brand_id=brand.brand_id, clerk_phone=user.phone, status=True)
|
532
|
532
|
user_coupon.clerk_id = clerk.clerk_id
|
533
|
533
|
user_coupon.clerk_name = clerk.clerk_name
|
534
|
534
|
user_coupon.distributor_id = clerk.distributor_id
|
|
|
@@ -566,7 +566,7 @@ def clerk_checkout_serialNo_api(request):
|
566
|
566
|
return response(ProductBrandStatusCode.BRAND_NOT_FOUND)
|
567
|
567
|
|
568
|
568
|
try:
|
569
|
|
- clerk = SaleclerkInfo.objects.get(brand_id=brand.brand_id, unionid=user.unionid, status=True)
|
|
569
|
+ clerk = SaleclerkInfo.objects.get(brand_id=brand.brand_id, clerk_phone=user.phone, status=True)
|
570
|
570
|
except SaleclerkInfo.DoesNotExist:
|
571
|
571
|
return response(SaleclerkStatusCode.CLERK_NOT_FOUND)
|
572
|
572
|
|