|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|account|SELECT t.tenant_id,t.tenant_app_id,t.coupon_id,t.statistic_date,t.create_channel,t.coupon_type,t.busi_date,count(*)amount FROM (SELECT cu.tenant_id,cu.tenant_app_id,cu.template_id coupon_id,cu.source create_channel,date_format(rt.create_time,?)statistic_date,cu.coupon_type,date_format(cu.create_time,?)busi_date FROM coupon_service.coupon cu INNER JOIN coupon_service.user_coupon_give_record rt ON cu.tenant_app_id=rt.tenant_app_id AND cu.id=rt.coupon_id WHERE rt.tenant_app_id=? AND rt.create_time>=? AND rt.create_time<=? AND rt.user_id>?)t GROUP BY t.tenant_id,t.tenant_app_id,t.coupon_id,t.statistic_date,t.create_channel,t.coupon_type,t.busi_date LIMIT ? OFFSET ?|1|1|1||0|0|52422|52422|0|0|
|account|SELECT * FROM (SELECT t?.id,t?.tenant_id,t?.tenant_app_id,t?.share_user_id AS user_id,t?.user_name AS user_name,t?.share_user_type AS user_identity,t?.business_id AS goods_id,t?.goods_name AS goods_name,DATE_FORMAT(oi.finish_time,?) AS busi_date,count(*) AS deal_amount,ifnull(sum(oi.total_fee),?) AS deal_money FROM goods.`share` t? JOIN goods.share_detail sd ON t?.id=sd.share_id JOIN ORDER.order_info oi ON sd.order_id=oi.id AND oi.tenant_wechatapp_id=? AND oi.status=? JOIN goods.goods t? ON t?.business_id=t?.id JOIN user_service.tenant_member t? ON t?.tenant_id=t?.tenant_id AND t?.tenant_app_id=t?.tenant_app_id AND t?.share_user_id=t?.user_id WHERE t?.tenant_app_id=? AND t?.share_user_type=? AND t?.business_type=? AND oi.finish_time>=? AND oi.finish_time<=? GROUP BY t?.id,DATE_FORMAT(oi.finish_time,?) UNION ALL SELECT t?.id,t?.tenant_id,t?.tenant_app_id,t?.share_user_id AS user_id,t?.employee_name AS user_name,t?.share_user_type AS user_identity,t?.business_id AS goods_id,t?.goods_name AS goods_name,DATE_FORMAT(oi.finish_time,?) AS busi_date,count(*) AS deal_amount,ifnull(sum(oi.total_fee),?) AS deal_money FROM goods.`share` t? JOIN goods.share_detail sd ON t?.id=sd.share_id JOIN ORDER.order_info oi ON sd.order_id=oi.id AND oi.tenant_wechatapp_id=? AND oi.status=? JOIN goods.goods t? ON t?.business_id=t?.id JOIN tenant.employee t? ON t?.share_user_id=t?.id WHERE t?.tenant_app_id=? AND t?.share_user_type=? AND t?.business_type=? AND oi.finish_time>=? AND oi.finish_time<=? GROUP BY t?.id,DATE_FORMAT(oi.finish_time,?))tt ORDER BY tt.id ASC LIMIT ? OFFSET ?|1|2|2||0|0|119758|119758|1|1|
|employee|SELECT * FROM `batch_job_execution_params`|1|1|1||0|0|638134|638134|638134|638134|
|account|SELECT t?.id,t?.tenant_id AS tenantId,t?.tenant_wechatapp_id AS tenantAppId,t?.template_id,t?.dept_erp_id,t?.employee_erp_id,t?.sales_erp_id,t?.sales_index,tb.erp_member_id AS memberId,t?.amount_pay,t?.amount_added,(CASE t?.state WHEN ? THEN ? ELSE ? END) AS status,if(t?.state=?,t?.coupon_user_id,?) AS couponId,t?.start_add_time,t?.create_time AS operTime FROM value_added.value_added_user t? LEFT JOIN value_added.value_added_user_extend t? ON t?.id=t?.id JOIN user_service.tenant_member_bind tb ON tb.tenant_id=t?.tenant_id AND tb.tenant_app_id=t?.tenant_wechatapp_id AND tb.user_id=t?.user_id AND tb.tenant_id=? WHERE t?.tenant_wechatapp_id=? AND t?.update_time>=? AND t?.update_time<=? LIMIT ? OFFSET ?|1|1|1||0|0|15000|15000|5000|5000|
