|
|
@@ -26,7 +26,7 @@ def querysn(request):
|
26
|
26
|
|
27
|
27
|
try:
|
28
|
28
|
log = ConsumeInfoSubmitLogInfo.objects.get(brand_id=brand_id, model_id=model_id, serialNo=sn)
|
29
|
|
- except ConsumeModelSaleStatisticInfo.DoesNotExist:
|
|
29
|
+ except ConsumeInfoSubmitLogInfo.DoesNotExist:
|
30
|
30
|
return response(ProductMachineStatusCode.SN_NOT_FOUND)
|
31
|
31
|
|
32
|
32
|
return response(200, 'Query SN Success', u'查询序列号成功', data=log.data)
|
|
|
@@ -44,7 +44,7 @@ def usecoupon(request):
|
44
|
44
|
|
45
|
45
|
try:
|
46
|
46
|
log = ConsumeInfoSubmitLogInfo.objects.get(brand_id=brand_id, model_id=model_id, serialNo=sn)
|
47
|
|
- except ConsumeModelSaleStatisticInfo.DoesNotExist:
|
|
47
|
+ except ConsumeInfoSubmitLogInfo.DoesNotExist:
|
48
|
48
|
return response(ProductMachineStatusCode.SN_NOT_FOUND)
|
49
|
49
|
|
50
|
50
|
log.has_used = True
|