|
|
@@ -218,7 +218,14 @@ def clerk_integral_list_api(request):
|
218
|
218
|
return response(SaleclerkStatusCode.CLERK_NOT_FOUND)
|
219
|
219
|
|
220
|
220
|
try:
|
221
|
|
- clerk = SaleclerkInfo.objects.get(brand_id=brandID, unionid=user.unionid, status=True)
|
|
221
|
+ brand = BrandInfo.objects.get(pk=brandID)
|
|
222
|
+ except BrandInfo.DoesNotExist:
|
|
223
|
+ return response(ProductBrandStatusCode.BRAND_NOT_FOUND)
|
|
224
|
+ except ValueError:
|
|
225
|
+ return response(ProductBrandStatusCode.BRAND_NOT_FOUND)
|
|
226
|
+
|
|
227
|
+ try:
|
|
228
|
+ clerk = SaleclerkInfo.objects.get(brand_id=brand.brand_id, unionid=user.unionid, status=True)
|
222
|
229
|
except SaleclerkInfo.DoesNotExist:
|
223
|
230
|
return response(SaleclerkStatusCode.CLERK_NOT_FOUND)
|
224
|
231
|
|