|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|statistic|SELECT mb.tenant_id,mb.tenant_app_id,ifnull(mt.shop_id,?)shop_id,ifnull(mt.employee_user_id,?)employee_user_id,count(*)amount FROM member mb INNER JOIN member_extra mt ON mb.tenant_id=mt.tenant_id AND mb.id=mt.id WHERE mb.tenant_id=? AND mb.tenant_app_id=? AND mb.create_time<=? AND mb.register_flag=? GROUP BY mb.tenant_id,mb.tenant_app_id,mt.shop_id,mt.employee_user_id|16|2170|247||0|0|15023060|1622704|12284|1469|
|statistic|SELECT mb.tenant_id,mb.tenant_app_id,ifnull(mt.shop_id,?)shop_id,ifnull(mt.grade_erp_id,?)grade_erp_id,count(*)amount FROM member mb INNER JOIN member_extra mt ON mb.tenant_id=mt.tenant_id AND mb.id=mt.id WHERE mb.tenant_id=? AND mb.tenant_app_id=? AND mb.create_time<=? AND mb.register_flag=? GROUP BY mb.tenant_id,mb.tenant_app_id,mt.shop_id,mt.grade_erp_id|14|2050|262||0|0|13335706|1620690|3025|462|
|statistic|SELECT mb.tenant_id,mb.tenant_app_id,ifnull(mt.shop_id,?)shop_id,sum(if(mb.subscribe_flag=?,?,?))cancel_amount,sum(if(mb.subscribe_flag=?,?,?))subscribe_amount,sum(if(mb.bind_flag=?,?,?))bind_amount,sum(if(mb.full_flag=?,?,?))full_amount FROM member mb INNER JOIN member_extra mt ON mb.tenant_id=mt.tenant_id AND mb.id=mt.id WHERE mb.tenant_id=? AND mb.tenant_app_id=? AND mb.create_time<=? AND mb.register_flag=? GROUP BY mb.tenant_id,mb.tenant_app_id,mt.shop_id|12|1803|248||0|0|11675896|1619942|673|88|
|statistic|SELECT mb.tenant_id,mb.tenant_app_id,ifnull(mt.shop_id,?)shop_id,ifnull(mt.employee_user_id,?)user_id,count(*)service_amount,sum(if(mb.external_user_id IS NOT ?,?,?))corp_amount,sum(ifnull(mt.member_image_flag,?))image_amount FROM statistic.member mb INNER JOIN statistic.member_extra mt ON mb.tenant_id=mt.tenant_id AND mb.id=mt.id WHERE mb.tenant_id=? AND mb.tenant_app_id=? AND mb.create_time<=? AND mb.register_flag=? GROUP BY mb.tenant_id,mb.tenant_app_id,mt.shop_id,mt.employee_user_id|11|1627|232||0|0|11063252|1622704|8817|1469|
|v4_statistic|SELECT DATE_FORMAT(t?.sales_date,?) AS statistic_date,DATE_FORMAT(t?.sales_date,?) AS statistic_month,? AS statistic_version,DATE_FORMAT(t?.create_time,?) AS busi_date,? AS sale_status,t?.tenant_id,t?.tenant_app_id,t?.shop_id,t?.employee_id,count(*) AS birthOrder,ifnull(sum(t?.amount),?) AS birthAmount FROM biz_erp_sales t? JOIN member_? t? ON t?.tenant_id=t?.tenant_id AND t?.member_id=t?.id AND DATE_FORMAT(t?.sales_date,?)=DATE_FORMAT(t?.curr_month_birthday,?) WHERE t?.tenant_id=? AND t?.tenant_app_id=? AND t?.create_time>=? AND t?.create_time<? AND t?.sales_status IN (?) AND t?.tenant_id=? AND t?.tenant_app_id=? GROUP BY t?.tenant_id,t?.tenant_app_id,t?.shop_id,t?.employee_id,DATE_FORMAT(t?.sales_date,?),DATE_FORMAT(t?.sales_date,?),DATE_FORMAT(t?.create_time,?) LIMIT ? OFFSET ?|3|339|117||0|0|1892958|664300|700|655|
|statistic|SELECT id,tenant_app_id,start_time,statistic_date,busi_type,type,status,create_time,update_time FROM timer_execute_log WHERE (status=?)|3|751|315||0|0|25671115|8560767|24|12|
|v4_statistic|DELETE FROM bi_member_sales WHERE tenant_id=? AND tenant_app_id=? AND busi_date=? AND statistic_version=? AND tenant_id=? AND tenant_app_id=?|1|362|362||0|0|561608|561608|0|0|
|tag_service|SELECT t?.id,t?.tenant_id AS tenantId,t?.tenant_app_id AS tenantAppId,ifnull(t?.shop_id,ifnull(t?.shop_id,?)) AS shopId,t?.user_id AS userId,ifnull(t?.employee_user_id,ifnull(t?.employee_user_id,?)) AS employeeId,ifnull(t?.age,?) AS age,ifnull(t?.sex,?) AS sex,t?.mobile_no AS mobileNo,DATE_FORMAT(t?.birthday,?) AS birthday,ifnull(t?.birthday_is_lunar,?) AS birthdayIsLunar,t?.birthday_month_day AS birthdayMonthDay,t?.identity,t?.source_type AS sourceType,ifnull(t?.subscribe_flag,?) AS subscribeFlag,ifnull(t?.register_flag,?) AS registerFlag,t?.tenant_app_open_id AS tenantAppOpenId,ifnull(t?.bind_flag,?) AS bindFlag,ifnull(t?.full_flag,?) AS fullFlag,DATE_FORMAT(t?.memorial_day,?) AS memorialDay,ifnull(t?.memorial_day_is_lunar,?) AS memorialDayIsLunar,ifnull(t?.grade_erp_id,?) AS gradeErpId,ifnull(t?.sales_balance,?) AS salesBalance,ifnull(t?.sales_amount,?) AS salesAmount,ifnull(t?.consumption_integral,?) AS consumptionIntegral,ifnull(t?.cumulation,?) AS cumulation,ifnull(t?.balance,?) AS balance,ifnull(t?.service_amount,?) AS serviceAmount,ifnull(t?.registe_time,t?.create_time) AS registeTime,t?.first_shop_time AS firstShopTime,t?.last_shop_time AS lastShopTime,t?.first_sales_time AS firstSalesTime,t?.last_sales_time AS lastSalesTime,t?.last_login_time AS lastLoginTime,t?.last_score_time AS lastScoreTime,t?.follow_time AS followTime,t?.cancel_follow_time AS cancelFollowTime,t?.bind_time AS bindTime,t?.last_service_time AS lastServiceTime,t?.category_id AS categoryId,t?.last_sale_balance AS lastSaleBalance,t?.last_stone_weight AS lastStoneWeight,t?.last_gold_weight AS lastGoldweight,t?.last_category_id AS lastCategoryId,t?.external_user_id AS externalUserId,ifnull(t?.agency_id,?) AS agencyId,ifnull(t?.partner_id,?) AS partnerId,t?.constellation,t?.zodiac,t?.lately_birthday AS latelyBirthday,t?.lately_memorial_day AS latelyMemorialDay,ifnull(la.match_label,?) AS matchLabel,ifnull(la.match_label?,?) AS matchLabel?,ifnull(la.match_feature_label,?) AS matchFeatureLabel,t?.sales_brand AS salesBrand,t?.sales_craft AS salesCraft,t?.single_consume_moneys AS singleConsumeMoneyStr,t?.sale_times AS saleTimeStr FROM tag_service.member_label_match_? la JOIN statistic.member t? ON t?.tenant_app_id=la.tenant_app_id AND t?.user_id=la.user_id JOIN statistic.member_extra t? ON t?.tenant_id=t?.tenant_id AND t?.id=t?.id WHERE t?.tenant_id=? AND t?.tenant_id=? AND t?.id>=? AND t?.id<=? LIMIT ? OFFSET ?|1|118|118||0|0|564661|564661|3565|3565|
|v4_statistic|UPDATE bi_member_sales SET statistic_version=? WHERE tenant_id=? AND tenant_app_id=? AND busi_date=? AND statistic_version=? AND tenant_id=? AND tenant_app_id=?|1|234|234||0|0|604779|604779|0|0|
|statistic|DELETE je FROM statistic.BATCH_JOB_EXECUTION_PARAMS je JOIN statistic.BATCH_JOB_EXECUTION e ON je.job_execution_id=e.job_execution_id WHERE e.job_execution_id<=?|1|226|226||0|0|3889044|3889044|0|0|
|statistic|DELETE s FROM statistic.BATCH_STEP_EXECUTION s JOIN statistic.BATCH_JOB_EXECUTION e ON s.job_execution_id=e.job_execution_id WHERE s.step_execution_id<=?|1|103|103||0|0|3929327|3929327|0|0|
|v4_statistic|SELECT DATE_FORMAT(t?.sales_date,?) AS statistic_date,DATE_FORMAT(t?.sales_date,?) AS statistic_month,? AS statistic_version,DATE_FORMAT(t?.update_time,?) AS busi_date,? AS sale_status,t?.tenant_id,t?.tenant_app_id,t?.shop_id,t?.employee_id,?*count(*) AS birthOrder,?*ifnull(sum(t?.amount),?) AS birthAmount FROM biz_erp_sales t? JOIN member_? t? ON t?.tenant_id=t?.tenant_id AND t?.member_id=t?.id AND DATE_FORMAT(t?.sales_date,?)=DATE_FORMAT(t?.curr_month_birthday,?) WHERE t?.tenant_id=? AND t?.tenant_app_id=? AND t?.update_time>=? AND t?.update_time<? AND t?.sales_status=? AND t?.tenant_id=? AND t?.tenant_app_id=? GROUP BY t?.tenant_id,t?.tenant_app_id,t?.shop_id,t?.employee_id,DATE_FORMAT(t?.sales_date,?),DATE_FORMAT(t?.sales_date,?),DATE_FORMAT(t?.update_time,?) LIMIT ? OFFSET ?|1|130|130||0|0|664254|664254|0|0|
|v4_statistic|SELECT statistic_date,statistic_month,statistic_version,busi_date,sale_status,tenant_id,tenant_app_id,shop_id,employee_id,sales_order,sales_amount,birth_order,birth_amount,no_sales_order,no_sales_amount,new_sales_order,new_sales_amount,old_sales_order,old_sales_amount,update_time FROM bi_member_sales WHERE tenant_id=? AND tenant_app_id=? AND update_time>=? AND tenant_id=? AND tenant_app_id=? LIMIT ? OFFSET ?|1|119|119||0|0|40962|40962|962|962|
|v4_statistic|DELETE FROM BATCH_JOB_EXECUTION_PARAMS WHERE job_execution_id<=?|1|175|175||0|0|481959|481959|0|0|
