Browse Source

UID管理系统-企业管理-企业信息:生成序列号添加p2p类型

lhq 4 years ago
parent
commit
af062c6fcf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Controller/CompanyController.py

+ 2 - 2
Controller/CompanyController.py

@@ -132,7 +132,7 @@ class CompanyView(View):
 
         id = request_dict.get('id', None)
         quantity = request_dict.get('quantity', None)
-
+        p2p = request_dict.get('p2p', None)
         if id and quantity:
             company_qs = CompanyModel.objects.filter(id=id)
 
@@ -146,7 +146,7 @@ class CompanyView(View):
                     company = company_qs[0]
                     start = company.quantity
                     end = start + int(quantity)
-                    serial_qs = SerialNumberModel.objects.filter()[start:end]
+                    serial_qs = SerialNumberModel.objects.filter(p2p=p2p)[start:end]
                     if serial_qs.exists():
                         data = []
                         now_time = int(time.time())