|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|tag_service|select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_823844580729339904 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) limit :9|1|1|1||0|0|7708|7708|10|10|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_817878088380628992 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|1|3|3||0|0|673|673|1|1|
|statistic|select max ( statistic_date ) enddate from result_shop_grade where tenant_id = :1 group by tenant_id|1|6|6||0|0|422188|422188|1|1|
|platform|select `vendorid` , `memberid` , `salesdate` , `noteid` , `noteno` , `empid` , `empname` , `amounttotal` , `quantitytotal` , `integraltotal` , `salesstoreid` , `staffattitude` , `professionallevel` , `appearance` , `storeimage` , `productdisplay` , `salescomment` , `commenttime` , `replycontent` , `replytime` , `replyuser` , `tipfee` , `tipmorderid` , `tippayno` , `tippaytime` , `status` , `aftersalesremark` , `uid` , `eid` , `sid` , `id` from `saleslog` where vendorid = :1 and tipfee > :2 and tippayno is not null and date_sub ( date ( :3 ) , interval :4 day ) = date_format ( tippaytime , :5 )|1|4|4||0|0|120774|120774|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_816440425157005312 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|1|1|1||0|0|360160|360160|238|238|
|statistic|select tmp.shopid id , tmp.shopname name , tmp.amount saleamount , tmp.addamount valueamount , tmp.addrate finishrate from ( select t.shop_id shopid , t.shop_name shopname , t.amount , t.addamount , if ( t.amount = 0 , 100 , round ( t.addamount*100/t.amount ) ) addrate , t.valueaddamount from ( select sd.shop_id , os.shop_name , sum ( finish_amount ) addamount , sum ( un_finish_amount ) +sum ( finish_amount ) amount , sum ( ifnull ( sd.value_add_amount , 0 ) ) valueaddamount from statistic.result_employee_value sd left join statistic.off_shop os on sd.tenant_app_id = os.tenant_app_id and sd.shop_id = os.shop_id left join ( select ep.* from statistic.off_employee ep inner join ( select tenant_app_id , employee_user_id , max ( employee_erp_id ) employee_erp_id from statistic.off_employee group by tenant_app_id , employee_user_id ) dep on ep.tenant_app_id = dep.tenant_app_id and ep.employee_erp_id = dep.employee_erp_id and ep.employee_user_id = dep.employee_user_id ) oe on sd.tenant_app_id = oe.tenant_app_id and sd.user_id = oe.employee_user_id where sd.tenant_id = :1 and sd.shop_id != :2 and sd.user_id != :3 and sd.sales_date between :4 and :5 group by sd.shop_id , os.shop_name ) t ) tmp order by tmp.addrate desc|1|1|1||0|0|39823|39823|20|20|
|platform|select `vendorid` , `memberid` , `salesdate` , `noteid` , `noteno` , `empid` , `empname` , `amounttotal` , `quantitytotal` , `integraltotal` , `salesstoreid` , `staffattitude` , `professionallevel` , `appearance` , `storeimage` , `productdisplay` , `salescomment` , `commenttime` , `replycontent` , `replytime` , `replyuser` , `tipfee` , `tipmorderid` , `tippayno` , `tippaytime` , `status` , `aftersalesremark` , `uid` , `eid` , `sid` , `id` from `saleslog` where vendorid = :1 and status = :2 and date_sub ( curdate ( ) , interval :3 day ) = date_format ( salesdate , :4 )|1|4|4||0|0|120774|120774|0|0|
|statistic|select max ( statistic_date ) enddate from result_shop_source where tenant_id = :1 group by tenant_id|1|5|5||0|0|348048|348048|1|1|
|platform|select ifnull ( eid , 0 ) as eid , ifnull ( shopid , 0 ) as sid , vendorid , count ( 1 ) as quantity from productcerts where vendorid = :1 and to_days ( :2 ) :3 to_days ( createtime ) = :4 group by eid , shopid , vendorid|1|1|1||0|0|28984|28984|0|0|
|value_added|-- 根据添加时间得出当前增值金额 update value_added_user set amount_added = if ( :1 > ( ( ( added_percent_per_day / :2 ) * if ( :3 >= timestampdiff ( day , date_format ( create_time , :4 ) , now ( ) ) :5 :6 :7 add_days , timestampdiff ( day , date_format ( create_time , :8 ) , now ( ) ) :9 :10 , add_days ) ) :11 ( ( devalue_percent_per_day / :12 ) * if ( :13 >= timestampdiff ( day , date_format ( create_time , :14 ) , now ( ) ) :15 :16 :17 add_days :18 keeping_days , :19 , timestampdiff ( day , date_format ( create_time , :20 ) , now ( ) ) :21 :22 :23 add_days :24 keeping_days ) ) ) * amount_pay , :25 , ( ( ( added_percent_per_day / :26 ) * if ( :27 >= timestampdiff ( day , date_format ( create_time , :28 ) , now ( ) ) :29 :30 :31 add_days , timestampdiff ( day , date_format ( create_time , :32 ) , now ( ) ) :33 :34 , add_days ) ) :35 ( ( devalue_percent_per_day / :36 ) * if ( :37 >= timestampdiff ( day , date_format ( create_time , :38 ) , now ( ) ) :39 :40 :41 add_days :42 keeping_days , :43 , timestampdiff ( day , date_format ( create_time , :44 ) , now ( ) ) :45 :46 :47 add_days :48 keeping_days ) ) ) * amount_pay ) , update_time = now ( ) where state = :49 and update_time <= curdate ( ) and ( create_time >= date_add ( curdate ( ) , interval :50 ( add_days :51 keeping_days :52 :53 ) day ) or ( amount_added > :54 and create_time < date_add ( curdate ( ) , interval :55 ( add_days :56 keeping_days :57 :58 ) day ) ) ) -- 判断条件 在增值时间内 增值金大于0 状态正常|1|3|3||0|0|113970|113970|0|0|
||load data local infile 'import_data/885278795660111872_20190605111230_1_integral.csv' replace into table user_service.erp_integral_log character set utf8mb4 fields terminated by :1 lines starting by :2 ( tenant_id , tenant_wechatapp_id , integral_erp_id , member_erp_id , note_erp_id , remark , integral , erp_create_time ) set update_time = now ( )|1|3|3||0|0|0|0|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_826961354203107328 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|1|1|1||0|0|167990|167990|3000|3000|
|tag_service|delete from tag_service.label_vip_match_818691468687347712 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_818691468687347712 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|1|1||0|0|33892|33892|0|0|
|account|select id , tenant_id , tenant_wechatapp_id , account_type , user_id , mch_billno , send_name , mch_id , sub_mch_id , wxappid , msgappid , re_openid , total_amount , total_num , wishing , client_ip , act_name , remark , scene_id , risk_info , consume_mch_id , send_time , order_status , failure_reason , biz_id , biz_type , biz_tag , send_listid , need_callback , create_time , update_time , user_name , mobile_no , receive_time , refund_amount , refund_time from wx_redpacket_send_order where order_status in ( :1 , :2 ) order by id desc|1|1|1||0|0|15237|15237|2|2|
|user_service|select count ( 0 ) from tenant_user tenantuser join user user on tenantuser.user_id = user.id where user_id != :1 and tenant_app_id = :2|1|5|5||0|0|63899|63899|1|1|
|tag_service|delete from tag_service.label_vip_match_817161814168092672 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_817161814168092672 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|1|1||0|0|44622|44622|0|0|
|tag_service|delete from tag_service.label_vip_match_821174502091165696 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_821174502091165696 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|2|2||0|0|54722|54722|0|0|
|statistic|select max ( statistic_date ) enddate from result_shop_status where tenant_id = :1 and tenant_app_id = :2 group by tenant_id|1|2|2||0|0|125122|125122|1|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_471320523331211264 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|1|2|2||0|0|84701|84701|153|153|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_828778547559579648 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|1|1|1||0|0|231239|231239|3000|3000|
|user_service|select tenantuser.user_id , user.nick_name , tenantuser.head_img_url , user.sex , user.mobile_no as mobile , user.country , user.province , user.city from tenant_user tenantuser join user user on tenantuser.user_id = user.id where ( tenantuser.tenant_app_id = :1 and tenantuser.user_id not in ( :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 ) and ( user.nick_name like concat ( :52 , :53 , :54 ) or user.mobile_no = :55 ) ) order by tenantuser.create_time desc limit :56|1|3|3||0|0|1987391|1987391|1|1|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_818632945152598016 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|1|2|2||0|0|9695|9695|1|1|
|activity_service|/* applicationname = datagrip 2018.2.2 */ select es.* from tenant.erp_sales es left join tenant.erp_employee ee on es.tenant_id = ee.tenant_id and es.employee_erp_id = ee.employee_erp_id where ee.id is null|1|44|44||0|0|5713550|5713550|901600|901600|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_487569764496052224 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|1|4|4||0|0|7745|7745|1|1|
|statistic|select count ( 0 ) from ( select mb.member_user_id memberuserid , mb.user_name username , mb.mobile_no mobileno , mb.age , mb.sex sex , mb.status status , mb.birthday birthday , mb.memorial_name memorialname , mb.memorial_day memorialday , mb.source_type sourcetype , mb.identity , if ( mt.grade_erp_id is null , '无' , gd.grade_name ) gradename , mt.sales_balance salesbalance , mt.sales_amount salesamount , mt.consumption_integral consumptionintegral , mt.cumulation cumulation , mt.balance balance , mt.service_amount serviceamount , mt.registe_time registetime , mt.first_shop_time firstshoptime , mt.last_shop_time lastshoptime , mt.first_sales_time firstsalestime , mt.last_sales_time lastsalestime , mt.last_login_time lastlogintime , mt.follow_time followtime , mt.cancel_follow_time cancelfollowtime , mt.bind_time bindtime , mt.last_service_time lastservicetime , mt.category_name categoryname , tw.brand_name tenantappname , mb.cancel_flag cancelflag , mb.subscribe_flag subscribeflag , mb.bind_flag bindflag , mb.full_flag fullflag , ifnull ( os.shop_name , '未知' ) shop_name , if ( oe.employee_user_id = '-1' or oe.employee_user_id is null , :1 , oe.employee_user_name ) employee_user_name from statistic.member mb left join statistic.member_extra mt on mb.id = mt.id left join tenant.tenant_wechatapp tw on mb.tenant_app_id = tw.id left join statistic.grade gd on mt.tenant_id = gd.tenant_id and mt.grade_erp_id = gd.grade_erp_id left join statistic.off_shop os on mt.tenant_app_id = os.tenant_app_id and ( mt.shop_id = os.shop_id or mt.shop_id = os.dept_erp_id ) left join statistic.off_employee oe on mt.tenant_app_id = oe.tenant_app_id and ( mt.employee_user_id = oe.employee_erp_id or mt.employee_user_id = oe.employee_user_id ) where mb.tenant_id = :2 and mb.tenant_app_id = :3 and mb.register_flag = :4 ) tmp_count|1|1|1||0|0|142706|142706|1|1|
|user_service|select * from user_employee where employee_erp_id = :1 and tenant_id = :2 and date_format ( update_time , :3 ) = date_format ( now ( ) , :4 )|1|1|1||0|0|588048|588048|90|90|
|tenant|select *from tenant.erp_sales where tenant_wechatapp_id = :1 and to_days ( sales_date ) -to_days ( now ( ) ) = :2 and is_sales = true|1|4|4||0|0|698823|698823|269|269|
|statistic|select t.shop_id id , t.shop_name name , t.totalamount , t.finishamount , t.finish_rate finishrate from ( select ec.shop_id , ec.shop_name , ec.totalamount , ec.finishamount , if ( ec.totalamount = 0 , 100 , round ( ec.finishamount*100/ec.totalamount , 2 ) ) finish_rate from ( select shop_id , shop_name , sum ( total_amount ) totalamount , sum ( finish_amount ) finishamount from result_employee_task where tenant_id = :1 and expire_date between :2 and :3 and shop_id != :4 and user_id != :5 group by shop_id , shop_name ) ec ) t order by t.finish_rate desc|1|2|2||0|0|32601|32601|27|27|
|platform|select `tasktype` , `tasktime` , `taskstatus` , `bid` , `vendorid` , `uid` , `completetime` , `remark` , `createtime` , `id` from `taskassignment` where `bid` = :1 and `tasktype` = :2 and `tasktime` = :3 and `vendorid` = :4 and `uid` = :5|1|1|1||0|0|620977|620977|0|0|
|platform|select count ( 1 ) from `taskassignment` ta where ta.tasktype = :1 and ( ta.taskstatus = :2 or ta.taskstatus = :3 ) and vendorid = :4 and uid = :5|1|1|1||0|0|621119|621119|1|1|
|user_service|select employee_erp_id as employeeerpid , count ( * ) as membernum from erp_member t where t.tenant_id = :1 and t.tenant_wechatapp_id = :2 and t.employee_erp_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 ) group by employee_erp_id|1|1|1||0|0|6283|6283|21|21|
|user_service|select employee_erp_id as employeeerpid , count ( * ) as membernum from erp_member t where t.tenant_id = :1 and t.tenant_wechatapp_id = :2 and t.employee_erp_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 ) group by employee_erp_id|1|1|1||0|0|1457|1457|13|13|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_889699715132813312 where tenant_app_id = :1 and vip_id = :2|1|1|1||0|0|42995|42995|1|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_836408967545536512 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|1|1|1||0|0|173949|173949|3000|3000|
|activity_service|select assist_task_activity_id as id , count ( distinct user_id ) as partakenum , sum ( if ( partake_type = 'appoint' and status = :1 , :2 , :3 ) ) as appointnum , sum ( if ( partake_type = :4 , :5 , :6 ) ) as applynum , sum ( if ( partake_type = :7 and status >= :8 , :9 , :10 ) ) as finishnum from assist_task_user where assist_task_activity_id in ( :11 , :12 , :13 , :14 ) group by assist_task_activity_id|1|2|2||0|0|339699|339699|4|4|
|statistic|update erp_sales_823688108565368832 set user_id = null , user_name = :1 , mobile_no = :2 where tenant_app_id = :3 and member_erp_id = :4 and user_name is null|1|1|1||0|0|3318|3318|0|0|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_817878088380628992 where tenant_app_id = :1 and vip_id = :2|1|5|5||0|0|136668|136668|1|1|
|tag_service|delete from tag_service.label_vip_match_818632945152598016 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_818632945152598016 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|2|2||0|0|38215|38215|0|0|
|tag_service|delete from tag_service.label_vip_match_482207042405273600 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_482207042405273600 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|1|1||0|0|52136|52136|0|0|
|tag_service|insert into tag_service.label_vip_match_876595466006016000 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_876595466006016000 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|1|2|2||0|0|117509|117509|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_819000302970638336 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|1|1|1||0|0|179751|179751|137|137|
|coupon_service|select count ( 0 ) from coupon_user where coupon_template_id = :1|1|1|1||0|0|346512|346512|1|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_482207042405273600 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|1|1|1||0|0|387402|387402|100|100|
|tag_service|delete from tag_service.label_vip_match_818709690610388992 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_818709690610388992 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|1|1||0|0|18518|18518|0|0|
|statistic|select ec.scene , ec.totalamount , ec.finishamount , if ( ec.totalamount = 0 , 100 , round ( ec.finishamount*100/ec.totalamount , 2 ) ) finishrate from ( select scene , sum ( total_amount ) totalamount , sum ( finish_amount ) finishamount from result_employee_task where tenant_id = :1 and expire_date between :2 and :3 and user_id != :4 and shop_name != :5 group by scene ) ec order by ec.scene|1|2|2||0|0|32521|32521|7|7|
|tag_service|insert into tag_service.label_vip_match_818707624273952768 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_818707624273952768 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|1|2|2||0|0|1825124|1825124|0|0|
|activity_service|/* applicationname = datagrip 2018.2.2 */ select es.* from tenant.erp_sales es left join tenant.erp_employee ee on es.tenant_id = ee.tenant_id and es.employee_erp_id = ee.employee_erp_id where ee.id is null order by es.sales_date desc|1|25|25||0|0|4839452|4839452|502|502|
|tag_service|insert into tag_service.label_vip_match_819000302970638336 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_819000302970638336 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|1|1|1||0|0|913010|913010|0|0|
|tag_service|delete from tag_service.label_vip_match_477416547359526912 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_477416547359526912 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|1|1||0|0|34573|34573|0|0|
|user_service|select id , plat_unionid , plat_openid , user_name , mobile_no , nick_name , sex , head_img_url , country , province , city , status , create_time , update_time , is_subscribe , subscribe_time from `user` where user_name like concat ( :1 , :2 , :3 ) or mobile_no = :4 or nick_name like concat ( :5 , :6 , :7 ) limit :8|1|2|2||0|0|1942467|1942467|1|1|
|platform|select sum ( quantity ) from salesdetaillog where salestype = :1 and slid in ( select id from saleslog where vendorid = :2 and `status` = :3 and date_format ( salesdate , :4 ) >= :5 and date_format ( salesdate , :6 ) < :7 )|1|1|1||0|0|9361|9361|1|1|
|statistic|select max ( statistic_date ) enddate from result_shop_status where tenant_id = :1 group by tenant_id|1|2|2||0|0|125122|125122|1|1|
|tag_service|delete from tag_service.label_vip_match_818984074398965760 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_818984074398965760 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|2|2||0|0|26240|26240|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_818707624273952768 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|1|1|1||0|0|720071|720071|3000|3000|
|tag_service|delete from tag_service.label_vip_match_818707624273952768 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_818707624273952768 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|2|2||0|0|46120|46120|0|0|
|statistic|select t.shop_id id , t.shop_name name , t.saleamount , t.waramount , t.finish_rate finishrate from ( select ec.shop_id , ec.shop_name , ec.saleamount , ec.waramount , if ( ec.saleamount = 0 , 100 , round ( ec.waramount*100/ec.saleamount , 2 ) ) finish_rate from ( select ec.shop_id , ec.shop_name , sum ( ec.sale_amount ) saleamount , sum ( ec.war_amount ) waramount from result_employee_warranty ec where ec.tenant_id = :1 and ec.shop_id != :2 and ec.sales_date between :3 and :4 group by ec.shop_id , ec.shop_name ) ec ) t order by t.finish_rate desc|1|9|9||0|0|854936|854936|20|20|
|account|/* applicationname = datagrip 2018.2.2 */ select * from statistic.backlog where tenant_app_id = :1 and user_id = :2 and scene = :3|1|10|10||0|0|1112117|1112117|80|80|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_816440425157005312 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|1|1|1||0|0|89990|89990|3000|3000|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_836363095600320512 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|1|1|1||0|0|1625|1625|1|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_471320523331211264 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|1|1|1||0|0|236661|236661|173|173|
|statistic|select t.shop_id id , t.shop_name name , t.saleamount , t.waramount , t.finish_rate finishrate from ( select ec.shop_id , ec.shop_name , ec.saleamount , ec.waramount , if ( ec.saleamount = 0 , 100 , round ( ec.waramount*100/ec.saleamount , 2 ) ) finish_rate from ( select ec.shop_id , ec.shop_name , sum ( ec.sale_amount ) saleamount , sum ( ec.war_amount ) waramount from result_employee_warranty ec where ec.tenant_id = :1 and ec.shop_id != :2 and ec.tenant_app_id = :3 and ec.sales_date between :4 and :5 group by ec.shop_id , ec.shop_name ) ec ) t order by t.finish_rate desc|1|9|9||0|0|854868|854868|3|3|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_823844580729339904 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|1|6|6||0|0|16965|16965|1|1|
|statistic|select count ( 0 ) from ( select tmp.shop_id shopid , tmp.shop_name shopname , tmp.user_id userid , tmp.user_name username , tmp.sale_amount saleamount , tmp.war_amount waramount , tmp.warrate from ( select t.shop_id , t.shop_name , t.user_id , t.user_name , t.sale_amount , t.war_amount , if ( sale_amount = 0 , 0 , round ( t.war_amount*100/t.sale_amount , 2 ) ) warrate from ( select ec.shop_id , ec.shop_name , ec.user_id , ec.user_name , sum ( ifnull ( ec.sale_amount , 0 ) ) sale_amount , sum ( ifnull ( ec.war_amount , 0 ) ) war_amount from statistic.result_employee_warranty ec where ec.tenant_id = :1 and ec.shop_id != :2 and ec.user_name != :3 and ec.tenant_app_id = :4 and ec.sales_date between :5 and :6 group by ec.shop_id , ec.shop_name , ec.user_id , ec.user_name ) t ) tmp order by tmp.warrate asc ) tmp_count|1|1|1||0|0|854952|854952|1|1|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_836363095600320512 where tenant_app_id = :1 and vip_id = :2|1|2|2||0|0|56727|56727|1|1|
|statistic|update erp_sales_476787156229165056 set user_id = :1 , user_name = :2 , mobile_no = :3 where tenant_app_id = :4 and member_erp_id = :5 and user_name is null|1|1|1||0|0|4316|4316|0|0|
|user_service|select count ( 0 ) from tenant_user tenantuser join user user on tenantuser.user_id = user.id where ( tenantuser.tenant_app_id = :1 and tenantuser.user_id not in ( :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 ) and ( user.nick_name like concat ( :99 , :100 , :101 ) or user.mobile_no = :102 ) )|1|3|3||0|0|5947|5947|1|1|
|statistic|select count ( 0 ) from ( select mb.member_user_id memberuserid , mb.user_name username , mb.mobile_no mobileno , mb.age , mb.sex sex , mb.status status , mb.birthday birthday , mb.memorial_name memorialname , mb.memorial_day memorialday , mb.source_type sourcetype , mb.identity , if ( mt.grade_erp_id is null , '无' , gd.grade_name ) gradename , mt.sales_balance salesbalance , mt.sales_amount salesamount , mt.consumption_integral consumptionintegral , mt.cumulation cumulation , mt.balance balance , mt.service_amount serviceamount , mt.registe_time registetime , mt.first_shop_time firstshoptime , mt.last_shop_time lastshoptime , mt.first_sales_time firstsalestime , mt.last_sales_time lastsalestime , mt.last_login_time lastlogintime , mt.follow_time followtime , mt.cancel_follow_time cancelfollowtime , mt.bind_time bindtime , mt.last_service_time lastservicetime , mt.category_name categoryname , tw.brand_name tenantappname , mb.cancel_flag cancelflag , mb.subscribe_flag subscribeflag , mb.bind_flag bindflag , mb.full_flag fullflag , ifnull ( os.shop_name , '未知' ) shop_name , if ( oe.employee_user_id = '-1' or oe.employee_user_id is null , :1 , oe.employee_user_name ) employee_user_name from statistic.member mb left join statistic.member_extra mt on mb.id = mt.id left join tenant.tenant_wechatapp tw on mb.tenant_app_id = tw.id left join statistic.grade gd on mt.tenant_id = gd.tenant_id and mt.grade_erp_id = gd.grade_erp_id left join statistic.off_shop os on mt.tenant_app_id = os.tenant_app_id and ( mt.shop_id = os.shop_id or mt.shop_id = os.dept_erp_id ) left join statistic.off_employee oe on mt.tenant_app_id = oe.tenant_app_id and ( mt.employee_user_id = oe.employee_erp_id or mt.employee_user_id = oe.employee_user_id ) where mb.tenant_id = :2 and mb.tenant_app_id = :3 and mb.source_type = :4 and mb.create_time >= :5 and mb.create_time <= :6 and mb.register_flag = :7 ) tmp_count|1|1|1||0|0|29349|29349|1|1|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_490810080325931008 where tenant_app_id = :1 and vip_id = :2|1|5|5||0|0|140596|140596|1|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_491650258254827520 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|1|1|1||0|0|209519|209519|3000|3000|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_818691468687347712 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|1|1|1||0|0|1768|1768|8|8|
|platform|select count ( 1 ) from `smssent` where vendorid = :1 and success = true and date_sub ( date ( :2 ) , interval :3 day ) = date_format ( senttime , :4 )|1|3|3||0|0|66068|66068|1|1|
|activity_service|select count ( 0 ) from activity_service.user_trace t1 join activity_service.activity t2 on t1.activity_id = t2.id where t1.status = :1 and t2.tenant_wechatapp_id = :2 and t2.activity_type = :3 and t1.step = :4|1|4|4||0|0|537927|537927|1|1|
|platform|select `vendorid` , `vendormemberid` , `wechatmemberid` , `openid` , `payopenid` , `unionid` , `nickname` , `headimgurl` , `employeeid` , `luckybean` , `mobileno` , `createtime` , `updatetime` , `qrticket` , `qrurl` , `introducerid` , `id` from `member` where `vendorid` = :1 and `mobileno` = :2|1|2|2||0|0|9828|9828|9828|9828|
|tag_service|select t.vip_id as vipid , t.vip_source as vipsource , t.shop_id as shopid , t.tenant_app_id as tenantappid , m.mobile_no as mobileno from tag_service.label_vip_match_821174502091165696 t join statistic.member m on t.id = m.id where t.tenant_app_id = :1 and match ( `vip_label` ) against ( :2 in boolean mode ) limit :3 , :4|1|3|3||0|0|72|72|36|36|
|tag_service|delete from tag_service.label_vip_match_489024659472388096 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_489024659472388096 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|1|1||0|0|34384|34384|0|0|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_821174502091165696 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|1|4|4||0|0|20476|20476|1|1|
|account|select id , tenant_id , tenant_app_id , account_type , owner_type , owner_id , balance , cumulation , status from account where owner_type = :1 and balance < :2 and account_type = :3|1|15|15||0|0|4229887|4229887|41|41|
|tag_service|delete from tag_service.batch_job_execution_params where job_execution_id <= :1|1|6|6||0|0|376724|376724|0|0|
|tag_service|delete from tag_service.label_vip_match_816869802005020672 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_816869802005020672 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|1|2|2||0|0|47494|47494|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_814020764498956288 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|1|2|2||0|0|145140|145140|39|39|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_891434732540272640 where tenant_app_id = :1 and vip_id = :2|1|2|2||0|0|67330|67330|1|1|
|tag_service|insert into tag_service.label_vip_match_482207042405273600 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_482207042405273600 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|1|2|2||0|0|1033826|1033826|0|0|
|user_service|select * from erp_integral_log where tenant_id = :1 and update_time >= :2 and update_time <= :3 order by tenant_wechatapp_id , member_erp_id|1|5|5||0|0|725280|725280|14954|14954|
|tag_service|insert into tag_service.label_vip_match_891434732540272640 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_891434732540272640 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|1|3|3||0|0|538802|538802|0|0|
|account|/* applicationname = datagrip 2018.2.2 */ select * from statistic.member where mobile_no = :1|2|29|24||0|0|10094608|5047304|2|1|
|tag_service|insert into tag_service.label_vip_match_488003299602206720 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_488003299602206720 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|8|5||0|0|9643869|4822756|0|0|
|tag_service|insert into tag_service.label_vip_match_836363095600320512 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_836363095600320512 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|3|2||0|0|5837691|2922321|0|0|
|tag_service|delete from tag_service.label_vip_match_821229068421742592 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_821229068421742592 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|19|12||0|0|678873|339443|0|0|
|tag_service|insert into tag_service.label_vip_match_816096827580399616 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_816096827580399616 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|5|3||0|0|6384909|3192781|0|0|
|tag_service|insert into tag_service.label_vip_match_490810080325931008 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_490810080325931008 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|13|9||0|0|15563995|7783503|0|0|
|tag_service|delete from tag_service.label_vip_match_826254702915141632 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_826254702915141632 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|2|1||0|0|117699|58851|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_816450513213112320 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|2|2|1||0|0|305981|215991|6000|3000|
|tag_service|delete from tag_service.label_vip_match_490810080325931008 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_490810080325931008 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|13|8||0|0|562186|281098|0|0|
|tag_service|delete from tag_service.label_vip_match_816096827580399616 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_816096827580399616 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|5|3||0|0|223961|111981|0|0|
|tag_service|delete from tag_service.label_vip_match_839295151019966464 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_839295151019966464 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|10|5||0|0|442476|221238|0|0|
|tag_service|insert into tag_service.label_vip_match_480726380749918208 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_480726380749918208 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|33|24||0|0|44605597|22315625|0|0|
|tag_service|delete from tag_service.label_vip_match_882402759662481408 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_882402759662481408 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|4|2||0|0|235256|117628|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_814640285408600064 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|2|3|2||0|0|2728233|1694299|588|318|
|tag_service|delete from tag_service.label_vip_match_823688108565368832 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_823688108565368832 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|25|14||0|0|1161798|580902|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_821174502091165696 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|2|3|2||0|0|3119773|1945274|340|185|
|coupon_service|select id as usercouponid , coupon_no as couponno , end_time as endtime , begin_time as begintime , face_value as facevalue , coupon_name as couponname , coupon_type as coupontype , remark , exchange_shop , off_type from coupon_user where owner_id = :1 and coupon_template_id = :2 and coupon_state = :3 and end_time > now ( ) limit :4|2|5|4||0|0|690980|346046|1|1|
|tag_service|delete from tag_service.label_vip_match_830220893509701632 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_830220893509701632 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|10|5||0|0|565745|282873|0|0|
|tag_service|insert into tag_service.label_vip_match_823688108565368832 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_823688108565368832 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|30|21||0|0|35448936|17728415|0|0|
|tag_service|insert into tag_service.label_vip_match_826954007829331968 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_826954007829331968 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|16|11||0|0|6967942|3484001|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_835720547919761408 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|2|4|3||0|0|36892|20997|5229|3000|
|tag_service|delete from tag_service.label_vip_match_828766757295529984 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_828766757295529984 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|4|2||0|0|215837|107921|0|0|
|tag_service|insert into tag_service.label_vip_match_823844580729339904 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_823844580729339904 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|44|24||0|0|106173119|53093936|0|0|
|tag_service|delete from tag_service.label_vip_match_891434732540272640 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_891434732540272640 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|11|8||0|0|269228|134620|0|0|
|tag_service|delete from tag_service.label_vip_match_480726380749918208 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_480726380749918208 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|24|18||0|0|728227|364153|0|0|
|tag_service|insert into tag_service.label_vip_match_821229068421742592 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_821229068421742592 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|42|26||0|0|85937859|42987432|0|0|
|tag_service|delete from tag_service.label_vip_match_885278795660111872 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_885278795660111872 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|26|13||0|0|1191507|595855|0|0|
|tag_service|select bg.* from employee.backlog bg left join customer.customer_maintain_follow cm on bg.id = cm.remind_task_id where bg.scene = :1 and bg.status = :2 and cm.id is null|2|19|17||0|0|1254510|627255|0|0|
|tag_service|insert into tag_service.label_vip_match_885278795660111872 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_885278795660111872 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|14|7||0|0|18534935|9292953|0|0|
|tag_service|delete from tag_service.label_vip_match_487569764496052224 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_487569764496052224 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|14|10||0|0|448156|224084|0|0|
|tag_service|delete from tag_service.label_vip_match_826954007829331968 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_826954007829331968 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|25|14||0|0|1071956|535978|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_816869802005020672 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|2|4|2||0|0|1193756|638785|5215|3000|
|tag_service|delete from tag_service.label_vip_match_486900027235635200 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_486900027235635200 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|10|6||0|0|442800|221400|0|0|
|tag_service|delete from tag_service.label_vip_match_816450513213112320 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_816450513213112320 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|6|3||0|0|263240|131620|0|0|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_471320523331211264 where tenant_app_id = :1 and vip_id = :2|2|2|1||0|0|69256|34628|2|1|
|tag_service|delete from tag_service.label_vip_match_823709122435256320 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_823709122435256320 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|5|3||0|0|198060|99030|0|0|
|tag_service|delete from tag_service.label_vip_match_814640285408600064 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_814640285408600064 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|4|2||0|0|225668|112834|0|0|
|tag_service|delete from tag_service.label_vip_match_841816981308002304 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_841816981308002304 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|2|1||0|0|133528|66764|0|0|
|tag_service|delete from tag_service.label_vip_match_817878088380628992 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_817878088380628992 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|14|9||0|0|546361|273181|0|0|
|tag_service|delete from tag_service.label_vip_match_823844580729339904 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_823844580729339904 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|45|28||0|0|1103109|551563|0|0|
|tag_service|delete from tag_service.label_vip_match_817517269994225664 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_817517269994225664 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|8|5||0|0|314276|157138|0|0|
|tag_service|insert into tag_service.label_vip_match_814640285408600064 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_814640285408600064 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|4|2||0|0|6599107|3300186|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_836363095600320512 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|2|4|2||0|0|4057846|2937650|649|338|
|tag_service|delete from tag_service.label_vip_match_819000302970638336 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_819000302970638336 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|4|3||0|0|145232|72616|0|0|
|tag_service|delete from tag_service.label_vip_match_818623050667823104 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_818623050667823104 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|10|7||0|0|323470|161750|0|0|
|tag_service|delete from tag_service.label_vip_match_469175049962786816 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_469175049962786816 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|10|7||0|0|277788|138894|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_823709122435256320 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|2|2|1||0|0|95915|50190|30|18|
|tag_service|delete from tag_service.label_vip_match_876595466006016000 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_876595466006016000 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|7|5||0|0|156102|78054|0|0|
|tag_service|delete from tag_service.label_vip_match_471320523331211264 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_471320523331211264 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|4|3||0|0|138434|69218|0|0|
|tag_service|delete from tag_service.label_vip_match_835720547919761408 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_835720547919761408 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|7|5||0|0|164036|82018|0|0|
|tag_service|insert into tag_service.label_vip_match_834615931371048960 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_834615931371048960 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|7|5||0|0|6479497|3240332|0|0|
|tag_service|insert into tag_service.label_vip_match_487569764496052224 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_487569764496052224 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|17|12||0|0|23662107|11835188|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_482207042405273600 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|2|2|1||0|0|1358323|732969|5641|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_469175049962786816 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|2|2|1||0|0|685374|591786|5922|3000|
|tag_service|delete from tag_service.label_vip_match_488003299602206720 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_488003299602206720 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|15|10||0|0|509940|254972|0|0|
|tag_service|delete from tag_service.label_vip_match_827516559562940416 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_827516559562940416 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|24|15||0|0|991101|495581|0|0|
|tag_service|delete from tag_service.label_vip_match_814019237554196480 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_814019237554196480 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|4|2||0|0|189153|94577|0|0|
|tag_service|delete from tag_service.label_vip_match_814020764498956288 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_814020764498956288 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|4|2||0|0|208192|104096|0|0|
|tag_service|insert into tag_service.label_vip_match_814019237554196480 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_814019237554196480 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|5|3||0|0|7188650|3594482|0|0|
|tag_service|delete from tag_service.label_vip_match_836363095600320512 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_836363095600320512 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|4|2||0|0|226385|113193|0|0|
|tag_service|insert into tag_service.label_vip_match_818623050667823104 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_818623050667823104 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|8|6||0|0|3397578|1699245|0|0|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_480726380749918208 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|2|4|2||0|0|9808|4908|2|1|
|tag_service|insert into tag_service.label_vip_match_471320523331211264 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_471320523331211264 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|5|3||0|0|852111|426200|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_818707624273952768 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|2|2|1||0|0|2951294|1684867|598|309|
|tag_service|insert into tag_service.label_vip_match_817517269994225664 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_817517269994225664 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|5|4||0|0|5847670|2924695|0|0|
|tag_service|insert into tag_service.label_vip_match_821174502091165696 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_821174502091165696 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|3|2||0|0|4384033|2194195|0|0|
|tag_service|insert into tag_service.label_vip_match_830220893509701632 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_830220893509701632 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|11|7||0|0|17461548|8731186|0|0|
|tag_service|delete from tag_service.label_vip_match_816440425157005312 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_816440425157005312 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|3|2||0|0|147012|73506|0|0|
|tag_service|delete from tag_service.label_vip_match_889699715132813312 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_889699715132813312 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|4|2||0|0|171953|85979|0|0|
|tag_service|delete from tag_service.label_vip_match_490540971604447232 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_490540971604447232 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|2|3|2||0|0|114956|57478|0|0|
|tag_service|insert into tag_service.label_vip_match_827516559562940416 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_827516559562940416 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|2|68|47||0|0|117317454|59042007|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_889699715132813312 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|3|4|2||0|0|950635|463288|79|39|
|statistic|select max ( statistic_date ) enddate from result_shop_user where tenant_id = :1 and tenant_app_id = :2 group by tenant_id|3|16|13||0|0|5802645|1934215|3|1|
|tag_service|insert into tag_service.label_vip_match_486900027235635200 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_486900027235635200 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|3|6|3||0|0|7326152|3612871|0|0|
|statistic|select count ( 0 ) from backlog where tenant_id = :1 and tenant_app_id = :2 and expire_time between :3 and :4 and shop_id = :5 and user_name > :6 and shop_name > :7|3|32|11||0|0|3336351|1112117|3|1|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_822257848045047808 where tenant_app_id = :1 and vip_id = :2|3|45|15||0|0|1199510|416752|1|1|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_839295151019966464 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|3|11|8||0|0|117741|57089|3|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_876595466006016000 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|3|4|2||0|0|309782|149794|49|24|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_814020764498956288 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|3|4|2||0|0|204055|115469|7768|3000|
|tag_service|insert into tag_service.label_vip_match_476787156229165056 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_476787156229165056 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|3|74|46||0|0|132504416|65746389|0|0|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_836408967545536512 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|3|7|3||0|0|52679|19986|3|1|
|statistic|select t.user_id id , t.user_name name , t.score from ( select ec.user_id , ec.user_name , round ( ec.score/ec.amount ) score from ( select ec.user_id , ec.user_name , sum ( ec.score ) score , sum ( ec.amount ) amount from result_employee_comment ec where ec.tenant_id = :1 and ec.tenant_app_id = :2 and ec.shop_id = :3 and ec.statistic_date between :4 and :5 and ec.score > :6 and ec.user_id != :7 group by ec.user_id , ec.user_name ) ec ) t order by t.score desc|3|5|2||0|0|227987|100692|19|13|
|user_service|select count ( 0 ) from tenant_user tu join user u on u.id = tu.user_id where tu.tenant_id = :1 and ( tu.user_name like concat ( :2 , :3 , :4 ) or tu.mobile_no = :5 or u.nick_name like concat ( :6 , :7 , :8 ) ) and tenant_app_id = :9|3|7|3||0|0|431166|143722|3|1|
|activity_service|/* applicationname = datagrip 2018.2.2 */ select es.* from tenant.erp_sales es left join tenant.erp_employee ee on es.tenant_id = ee.tenant_id and es.employee_erp_id = ee.employee_erp_id where ee.id is null and es.is_sales = :1 order by es.sales_date desc|3|77|36||0|0|18975825|9265732|443861|442857|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_841816981308002304 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|3|5|2||0|0|1643812|624998|8533|3000|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_839295151019966464 where tenant_app_id = :1 and vip_id = :2|3|12|5||0|0|332187|110729|2|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_826254702915141632 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|3|5|2||0|0|426700|182943|7317|3000|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_476787156229165056 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|3|15|11||0|0|130350|129534|3|1|
|tag_service|select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_476787156229165056 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) limit :9|3|5|2||0|0|8098|7282|12|10|
|platform|select vm.* from vendormember vm join member m on vm.id = m.vendormemberid and vm.vendorid = m.vendorid where m.employeeid = :1 and vm.vendorid = :2 and ( ( birthdaytype = :3 and month ( birthday ) = month ( date_sub ( curdate ( ) , interval :4 day ) ) and day ( birthday ) = day ( date_sub ( curdate ( ) , interval :5 day ) ) ) or ( birthdaytype = :6 and month ( birthday ) = month ( date_sub ( :7 , interval :8 day ) ) and day ( birthday ) = day ( date_sub ( :9 , interval :10 day ) ) ) )|3|6|2||0|0|87892|62544|48|47|
|user_service|select tenantuser.user_id , user.nick_name , tenantuser.head_img_url , user.sex , user.mobile_no as mobile , user.country , user.province , user.city from tenant_user tenantuser join user user on tenantuser.user_id = user.id where ( tenantuser.tenant_app_id = :1 and tenantuser.user_id not in ( :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 ) and ( user.nick_name like concat ( :51 , :52 , :53 ) or user.mobile_no = :54 ) ) order by tenantuser.create_time desc limit :55|3|19|13||0|0|5961767|1987391|3|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_823709122435256320 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|3|4|2||0|0|342582|155982|8339|3000|
|tag_service|select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_885278795660111872 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) limit :9|3|12|4||0|0|520784|256751|12|10|
|tag_service|delete from tag_service.label_vip_match_834615931371048960 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_834615931371048960 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|3|8|5||0|0|379323|126443|0|0|
|statistic|select t.user_id id , t.user_name name , t.amount from ( select user_id , user_name , sum ( amount ) amount from statistic.result_add_shop_user where tenant_id = :1 and tenant_app_id = :2 and shop_id = :3 and statistic_date between :4 and :5 and user_name > :6 group by user_id , user_name ) t order by t.amount desc|3|6|2||0|0|754107|251417|51|29|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_480726380749918208 where tenant_app_id = :1 and vip_id = :2|3|18|6||0|0|546729|182243|3|1|
|tag_service|select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_821229068421742592 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) limit :9 , :10|3|6|2||0|0|139231|52585|28|10|
|tag_service|select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_821229068421742592 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) limit :9|3|7|3||0|0|108615|36809|30|10|
|tag_service|delete from tag_service.label_vip_match_476787156229165056 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_476787156229165056 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|4|47|31||0|0|2939707|734956|0|0|
|activity_service|select count ( 0 ) from ( select t2.user_name as username , t2.data as userheadimg , ifnull ( t1.finished_time , t1.update_time ) as time , t1.cutdown_amount as cutdownamount , t2.partake_data as partakedata from activity_service.cutdown_price_activity_apply t1 join activity_service.user_trace t2 on t1.id = t2.user_apply_id and t2.step = :1 where t1.activity_id = :2 ) table_count|4|4|1||0|0|182608|68991|4|1|
|user_service|select count ( * ) from tenant_user where tenant_app_id = :1 and shop_id = :2 and mobile_no is not null and mobile_no != :3|4|15|6||0|0|245003|107471|4|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_835720547919761408 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|4|5|2||0|0|258725|99665|59|19|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_476787156229165056 where tenant_app_id = :1 and vip_id = :2|4|49|12||0|0|1470144|367536|4|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_814019237554196480 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|4|11|3||0|0|13263201|3595586|1129|419|
|tag_service|insert into tag_service.label_vip_match_817878088380628992 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_817878088380628992 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|4|7|3||0|0|5616042|1777539|0|0|
|user_service|select count ( 0 ) from ( select t1.erp_member_id as membererpid , t2.head_img_url as headimgurl , t2.nick_name as nickname , t1.mobile_no as mobileno , date_format ( t1.bind_time , '%y-%m-%d%h:%i:%s' ) as registertime from tenant_user t1 join `user` t2 on t1.user_id = t2.id left join user_employee t3 on t1.user_id = t3.user_id and t1.tenant_id = t3.tenant_id and t1.tenant_app_id = t3.tenant_wechatapp_id where t3.id is null and t1.mobile_no is not null and t1.mobile_no != :1 and t1.erp_member_id is not null and t1.shop_id = :2 and t1.tenant_id = :3 and t1.tenant_app_id = :4 ) table_count|5|16|7||0|0|116525|46304|5|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_891434732540272640 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|5|7|2||0|0|2408473|605504|338|154|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_828766757295529984 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|5|8|2||0|0|2893627|869248|700|189|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_882402759662481408 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|5|7|2||0|0|2584414|652622|305|86|
|statistic|select t.user_id id , t.user_name name , t.saleamount , t.waramount , t.finish_rate finishrate from ( select ec.user_id , ec.user_name , ec.saleamount , ec.waramount , if ( ec.saleamount = 0 , 100 , round ( ec.waramount*100/ec.saleamount , 2 ) ) finish_rate from ( select ec.user_id , ec.user_name , sum ( ec.sale_amount ) saleamount , sum ( ec.war_amount ) waramount from statistic.result_employee_warranty ec where ec.tenant_id = :1 and ec.shop_id = :2 and ec.user_id != :3 and ec.tenant_app_id = :4 and ec.sales_date between :5 and :6 group by ec.user_id , ec.user_name ) ec ) t order by t.finish_rate desc|5|34|8||0|0|4274436|854936|39|20|
|statistic|select max ( statistic_date ) enddate from result_shop_user where tenant_id = :1 group by tenant_id|5|22|12||0|0|9671075|1934215|5|1|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_885278795660111872 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|5|52|15||0|0|949202|274255|3|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_469175049962786816 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|5|7|2||0|0|1088915|505841|370|117|
|tag_service|insert into tag_service.label_vip_match_822257848045047808 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_822257848045047808 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|5|78|41||0|0|184198272|90086713|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_817517269994225664 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|5|11|3||0|0|5830072|1531682|14914|3000|
|bespoke|select count ( * ) from bespoke.bespoke_trade where user_id = :1 and tenant_app_id = :2 and status <> :3|5|10|3||0|0|114578|22916|5|1|
|user_service|select count ( 0 ) from `user` where user_name like concat ( :1 , :2 , :3 ) or mobile_no = :4 or nick_name like concat ( :5 , :6 , :7 )|5|14|9||0|0|9712334|1942467|5|1|
|platform|select `noteid` , `vendorid` , `detailindex` , `productname` , `productbarcode` , `category` , `salestype` , `quantity` , `amount` , `integral` , `productdesc` , `slid` , `paidamount` , `id` from `salesdetaillog` where `noteid` = :1 and `vendorid` = :2|5|15|5||0|0|495690|99230|18|9|
|tenant|select count ( 0 ) from erp_sales where tenant_id = :1 and tenant_wechatapp_id = :2 and sales_date >= :3 and employee_erp_id = :4 and sales_status = :5|6|8|2||0|0|1001310|166944|6|1|
|tag_service|insert into tag_service.label_vip_match_469175049962786816 ( id , tenant_app_id , shop_id , vip_id , vip_source ) select t1.id , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) left join tag_service.label_vip_match_469175049962786816 lvm on t1.id = lvm.id where t1.tenant_id = :1 and t1.tenant_app_id = :2 and lvm.id is null|6|20|7||0|0|2831777|733447|0|0|
|tag_service|select count ( 0 ) from ( select t1.user_id , t1.user_name , t1.mobile_no , t1.sex from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_821229068421742592 t3 on t1.id = t3.id where :1 = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5 and t2.employee_user_id = :6 and t3.vip_source = :7 and match ( t3.vip_label ) against ( :8 in boolean mode ) ) tmp_count|6|13|3||0|0|469442|95430|6|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_876595466006016000 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|6|9|2||0|0|653796|149796|16449|3000|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_487569764496052224 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|6|13|3||0|0|18080346|4770901|1656|396|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_830220893509701632 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|6|14|6||0|0|6807505|2326309|3408|990|
|user_service|select * from user_service.user where plat_unionid = :1|6|46|12||0|0|11637881|1942466|5|1|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_823844580729339904 where tenant_app_id = :1 and vip_id = :2|6|48|10||0|0|1655094|275849|6|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_814640285408600064 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|7|11|2||0|0|10441206|2095492|19767|3000|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_834615931371048960 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|7|12|2||0|0|12261812|3237353|502|178|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_821174502091165696 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|7|13|3||0|0|5504960|1192188|19887|3000|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_816096827580399616 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|7|13|3||0|0|11661644|3191800|575|146|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_819000302970638336 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|7|15|3||0|0|4788354|884167|19023|3000|
|platform|update vendormember vm inner join ( select sum ( integral ) as integral , sum ( if ( integral > 0 , integral , 0 ) ) as hisintegral from integrallog where vendorid = :1 and memberid = :2 and isdeleted = :3 ) s on :4 = :5 set vm.integral = ifnull ( s.integral , :6 ) , vm.hisintegral = ifnull ( s.hisintegral , :7 ) , vm.updatetime = now ( ) where vendorid = :8 and memberid = :9|7|8|1||0|0|4538|1308|0|0|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|8|25|5||0|0|2550088|318761|8|1|
|customer|select count ( 0 ) from customer_face_pass t where :1 = :2 and t.is_checkin = :3 and t.shop_id = :4 and t.person_type not in ( :5 )|8|32|11||0|0|1070836|209226|8|1|
|coupon_service|select id , tenant_id , tenant_wechatapp_id , coupon_template_id , coupon_no , coupon_state , owner_id , creator_id , creator_mobile_no , creator_name , user_name , mobile_no , create_channel , coupon_name , face_value , coupon_type , use_threshold , begin_time , end_time , remark , create_time , update_time , product_name , exchange_shop , channel_id , writeoff_user_id , off_type from coupon_user where coupon_template_id = :1 and owner_id = :2|8|38|9||0|0|2768839|346334|4|2|
|user_service|select * from user_employee where employee_erp_id = :1 and tenant_id = :2|8|15|4||0|0|4701067|588517|606|229|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_889699715132813312 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|8|12|2||0|0|3004242|463287|21117|3000|
|user_service|select tu.user_id as userid , tu.mobile_no as mobileno , tu.user_name as username , u.nick_name as nickname , u.head_img_url as headimgurl from tenant_user tu join `user` u on tu.user_id = u.id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and ( u.mobile_no = :3 or u.nick_name like concat ( :4 , :5 , :6 ) or tu.user_name like concat ( :7 , :8 , :9 ) )|9|29|5||0|0|339884|63528|403|304|
|customize_page|select q.page_id as id , page.title , page.valid_days , q.create_time , q.id as qualifiedid from customize_page.award_qualified q inner join customize_page.customize_page page on q.page_id = page.id inner join ( select aq.page_id from customize_page.award_qualified aq inner join customize_page.award_detail ad on aq.page_id = ad.page_id left join customize_page.award_receive_detail ard on aq.id = ard.qualified_id and ad.id = ard.award_id and aq.user_id = ard.user_id where ( aq.user_id = :1 or aq.tenant_app_open_id = :2 ) and ard.id is null and ( ( ad.put_quantity >= ad.get_quantity and ad.type = :3 ) or ad.type not in ( :4 ) ) group by aq.page_id ) as d on d.page_id = q.page_id where q.tenant_wechatapp_id = :5 and ( user_id = :6 or tenant_app_open_id = :7 ) and if ( page.valid_days = :8 , true , to_days ( now ( ) ) < ( to_days ( q.create_time ) :9 page.valid_days ) ) order by q.create_time desc|9|26|6||0|0|4472532|753871|0|0|
|statistic|select id , timestampdiff ( year , solar_birthday , '2019-06-0323:59:59.001' ) age from member where tenant_app_id = :1 and birthday_month_day = :2 limit :3 offset :4|9|16|3||0|0|2021690|342340|1959|684|
|tag_service|select distinct date_format ( create_time , '%y' ) from statistic.member where tenant_id = :1 and tenant_app_id = :2|10|19|3||0|0|2268133|342226|19|2|
|tag_service|delete from tag_service.label_vip_match_822257848045047808 where id in ( select id from ( select lvm.id from tag_service.label_vip_match_822257848045047808 lvm left join statistic.member t1 on t1.id = lvm.id where :1 = :2 and lvm.tenant_app_id = :3 and t1.id is null ) a )|10|89|59||0|0|9150218|915035|0|0|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_828766757295529984 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|10|17|4||0|0|4519047|693635|25120|3000|
|facepass_sync|select id , tenant_id , tenant_wechatapp_id , shop_id , status , retries , success_time , send_fail_msg , create_time , update_time , send_data from customer_face_register_message where status in ( :1 , :2 ) and retries < :3 limit :4|10|14|2||0|0|95625|9567|0|0|
|tag_service|select id , tenant_app_id , shop_id , vip_id , vip_source , vip_label from label_vip_match_885278795660111872 where tenant_app_id = :1 and vip_id = :2|10|101|12||0|0|2993240|299324|7|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_891434732540272640 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|11|15|2||0|0|4998266|597312|30368|3000|
|statistic|select max ( statistic_date ) enddate from result_shop_source where tenant_id = :1 and tenant_app_id = :2 group by tenant_id|11|25|5||0|0|3828528|348048|11|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_816096827580399616 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|11|27|5||0|0|17186965|2397482|32330|3000|
|statistic|select max ( statistic_date ) enddate from result_shop_grade where tenant_id = :1 and tenant_app_id = :2 group by tenant_id|11|28|6||0|0|4644068|422188|11|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_480726380749918208 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|11|42|10||0|0|48011612|11844461|2782|496|
|statistic|select sum ( amount ) amount from result_shop_user where tenant_id = :1 and tenant_app_id = :2 and shop_id = :3 and statistic_date = ( select max ( statistic_date ) from result_shop_user where tenant_id = :4 and tenant_app_id = :5 and shop_id = :6 and user_name > :7 group by shop_id )|12|69|12||0|0|23211532|1934404|12|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_839295151019966464 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|12|20|2||0|0|1421539|226556|32329|3000|
|order|select tenant_wechatapp_id from order_info where status = :1 and child_status is null group by tenant_wechatapp_id|12|26|3||0|0|376994|31470|15|2|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_836363095600320512 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|13|38|7||0|0|20336614|2437988|37289|3000|
|platform|select `typefullname` , `methodname` , `arguments` , `partition` , `offset` , `createtime` , `updatetime` , `retried` , `errormsg` , `id` from `pushlog` where `typefullname` = :1 and `methodname` = :2 and `arguments` = :3|13|18|2||0|0|2784204|236220|1|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_818623050667823104 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|13|29|5||0|0|15086060|1780339|1476|165|
|customer|select count ( * ) as entershopcount , max ( t.enter_shop_time ) as lastentershoptime from customer_face_pass t where t.shop_id = :1 and t.mobile_no = :2 and t.is_checkin = :3|13|69|11||0|0|1651183|209258|13|1|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_490810080325931008 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|13|26|4||0|0|12777551|3296609|1400|216|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_882402759662481408 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|14|28|3||0|0|6160096|652164|39347|3000|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_488003299602206720 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|14|37|9||0|0|18745500|3998180|1892|373|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_814019237554196480 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|14|44|5||0|0|27318937|3295274|39788|3000|
|erp_sync|select * from erp_sync.retry_data where ( need_erp_member_id = :1 or ( need_erp_member_id = :2 and erp_member_id is not null ) ) and retry_times > :3 order by id asc|15|57|5||0|0|605803|40457|0|0|
|platform|select `tasktype` , `tasktime` , `taskstatus` , `bid` , `vendorid` , `uid` , `completetime` , `remark` , `createtime` , `id` from `taskassignment` where tasktype = :1 and vendorid = :2 and date_format ( tasktime , :3 ) >= curdate ( ) and ( taskstatus = :4 or taskstatus = :5 )|15|20|2||0|0|9316785|621119|7|5|
|facepass_sync|select id , tenant_id , tenant_wechatapp_id , shop_id , status , create_time , update_time , receive_data , response_data from customer_face_sync_message where status = :1 and create_time < date_add ( now ( ) , interval :2 minute ) order by id asc limit :3|16|58|5||0|0|669081|42781|16|1|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|16|24|2||0|0|343816|35457|16|1|
|activity_service|select id , tenant_id , tenant_wechatapp_id , activity_id , lottery_activity_id , user_id , head_img_url , user_name , mobile_no , prize_type , prize_name , prize_image_url , status , create_time , update_time , prize_data , winning_prize from lottery_winner where status = :1 and create_time < date_add ( now ( ) , interval :2 minute )|17|115|10||0|0|1014030|59920|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_821229068421742592 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|17|94|17||0|0|158574301|38100306|11308|1667|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_817517269994225664 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|17|25|3||0|0|13084287|3033433|2910|372|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_486900027235635200 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|18|32|3||0|0|14104084|3144268|230|65|
|authorization_service|update user_login_token set status = :1 where user_id = :2 and tenant_id = :3 and tenant_wx_app_id = :4 and login_way = :5|18|40|5||0|0|4525|951|0|0|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_827516559562940416 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|18|107|20||0|0|191668986|45406122|9279|1510|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_816450513213112320 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|18|24|2||0|0|3993891|477031|418|64|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_826954007829331968 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|19|68|11||0|0|15355184|3748206|216|28|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_834615931371048960 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|19|55|5||0|0|29242913|2988009|55211|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_818623050667823104 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|20|49|4||0|0|20712111|1698730|57335|3000|
|order|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|20|30|2||0|0|46126|2446|46126|2446|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_885278795660111872 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|20|146|21||0|0|41550816|8588074|5888|1099|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_823688108565368832 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|20|91|12||0|0|70411442|17452699|11440|1727|
|erp_sync|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|20|28|2||0|0|47264|2449|47264|2449|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_488003299602206720 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|24|97|10||0|0|66739151|4505015|71564|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_486900027235635200 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|25|86|7||0|0|42145743|3025756|72463|3000|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|25|50|4||0|0|1304338|99235|25|1|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_817878088380628992 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|25|39|3||0|0|12737191|1226216|69605|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_487569764496052224 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|34|145|7||0|0|115925432|7178553|97469|3000|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_817878088380628992 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|36|71|6||0|0|19385922|1917662|5375|374|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_490810080325931008 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|40|134|7||0|0|90468627|5012331|116400|3000|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_476787156229165056 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|42|225|27||0|0|307565207|66157280|17150|2211|
|facepass_sync|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|44|84|2||0|0|104492|2500|104492|2500|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_830220893509701632 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|44|240|12||0|0|158030221|7450514|128843|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_480726380749918208 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|55|348|18||0|0|308943701|11355127|159536|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_821229068421742592 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|57|777|33||0|0|665707285|28553756|165907|3000|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_823844580729339904 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|60|240|23||0|0|153859060|38357109|5632|999|
|account|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|68|112|2||0|0|159632|2500|159632|2500|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_839295151019966464 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|71|116|4||0|0|15737808|427837|548|22|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_827516559562940416 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|84|1012|23||0|0|1166746747|35808454|247760|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_826954007829331968 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|85|429|9||0|0|167700084|3732588|254607|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_885278795660111872 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|91|793|22||0|0|395384105|8594112|270826|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_823844580729339904 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|92|1324|30||0|0|1180089118|29517317|271932|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_823688108565368832 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|94|665|15||0|0|443580595|11623160|275648|3000|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_476787156229165056 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|95|1650|43||0|0|2083274245|49509354|281344|3000|
|tag_service|select t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t2.employee_user_id , t1.employee_user_id ) as employeeuserid , count ( * ) as membernum from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_822257848045047808 lvm on t1.id = lvm.id and match ( `vip_label` ) against ( :1 in boolean mode ) left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_id = :4 and t2.tenant_app_id = :5 group by t1.tenant_id , t1.tenant_app_id , ifnull ( os.shop_id , 0 ) , ifnull ( t2.employee_user_id , t1.employee_user_id )|119|733|45||0|0|776441913|90580171|27195|2009|
|tag_service|select t1.id , t1.tenant_id as tenantid , t1.tenant_app_id as tenantappid , ifnull ( os.shop_id , 0 ) as shopid , ifnull ( t1.user_id , t1.member_user_id ) as vipid , if ( t1.user_id is null , 'offline' , 'online' ) as vipsource , ifnull ( t2.employee_user_id , ifnull ( t1.employee_user_id , 0 ) ) as employeeuserid , ifnull ( t1.age , 0 ) as age , ifnull ( t1.sex , 0 ) as sex , t1.solar_birthday as solarbirthday , t1.birthday as birthday , ifnull ( t1.birthday_is_lunar , 0 ) as birthdayislunar , t1.birthday_month_day as birthdaymonthday , t1.identity , t1.source_type as sourcetype , t1.status , t1.subscribe_flag as subscribeflag , t1.bind_flag as bindflag , t1.full_flag as fullflag , t1.memorial_day as memorialday , t1.memorial_day_is_lunar as memorialdayislunar , t2.grade_erp_id as gradeerpid , t2.sales_balance as salesbalance , t2.sales_amount as salesamount , t2.consumption_integral as consumptionintegral , t2.cumulation , t2.balance , t2.service_amount as serviceamount , ifnull ( t2.registe_time , if ( t1.user_id is null and t1.member_user_id is not null , t1.create_time , null ) ) as registetime , t2.first_shop_time as firstshoptime , t2.last_shop_time as lastshoptime , t2.first_sales_time as firstsalestime , t2.last_sales_time as lastsalestime , t2.last_login_time as lastlogintime , t2.last_score_time as lastscoretime , t2.follow_time as followtime , t2.cancel_follow_time as cancelfollowtime , t2.bind_time as bindtime , t2.last_service_time as lastservicetime , t2.category_id as categoryid , t2.last_sale_balance as lastsalebalance , t2.last_stone_weight as laststoneweight , t2.last_gold_weight as lastgoldweight , t2.last_category_id as lastcategoryid , lvm.vip_label as viplabels from statistic.member t1 join statistic.member_extra t2 on t1.id = t2.id join tag_service.label_vip_match_822257848045047808 lvm on t1.id = lvm.id left join statistic.off_shop os on t2.tenant_app_id = os.tenant_app_id and ( t2.shop_id = os.shop_id or t2.shop_id = os.dept_erp_id ) where t1.tenant_id = :1 and t1.tenant_app_id = :2 and t2.tenant_id = :3 and t2.tenant_app_id = :4 and t1.create_time >= date_format ( :5 , :6 ) and t1.create_time <= date_format ( :7 , :8 ) and t1.id >= :9 and t1.id <= :10 limit :11 offset :12|145|2095|41||0|0|2357711904|53150734|412535|3000|
