|
|
@@ -8,7 +8,6 @@ from django_logit import logit
|
8
|
8
|
from django_response import response
|
9
|
9
|
|
10
|
10
|
from mch.models import ConsumeInfoSubmitLogInfo
|
11
|
|
-from statistic.models import ConsumeModelSaleStatisticInfo
|
12
|
11
|
from utils.error.errno_utils import ProductBrandStatusCode, ProductMachineStatusCode
|
13
|
12
|
|
14
|
13
|
|
|
|
@@ -25,7 +24,7 @@ def querysn(request):
|
25
|
24
|
return response(ProductBrandStatusCode.BRAND_NOT_MATCH)
|
26
|
25
|
|
27
|
26
|
try:
|
28
|
|
- log = ConsumeInfoSubmitLogInfo.objects.get(brand_id=brand_id, model_id=model_id, serialNo=sn)
|
|
27
|
+ log = ConsumeInfoSubmitLogInfo.objects.get(brand_id=brand_id, model_id=model_id, serialNo=sn, submit_during_activity=True, has_used=False)
|
29
|
28
|
except ConsumeInfoSubmitLogInfo.DoesNotExist:
|
30
|
29
|
return response(ProductMachineStatusCode.SN_NOT_FOUND)
|
31
|
30
|
|