소스 검색

后台定制客户,修复bug

linhaohong 1 년 전
부모
커밋
5bfe8c2de7
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      AdminController/DeviceManagementController.py
  2. 1 0
      AdminController/UserManageController.py

+ 1 - 1
AdminController/DeviceManagementController.py

@@ -1253,7 +1253,7 @@ class DeviceManagement(View):
             total_quantity = custom_customer_qs.aggregate(total_quantity=Sum('quantity'))['total_quantity']
 
             # 查询设备列表
-            customer_device_qs = CustomCustomerDevice.objects.filter(id__in=c_id_list).order_by('-created_time')
+            customer_device_qs = CustomCustomerDevice.objects.filter(c_id__in=c_id_list).order_by('-created_time')
 
             # 分页处理
             paginator = Paginator(customer_device_qs, page_size)

+ 1 - 0
AdminController/UserManageController.py

@@ -1203,6 +1203,7 @@ class UserManagement(View):
                 country_id=country_id,
                 quantity=quantity,
                 created_time=int(time.time()),
+                updated_time=int(time.time())
             )
             return response.json(0)
         except Exception as e: