P1 性能优化(避免循环内 N+1 / N 次 DB 查询): - shop_order_views._batch_images: 移除 ThreadPoolExecutor 掩盖的 N 次查询,改单次批量 + Python 侧分组 - product_query.DashouHuiyuanList: 5N 查询 -> 3 次批量预取 + 本地闭包判断 - roles.GetRolePermissionView / 用户列表: 循环内 RolePermission/Permission/UserRole/Role -> 批量 __in 预取 - guanli / zuzhang 杜次分红 4.2/4.3: 循环内 update_or_create + 单条 delete -> bulk_create + bulk_update + 批量 delete - admin_config QQ 群配置: 循环内 exists/first/save/create -> 批量预取 + bulk_create + bulk_update - jituan 服务层多处合并统计查询、批量预取 map - rank 多处循环 N+1 改批量预取 - backend 多处循环内 count/create 改批量 - config/orders/merchant_ops 多处循环 N+1 改批量预取 其他改动: - users/views/kefu.py 拆分为 kefu_base/kefu_dashou/kefu_orders/kefu_punishment/kefu_withdraw 5 个文件 - 删除遗留脚本 check_prod_uid.py / create_rbac_tables.sql
141 lines
3.1 KiB
Python
141 lines
3.1 KiB
Python
"""users.views package aggregate entry - re-export all submodule symbols.
|
|
|
|
Preserves external `from users.views import X` for users/urls.py and jituan/urls.py.
|
|
"""
|
|
|
|
from .auth import (
|
|
DashouZhuceView,
|
|
GuanshiRegisterView,
|
|
GuanshiYaoqingDashouListView,
|
|
WechatLoginAndDashouRegisterView,
|
|
WechatLoginAndGuanshiRegisterView,
|
|
WechatMiniProgramLoginView,
|
|
WeixinOfficialCallbackView,
|
|
ZuzhangXinxiView,
|
|
ZuzhangZhuceView,
|
|
)
|
|
|
|
from .user_info import (
|
|
BossBiaoshiView,
|
|
DashouGengxinView,
|
|
DashouJianquanView,
|
|
DashouXinxiAPIView,
|
|
DashouZiliaoHuoquView,
|
|
GuanshiXinxiView,
|
|
HuoQuYaoQingRenView,
|
|
LaobanJianquanView,
|
|
ShangJiaXinXiView,
|
|
ShangjiaNichengGengxinView,
|
|
UserInfoUpdateView,
|
|
YaoqingmaView,
|
|
ZaixianZhuangtaiAPIView,
|
|
huoquKehuduanIP,
|
|
huoquYonghuDaili,
|
|
)
|
|
|
|
from .shangjia import (
|
|
DaShouFaKuanLieBiaoView,
|
|
FaKuanJiFenTongJiView,
|
|
FaKuanShenSuView,
|
|
ShangjiaCufaTongjiView,
|
|
ShangjiaFakuanLieBiaoView,
|
|
ShangjiaZhuceView,
|
|
)
|
|
|
|
from .tixian import (
|
|
FORBIDDEN_STATUS_FOR_WITHDRAW,
|
|
GuanshiContactView,
|
|
ORDER_STATUS_COMPLETED,
|
|
ORDER_STATUS_FAIL,
|
|
ORDER_STATUS_REFUNDED,
|
|
ShoukuanXinxiShangchuanView,
|
|
TixianAssetView,
|
|
TixianCallbackV3View,
|
|
TixianJiluHuoquViewV2,
|
|
TixianQueRenAutoView,
|
|
TixianShenqingV3View,
|
|
TixianShenqingView,
|
|
TixianXinxiHuoquView,
|
|
YonghuTixianShenheXiugaiView,
|
|
generate_tixian_id,
|
|
)
|
|
|
|
from .admin import (
|
|
AdGetOrderList,
|
|
AdGetOrderTypes,
|
|
AdGuanLiYongHu,
|
|
AdKfglView,
|
|
AdKftjView,
|
|
AdKfxgView,
|
|
AdTongYiChuFa,
|
|
AdYaoQingDaShou,
|
|
AdcjxgView,
|
|
AdckyhxqView,
|
|
AddtxshView,
|
|
AdminFinancialDataView,
|
|
AdminLoginView,
|
|
AdtixianqkView,
|
|
CfGuanLi,
|
|
PaihangbangGuanliQueryView,
|
|
PaihangbangRiqiliebiaoView,
|
|
admin_required,
|
|
)
|
|
|
|
from .chufa import (
|
|
ChufaJiluHuoquView,
|
|
DashouPermission,
|
|
DashouShensuView,
|
|
ShangjiaChufaJiluHuoquView,
|
|
)
|
|
|
|
from .kefu_base import (
|
|
KefuGetOrderTypesView,
|
|
KefuLoginView,
|
|
KefuStatsView,
|
|
)
|
|
|
|
from .kefu_orders import (
|
|
KefuCancelDesignationView,
|
|
KefuChangeDashouView,
|
|
KefuForceCompleteView,
|
|
KefuGetOrderDetailView,
|
|
KefuGetOrderListView,
|
|
KefuGetShangjiaOrderListView,
|
|
KefuMerchantRefundView,
|
|
KefuPlatformRefundView,
|
|
KefuRecoverOrderView,
|
|
KefuRejectRefundView,
|
|
KefuRejectSettlementView,
|
|
KefuTransferHallView,
|
|
)
|
|
|
|
from .kefu_dashou import (
|
|
KefuGetDashouDetailView,
|
|
KefuGetDashouListView,
|
|
KefuUpdateDashouView,
|
|
)
|
|
|
|
from .kefu_punishment import (
|
|
KefuPunishView,
|
|
KefuPunishmentActionView,
|
|
KefuPunishmentDetailView,
|
|
KefuPunishmentListView,
|
|
)
|
|
|
|
from .kefu_withdraw import (
|
|
KefuWithdrawActionView,
|
|
KefuWithdrawDetailView,
|
|
KefuWithdrawListView,
|
|
)
|
|
|
|
from .pay import (
|
|
FaKuanHuitiaoView,
|
|
FaKuanPayFailView,
|
|
FaKuanPayPollView,
|
|
FaKuanPayView,
|
|
KaohePayCallbackView,
|
|
KaohePayFailView,
|
|
KaohePayPollView,
|
|
KaohePayView,
|
|
)
|