Browse Source

后台定制客户,修复bug

linhaohong 1 year ago
parent
commit
5bfe8c2de7

+ 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: