手动获取筛选结果

queryset = self.filter_queryset(self.get_queryset())

手动序列化

        objs = StockLackPicking.objects.using('read_default').filter(id__in=ids)
        serializers = StockLackPickingSerializer(objs, many=True)
        serializers_data = serializers.data
        data_dict = {}
        from utils.common import handel_utc_time
        for data in serializers_data:
            data['create_date'] = handel_utc_time(data['create_date'])
            data['actual_date'] = handel_utc_time(data['actual_date'])
            order_id = data['id']
            data_dict[order_id] = data

相关文章:

  • 2022-12-23
  • 2021-08-09
  • 2021-06-20
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
相关资源
相似解决方案