You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
173 lines
8.7 KiB
173 lines
8.7 KiB
|
2 days ago
|
# 票务管理
|
||
|
|
# 影片库
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_film_db.f_cinema_film GROUP BY group_code;
|
||
|
|
|
||
|
|
# 价格策略
|
||
|
|
# 票价组
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(gmt_modified, gmt_create)) as last_time FROM dgp_ticket_db.ticket_group GROUP BY group_code;
|
||
|
|
|
||
|
|
# 排片指导
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_film_db.f_instruction GROUP BY group_code;
|
||
|
|
|
||
|
|
# 票房补登审核
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(auditor_time, add_time)) as last_time FROM dgp_film_db.f_box_office_add GROUP BY group_code;
|
||
|
|
|
||
|
|
# 客群管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(gmt_modified, gmt_create)) as last_time FROM dgp_membership_db.customer_group WHERE customer_group_name NOT IN ('活跃用户', '促活用户', '潜在用户') GROUP BY group_code;
|
||
|
|
|
||
|
|
# 会员卡活动
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(gmt_modified, gmt_create)) as last_time FROM dgp_membership_db.membership_activity GROUP BY group_code;
|
||
|
|
|
||
|
|
# 会员卡
|
||
|
|
# 订单管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(gmt_modified, gmt_create)) as last_time FROM dgp_membership_db.card_order GROUP BY group_code;
|
||
|
|
|
||
|
|
# 会员卡
|
||
|
|
# 等级管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(gmt_modified, gmt_create)) as last_time FROM dgp_membership_db.group_card_level WHERE is_deleted=0 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 卖品管理
|
||
|
|
# 售卖分组
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_sell_group WHERE status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 卖品管理
|
||
|
|
# 品牌管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_brands WHERE status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 库房管理
|
||
|
|
# 仓库
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_warehouse WHERE status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 库房管理
|
||
|
|
# 货架
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_shelf WHERE status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 品项管理
|
||
|
|
# 原材料
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_goods_bill WHERE status=1 AND goods_attribute=1 AND show_flag = 1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 品项管理
|
||
|
|
# 单品
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_goods_bill WHERE status=1 AND goods_attribute=2 AND show_flag = 1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 品项管理
|
||
|
|
# 合成品
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_goods_bill WHERE status=1 AND goods_attribute=3 AND show_flag = 1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 品项管理
|
||
|
|
# 套餐
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_goods_bill WHERE status=1 AND goods_attribute=4 AND show_flag = 1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 品项管理
|
||
|
|
# 售卖键管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_goods_rule_bill WHERE status=1 AND show_flag=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 品项管理
|
||
|
|
# 售卖规则
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_sell_rule_bill WHERE status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 供应商管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_supplier_bill WHERE status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 采购管理
|
||
|
|
# 代购协议
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_purchase_agreement WHERE status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 调货管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_retail_db.r_goods_transfer WHERE status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 联名卡
|
||
|
|
# 卡级别管理
|
||
|
|
SELECT group_no as group_code, COUNT(*) as data, MAX(IFNULL(updated_time, created_time)) as last_time FROM dgp_card_db.card_level WHERE status=1 GROUP BY group_no;
|
||
|
|
|
||
|
|
# 联名卡
|
||
|
|
# 活动管理
|
||
|
|
SELECT group_no as group_code, COUNT(*) as data, MAX(IFNULL(updated_time, created_time)) as last_time FROM dgp_card_db.card_level_activity WHERE status=1 GROUP BY group_no;
|
||
|
|
|
||
|
|
# 预售券
|
||
|
|
# 券类设置
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_coupon_db.coupon_strategy_bill WHERE audit_status IN (0,1,2,3) AND delete_flag = 0 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 预售券
|
||
|
|
# 销售单管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_coupon_db.coupon_sell_order WHERE delete_flag=0 AND coupon_strategy_id IN (SELECT coupon_strategy_id FROM dgp_coupon_db.coupon_strategy_bill WHERE audit_status IN (0,1,2,3) AND delete_flag = 0) GROUP BY group_code;
|
||
|
|
|
||
|
|
# 预售券
|
||
|
|
# 券码订单
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_coupon_db.coupon_barcode_order WHERE delete_flag=0 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 预售券
|
||
|
|
# 影城券审核
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_coupon_db.coupon_sell_order_cinema GROUP BY group_code;
|
||
|
|
|
||
|
|
# 预售券
|
||
|
|
# 平台券管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_coupon_db.coupon_platform_refund GROUP BY group_code;
|
||
|
|
|
||
|
|
# 用户管理
|
||
|
|
# 总部岗位
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.role_group_role WHERE delete_flag = 0 AND role_type=0 AND source_type=1 AND show_flag=1 AND levels_flag=2 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 用户管理
|
||
|
|
# 影院岗位
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.role_group_role WHERE delete_flag = 0 AND role_type=0 AND source_type=1 AND show_flag=1 AND levels_flag=8 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 用户管理
|
||
|
|
# 总部账号
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.role_user WHERE delete_flag=0 AND user_type=1 AND show_flag=1 AND status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 用户管理
|
||
|
|
# 影院账号
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.role_user WHERE delete_flag=0 AND user_type=3 AND show_flag=1 AND status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 影院管理
|
||
|
|
# 影院管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.bd_cinema WHERE status <> 3 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 影院管理
|
||
|
|
# 跨集团影院管理
|
||
|
|
SELECT interflow_group as group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.bd_cross_cinema WHERE delete_flag=0 GROUP BY interflow_group;
|
||
|
|
|
||
|
|
# 影院管理
|
||
|
|
# 影院指标管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.bd_kpi_target GROUP BY group_code;
|
||
|
|
|
||
|
|
# 影院管理
|
||
|
|
# 客户管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.bd_customer WHERE del_flag=0 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 影院管理
|
||
|
|
# 时段设置
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.bd_cinema_time_rule WHERE del_flag=0 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 影院管理
|
||
|
|
# 招待管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.bd_cinema_entertain WHERE delete_flag=0 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 影院管理
|
||
|
|
# 补贴方管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.bd_cinema_subsidies WHERE status=1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 影院管理
|
||
|
|
# 银行管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.bd_bank GROUP BY group_code;
|
||
|
|
|
||
|
|
# 影院管理
|
||
|
|
# 第三方卡管理
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_bd_db.customer_card_info WHERE delete_flag = 1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 审批流
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(update_time, create_time)) as last_time FROM dgp_workflow_db.wf_flow_definition WHERE status = 1 GROUP BY group_code;
|
||
|
|
|
||
|
|
# 广告管理
|
||
|
|
# 设备列表
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(gmt_modified, gmt_create)) as last_time FROM dgp_ad_db.equipment GROUP BY group_code;
|
||
|
|
|
||
|
|
# 广告管理
|
||
|
|
# 模板列表
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(gmt_modified, gmt_create)) as last_time FROM dgp_ad_db.template GROUP BY group_code;
|
||
|
|
|
||
|
|
# 广告管理
|
||
|
|
# 素材列表
|
||
|
|
SELECT group_code, COUNT(*) as data, MAX(IFNULL(gmt_modified, gmt_create)) as last_time FROM dgp_ad_db.material GROUP BY group_code;
|