|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|user_service|select ue.employee_id as employeeid, count(*) as quantity from user_service.user_employee ue where ue.employee_id in ($0) and ue.tenant_id = $1 and ue.tenant_wechatapp_id = $2 and ue.shop_id = $3 group by ue.employee_id|515|854|10||0|0|2002492|69780|515|1|
|v4_sales|select * from v4_sales.erp_sales_detail where sales_erp_id = $0 and product_barcode = $1|405|528|14||0|0|423463731|1046348|430|6|
|corpwx|select id, tenant_id, tenant_app_id, external_user_id, wx_user_id from external_user_bind where (tenant_id = $0 and tenant_app_id = $1 and external_user_id = $2) or (tenant_id = $3 and tenant_app_id = $4 and wx_user_id = $5)|220|536|25||0|0|25559316|214188|149|1|
|corpwx|select id, tenant_id, cwx_user_id, user_id, old_user_id, union_id, name, sex, avatar, tenant_user_id, un_assign_flag, corp_user_id, wx_user_id, create_time, update_time from external_user where tenant_id = $0 and cwx_user_id = $1|194|300|4||0|0|368041|5698|368041|5698|
|tenant|select sales_date from tenant.erp_sales where tenant_id = $0 and tenant_wechatapp_id = $1 and member_erp_id = $2 and sales_erp_id < $3 and is_sales = $4 and sales_status = $5 order by sales_erp_id asc limit $6|128|335|26||0|0|1675085|27840|128|1|
|gift_mail|select p.id, p.product_name, p.tag_price, i.volume, p.product_status as status, p.default_image_url, i.quantity, i.market_price, if(prp.id is null, false, true) as hasrecommend from gift_mail.platform_product p join gift_mail.platform_inventory i on i.product_id = p.id left join gift_mail.platform_recommend_product prp on prp.tenant_app_id = $0 and prp.is_recommend = true and prp.platform_product_id = p.id where prp.id is null and p.product_status = $1 order by i.volume desc, p.tag_price asc, p.id desc limit $2|123|163|3||0|0|1014638|8258|738|6|
|v4_sales|select * from v4_sales.erp_sales_detail where sales_erp_id = $0 and sales_type = $1 order by sales_index|117|1009|24||0|0|122332998|1046353|489|10|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1)|106|221|17||0|0|145265395|1371587|100|2|
|coupon_service|select count(*) from employee_give_coupon_log where tenant_app_id = $0 and coupon_push_id = $1|90|136|4||0|0|2083947|36613|90|1|
|v4_user|select id, shop_id, mobile_no, member_name, head_img_url, sex, birthday, birthday_is_lunar, memorial_name, memorial_day, memorial_day_is_lunar, address, interest, wx_union_id, mini_open_id, h5_open_id, wx_card_code, recommend_id, recommend_bind_time, external_user_id, status, combine_status, combine_id, tenant_id, tenant_app_id, create_time, update_time from member where (mobile_no = $0 or wx_card_code = $1) and tenant_id = $2 and tenant_app_id = $3 limit $4|88|139|5||0|0|15223344|210552|72|1|
|user_service|select count(0) from user_service.tenant_member t1 join user_service.tenant_member_info t2 on t1.tenant_id = t2.tenant_id and t1.id = t2.id and t2.tenant_app_id = $0 and t2.shop_id = $1 join user_service.user_employee ue on t1.tenant_id = ue.tenant_id and t1.tenant_app_id = ue.tenant_wechatapp_id and t1.user_id = ue.user_id and ue.employee_id = $2 and ue.shop_id = $3 where t1.tenant_id = $4 and t1.tenant_app_id = $5|72|114|3||0|0|1330445|187201|72|1|
|activity_service|select count(*) > $0 from activity_service.online_sign_user_sign_log where tenant_app_id = $1 and user_id = $2 and to_days(create_time) = to_days($3)|69|122|5||0|0|27458349|398073|69|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2)|67|173|28||0|0|91823487|1371503|128|4|
|v4_sales|select * from erp_sales where sales_erp_id = $0 limit $1|64|385|17||0|0|34536890|539880|64|1|
|comment_service|select * from comment_service.comment_reward where comment_id = $0 limit $1|58|130|10||0|0|22752488|393387|11|1|
|coupon_service|select ifnull(sum(quantity), $0) from coupon_service.coupon_market_order where market_id = $1 and user_id = $2 and order_state = $3|44|141|12||0|0|22844213|519605|44|1|
|gift_mail|select count(0) from ( select p.id, p.product_name, p.tag_price, i.volume, p.product_status as status, p.default_image_url, i.quantity, i.market_price, if(prp.id is null, false, true) as hasrecommend from gift_mail.platform_product p join gift_mail.platform_inventory i on i.product_id = p.id left join gift_mail.platform_recommend_product prp on prp.tenant_app_id = $0 and prp.is_recommend = true and prp.platform_product_id = p.id where prp.id is null and p.product_status = $1 order by i.volume desc, p.tag_price asc, p.id desc ) tmp_count|42|52|3||0|0|305004|7262|42|1|
|v4_coupon|select count(*) from ( select grant_id from v4_coupon.coupon where put_id = $0 and member_id = $1 and tenant_id = $2 and tenant_app_id = $3 group by grant_id ) c|42|80|5||0|0|3615775|86169|42|1|
|tenant|select sg.id, sg.sneak_guest_no, sg.user_id, sg.user_type, sg.maintain_level, sg.maintain_employee_id, sg.create_time, sg.last_maintain_date, ey.employee_name as maintainemployeename, sg.status, sg.finish_date, sg.next_maintain_date from sneak_guest sg left join employee ey on sg.maintain_employee_id = ey.id where sg.tenant_app_id = $0 and sg.create_shop_id = $1 and sg.maintain_employee_id = $2 and sg.next_maintain_date >= $3 and sg.next_maintain_date <= $4 and sg.status = $5 order by sg.id desc limit $6|40|88|10||0|0|24281520|614906|152|10|
|v4_user|select count(*) as total from member_source where source_id = $0 and tenant_id = $1 and tenant_app_id = $2|39|76|5||0|0|8093274|210548|39|1|
|v4_employee|select t.id as task_id, task_type, if(task_type = $0, st.description, it.description) as description, if(task_type = $1, st.quick_reply, it.quick_reply) as quick_reply, task_name, member_id, member_name, member_mobile_no, member_sex, member_level, t.start_time, t.end_time, datediff(t.end_time, $2) as left_days, send_coupons, recv_coupons, st.coupons, t.accept_time, t.plan_arrival_shop_time, t.arrival_shop_time, t.trade_time from task_task t left join task_system_task_template st on st.id = t.task_template_id and st.tenant_id = $3 and st.tenant_app_id = $4 left join task_invite_task_template it on it.id = t.task_template_id and it.tenant_id = $5 and it.tenant_app_id = $6 where t.status = $7 and task_type = $8 and system_task_type = $9 and t.start_time <= $10 and t.end_time > $11 and shop_id = $12 and employee_id = $13 and finish_time is null and t.tenant_id = $14 and t.tenant_app_id = $15 order by t.id desc limit $16|37|150|32||0|0|15302486|413586|87|5|
|coupon_service|select count(1) from coupon_service.coupon_expire_task where tenant_id = $0 and tenant_app_id = $1 and shop_id = $2 and employee_id = $3 and status = $4 and expire_time > now()|36|72|6||0|0|1689762|66305|36|1|
|v4_sales|select count(*) as total from warranty where member_id in ($0) and is_disable = $1 and tenant_id = $2 and tenant_app_id = $3|35|60|5||0|0|3524705|105510|35|1|
|user_service|select * from user_service.user_employee where employee_erp_id = $0 and tenant_id = $1 and tenant_wechatapp_id = $2 and date_format(update_time, '%y-%m-%d %h') = date_format(now(), '%y-%m-%d %h')|35|272|33||0|0|3979518|269810|11940|3291|
|tenant|select count(*) from tenant.sneak_guest_maintain s join tenant.sneak_guest sg on sg.id = s.sneak_guest_id where s.tenant_id = $0 and s.tenant_app_id = $1 and s.shop_id = $2 and s.event_type = $3 and s.create_time between $4 and $5|35|55|3||0|0|77689|3816|35|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20)|35|45|2||0|0|47982184|1371481|681|25|
|employee|select count(0) from ( select distinct t.user_id, t.user_type from backlog t where t.tenant_id = $0 and t.tenant_app_id = $1 and t.employee_id = $2 and t.scene = $3 and t.begin_time >= $4 and t.expire_time < $5 and t.finish_amount = $6 ) table_count|31|55|5||0|0|119392|8461|31|1|
|employee|select ifnull(sum(task_amount), $0) as shouldmarknum, ifnull(sum(finish_amount), $1) as marklabelnum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.employee_id = $4 and t.scene = $5 and t.begin_time >= $6 and t.expire_time < $7|31|55|5||0|0|119276|8453|31|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3)|30|45|4||0|0|41115530|1371157|74|4|
|tenant|select es.id, es.sales_no, es.sales_date, es.member_erp_id, es.sales_erp_id, es.is_sales from erp_sales es where es.tenant_id = $0 and es.tenant_wechatapp_id = $1 and es.sales_status = $2 and es.sales_no like concat($3, $4) order by es.sales_date desc limit $5|30|119|11||0|0|13632670|997866|14|1|
|user_service|select t1.id, t1.user_id as userid, t1.user_name as username, t1.sex, t1.mobile_no as mobileno, t1.head_img_url as headimg from user_service.tenant_member t1 join user_service.tenant_member_info t2 on t1.tenant_id = t2.tenant_id and t1.id = t2.id and t2.tenant_app_id = $0 and t2.shop_id = $1 join user_service.user_employee ue on t1.tenant_id = ue.tenant_id and t1.tenant_app_id = ue.tenant_wechatapp_id and t1.user_id = ue.user_id and ue.employee_id = $2 and ue.shop_id = $3 where t1.tenant_id = $4 and t1.tenant_app_id = $5 order by ue.update_time desc, t1.id desc limit $6|29|41|2||0|0|291022|20310|290|10|
|user_service|select count(0) from user_service.tenant_member tm where tm.tenant_id = $0 and tm.tenant_app_id = $1 and (tm.user_name like concat($2, $3, $4) or tm.mobile_no = $5)|27|47|4||0|0|10668255|452832|27|1|
|coupon_service|select count(0) from coupon_service.employee_give_coupon_log egcl where egcl.employee_give_coupon_id = $0 and egcl.shop_id = $1 and egcl.employee_id = $2|26|38|3||0|0|234040|21022|26|1|
|v4_employee|select $0 as task_type, t1.id as invite_task_id, t1.name, ifnull(t2.undo_count, $1) as undo_count, t1.invite_time as invite_task_start_time, ifnull(t1.interrupt_time, t1.end_time) as invite_task_end_time from task_invite_task_template t1 left join ( select t.task_template_id as id, sum(if(t.finish_time is null, $2, $3)) as undo_count from task_task t where t.task_type = $4 and t.`status` = $5 and t.end_time > $6 and t.shop_id = $7 and t.employee_id = $8 and t.tenant_id = $9 and t.tenant_app_id = $10 group by t.task_template_id ) t2 on t1.id = t2.id where t1.status in ($11, $12, $13) and t1.tenant_id = $14 and t1.tenant_app_id = $15 order by t1.id desc|26|42|4||0|0|164609|8376|104|4|
|tenant|select count(*) from tenant.sneak_guest_maintain s join tenant.sneak_guest sg on sg.tenant_id = s.tenant_id and sg.tenant_app_id = s.tenant_app_id and sg.id = s.sneak_guest_id join tenant.employee e on e.tenant_id = s.tenant_id and e.id = s.employee_id where s.tenant_id = $0 and s.tenant_app_id = $1 and sg.create_shop_id = $2 and (sg.fail_type is null or sg.fail_type = $3) and s.event_type = $4 and s.create_time between $5 and $6|25|33|2||0|0|42888|3893|25|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5)|25|34|2||0|0|34266569|1371501|123|8|
|corpwx|select count(*) as addednum from external_user t where t.tenant_id = $0 and t.corp_user_id = $1 and t.create_time >= $2 and t.create_time < $3|20|32|4||0|0|506774|25364|20|1|
|tenant|select count(0) from erp_sales es where es.tenant_id = $0 and es.tenant_wechatapp_id = $1 and es.sales_date >= $2 and es.employee_erp_id = $3 and es.sales_status = $4|19|26|1||0|0|42573|4660|19|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4)|19|32|6||0|0|26039568|1371325|74|5|
|corpwx|update external_user set un_assign_flag = $0 where tenant_id = $1 and un_assign_flag = $2|19|55|8||0|0|484422|57322|0|0|
|tenant|select sg.id, sg.sneak_guest_no, sg.user_id, sg.user_type, sg.maintain_level, sg.maintain_employee_id, sg.create_time, sg.last_maintain_date, ey.employee_name as maintainemployeename, sg.status, sg.finish_date, sg.next_maintain_date from sneak_guest sg left join employee ey on sg.maintain_employee_id = ey.id where sg.tenant_app_id = $0 and sg.create_shop_id = $1 and sg.maintain_employee_id = $2 and sg.status = $3 order by sg.id desc limit $4, $5|18|32|4||0|0|10290829|614754|94|10|
|tenant|select count(*) from sneak_guest where tenant_app_id = $0 and status = $1 and create_shop_id = $2 and maintain_employee_id = $3|17|26|4||0|0|111942|11054|17|1|
|tenant|select count(*) from sneak_guest where tenant_app_id = $0 and create_shop_id = $1 and maintain_employee_id = $2 and status = $3 and next_maintain_date between $4 and $5|17|27|4||0|0|111942|11054|17|1|
|v4_sales|select id, warranty_id, sales_detail_id, tenant_id, tenant_app_id, create_time, update_time from warranty_detail where warranty_id = $0 and tenant_id = $1 and tenant_app_id = $2|16|28|3||0|0|3808160|238521|33|5|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6)|16|27|6||0|0|21929192|1371121|93|9|
|tenant|select sg.id, sg.sneak_guest_no, sg.user_id, sg.user_type, sg.maintain_level, sg.maintain_employee_id, sg.create_time, sg.last_maintain_date, ey.employee_name as maintainemployeename, sg.status, sg.finish_date, sg.next_maintain_date from sneak_guest sg left join employee ey on sg.maintain_employee_id = ey.id where sg.tenant_app_id = $0 and sg.create_shop_id = $1 and sg.maintain_employee_id = $2 and sg.status = $3 order by sg.id desc limit $4|16|35|6||0|0|9832007|614789|59|7|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $44wm2wxudqaas0q5ddrkmtdkynlfx_3mua$45wm2wxudqaaxnbrfrxcb_kua-rpdfntaq$46wm2wxudqaacyrypeszjmwq8s8csg7wrq$47wm2wxudqaaullfcbykj8uwvxcuv20wda$48wm2wxudqaatjk_ui3chftmddnbcdh9bg$49wm2wxudqaajo9dx01dvhfnamg-uhapbw$50wm2wxudqaaxviu7ghnsce7klvewhebva$51wm2wxudqaabzh4fm8weorgojyxydff5g$52wm2wxudqaaahswttbw3dr40xarpufasa$53wm2wxudqaai6ontcf8od-_bprdmdftvw$54wm2wxudqaa2ykuayc3elyub8jiqcp1xa$55wm2wxudqaaov3-4qdogepe9jbuvcbvda$56wm2wxudqaa5lef3r_hsyhwenfty3wsiw$57wm2wxudqaai2adp8dhaskpc9udapjc1w$58wm2wxudqaaxwcd3g7osl0zt7wl5pwiha$59wm2wxudqaanshjh3fu8voq9orrtxt51g$60wm2wxudqaaqla576sui3evgsbg6ya7lg$61wm2wxudqaazpjffejbavjzzvvzoypd0a$62wm2wxudqaanwkdwjois7mttgv53_atwg$63wm2wxudqaaio4xlo9nvjc-0fslkuz5qq$64wm2wxudqaa9bymaybu5zz9qv7tvynava$65wm2wxudqaa_blpzjl_qpo8sklycaoqiw$66wm2wxudqaagay1wlinbei_rrup5r9z-q$67wm2wxudqaalrrv7lqcuyxfliowsvo6gg$68wm2wxudqaahbe-35sgcmnqrbfpodt_jw$69wm2wxudqaaabxomegfbcg5hj1n2_0jfw$70wm2wxudqaalj6clwoul1krld4fqi0uxw$71wm2wxudqaawduvalksa2cmm9yrpmehyg$72wm2wxudqaalhubmlzn2dd9p8w0kmblqa$73wm2wxudqaatlpnfqaeakkbzyxk0xhq1a$74wm2wxudqaaai6zycdkdn8mn5-ol_hbga$75wm2wxudqaaopmcomxtwpxeenjrpo_tia$76wm2wxudqaagkfhsy_u9ym0gfmvoid1bw$77wm2wxudqaajw1syiseyyjye7bf30vaiw$78wm2wxudqaak8cw45ji9fvr-wykaoit5g$79wm2wxudqaak8eo8yyjxbpezlwb4gcnpa$80wm2wxudqaazijvivgtslaxfb8pzmyixg$81wm2wxudqaacv3olcbnjlk1mugptbefbq$82wm2wxudqaajonhe8s1smec3ehzfu5tra$83wm2wxudqaas5zyyj9tvk6vdw9wy0r0vg$84wm2wxudqaa21kif96ewraiuxrz81nlxa$85wm2wxudqaauk4diauxcdazrje2ff3r3g$86wm2wxudqaawldc8q9-0mcxg5n6f0rmhg$87wm2wxudqaaaxkxqmqzp2nonlvdnh7vgg$88wm2wxudqaagyg-l9fgneyhk9dvqh_dqq$89wm2wxudqaas8gwmsjwbb_hncxgevxfna$90wm2wxudqaaxdag0kfgjet5vxhjirbzgq$91wm2wxudqaa1uacwsihi43pglnjdey82q$92wm2wxudqaalkwitokewmdi17fujgytta$93wm2wxudqaazyrbcn5lbvq73ib1va4utg$94wm2wxudqaajfgcitqyclsv1ebl2kxe-a$95wm2wxudqaanzjqo_qlinaexasixncraw$96wm2wxudqaavtwxuuhm1tzfitbpjwcsaa$97wm2wxudqaan_d8_tcn77qttgbg8ljyfg$98wm2wxudqaaubz9z6nfxlposblghdgtwa$99wm2wxudqaav1hpen0gv3nrf9fbhvcnig$100wm2wxudqaa0fbrrhpq3rb3belfcdcf-g$101wm2wxudqaa2x2mvivsjkhjgycfkrnkjg$102wm2wxudqaaubfn8mqzcly5jw3b0i3pbg$103wm2wxudqaadhpbokkxptdstd-v5x0eaw$104wm2wxudqaac8sgvzjzltrhk79jvtjuzg$105wm2wxudqaax5cniaew6dvwjgydvuuujw$106wm2wxudqaak-t2m2ycinglbbmqzeakjq$107wm2wxudqaadmmrqeg_wzirb0dvpqbnva$108wm2wxudqaarporf6bkazvyonxhrn6o2w$109wm2wxudqaag1nosjtrbbj7dfrsrptr6g$110wm2wxudqaafwoql1drpofth7ppqbrjuw$111wm2wxudqaa1empsbpgwj-qq6-cum17vg$112wm2wxudqaax9ik3rqr7o7zg7zszfp61q$113wm2wxudqaajwr4cnog2zdacjb_cm1x6w$114wm2wxudqaa66togsbp6jtaboznjyj_oa$115wm2wxudqaao8bwhhzkkanoqqn7c08ulg$116wm2wxudqaaxpixmhngadpad7jjsklmja$117wm2wxudqaanzmxakmdxh7mf3jp2mwcfg$118wm2wxudqaaieoavwlsnfyb3admbganfa$119wm2wxudqaapnvop3dyeray_jmdpm60aw$120wm2wxudqaayscht98xmheapuvbw9iqda$121wm2wxudqaa5dt7ptxkpnxmzkg5vniluw$122wm2wxudqaaxzrzkhdl-a_mir0wramtiq$123wm2wxudqaax2st-oziw_rrqpq-kaub5a$124wm2wxudqaayv_paozgrwmynsahh_h2qq$125wm2wxudqaao4r...|15|30|4||0|0|25262|1688|12502|835|
|v4_sales|select id, warranty_id, sales_detail_id, tenant_id, tenant_app_id, create_time, update_time from warranty_detail where warranty_id = $0 and sales_detail_id = $1 and tenant_id = $2 and tenant_app_id = $3|14|23|2||0|0|3332763|238567|0|0|
|tenant|select count(*) as amount from sneak_guest where tenant_app_id = $0 and status = $1 and create_shop_id = $2 and maintain_employee_id = $3 and create_time <= $4|14|22|4||0|0|93842|11054|14|1|
|order|select count(0) from order_info od left join order_detail dt on od.id = dt.order_id left join order_address ad on od.id = ad.order_id where od.tenant_id = $0 and od.tenant_wechatapp_id = $1|12|39|9||0|0|1031049|85968|12|1|
|order|select count(1) as total, ifnull(sum(if(od.status > $0, od.payment_fee, $1)), $2) as paymentfee, ifnull(sum(if(od.status > $3, od.offline_payment_fee, $4)), $5) as offlinepaymentfee, ifnull(sum(if(od.status > $6, od.payment_fee + od.offline_payment_fee, $7)), $8) as paytotalfee from order_info od left join order_detail dt on od.id = dt.order_id left join order_address ad on od.id = ad.order_id where od.tenant_id = $9 and od.tenant_wechatapp_id = $10|12|40|9||0|0|1031049|85968|12|1|
|gift_mail|select p.id, p.product_name, p.tag_price, i.volume, p.product_status as status, p.default_image_url, i.quantity, i.market_price, if(prp.id is null, false, true) as hasrecommend from gift_mail.platform_product p join gift_mail.platform_inventory i on i.product_id = p.id left join gift_mail.platform_recommend_product prp on prp.tenant_app_id = $0 and prp.is_recommend = true and prp.platform_product_id = p.id where prp.id is null and p.product_status = $1 order by i.volume desc, p.tag_price asc, p.id desc limit $2, $3|12|16|1||0|0|99540|8396|72|6|
|coupon_service|select * from coupon_service.coupon_market_order where pay_type in ($0, $1) and order_state = $2 and update_time <= date_sub(now(), interval $3 minute)|12|35|6||0|0|6230114|519572|0|0|
|gift_mail|select count(0) from ( select p.id, p.default_image_url, p.product_name, p.product_type, p.tag_price, ifnull(pp.integral_price, ifnull(( select min(inventory.price) from gift_mail.inventory where inventory.product_id = p.id ), $0)) as price, p.volume, p.category_id, p.product_status, $1 as quantity, pp.partner_id as partner_id, p.topping from gift_mail.product p left join gift_mail.partner_product pp on p.id = pp.product_id left join gift_mail.product_status ps on ps.product_id = p.id where p.tenant_id = $2 and product_status = $3 and (p.is_disable is null or p.is_disable = $4) and (ps.tenant_wechatapp_id = $5 or p.product_type = $6) ) p where p.topping = $7|12|15|1||0|0|197712|16499|12|1|
|coupon_service|select cmod.coupon_id, cmo.pay_type from coupon_service.coupon_market_order_detail cmod join coupon_service.coupon_market_order cmo on cmo.tenant_id = $0 and cmo.tenant_app_id = $1 and cmo.id = cmod.order_id where cmod.tenant_id = $2 and cmod.tenant_app_id = $3 and cmod.coupon_id in ($4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23)|12|60|6||0|0|523594|45338|180|20|
|user_service|select count(0) from user_service.tenant_member tm join user_service.tenant_member_info tmi on tm.tenant_id = tmi.tenant_id and tm.id = tmi.id left join user_service.user_employee t3 on tm.user_id = t3.user_id and tm.tenant_id = t3.tenant_id and tm.tenant_app_id = t3.tenant_wechatapp_id where t3.id is null and tmi.shop_id = $0 and tmi.tenant_id = $1 and tmi.tenant_app_id = $2|11|31|5||0|0|791199|199595|11|1|
|user_service|select count(0) from user_service.tenant_member t1 join user_service.tenant_member_info t2 on t1.tenant_id = t2.tenant_id and t1.id = t2.id and t2.tenant_app_id = $0 and t2.shop_id = $1 where t1.tenant_id = $2 and t1.tenant_app_id = $3|11|22|5||0|0|759526|195220|11|1|
|tenant|select esd.id, esd.sales_erp_id, es.employee_name, esd.product_barcode, es.sales_no, es.member_erp_id, esd.category_name, es.sales_date, esd.category_erp_id, esd.product_name, esd.cert_no, esd.amount_pay, esd.sales_index, ifnull(ee.not_add_value_plan, $0) as not_add_value_plan from erp_sales_detail esd join erp_sales es on es.tenant_id = esd.tenant_id and es.tenant_wechatapp_id = esd.tenant_wechatapp_id and es.sales_erp_id = esd.sales_erp_id left join erp_sales_extend ee on ee.tenant_id = es.tenant_id and es.tenant_wechatapp_id = ee.tenant_wechatapp_id and es.sales_erp_id = ee.sales_erp_id and esd.sales_index = ee.sales_index where esd.tenant_id = $1 and es.sales_status = $2 and es.tenant_wechatapp_id = $3 and esd.product_barcode = $4 order by es.sales_date desc|11|47|7||0|0|258374|31100|49087|5879|
|employee|select count(*) from label_task_employee t1 join label_task_setting t2 on t1.label_task_id = t2.id and t2.disabled = $0 where t2.tenant_id = $1 and t2.tenant_app_id = $2 and t2.task_status = $3 and t2.end_date >= current_date and t1.shop_id = $4 and t1.employee_id = $5 and t1.visit_status = $6|10|13|1||0|0|15340|3516|10|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7)|10|13|3||0|0|13706003|1371654|65|10|
|v4_coupon|select count(*) as total from coupon where member_id = $0 and scene = $1 and scene_id = $2 and tenant_id = $3 and tenant_app_id = $4|10|13|1||0|0|860843|86138|10|1|
|user_service|select obj.id, obj.shop_id, obj.total, case when @rowtotal = obj.total then @rownum when @rowtotal := obj.total then @rownum := @rownum + $0 when @rowtotal = $1 then @rownum := @rownum + $2 end as rank_idx from ( select us.from_id as id, us.shop_id, count(1) as total from user_source us where us.tenant_id = $3 and us.tenant_wechatapp_id = $4 and us.create_time >= $5 and us.create_time < $6 and us.source_type = $7 and us.from_id is not null and us.shop_id is not null group by us.from_id, us.shop_id order by count(1) desc ) obj, ( select @rownum := $8, @rowtotal := null ) r|10|62|18||0|0|193950|23210|1124|158|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)|10|13|3||0|0|13708873|1371227|122|14|
|coupon_service|select count(0) from coupon_service.coupon cu join coupon_service.coupon_extend ce on ce.tenant_id = $0 and ce.tenant_app_id = $1 and ce.id = cu.id where cu.tenant_id = $2 and cu.tenant_app_id = $3|10|1482|182||0|0|3485420|348542|10|1|
|user_service|select count(0) from user_service.tenant_member tm join user_service.user_employee ue on ue.tenant_id = $0 and ue.tenant_wechatapp_id = $1 and tm.user_id = ue.user_id and ue.employee_id = $2 and ue.shop_id = $3 where tm.tenant_id = $4 and tm.tenant_app_id = $5|10|32|5||0|0|457837|79340|10|1|
|user_service|select obj.id, obj.total, case when @rowtotal = obj.total then @rownum when @rowtotal := obj.total then @rownum := @rownum + $0 when @rowtotal = $1 then @rownum := @rownum + $2 end as rank_idx from ( select us.from_id as id, count(1) as total from user_source us where us.tenant_id = $3 and us.tenant_wechatapp_id = $4 and us.shop_id = $5 and us.create_time >= $6 and us.create_time < $7 and us.source_type = $8 and us.from_id is not null and us.shop_id is not null group by us.from_id order by count(1) desc ) obj, ( select @rownum := $9, @rowtotal := null ) r|10|62|18||0|0|190797|22910|73|10|
|employee|select id, tenant_id, tenant_app_id, shop_id, employee_id, user_id, external_user_id, mobile_no, scene, status, begin_time, expire_time, create_time, update_time, directional_task_id, member_erp_id, finish_time, md5_str, tenant_open_id, data from backlog_system where tenant_app_id = $0 and scene = $1 and status = $2 and create_time between $3 and $4|9|21|8||0|0|3551028|481544|360|261|
|gift_mail|select p.id, p.product_name, p.tag_price, i.volume, p.product_status as status, p.default_image_url, i.quantity, i.market_price, if(prp.id is null, false, true) as hasrecommend from gift_mail.platform_product p join gift_mail.platform_inventory i on i.product_id = p.id left join gift_mail.platform_recommend_product prp on prp.tenant_app_id = $0 and prp.is_recommend = true and prp.platform_product_id = p.id where prp.id is null and p.product_status = $1 order by p.tag_price desc, p.id desc limit $2, $3|9|12|1||0|0|75300|8492|54|6|
|v4_sales|select count(*) as total from v4_sales.erp_sales es join v4_sales.warranty_can_added wca on wca.sales_id = es.id and wca.tenant_id = $0 and wca.tenant_app_id = $1 left join v4_sales.warranty w on w.sales_id = es.id and w.tenant_id = $2 and w.tenant_app_id = $3 where is_sales = true and sales_status = $4 and (es.sales_no like concat($5, $6) or es.member_erp_id = $7) and es.tenant_id = $8 and es.tenant_app_id = $9|9|30|14||0|0|2298969|255555|9|1|
|tenant|select e.id, e.employee_name from ( select distinct sgm.employee_id from tenant.sneak_guest sg join tenant.sneak_guest_maintain sgm on sgm.sneak_guest_id = sg.id where sg.tenant_id = $0 and sg.tenant_app_id = $1 and sg.update_shop_id = $2 and sgm.event_type in ($3, $4, $5) and (sg.fail_type is null or sg.fail_type = $6) and sgm.create_time between $7 and $8 ) t join tenant.employee e on e.id = t.employee_id|9|17|3||0|0|254105|32797|57|9|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126|9|14|3||0|0|14083|1785|6648|851|
|erp_app|insert into app_status(id, tenant_id, app_name, version, pid) values (?, ?, ?, ?, ?) on duplicate key update version = $0, pid = $1, online_status_time = $2|8|12|1||0|0|0|0|0|0|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9)|8|12|2||0|0|10964749|1371274|66|11|
|warranty_service|select count(*) from warranty where user_id = $0 and tenant_wechatapp_id = $1 and is_disable = $2|8|32|8||0|0|43304|10268|8|1|
|coupon_service|select * from coupon_service.coupon_can_give where coupon_id = $0 limit $1|8|11|1||0|0|1924241|243646|8|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8)|7|8|1||0|0|9593873|1371524|48|9|
|gift_mail|select * from ( select p.id, p.default_image_url, p.product_name, p.product_type, p.tag_price, ifnull(pp.integral_price, ifnull(( select min(inventory.price) from gift_mail.inventory where inventory.product_id = p.id ), $0)) as price, p.volume, p.category_id, p.product_status, $1 as quantity, pp.partner_id as partner_id, p.topping from gift_mail.product p left join gift_mail.partner_product pp on p.id = pp.product_id left join gift_mail.product_status ps on ps.product_id = p.id where p.tenant_id = $2 and product_status = $3 and (p.is_disable is null or p.is_disable = $4) and (ps.tenant_wechatapp_id = $5 or p.product_type = $6) ) p where p.topping = $7 order by p.volume desc, p.id desc limit $8, $9|7|8|1||0|0|115733|16571|42|6|
|order|select max(create_time) from `order`.order_operator_log where tenant_wechatapp_id = $0 and order_id = $1|7|28|7||0|0|5991014|855986|7|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)|7|9|1||0|0|9594529|1370868|76|13|
|employee|select t1.employee_id, t1.shop_id, t1.shouldaddnum, t1.addednum, ifnull(t2.marklabelnum, $0) as marklabelnum from ( select t.employee_id, t.shop_id, t.task_amount as shouldaddnum, t.finish_amount as addednum from employee.backlog t where t.tenant_id = $1 and t.tenant_app_id = $2 and t.shop_id = $3 and t.begin_time >= $4 and t.expire_time < $5 and t.scene = $6 ) t1 left join ( select t.employee_id, sum(t.finish_amount) as marklabelnum from employee.backlog t where t.tenant_id = $7 and t.tenant_app_id = $8 and t.begin_time >= $9 and t.expire_time < $10 and t.scene = $11 group by t.employee_id ) t2 on t1.employee_id = t2.employee_id order by t1.shop_id, t1.employee_id|6|15|3||0|0|2462447|410491|53|10|
|tenant|select count(distinct concat(dept_erp_id, $0, sales_date)) as total from tenant.erp_sales where tenant_id = $1 and tenant_wechatapp_id = $2 and member_erp_id = $3 and sales_status = $4 and is_sales = $5|6|16|4||0|0|95841|27839|6|1|
|wx_gateway|select id, tenant_id, tenant_app_id, wx_template_id, employee_id, busi_id, busi_type, url, push_time, category, title, content, status, retry_amount, remark, create_time, update_time, del_flag from wx_template_push where push_time <= $0 and status = $1 and category = $2 and del_flag = $3|6|18|5||0|0|49152|8192|0|0|
|order|select od.id, od.order_no as orderno, od.status, od.take_type as taketype, od.create_time as createtime, od.remark, od.total_fee as totalfee, od.freight_fee as freightfee, od.discount_fee as discountfee, od.take_id as takeid, od.payment_fee as paymentfee, dt.product_id as productid, dt.price, dt.quantity, dt.sku_id as skuid, dt.art_no as artno, dt.image_url as imageurl, dt.product_name as productname, dt.take_remark as takeremark, dt.take_day as takeday, od.product_fee as productfee, ad.user_name as receivename, ad.mobile_no as mobileno, ad.shop_name as shopname, ad.address, ad.express_no as expressno, ad.express_company as expresscompany, od.user_name as username, od.update_time as updatetime, od.child_status as childstatus, od.finish_type as finishtype, od.receive_time as receivetime, od.user_id as userid, od.mobile_no as buymobileno, od.edit_fee_flag as editfeeflag, dt.spec as spec, od.source, od.take_shop_id, od.take_shop_name, od.take_employee_user_id, od.take_employee_user_name, od.activity_type, od.activity_id, od.offline_payment_fee, od.online_wait_fee, od.offline_wait_fee, od.pay_way, od.take_employee_id, od.pay_id from order_info od left join order_detail dt on od.id = dt.order_id left join order_address ad on od.id = ad.order_id where od.tenant_id = $0 and od.tenant_wechatapp_id = $1 and (od.mobile_no = $2 or ad.mobile_no = $3) order by od.create_time desc limit $4|6|10|2||0|0|516906|86274|13|5|
|employee|select count(*) from label_task_employee t1 join label_task_setting t2 on t1.label_task_id = t2.id and t2.disabled = $0 where t1.tenant_app_id = $1 and t1.shop_id = $2 and t1.visit_status > $3 and t1.finish_time >= date_sub(current_date, interval $4 day) and t1.finish_time < current_date|6|10|2||0|0|73375|21719|6|1|
|order|select id from order_operator_log where tenant_wechatapp_id = $0 and order_id = $1 and src_child_status = $2 and dst_child_status = $3 order by create_time desc limit $4|5|19|5||0|0|4278007|856335|0|0|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19)|5|6|1||0|0|6853947|1371171|94|19|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)|5|6|1||0|0|6852147|1370760|48|12|
|value_added|select $0 as limitdaytype, t.tenant_wechatapp_id as tenantappid, t.user_id as userid, min(ue.employee_erp_id) as employee_erp_id, ue.dept_erp_id, group_concat(t.product_barcode order by product_barcode asc) as productcode, group_concat(t.product_name order by product_barcode asc) as productname from value_added_user t inner join value_added_user_extend ue on t.id = ue.id where t.tenant_wechatapp_id = $1 and t.state = $2 and t.start_add_time >= date_add(date_format($3, '%y-%m-%d'), interval $4 * (t.add_days - $5) day) and t.start_add_time < date_add(date_format($6, '%y-%m-%d'), interval $7 * (t.add_days - $8) + $9 day) group by t.tenant_wechatapp_id, t.user_id, ue.dept_erp_id|5|12|6||0|0|1153642|415015|493|349|
|order|select count(0) from order_info od left join order_detail dt on od.id = dt.order_id left join order_address ad on od.id = ad.order_id where od.tenant_id = $0 and od.tenant_wechatapp_id = $1 and (od.mobile_no = $2 or ad.mobile_no = $3)|5|10|3||0|0|430803|86274|5|1|
|user_service|select tm.user_id as id, tm.user_name as username, tm.head_img_url as headimgurl, tm.user_name as nickname, tm.mobile_no as mobile, tm.sex from user_service.tenant_member tm join user_service.user_employee ue on ue.tenant_id = $0 and ue.tenant_wechatapp_id = $1 and tm.user_id = ue.user_id and ue.employee_id = $2 and ue.shop_id = $3 where tm.tenant_id = $4 and tm.tenant_app_id = $5 order by tm.id desc limit $6|5|11|4||0|0|33951|8406|60|12|
|user_service|select tm.user_id as id, tm.user_name as username, tm.head_img_url as headimgurl, tm.user_name as nickname, tm.mobile_no as mobile, tm.sex from user_service.tenant_member tm where tm.tenant_id = $0 and tm.tenant_app_id = $1 and (tm.user_name like concat($2, $3, $4) or tm.mobile_no = $5) order by tm.id desc limit $6|4|4|1||0|0|1632356|452812|4|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)|4|10|6||0|0|5481241|1371016|59|15|
|goods|select * from goods_take_shop where tenant_id = $0 and goods_id = $1 and activity_id = $2 order by create_time desc|4|6|3||0|0|408149|102049|225|68|
|gift_mail|select ifnull(count(1), $0) as amount from trade where tenant_wechatapp_id = $1 and user_id = $2 and order_status in ($3, $4)|4|8|4||0|0|43575|12234|4|1|
|coupon_service|select count(0) from coupon_service.coupon cu join coupon_service.coupon_extend ce on ce.tenant_id = $0 and ce.tenant_app_id = $1 and ce.id = cu.id where cu.tenant_id = $2 and cu.tenant_app_id = $3 and cu.coupon_no = $4|4|147|64||0|0|697088|174272|4|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14)|4|5|2||0|0|5483065|1371076|53|14|
|employee|update backlog_system set status = $0, finish_time = now() where tenant_app_id = $1 and scene = $2|4|14|7||0|0|4473240|1118310|0|0|
|gift_mail|select count(*) from gift_mail.trade t left join gift_mail.trade_take tt on tt.trade_id = t.id where t.tenant_id = $0 and t.tenant_wechatapp_id = $1 and t.trade_type = $2 and t.order_status = $3 and t.take_type = $4 and tt.shop_id = $5|4|7|2||0|0|16386|4469|4|1|
|employee|select date_format(t.create_time, '%d') as monthday, ifnull(sum(task_amount), $0) as shouldmarknum, ifnull(sum(finish_amount), $1) as marklabelnum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.employee_id in ($4, $5, $6, $7) and t.scene = $8 and t.begin_time >= $9 and t.expire_time < $10 group by date_format(t.create_time, '%d')|4|14|5||0|0|51942|13794|40|10|
|user_service|select ue.employee_id as employeeid, count(*) as quantity from user_service.user_employee ue where ue.employee_id in ($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) and ue.tenant_id = $16 and ue.tenant_wechatapp_id = $17 and ue.shop_id = $18 group by ue.employee_id|4|5|1||0|0|94559|23956|56|14|
|employee|select ifnull(sum(task_amount), $0) as shouldmarknum, ifnull(sum(finish_amount), $1) as marklabelnum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.employee_id in ($4, $5, $6, $7) and t.scene = $8 and t.begin_time >= $9 and t.expire_time < $10|4|14|5||0|0|51862|13774|4|1|
|user_service|select us.from_id as id, count(1) as total from user_source us where us.tenant_id = $0 and us.tenant_wechatapp_id = $1 and us.shop_id = $2 and us.create_time >= $3 and us.create_time < $4 and us.source_type = $5 and us.from_id is not null and us.shop_id is not null group by us.from_id order by count(1) desc|4|47|24||0|0|71568|22889|28|7|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172, $173, $174, $175, $176, $177, $178, $179, $180, $181, $182, $183, $184, $185, $186, $187, $188, $189, $190, $191, $192, $193, $194, $195, $196, $197, $198, $199, $200, $201, $202, $203, $204, $205, $206, $207, $208, $209, $210, $211, $212, $213, $214, $215, $216, $217, $218, $219, $220, $221, $222, $223, $224, $225, $226, $227, $228, $229, $230, $231, $232, ...|3|10|5||0|0|3463091|1320255|1150|568|
|coupon_service|select cu.id, cu.coupon_name, cu.coupon_type, cu.coupon_no, cu.source as couponchannel, cu.coupon_state, ce.user_name, ce.creator_user_name as creatorname, if(coupon_type in ($0, $1), cu.face_value, round(cu.face_value / $2, $3)) as facevalue, cu.begin_time, cu.end_time, ce.remark, ce.mobile_no, ce.creator_mobile_no, cu.create_time, cu.user_id, round(cu.balance / $4, $5) as balance, ce.source_user_id, ce.source_user_type, ce.member_source_shop from coupon_service.coupon cu join coupon_service.coupon_extend ce on ce.tenant_id = $6 and ce.tenant_app_id = $7 and ce.id = cu.id where cu.tenant_id = $8 and cu.tenant_app_id = $9 and cu.coupon_no = $10 limit $11|3|8|3||0|0|522816|174272|3|1|
|employee|select id, scene, employee_id, member_user_name as username, finish_time, status from employee.backlog where tenant_id = $0 and tenant_app_id = $1 and shop_id = $2 and expire_time between $3 and $4 and status != $5 and scene not in ($6, $7) order by id desc limit $8|3|6|2||0|0|758269|276720|19|9|
|user_service|select count(0) from ( select us.shop_id as id, count(1) as total from user_source us where us.tenant_id = $0 and us.tenant_wechatapp_id = $1 and us.source_type = $2 and us.from_id is not null and us.shop_id is not null and us.create_time >= $3 and us.create_time < $4 group by us.shop_id ) table_count|3|7|4||0|0|83493|31846|3|1|
|v4_coupon|select * from v4_coupon.sales_give_coupon_record where sales_id = $0 and sales_detail_id is null and tenant_id = $1 and tenant_app_id = $2|3|3|1||0|0|247470|82521|0|0|
|gift_mail|select count(0) from ( select p.id, p.product_name, p.tag_price, i.volume, p.product_status as status, p.default_image_url, i.quantity, i.market_price, if(prp.id is null, false, true) as hasrecommend from gift_mail.platform_product p join gift_mail.platform_inventory i on i.product_id = p.id left join gift_mail.platform_recommend_product prp on prp.tenant_app_id = $0 and prp.is_recommend = true and prp.platform_product_id = p.id where prp.id is null and p.product_status = $1 order by p.tag_price desc, p.id desc ) tmp_count|3|3|1||0|0|21786|7262|3|1|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12wmjqwhcaaas536j8mmxfazbvtio6aq0q$13wm2wxudqaa9s-xwld_ihjcq7qjikwn1w$14wm2wxudqaahyrms6omlhisdr1erodnrg$15wm2wxudqaae8yrnjnbjmantqjw58dbja$16wm2wxudqaaay6_hapuhjhl4vxflj0rfw$17wm2wxudqaacqoaheoqx8i0e813a1ebma$18wm2wxudqaagghhf_psje7zo-gntgcnrq$19wm2wxudqaablfygz6raigjqaap4jxzlg$20wmjqwhcaaawxz4swff9npt8yzzmv4aka$21wm2wxudqaacrfocgl9upkirayskyn4yq$22wmjqwhcaaatw6e8qbuijv16qltlbt2pg$23wm2wxudqaapae8ljyvnsqfu5aebnzhvq$24wmjqwhcaaaab7rucy7st8eeqgrcz8qaa$25wmjqwhcaaat0o1vump8smhegbncfusjw$26wm2wxudqaaak477jvwzeiwrvhbxkc9fq$27wmjqwhcaaazfm5zbhsoqgdi8sv2ae3mw$28wm2wxudqaahijjszrctcpb9wmqi03u6a$29wmjqwhcaaa1ul5wjpesgp-9itmtjsmmw$30wm2wxudqaamd8bcpohej__n7knpvie9q$31wm2wxudqaax6dgjy8zkmx_f6x72vcitq$32wm2wxudqaadu66ezd1zcatevt3dcsn9a$33wm2wxudqaaf9rw4a1dczgpancwz05x-w$34wmjqwhcaaaj7v1xkhns1qrjmhw_y6lka$35wmjqwhcaaa7ooymo7ztajxinj7yqv_vg$36wm2wxudqaavxuatu1xks1j3wm5vww7va$37wmjqwhcaaaklgjo2b6oyv2hvcqt5lkcg$38wm2wxudqaailwqqzsoehmma-m-v48lua$39wmjqwhcaaaysjdjkpxpfc4ymnzedi7bw$40wmjqwhcaaadrvao5njjentrbjxv5vq1w$41wm2wxudqaa8hmzc1otnuzaznqjgxnfwq$42wmjqwhcaaag6jue-5ln6eyzhquupkkba$43wm2wxudqaadvktni9odcl10lebfe5akw$44wm2wxudqaabe-hnfkm9cq35ozoyoamng$45wm2wxudqaalx8tqjlevm7uyvk83qrwqw$46wm2wxudqaagxjmvzr5k7vz5w6f7oatgq$47wm2wxudqaa77h6vejeupj7erzjfljgmg$48wmjqwhcaaapdmomnkil4_kcsra0_fwhw$49wm2wxudqaaf05azesx7s7mwgcpaelcwg$50wm2wxudqaa2scxjjoilm0uoj_59f2wfa$51wm2wxudqaaeatn3tlsgudugsoiieswia$52wmjqwhcaaa5tqoe1xkongvvswqmhxreg$53wm2wxudqaarf3xoc6h0mkkznbxewh5ew$54wm2wxudqaadocv1oioavnpkfhhpzmvfw$55wm2wxudqaau39185g5nzgyoprvfanxlw$56wm2wxudqaafyoqokcmopm5cg6qgbyeqa$57wm2wxudqaaqlss-wtafcuq71t7mf0kqg$58wm2wxudqaauaeyi-x1f1yvckqzwztgmw$59wm2wxudqaahe-6ucoprs6mewefz20s6q$60wm2wxudqaauyfcf1arnvfaslshbuskka$61wm2wxudqaaqrws1mr6xco3g9pevs8gvw$62wm2wxudqaamcmlqeo1pwujfmcswdolua$63wm2wxudqaawgxtqwh057mkvbxqshbqbw$64wm2wxudqaaihixc-071xm2pgapr56daq$65wm2wxudqaap2lkynzlabd9nys8r6me9g$66wmjqwhcaaamnek9qjpqnzn-qb_osvw6a$67wmjqwhcaaa5z0ydvncboir5eubxmq1ng$68wm2wxudqaavleeefhwp8uxjhrqabipba$69wm2wxudqaa6hpjhvuc-lgs0sadn_ekgq$70wm2wxudqaahozv0hp6mzduokxrcop, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95wm2wxudqaaq6mms9duihhhzneqqffnha$96wm2wxudqaakgsxzwar3vcn2qiozzfiaw$97wmjqwhcaaarjle0mtphcx_p_-1lcb99w$98wm2wxudqaaee6lkkrlnbcp4wyt6xbi1g$99wm2wxudqaalhkzrprwmdgbdnarket1tq$100wm2wxudqaarj8vqwj2qikzxfuqtxtdhw$101wmjqwhcaaar-757oigfdhnw1pupayf2g$102wm2wxudqaa5cuwvzwj4u7sexwitmih5w$103wm2wxudqaafcjy3b6_kgwl89bb67xpng$104wm2wxudqaaj2qodt0sblm1ngdi-vnazw$105wm2wxudqaal7xdd_ht6ey6fgpemqalrw$106wm2wxudqaac6kl4jyfecu1bymrj49t8a$107wm2wxudqaasr5ye8bcah4r4wlenckzfa$108wm2wxudqaaghfnpc8gaoz5kvvfqdeebq$109wm2wxudqaa6fgwar06w-e6vkdbgvyz-g$110wm2wxudqaazdfe9lthndahxxv1gpmbew$111wm2wxudqaax3qq66b4bxs9nfkcq9yxhg$112wm2wxudqaag70626ra8dt0yslbg9bzxa$113wm2wxudqaaibtrrjrqxigngyprowrmcg$114wmjqwhcaaaz-9kf4yll7ltryaduihqyw$115wm2wxudqaaz0etz6tk4cgggctyaldmca$116wm2wxudqaahkhn0govf9_end3dpmkijw$117wm2wxudqaaa_32hvzidgvrcd3_xx6jla$118wm2wxudqaan2clngwaqrckgrujfnkqfa$119wm2wxudqaa-gcbm9_pzwl4gnwru6cybq$120wmjqwhcaaarj6vucsnuz_scofderym0g$121wm2wxudqaappu1s2y80lkevnk71deusa$122wmjqwhcaaaa4ko4xn64hiexp5xc0e6pw$123wmjqwhcaaa3mkuqvyevnvuuktqks-pvq$124wm2wxudqaaidit...|3|4|1||0|0|4335|1445|2031|677|
|tenant|select sg.id, sg.sneak_guest_no, sg.user_id, sg.user_type, sg.maintain_level, sg.maintain_employee_id, sg.create_time, sg.last_maintain_date, ey.employee_name as maintainemployeename, sg.status, sg.finish_date, sg.next_maintain_date from sneak_guest sg left join employee ey on sg.maintain_employee_id = ey.id where sg.tenant_app_id = $0 and sg.create_shop_id = $1 and sg.maintain_employee_id = $2 and sg.next_maintain_date >= $3 and sg.next_maintain_date <= $4 and sg.status = $5 order by sg.id desc limit $6, $7|3|7|5||0|0|1842590|614238|9|7|
|gift_mail|select p.id, p.product_name, p.tag_price, i.volume, p.product_status as status, p.default_image_url, i.quantity, i.market_price, if(prp.id is null, false, true) as hasrecommend from gift_mail.platform_product p join gift_mail.platform_inventory i on i.product_id = p.id left join gift_mail.platform_recommend_product prp on prp.tenant_app_id = $0 and prp.is_recommend = true and prp.platform_product_id = p.id where prp.id is null and p.product_status = $1 order by i.volume desc, p.id desc limit $2, $3|3|3|1||0|0|24990|8408|18|6|
|user_service|select count(0) from ( select count(1) from user_source us where us.tenant_id = $0 and us.tenant_wechatapp_id = $1 and us.from_id = $2 and us.shop_id = $3 and us.create_time >= $4 and us.create_time < $5 and us.source_type = $6 and us.from_id is not null and us.shop_id is not null ) table_count|3|4|2||0|0|1522|865|3|1|
|gift_mail|select id, tenant_wechatapp_id, shop_id, shop_name, product_id, create_time, update_time from take_shop where product_id = $0|3|3|1||0|0|130674|43558|59|46|
|user_service|select count(0) from user_service.tenant_member t1 join user_service.tenant_member_info t2 on t1.tenant_id = t2.tenant_id and t1.id = t2.id and t2.tenant_app_id = $0 and t2.shop_id = $1 join user_service.user_employee ue on t1.tenant_id = ue.tenant_id and t1.tenant_app_id = ue.tenant_wechatapp_id and t1.user_id = ue.user_id and ue.employee_id = $2 and ue.shop_id = $3 where t1.tenant_id = $4 and t1.tenant_app_id = $5 and (t1.mobile_no like concat($6, $7) or t1.user_name like concat($8, $9, $10))|3|4|1||0|0|15781|8229|3|1|
|gift_mail|select * from ( select p.id, p.default_image_url, p.product_name, p.product_type, p.tag_price, ifnull(pp.integral_price, ifnull(( select min(inventory.price) from gift_mail.inventory where inventory.product_id = p.id ), $0)) as price, p.volume, p.category_id, p.product_status, $1 as quantity, pp.partner_id as partner_id, p.topping from gift_mail.product p left join gift_mail.partner_product pp on p.id = pp.product_id left join gift_mail.product_status ps on ps.product_id = p.id where p.tenant_id = $2 and product_status = $3 and (p.is_disable is null or p.is_disable = $4) and (ps.tenant_wechatapp_id = $5 or p.product_type = $6) ) p where p.topping = $7 order by p.volume desc, p.id desc limit $8|3|3|1||0|0|49515|16505|18|6|
|employee|update backlog set status = $0, finish_time = now() where tenant_app_id = $1 and employee_id = $2 and status in ($3, $4) and shop_id = $5|3|4|1||0|0|9989|4650|0|0|
|user_service|select count(0) from user_service.tenant_member tm join user_service.tenant_member_info tmi on tmi.tenant_id = $0 and tmi.tenant_app_id = $1 and tm.id = tmi.id where tm.tenant_id = $2 and tm.tenant_app_id = $3 and (tm.user_name like concat($4, $5, $6) or tm.mobile_no = $7)|3|4|2||0|0|596984|199004|3|1|
|v4_coupon|select count(*) as total from ( select c.id, c.display_name, c.type as coupontype, round(c.face_value / $0, $1) as facevalue, round(c.face_value / $2, $3) as points, c.face_value as discount, c.begin_time, c.end_time, c.template_id, round(c.use_threshold / $4) as usethreshold, ce.exchange_goods, case when c.begin_time > now() and c.coupon_status = $5 then $6 else c.coupon_status end as coupon_status from v4_coupon.coupon c join v4_coupon.coupon_extend ce on ce.id = c.id and ce.tenant_id = $7 and ce.tenant_app_id = $8 where c.member_id = $9 and c.tenant_id = $10 and c.tenant_app_id = $11 ) c|3|5|2||0|0|258191|86148|3|1|
|activity_service|select id, tenant_id, tenant_app_id, activity_id, user_id, day, continuous_day, has_subscribe, user_name, create_time, update_time, first_sign_time, mobile_no from online_sign_user where tenant_app_id = $0 and user_id = $1|3|3|1||0|0|356621|118878|0|0|
|v4_sales|select es.id as salesid, es.sales_no, es.sales_date, es.member_erp_id as memberid, w.warranty_no from v4_sales.erp_sales es join v4_sales.warranty_can_added wca on wca.sales_id = es.id and wca.tenant_id = $0 and wca.tenant_app_id = $1 left join v4_sales.warranty w on w.sales_id = es.id and w.tenant_id = $2 and w.tenant_app_id = $3 where is_sales = true and sales_status = $4 and (es.sales_no like concat($5, $6) or es.member_erp_id = $7) and es.tenant_id = $8 and es.tenant_app_id = $9 order by es.sales_date desc, es.id desc limit $10|3|33|16||0|0|766096|255366|6|2|
|corpwx|update external_user set un_assign_flag = $0 where tenant_id = $1 and corp_user_id = $2 and user_id = $3|2|4|2||0|0|3|2|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172, $173, $174, $175, $176, $177, $178, $179, $180, $181, $182, $183, $184, $185, $186, $187, $188, $189, $190, $191, $192, $193, $194, $195, $196, $197, $198, $199, $200, $201, $202, $203, $204, $205, $206, $207, $208, $209, $210, $211, $212, $213, $214, $215, $216, $217, $218, $219, $220, $221, $222, $223, $224, $225, $226, $227, $228, $229, $230, $231, ...|2|4|3||0|0|2037410|1228230|483|252|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|2|2|1||0|0|361166|253024|68|34|
|coupon_service|select t.id from coupon_service.template t left join coupon_service.coupon_scope s on s.tenant_id = t.tenant_id and s.tenant_app_id = t.tenant_app_id and s.template_id = t.id where t.coupon_type = $0 and t.tenant_id = $1 and t.tenant_app_id = $2 and (t.scope = $3 or s.scope = $4 and s.product_id = $5 or s.scope = $6 and s.classify_id = $7)|2|3|1||0|0|40532|20266|2|1|
|order|select count(1) as total, ifnull(sum(if(od.status > $0, od.payment_fee, $1)), $2) as paymentfee, ifnull(sum(if(od.status > $3, od.offline_payment_fee, $4)), $5) as offlinepaymentfee, ifnull(sum(if(od.status > $6, od.payment_fee + od.offline_payment_fee, $7)), $8) as paytotalfee from order_info od left join order_detail dt on od.id = dt.order_id left join order_address ad on od.id = ad.order_id where od.tenant_id = $9 and od.tenant_wechatapp_id = $10 and (od.mobile_no = $11 or ad.mobile_no = $12)|2|3|1||0|0|172305|86244|2|1|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)|2|2|1||0|0|2741225|1370614|30|15|
|v4_coupon|select tenant_id, tenant_app_id, member_id, count(1) as total from v4_coupon.coupon where datediff(date_format(end_time, '%y-%m-%d'), date_format(now(), '%y-%m-%d')) = $0 and coupon_status in ($1) group by tenant_id, tenant_app_id, member_id|2|2|1||0|0|180946|90634|21|11|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)|2|2|1||0|0|152903|100124|24|12|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $84wm2wxudqaa7ovxddospzkrywr96dpy_w$85wm2wxudqaarsmmxq9d5x5cmvonsbtj2g$86wmjqwhcaaapag9rn_lnxlnve0kja2eag$87wmjqwhcaaae9xrwk-rakzock9beavsmg$88wm2wxudqaanroxffxq2umkvqthsflmsa$89wm2wxudqaal0ssofr0kzwsw-db3qnrwa$90wm2wxudqaakq9wkp1jgoy7yymnsxionq$91wmjqwhcaaamcmtcwqbqlfkt0sytzbsaq$92wmjqwhcaaa9lia1db85giirzmuk_1xgq$93wm2wxudqaamqthanoyvvl_2ziewyjdow$94wm2wxudqaarh2wd3-avfw0osjkyup0ig$95wm2wxudqaaz308tmnuejzda844yc_mlw$96wm2wxudqaamxylvlmdfvnes2qkmfz45g$97wm2wxudqaapshd2qy2wew8fos92ypxrq$98wm2wxudqaateb3eemmxpi1fyafxlyfpw$99wm2wxudqaavqwq5gr-0unzg9spucbglq$100wm2wxudqaaafcqgvoywduscgch6lv6yw$101wm2wxudqaarventnz6gx5cr0gx7mbhcg$102wm2wxudqaa7inw11mq7fv6v2lyad6yeq$103wm2wxudqaaz9hx5pngwjrtdoa5hi7vzq$104wm2wxudqaa-545ql79phzylhpjw-kooq$105wm2wxudqaanxjrk9l5gqxh4ubr5nn6ya$106wm2wxudqaa58tde4tt-t5s9uc_t6ni7w$107wmjqwhcaaa6s2cz0_4_g5v_gy8hyfrzg$108wm2wxudqaau63eyw6ftscbwtemoorggw$109wmjqwhcaaannlspw9eom2pfkvped8kkq$110wmjqwhcaaalct6zothgpddapib7j6wwa$111wm2wxudqaamtsenj2anudaywevehay_a$112wmjqwhcaaakwzso4ulilndvwx4gdiqua$113wm2wxudqaa90hzkvz_qezxmae-w46keg$114wm2wxudqaacyvlotnoaz5geucs3plmgg$115wm2wxudqaaqezbav9_ts79c3vtriju_q$116wm2wxudqaamdcorphfafnowqdzzyihfg$117wmjqwhcaaarseek9r1e4ywoit-ntfonw$118wm2wxudqaazocwcamojr4esj12qxptuw$119wmjqwhcaaao1ax17i7twntuft8rsocjg$120wm2wxudqaas4d0-qxqaavgy3t1p6q_qa$121wm2wxudqaapwdnbbqw3fsu2hmb7frbaq$122wm2wxudqaaglutf4jm2ybs4qqauko6vq$123wm2wxudqaahp9w2c3q1szogksevpesma$124wmjqwhcaaavjhg4xsx6yaow6sdxmykaa$125wm2wxudqaa5riu...|2|2|1||0|0|3344|1672|1496|748|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $99, $100, $101wmjqwhcaaat18mgkd62-fzrg1mvqoz1q$102wm2wxudqaakehb_t5bkgtupzutguec1g$103wm2wxudqaaynf-7asy-otcic09hqpnqq$104wmjqwhcaaawjek3dpinkhusa9zh-uewg$105wm2wxudqaa5cwnkclpnndy42ikcoas_w$106wm2wxudqaakzvcrggofgva4cmpdjo67w$107wmjqwhcaaamsen1mr5lcrvevht2xdfdw$108wm2wxudqaamp8spqodjndphs8k8fcydg$109wm2wxudqaamj7-lqs7qf46safg3scelq$110wm2wxudqaaclyqwkjgedtr3kozme37eq$111wm2wxudqaapfqkzun28s_amimhzrixpw$112wm2wxudqaaljiqto9dqljcc4f_ixkb5g$113wm2wxudqaar1ccssaevpzla_tuzgwxqg$114wm2wxudqaangp8oaqoryltydhg7ftyeq$115wm2wxudqaa-f2dtmews4albljbijxulw$116wmjqwhcaaay73ewqjtynq5ise-tngbdq$117wm2wxudqaadnqfk0yee26l5wvhtkl41w$118wmjqwhcaaam5od-plazzpbatqcl9egog$119wm2wxudqaa8iczf2fz-8zyotgzg94kmg$120wmjqwhcaaabzssxxc_dwhxqdo5lhpkia$121wm2wxudqaa6pfv5gh2s2a0wte3yjxgbg$122wm2wxudqaa6huctlg6pfhenvtz4atm5g$123wm2wxudqaabupfpzgndy8dzprbs4xv8a$124wmjqwhcaaaxtrc4kvw32csjcfsruktvg$125wm2wxudqaasdbo...|2|2|1||0|0|3016|1508|1432|716|
|employee|select date_format(t.create_time, '%d') as monthday, ifnull(sum(task_amount), $0) as shouldmarknum, ifnull(sum(finish_amount), $1) as marklabelnum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.employee_id in ($4, $5, $6, $7, $8) and t.scene = $9 and t.begin_time >= $10 and t.expire_time < $11 group by date_format(t.create_time, '%d')|2|16|11||0|0|38278|25141|19|10|
|activity_service|select count(t.user_id) as lotterycount, count(distinct t.user_id) as lotterynum from lottery_winner t where t.lottery_activity_id = $0|2|2|1||0|0|1899|950|2|1|
|employee|select date_format(t.create_time, '%d') as monthday, ifnull(sum(task_amount), $0) as shouldmarknum, ifnull(sum(finish_amount), $1) as marklabelnum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.employee_id in ($4, $5, $6, $7, $8, $9, $10) and t.scene = $11 and t.begin_time >= $12 and t.expire_time < $13 group by date_format(t.create_time, '%d')|2|8|4||0|0|67178|33589|20|10|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18)|2|2|1||0|0|2740970|1370848|29|19|
|employee|select ifnull(sum(task_amount), $0) as shouldmarknum, ifnull(sum(finish_amount), $1) as marklabelnum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.employee_id in ($4, $5, $6, $7, $8) and t.scene = $9 and t.begin_time >= $10 and t.expire_time < $11|2|16|11||0|0|38240|25121|2|1|
|order|select id, tenant_id, tenant_wechatapp_id, order_id, user_id, user_name, shop_id, shop_name, operator_type, src_status, dst_status, full_message, remark, create_time, update_time, src_child_status, dst_child_status from order_operator_log where tenant_wechatapp_id = $0 and order_id = $1 and dst_status = $2 order by create_time desc|2|2|1||0|0|1711883|855953|2|1|
|coupon_service|select count(0) from coupon_service.coupon cu join coupon_service.coupon_extend ce on ce.tenant_id = $0 and ce.tenant_app_id = $1 and ce.id = cu.id where cu.tenant_id = $2 and cu.tenant_app_id = $3 and cu.source = $4|2|54|34||0|0|602048|301024|2|1|
|v4_sales|select count(*) from v4_sales.erp_sales where employee_erp_id = $0 and sales_status = $1 and is_sales = true and tenant_id = $2 and tenant_app_id = $3|2|2|1||0|0|5360|2718|2|1|
|v4_employee|select count(*) as total_count, count(finish_time) as finish_count from task_task t join task_invite_task_template t2 on t.task_template_id = t2.id and t2.tenant_id = $0 and t2.tenant_app_id = $1 where t2.invite_time < $2 and t.end_time > $3 and t2.status in ($4, $5, $6) and t.task_type = $7 and t.status = $8 and t.shop_id = $9 and t.tenant_id = $10 and t.tenant_app_id = $11|2|6|3||0|0|141828|70914|2|1|
|user_service|select tmb.erp_member_id as member_erp_id, tm.tenant_id, tm.tenant_app_id, tm.mobile_no, tm.user_name, tmi.grade_id as grade_erp_id from user_service.tenant_member tm join user_service.tenant_member_bind tmb on tm.tenant_id = tmb.tenant_id and tm.id = tmb.id join user_service.tenant_member_info tmi on tm.tenant_id = tmi.tenant_id and tm.id = tmi.id where tmb.tenant_id = $0 and tmb.tenant_app_id = $1 and tmb.erp_member_id in ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21)|2|2|1||0|0|105|54|35|18|
|coupon_service|select count(1) from coupon_service.coupon_expire_task where tenant_id = $0 and tenant_app_id = $1 and shop_id = $2 and status = $3 and expire_time > now()|2|2|1||0|0|130886|65443|2|1|
|v4_user|select count(*) as total from member where status = $0 and member_name like $1 and tenant_id = $2 and tenant_app_id = $3|2|4|3||0|0|421016|210519|2|1|
|gift_mail|select count(*) from gift_mail.trade t left join gift_mail.trade_take tt on tt.trade_id = t.id where t.tenant_id = $0 and t.tenant_wechatapp_id = $1 and t.trade_type in ($2, $3) and t.order_status = $4 and t.take_type = $5 and tt.shop_id = $6|2|3|1||0|0|7220|3655|2|1|
|v4_coupon|select * from v4_coupon.sales_give_coupon_record where put_id = $0 and sales_id = $1 and rule_id = $2 and tenant_id = $3 and tenant_app_id = $4 limit $5|2|2|1||0|0|164936|82483|0|0|
|order|select count(*) from `order`.order_info where tenant_id = $0 and tenant_wechatapp_id = $1 and take_type = $2 and status = $3 and (wait_take_shop_id = $4 or take_shop_id = $5)|2|2|1||0|0|5013|4466|2|1|
|tenant|select es.id, es.sales_no, es.sales_date, es.sales_erp_id, es.amount, ifnull(shop.shop_name, ed.dept_name) as dept_name, es.employee_name from tenant.erp_sales es join tenant.erp_department ed on ed.dept_erp_id = es.dept_erp_id and ed.tenant_id = $0 left join tenant.tenant_wechatapp_shop shop on shop.dept_erp_id = ed.dept_erp_id and shop.tenant_wechatapp_id = $1 where es.member_erp_id = $2 and es.tenant_id = $3 and es.tenant_wechatapp_id = $4 and es.sales_status = $5 and not exists ( select i.id from tenant.erp_sales_ignore i where i.tenant_id = $6 and i.tenant_app_id = $7 and es.sales_erp_id = i.erp_sales_id ) order by es.sales_date desc limit $8|2|2|1||0|0|6079380|3042860|20|10|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172, $173, $174, $175, $176, $177, $178, $179, $180, $181, $182, $183, $184, $185, $186, $187, $188, $189, $190, $191, $192, $193, $194, $195, $196, $197, $198, $199, $200, $201, $202, $203, $204, $205, $206, $207, $208, $209, $210, $211, $212, $213, $214, $215, $216, $217, $218, $219, $220, $221, $222, $223, $224, $225, $226, $227, $228, $229, $230, $231, $232 ...|2|2|1||0|0|1688317|865456|621|334|
|employee|update backlog set leave_flag = $0 where tenant_app_id = $1 and employee_id = $2|2|4|3||0|0|5966|3546|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147)|2|4|2||0|0|1554832|782436|292|146|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|2|2|1||0|0|564578|289024|102|51|
|coupon_service|select cet.id, cet.coupon_id, cet.user_id, cet.coupon_type, cet.expire_time, if(cet.expire_time < now() and cet.status = $0, $1, cet.status) as status from coupon_service.coupon_expire_task cet join coupon_service.coupon_extend ce on ce.tenant_id = $2 and ce.tenant_app_id = $3 and ce.coupon_id = cet.coupon_id where cet.tenant_id = $4 and cet.tenant_app_id = $5 and cet.employee_id = $6 and cet.shop_id = $7|2|4|2||0|0|91329|65543|351|251|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $2, $3, $4, $5, $6, $7, $8, $9wmjqwhcaaazvjk4ps-p3pqwpkrda1cpg$10wm2wxudqaai3ldwqbdozl93rdoy10j2a$11wm2wxudqaaggginf_y_fvbcvhjf_swkq$12wm2wxudqaaa_rrikgetpwbsimm9t0fyq$13wm2wxudqaal81co5o-o8tk4rpl33rw8a$14wmjqwhcaaa1kcb6o77zhlewzg1gpabgq$15wm2wxudqaaeep9z3d552cyye4eabyasw$16wm2wxudqaari2bzsvn7bmvuiuqjlpxig$17wmjqwhcaaajw3gybgkiqfciev9v781ma$18wm2wxudqaazzya93ptvjxq_icsakpa4q$19wm2wxudqaaazklkxtmznupvwjlyaba5w$20wm2wxudqaayrrnxf8g8uzzs_qbi8rtlq$21wm2wxudqaa7nx3wcozfjh0rsvjaykg_a$22wm2wxudqaajvpficndqh-t6r1jwwr4og$23wm2wxudqaampf0vuowx9w0rjvznqltxw$24wm2wxudqaaksdrmowuhlc_nntnzedviq$25wmjqwhcaaa9ie4_voevxupcvs993mt4q$26wmjqwhcaaalhfg35iaz0brlrhcwn6lqw$27wm2wxudqaaqk_2okgemmdww5t5-vwb3w$28wm2wxudqaazeoqcbobhzvavmaedtv7ew$29wm2wxudqaathhqahiqnjchjbtzci1tla$30wmjqwhcaaau5cez8tlivi2uyo_iddsfa$31wmjqwhcaaa5i_d6q9tgmx9wn5tc0dgka$32wm2wxudqaazghrsvm3c5z8nu-8aq2anq$33wmjqwhcaaa02hytwweuntzymhdcdlq3a$34wmjqwhcaaaqltheylt3gh375krq1195g$35wm2wxudqaaldvuinl-w1cbzxdggtlrzg$36wm2wxudqaahuxqz5-44hnynyj1kjv_qa$37wm2wxudqaaj3y3wgjuaze9yf-p716_da$38wm2wxudqaax7j76joahtybrv4h6ul8oq$39wmjqwhcaaah-vou0e0ms8kq1_dfwirlq$40wm2wxudqaatzlxhimq1rr7w4cgvup2tq$41wm2wxudqaaeaw3ct6fr0ybwzdskfmoow$42wm2wxudqaam55hjefa1gqp8umvaksk8w$43wm2wxudqaazsewbcxkrc1wafx9rtqicw$44wm2wxudqaabgq0y1zy_z-0bs722tgbkg$45wm2wxudqaamann6eoc3wfszeivyuoo1g$46wm2wxudqaayu-vtvu7u5rnqvepuzihtw$47wm2wxudqaaz1ns8r7zqdncw2dioorlra$48wm2wxudqaaox4hig8m5tgnj9xhvgtbyg$49wm2wxudqaahulx_g0pzhyh9yfrrykyeg$50wm2wxudqaaopgxcm9wnfz6p3jqwyjtaw$51wm2wxudqaa7ol-ftvuzzlvrgdrul4sgq$52wm2wxudqaaay3a_lv3s6nt9sx1th1kka$53wm2wxudqaanmdxcbxluzcz3g8q_4zyuw$54wm2wxudqaain0wr8-yrb63dgtpfdusaq$55wm2wxudqaagce4asmf8kdkvxkozz-ffq$56wm2wxudqaatfqftgmtbocbvjshuxpqtg$57wm2wxudqaarlhnvqmt16erhqwmet5gyg$58wmjqwhcaaao0i3bfdwu5m1zf7abttpow$59wm2wxudqaaclull9k_c6h2drwlb1kutw$60wm2wxudqaaianez02l61xcdugldecmpg$61wm2wxudqaa-xawdrgiosmpnivau3lmyw$62wmjqwhcaaa0bmwku21azivqnzvtdq4ow$63wm2wxudqaasa9sibrkq_c7jakgfo9jbq$64wm2wxudqaasokq8mas261vknaxge3mdw$65wmjqwhcaaalmqt8kequ5epj3lhfu7peg$66wm2wxudqaaumo1yg1fw_b4oztfknmh8q$67wmjqwhcaaanvb0tjhehfp8crc8zlhjha$68wm2wxudqaazvirwtcy-libld-klyhr0w$69wmjqwhcaaahqlxuftjcw0f4klbmi8cyg$70wm2wxudqaamdbcb4pxnwktmqkrsolx2q$71wm2wxudqaaneh0z0oramcltxpsnojwlq$72wm2wxudqaavgcr_k2uxom_xrd4etp4da$73wm2wxudqaabdbjzrhzyxahuujlxa5-tw$74wm2wxudqaacf_f6frisua2-fsqoaroha$75wm2wxudqaaftna6mmn46dp5nlcjvl4ug$76wm2wxudqaarivioi3iqgkcnbc2mb2dsg$77wm2wxudqaarlcpzmal0vkjdjj7runwka$78wmjqwhcaaaat8j5nopj6vtfvvwcdlttq$79wm2wxudqaa3b3qnyekudeqrs57e00z2w$80wmjqwhcaaawy9bkjnuj0d6x6bvup8zsq$81wm2wxudqaaxccqtssxcb2naoqq3gbemw$82wm2wxudqaa3y-uyq9yhw1iqr-uxx10la$83wm2wxudqaagzb_epcnfh8sx1jgc7jqdw$84wm2wxudqaadrujygwty0agaspe_a8pyw$85wm2wxudqaabz3lhtej73nvju7c9xf7ka$86wm2wxudqaagynmptlixmv87plcvsfiyg$87wmjqwhcaaabeuftawyfhv1mqobzsapda$88wm2wxudqaaf4whhqhela249s7fn8lvqq$89wm2wxudqaara3xruznppyftzdyxnqfkq$90wm2wxudqaaqhl4oc_farf4stwdeh0j6a$91wm2wxudqaaqbnkgftvb6ly8kwehwe36g$92wm2wxudqaaz4njzcypr7in1v5jdeh0cg$93wm2wxudqaa-ggclgt09rvenonokbykzw$94wm2wxudqaamc19_j8ywn6m95azarn8ww$95wm2wxudqaaat_9kvhv2spf9o3gsna_-q$96wm2wxudqaasqirrrh1iu4ge7w70nxtwa$97wm2wxudqaadozskqcch3iqf5n93znkxa$98wm2wxudqaatvpufolrxc4cgas6jy7d5q$99wm2wxudqaabw1reuzo4oda6mv17uxksq$100wm2wxudqaaevonfmqtscpqv4pwtgnhqg$101wm2wxudqaaluoi1wap7bfdm5p1hc__cw$102wmjqwhcaaahm8fzubmjut7yv-d5jh0mg$103wmjqwhcaaa4rzgyzrf-b5yfx7plwffvq$104wmjqwhcaaa6okxhuxnsksp9mz4577cyw$105wmjqwhcaaaywudvqqyghgxkms3dqxh_q$106wmjqwhcaaabevdpvun9jmlsgtsot4kkw$107wm2wxudqaattykyib9twa3vkgv4pimsw$108wm2wxudqaa0j90xnpqrs_unih8u2xhca$109wm2wxudqaahgkwgsu-bbjhu53yklsiqq$110wmjqwhcaaazokog6gmb38vq6awbhfd3q$111wm2wxudqaagjhxyhetj3jpbm2jzrocqg$112wmjqwhcaaa-zxhtsnr_7tu_txvmbrkmw$113wm2wxudqaavwlugu1swhsqyhfytwfiew$114wm2wxudqaaquzyvq8om82sgvk95i5wew$115wm2wxudqaalxdu194ubalyt8tq9m1xag$116wmjqwhcaaawb1hfcdhpdgp8nabn-dgvw$117wm2wxudqaa-j6eh9-zknyha0daqjm93w$118wmjqwhcaaaupwzqwsh2dj5uyct5ho3ya$119wmjqwhcaaagq_-oxkkxqtqoortbslrbw$120wmjqwhcaaa7h6hnvobjj4pzgn, $121, $122, $123, $124, $125|2|3|1||0|0|2680|1340|1246|623|
|employee|select ifnull(sum(task_amount), $0) as shouldmarknum, ifnull(sum(finish_amount), $1) as marklabelnum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.employee_id in ($4, $5, $6, $7, $8, $9, $10) and t.scene = $11 and t.begin_time >= $12 and t.expire_time < $13|2|8|4||0|0|67138|33569|2|1|
|user_service|select count(1) from user_source us where us.tenant_id = $0 and us.tenant_wechatapp_id = $1 and us.create_time >= $2 and us.create_time < $3 and us.source_type = $4 and us.from_id is not null and us.shop_id is not null|2|6|4||0|0|51575|27614|2|1|
|gift_mail|select count(0) from ( select p.*, sp.take_type, ifnull(pp.integral_price, ifnull(( select min(inventory.price) from inventory where inventory.product_id = p.id ), $0)) as price, ifnull(t.quantity, $1) as quantity, pt.partner_name as vendorname, $2 as distance, c.categroy_name as categroy_name, pp.partner_id from product p inner join category c on c.id = p.category_id left join self_product sp on p.id = sp.product_id left join partner_product pp on p.id = pp.product_id left join partner pt on pt.id = pp.partner_id left join ( select product_id, sum(quantity) as quantity from gift_mail.inventory group by product_id ) t on p.id = t.product_id where p.is_disable is null or p.is_disable = $3 ) p left join product_status ps on p.id = ps.product_id and ps.tenant_wechatapp_id = $4 where p.product_status = $5 and p.tenant_id = $6 and p.product_type = $7 and (ps.id is not null or p.tenant_wechatapp_id = $8)|2|4|2||0|0|103133|51568|2|1|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $99, $100, $101, $102, $103, $104, $105, $106wm2wxudqaawjyf7e97u_ro2ltrhjplcg$107wmjqwhcaaaxgmq7za5gc3dmcxe55q9ng$108wm2wxudqaagucdbn8nglmky0h9ppn8kw$109wm2wxudqaayuqtavcdq8d70ufgufgvtg$110wm2wxudqaa6omz792soutr8vsrmdsumg$111wmjqwhcaaaex3rjffkrro-jdlbndjwkg$112wm2wxudqaacf3qzzcpcnfdcritnrgkqa$113wm2wxudqaac9rxcbcwye11hhyyyex-ma$114wm2wxudqaahnqykb25jvj_ompu7s9krg$115wm2wxudqaafy6th22d32ioe-kdfde99a$116wm2wxudqaa5y-jjccpzz96igdjmcmbmg$117wm2wxudqaapwjrayrvzylldvsiugneow$118wm2wxudqaa6uqqwwfjlidfbjpmrzydzq$119wm2wxudqaanx59cfy9vlylh_vs-bb_ka$120wmjqwhcaaarcjaohlzrj36yfgnchmn4w$121wmjqwhcaaaszz7brlab6n9iqyqmoizha$122wmjqwhcaaa_iu4fgb_cvmvnedib4o2hg$123wm2wxudqaauvctpc2-bhoequ3kqxougq$124wm2wxudqaadgh74xgnhpyqitq1z4n0nw$125wmjqwhcaaajpcp...|2|2|1||0|0|3134|1567|1492|746|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|2|2|1||0|0|505648|375631|96|48|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|2|5|4||0|0|1467610|772319|138|69|
|user_service|select tenant_id, id, tenant_app_id, user_id, shop_id, birthday, birthday_is_lunar, address, memorial_name, memorial_day, memorial_day_is_lunar, interest, grade_id, create_time, update_time from tenant_member_info where tenant_id = $0 and tenant_app_id = $1 and user_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172|2|2|1||0|0|5968|3124|5968|3124|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103)|1|1|1||0|0|1228101|1228101|102|102|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|317895|317895|61|61|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)|1|1|1||0|0|44218|44218|14|14|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|3|3||0|0|954431|954431|54|54|
|goods|select id, img_url, img_index from goods_img where goods_id = $0 order by update_time desc|1|1|1||0|0|26081|26081|1|1|
|authorization_service|update user_login_token set status = $0 where login_token in ( $1, $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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110|1|2|2||0|0|2829|2829|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|2|2||0|0|180685|180685|30|30|
|authorization_service|commit|1|1|1||0|0|0|0|0|0|
|v4_employee|select task_template_id as taskid, t.task_type, t2.name as taskname, ifnull(sum(if(finish_time is null, $0, $1)), $2) as num from task_task t join task_invite_task_template t2 on t.task_template_id = t2.id and t2.status = $3 and t2.tenant_id = $4 and t2.tenant_app_id = $5 where t.shop_id = $6 and t.`status` = $7 and t.end_time > current_date and t.tenant_id = $8 and t.tenant_app_id = $9 group by t.task_template_id, t.task_type, t2.name|1|1|1||0|0|12817|12817|1|1|
|user_service|select t1.id, t1.user_id as userid, t1.user_name as username, t1.sex, t1.mobile_no as mobileno, t1.head_img_url as headimg from user_service.tenant_member t1 join user_service.tenant_member_info t2 on t1.tenant_id = t2.tenant_id and t1.id = t2.id and t2.tenant_app_id = $0 and t2.shop_id = $1 join user_service.user_employee ue on t1.tenant_id = ue.tenant_id and t1.tenant_app_id = ue.tenant_wechatapp_id and t1.user_id = ue.user_id and ue.employee_id = $2 and ue.shop_id = $3 where t1.tenant_id = $4 and t1.tenant_app_id = $5 order by ue.update_time desc, t1.id desc limit $6, $7|1|1|1||0|0|20320|20320|10|10|
|activity_service|select count(*) from activity_signup_user_apply where activity_id = $0 and audit_status in ($1, $2, $3)|1|1|1||0|0|2449|2449|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101)|1|1|1||0|0|217580|217580|100|100|
|sms|select ifnull(sum(ifnull(t2.sms_size, $0) * t1.send_count), $1) as amount from sms_send t1 left join sms.sms_send_extend t2 on t1.biz_id = t2.biz_id where t1.tenant_app_id = $2 and t1.code = $3 and t1.create_time >= $4 and t1.create_time < $5|1|1|1||0|0|1640|1640|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|42919|42919|25|25|
|timer|update task_info set service = $0, name = $1, callback = $2, params = $3, cron = $4, delay = null, next_time = null, status = $5, create_time = $6, update_time = $7 where id = $8|1|1|1||0|0|1|1|0|0|
|tenant|select id, tenant_id, tenant_app_id, sneak_guest_maintain_id, sneak_guest_id, url, create_time, update_time from sneak_guest_maintain_file where tenant_app_id = $0 and sneak_guest_maintain_id in ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)|1|1|1||0|0|1371158|1371158|12|12|
|activity_service|select id from activity_service.activity_qualified where tenant_app_id = $0 and activity_id = $1 and (user_id = $2 or open_id = $3) and invalid = false order by id desc limit $4|1|1|1||0|0|79238|79238|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|693411|693411|94|94|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172, $173, $174, $175, $176, $177, $178, $179, $180, $181, $182, $183, $184, $185, $186, $187, $188, $189, $190, $191, $192, $193, $194, $195, $196, $197, $198, $199, $200, $201, $202, $203, $204, $205, $206, $207, $208, $209, $210, $211, $212, $213, $214, $215, $216, $217, $218, $219, $220, $221, $222, $223, $224, $225, $226, $227, $228, $229, $230, $231, $232\...|1|2|2||0|0|1320091|1320091|404|404|
||delete from v4_user.sjfx_dct_member where create_time < $0|1|1|1||0|0|51198|51198|0|0|
|v4_sales|select ifnull(count(*), $0) as sales_count, ifnull(sum(amount), $1) as sales_amount from erp_sales where member_erp_id in ($2) and is_sales = true and sales_status = $3 and tenant_id = $4 and tenant_app_id = $5|1|4|4||0|0|8747|8747|1|1|
|value_added|select id, tenant_wechatapp_id as tenantwechatappid, user_id as userid, template_id as templateid, sales_erp_id as saleserpid, product_name as productname, shop_name as shopname, product_barcode as productbarcode, amount_total as amounttotal, amount_pay as amountpay, amount_added as amountadded, state as state, add_days, added_percent_per_day as addedpercentperday, devalue_percent_per_day as devaluepercentperday, keeping_days as keepingdays, exchange_days as exchangedays, coupon_user_id as couponuserid, sales_index as salesindex, start_add_time as createtime, date_add(start_add_time, interval add_days - $0 day), date_add(start_add_time, interval add_days + keeping_days - $1 day) from value_added_user where keeping_days > $2 and state = $3 and start_add_time = date_add(curdate(), interval $4 * (add_days - $5) day)|1|11|11||0|0|1837763|1837763|1065|1065|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3, $4, $5)|1|1|1||0|0|20551|20551|4|4|
|value_added|update value_added_user set amount_added = if($0 > (added_percent_per_day / $1 * if($2 >= timestampdiff(day, date_format(start_add_time, '%y-%m-%d'), current_date) + $3 - add_days, timestampdiff(day, date_format(start_add_time, '%y-%m-%d'), current_date) + $4, add_days) - devalue_percent_per_day / $5 * if($6 >= timestampdiff(day, date_format(start_add_time, '%y-%m-%d'), current_date) + $7 - add_days - keeping_days, $8, timestampdiff(day, date_format(start_add_time, '%y-%m-%d'), current_date) + $9 - add_days - keeping_days)) * amount_pay, $10, (added_percent_per_day / $11 * if($12 >= timestampdiff(day, date_format(start_add_time, '%y-%m-%d'), current_date) + $13 - add_days, timestampdiff(day, date_format(start_add_time, '%y-%m-%d'), current_date) + $14, add_days) - devalue_percent_per_day / $15 * if($16 >= timestampdiff(day, date_format(start_add_time, '%y-%m-%d'), current_date) + $17 - add_days - keeping_days, $18, timestampdiff(day, date_format(start_add_time, '%y-%m-%d'), current_date) + $19 - add_days - keeping_days)) * amount_pay), update_time = now() where state = $20 and update_time <= curdate() and (start_add_time >= date_add(curdate(), interval -(add_days + keeping_days - $21) day) or (amount_added > $22 and start_add_time < date_add(curdate(), interval -(add_days + keeping_days - $23) day)))|1|21|21||0|0|1837723|1837723|0|0|
|gift_mail|select count(0) from ( select p.id, p.default_image_url, p.product_name, p.product_type, p.tag_price, ifnull(pp.integral_price, ifnull(( select min(inventory.price) from gift_mail.inventory where inventory.product_id = p.id ), $0)) as price, p.volume, p.category_id, p.product_status, $1 as quantity, pp.partner_id as partner_id, p.topping from gift_mail.product p left join gift_mail.partner_product pp on p.id = pp.product_id left join gift_mail.product_status ps on ps.product_id = p.id where p.tenant_id = $2 and product_status = $3 and (p.is_disable is null or p.is_disable = $4) and (ps.tenant_wechatapp_id = $5 or p.product_type = $6) ) p where p.category_id in ($7) and p.topping = $8|1|1|1||0|0|16459|16459|1|1|
|value_added|select t1.id, t2.sales_no as salesno, date_format(t2.sales_date, '%y-%m-%d') as salesdate, date_format(t1.start_add_time, '%y-%m-%d') as valueadddate, t2.dept_erp_id as shopid, t1.shop_name as shopname, t2.employee_erp_id as userid, t2.employee_name as username, t1.product_name as productname, t1.amount_pay as amountpay, t1.id as valueaddno, t1.amount_added as valueaddamount, t1.state, if(t1.state = $0, t1.coupon_user_id, null) as valueaddcoupon, t1.user_id as memberuserid, case when start_add_time > $1 then $2 when date_add(start_add_time, interval add_days day) > $3 and state = $4 then $5 when date_add(start_add_time, interval add_days + keeping_days day) > $6 and date_add(start_add_time, interval add_days day) < $7 and state = $8 then $9 when date_add(start_add_time, interval add_days + keeping_days day) < $10 and amount_added > $11 and state = $12 then $13 else $14 end as addedstatus from value_added.value_added_user t1 join value_added.`value_added_user_extend` t2 on t1.id = t2.id where t1.tenant_wechatapp_id = $15 and exists ( select null from value_added.value_added_category t3 join value_added.value_added_template t4 on t3.template_id = t4.id and t4.is_disable = $16 where t1.tenant_wechatapp_id = t3.tenant_wechatapp_id and t2.category_erp_id = t3.erp_product_category_id ) and t2.sales_date >= $17 and t2.sales_date < $18 and t1.state != $19 limit $20|1|2|2||0|0|37952|37952|3|3|
|employee|select ifnull(sum(task_amount), $0) as shouldmarknum, ifnull(sum(finish_amount), $1) as marklabelnum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.employee_id in ($4, $5, $6, $7, $8, $9) and t.scene = $10 and t.begin_time >= $11 and t.expire_time < $12|1|4|4||0|0|26764|26764|1|1|
|youzan|select id, merchant_id, merchant_shop_id, sync_type, api_name, api_request, api_response, status, error_msg, retry_num, create_time, update_time from weimob_platform_sync_log where status = $0 and sync_type in ($1) and retry_num < $2|1|1|1||0|0|112146|112146|0|0|
|authorization_service|select id, platform_user_id, user_id, wx_user_id, employee_id, shop_id, tenant_id, tenant_wx_app_id, account_id, login_way, login_code, login_token, roles, status, expire_time, create_time, update_time, login_ip, login_time, login_data, wx_app_user_id from user_login_token where tenant_id = $0 and employee_id = $1 and status = $2|1|1|1||0|0|2829|2829|2829|2829|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $58wmjqwhcaaau0mdudssfxtyyv-mnvuv7q$59wm2wxudqaatesc1zsltjs8-mtlbivpeq$60wm2wxudqaa3iy-bldvxztanvtzwase2g$61wm2wxudqaafkxhl-7tqipfeudx6olvna$62wm2wxudqaa1pkpnl6bs-iatutyh3mn0g$63wm2wxudqaawxhryv9h_962wjrgm-fy5g$64wm2wxudqaadp3tvdgessxuwneyhl9_mg$65wm2wxudqaaohpg64iyz-_jlb5hhqipvw$66wm2wxudqaasupwnpbcyrnukc-jlzpjfa$67wmjqwhcaaaagaccleaec8vzlf_fn7ibg$68wm2wxudqaagrtoith-s5nmr4evxh8o7w$69wmjqwhcaaas-szci1fic1yns37afm9gg$70wm2wxudqaayhckfkd8hq4qmysdblloka$71wm2wxudqaapppqi35hrvo1t3xmrcyrxq$72wm2wxudqaavrizs-jti4cc1401oglgma$73wm2wxudqaadwst6o-uamovawrdc9v6zw$74wmjqwhcaaauh8y2cklhk39s3j7nx2xyg$75wm2wxudqaag86wxplcxqrfnhi-hu9aaw$76wmjqwhcaaam1oiumum9csna0mojz2csq$77wm2wxudqaaxc5b2r7qful851yekggvkw$78wm2wxudqaazeeqailvuf9g65mxetlyua$79wmjqwhcaaasukoqxq-9xjfpmjjai96aw$80wm2wxudqaaprbtwr6chjgnledgl8bd7w$81wmjqwhcaaax-ade9as9iesg6hy4jz2ba$82wm2wxudqaau_gzx5v_xlulevg1en15qq$83wm2wxudqaabkkco1g1f1thy0ya_kpjig$84wm2wxudqaargvwbb7hdvch-9ppmipgga$85wm2wxudqaarnma94fubenzjjiddg42ng$86wm2wxudqaad46kxprvmvut6xca4obfzg$87wm2wxudqaavnkx7awclhghgpwod0klja$88wmjqwhcaaaiblevvqsj1ptfwyxomxgcq$89wmjqwhcaaamgxglsxpf63hqadiberpyq$90wmjqwhcaaajcw0lftba-s0bsvwktzawg$91wm2wxudqaag4mxlbuk5dj4ijoapouueg$92wm2wxudqaawm7ihyc2mvft_3rhkxofbq$93wm2wxudqaazmxonuqeag3rzgtahslvaw$94wm2wxudqaahp2kv6onxaiy7nv6eaqz2a$95wm2wxudqaatwihtg5o0yk6vls7kaiera$96wm2wxudqaa-z14n8dpjstdbyglwjogdw$97wm2wxudqaalfzg__p2fpjhg6pvnmxt8g$98wm2wxudqaatgikcff0houn5ksz2zox2g$99wm2wxudqaamc4ljgchyuck19wj9gxqog$100wmjqwhcaaalxyvhst5wwhdgpvyilzllg$101wm2wxudqaapjze-bezkji5zj7x9lp3ea$102wmjqwhcaaaxguhud8yvoznguoiic8y_w$103wmjqwhcaaat8zgm24xdv4eakh3jcjbag$104wm2wxudqaak9a9dmj4jzixxri7ae41ow$105wm2wxudqaao7feiukpldnxjabrx4dikw$106wmjqwhcaaa4cbcz9ofr-g_ciuxdyedbq$107wmjqwhcaaajuvtnlhiv81efeqbwvjjfa$108wm2wxudqaaj3svm2o98akiofwmhxoicg$109wm2wxudqaafjttobddcuci0pkglregwg$110wm2wxudqaas9lwfbfp0lbusn1hfrjsgg$111wmjqwhcaaaemerrqpqz28r-4r3ly7y2w$112wm2wxudqaapyjavf_t3qqy3ephrsrhqg$113wm2wxudqaabsxkwfte6mx8phrdn3yt9w$114wm2wxudqaaffqkrxjtrajlibryf9tc8g$115wmjqwhcaaak0s5knpxdj9degckj1jbqa$116wm2wxudqaaidas35anq93hpvf0i9cxeq$117wm2wxudqaalgxefbj55xnhlks95qnm5q$118wmjqwhcaaas1kplj6wno30u4pdxz4ziw$119wmjqwhcaaaftnvgfi-0wx-klu7dfsmvg$120wmjqwhcaaagfa-o320yxhc1hwfgmf0vg$121wm2wxudqaa4fvgn4ma4euy_tx7uzmy4q$122wm2wxudqaaqrp3balmao7qtrwtpj3fng$123wm2wxudqaabt0e0xksbkr26jx6bhcaca$124wm2wxudqaavnnplpaqrfwmtibxchs_ka$125wmjqwhcaaajyty...|1|1|1||0|0|2409|2409|1170|1170|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ($1, $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) and t.un_assign_flag = $62|1|1|1||0|0|183|183|87|87|
|v4_user|select count(*) from member_change_log t1 where t1.change_type in ($0, $1) and t1.change_time >= $2 and t1.change_time < $3 and t1.new_shop_id = $4 and t1.tenant_id = $5 and t1.tenant_app_id = $6|1|1|1||0|0|27478|27478|1|1|
|v4_sales|select id, warranty_detail_id, media_id, wx_img_url, img_url, tenant_id, tenant_app_id, create_time, update_time from warranty_detail_img where warranty_detail_id in ($0) and tenant_id = $1 and tenant_app_id = $2|1|1|1||0|0|17741|17741|0|0|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $45wm2wxudqaas0q5ddrkmtdkynlfx_3mua$46wm2wxudqaaxnbrfrxcb_kua-rpdfntaq$47wm2wxudqaacyrypeszjmwq8s8csg7wrq$48wm2wxudqaaullfcbykj8uwvxcuv20wda$49wm2wxudqaatjk_ui3chftmddnbcdh9bg$50wm2wxudqaajo9dx01dvhfnamg-uhapbw$51wm2wxudqaaxviu7ghnsce7klvewhebva$52wm2wxudqaabzh4fm8weorgojyxydff5g$53wm2wxudqaaahswttbw3dr40xarpufasa$54wm2wxudqaai6ontcf8od-_bprdmdftvw$55wm2wxudqaa2ykuayc3elyub8jiqcp1xa$56wm2wxudqaaov3-4qdogepe9jbuvcbvda$57wm2wxudqaa5lef3r_hsyhwenfty3wsiw$58wm2wxudqaai2adp8dhaskpc9udapjc1w$59wm2wxudqaaxwcd3g7osl0zt7wl5pwiha$60wm2wxudqaanshjh3fu8voq9orrtxt51g$61wm2wxudqaaqla576sui3evgsbg6ya7lg$62wm2wxudqaazpjffejbavjzzvvzoypd0a$63wm2wxudqaanwkdwjois7mttgv53_atwg$64wm2wxudqaaio4xlo9nvjc-0fslkuz5qq$65wm2wxudqaa9bymaybu5zz9qv7tvynava$66wm2wxudqaa_blpzjl_qpo8sklycaoqiw$67wm2wxudqaagay1wlinbei_rrup5r9z-q$68wm2wxudqaalrrv7lqcuyxfliowsvo6gg$69wm2wxudqaahbe-35sgcmnqrbfpodt_jw$70wm2wxudqaaabxomegfbcg5hj1n2_0jfw$71wm2wxudqaalj6clwoul1krld4fqi0uxw$72wm2wxudqaawduvalksa2cmm9yrpmehyg$73wm2wxudqaalhubmlzn2dd9p8w0kmblqa$74wm2wxudqaatlpnfqaeakkbzyxk0xhq1a$75wm2wxudqaaai6zycdkdn8mn5-ol_hbga$76wm2wxudqaaopmcomxtwpxeenjrpo_tia$77wm2wxudqaagkfhsy_u9ym0gfmvoid1bw$78wm2wxudqaajw1syiseyyjye7bf30vaiw$79wm2wxudqaak8cw45ji9fvr-wykaoit5g$80wm2wxudqaak8eo8yyjxbpezlwb4gcnpa$81wm2wxudqaazijvivgtslaxfb8pzmyixg$82wm2wxudqaacv3olcbnjlk1mugptbefbq$83wm2wxudqaajonhe8s1smec3ehzfu5tra$84wm2wxudqaas5zyyj9tvk6vdw9wy0r0vg$85wm2wxudqaa21kif96ewraiuxrz81nlxa$86wm2wxudqaauk4diauxcdazrje2ff3r3g$87wm2wxudqaawldc8q9-0mcxg5n6f0rmhg$88wm2wxudqaaaxkxqmqzp2nonlvdnh7vgg$89wm2wxudqaagyg-l9fgneyhk9dvqh_dqq$90wm2wxudqaas8gwmsjwbb_hncxgevxfna$91wm2wxudqaaxdag0kfgjet5vxhjirbzgq$92wm2wxudqaa1uacwsihi43pglnjdey82q$93wm2wxudqaalkwitokewmdi17fujgytta$94wm2wxudqaazyrbcn5lbvq73ib1va4utg$95wm2wxudqaajfgcitqyclsv1ebl2kxe-a$96wm2wxudqaanzjqo_qlinaexasixncraw$97wm2wxudqaavtwxuuhm1tzfitbpjwcsaa$98wm2wxudqaan_d8_tcn77qttgbg8ljyfg$99wm2wxudqaaubz9z6nfxlposblghdgtwa$100wm2wxudqaav1hpen0gv3nrf9fbhvcnig$101wm2wxudqaa0fbrrhpq3rb3belfcdcf-g$102wm2wxudqaa2x2mvivsjkhjgycfkrnkjg$103wm2wxudqaaubfn8mqzcly5jw3b0i3pbg$104wm2wxudqaadhpbokkxptdstd-v5x0eaw$105wm2wxudqaac8sgvzjzltrhk79jvtjuzg$106wm2wxudqaax5cniaew6dvwjgydvuuujw$107wm2wxudqaak-t2m2ycinglbbmqzeakjq$108wm2wxudqaadmmrqeg_wzirb0dvpqbnva$109wm2wxudqaarporf6bkazvyonxhrn6o2w$110wm2wxudqaag1nosjtrbbj7dfrsrptr6g$111wm2wxudqaafwoql1drpofth7ppqbrjuw$112wm2wxudqaa1empsbpgwj-qq6-cum17vg$113wm2wxudqaax9ik3rqr7o7zg7zszfp61q$114wm2wxudqaajwr4cnog2zdacjb_cm1x6w$115wm2wxudqaa66togsbp6jtaboznjyj_oa$116wm2wxudqaao8bwhhzkkanoqqn7c08ulg$117wm2wxudqaaxpixmhngadpad7jjsklmja$118wm2wxudqaanzmxakmdxh7mf3jp2mwcfg$119wm2wxudqaaieoavwlsnfyb3admbganfa$120wm2wxudqaapnvop3dyeray_jmdpm60aw$121wm2wxudqaayscht98xmheapuvbw9iqda$122wm2wxudqaa5dt7ptxkpnxmzkg5vniluw$123wm2wxudqaaxzrzkhdl-a_mir0wramtiq$124wm2wxudqaax2st-oziw_rrqpq-kaub5a$125wm2wxudqaayv_...|1|1|1||0|0|1700|1700|841|841|
|user_service|select count(0) from user_service.user_source us left join user_service.tenant_member m on m.user_id = us.user_id left join user_service.user_employee ue on ue.user_id = m.user_id where m.tenant_id = $0 and m.tenant_app_id = $1 and us.tenant_id = $2 and us.tenant_wechatapp_id = $3 and ue.tenant_id = $4 and ue.tenant_wechatapp_id = $5 and us.shop_id = $6 and us.from_id = $7 and us.create_time >= $8 and us.create_time < $9 and us.source_type = $10 and us.from_id is not null and us.shop_id is not null|1|1|1||0|0|317|317|1|1|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $73wmjqwhcaaawxvpwzhv0tt5y9cia3a4zw$74wm2wxudqaa5ojece9rwl4aktyqmfuwna$75wm2wxudqaaygi4okjglvhlcxq4mwnmcq$76wmjqwhcaaayt47yxvfqehyn61i73elnq$77wm2wxudqaalhngiqt4l-jdicmm1unspw$78wm2wxudqaagcqgbkneppoowqsqymirpq$79wm2wxudqaahpxpzze9cwhdagmyj-xgea$80wm2wxudqaaklip6jdpuvwzdby9p2etca$81wm2wxudqaat0pcfkzs_fgamcu7tpfvqq$82wm2wxudqaarfown11htepqoxkbpunfma$83wmjqwhcaaa3mwx9zfseh52ialzkw5lmq$84wm2wxudqaa53jhawzi0zoevb9spmlbca$85wm2wxudqaa4caphmlw6owqozczl0zzpg$86wmjqwhcaaao6b8w7oyggl63ohateqwna$87wm2wxudqaa63yo8gbaejnqgqri2gusbw$88wm2wxudqaal37p76ctlyabu2kxatmnoq$89wm2wxudqaavifncpzgjxnphj2wabgdpw$90wm2wxudqaaibtkl4ql8bq5-evlzhtjtw$91wmjqwhcaaa-xkig99dsbsgobqso7d9rw$92wmjqwhcaaashzj-vlgeegsfvhc-hr4ea$93wm2wxudqaatb9r7fzrbeaov7qvawubuq$94wmjqwhcaaaio_vdsm3-b0ngojlixucia$95wm2wxudqaa0jv7jfavsbx6ea6gmlbpxw$96wm2wxudqaanpnapcqvthbh6uvuqtvc6g$97wm2wxudqaabeuekd4otkkdiwxqm-iheq$98wm2wxudqaa-_5pljtqmdl6m90ns8w8mq$99wm2wxudqaaghkvmaeup2pp6ixlznza6q$100wm2wxudqaapvt6hv1owamcvgalbqjrxq$101wm2wxudqaai8p3gmjt_tmpmt_vj_kvzg$102wm2wxudqaaaat154ru8hjfej5sribpkq$103wm2wxudqaanq6r-n0xenfqt6wby6pz7g$104wm2wxudqaaki6wpauoekiyojwcdz8jhq$105wm2wxudqaauo8c8itac4xvlkmyhw-g1g$106wmjqwhcaaag6zihamhi2rxjketeqjkfq$107wmjqwhcaaah-6cgwojba_tk9_34-t7ba$108wm2wxudqaafmp1opqnwwnyd0u8e2pmaa$109wm2wxudqaa5libtigghvomyit3cax91w$110wm2wxudqaa8tiwvnlzvlip-zexl0bkiq$111wm2wxudqaawqwszwksbpag6koj5heicg$112wm2wxudqaa2uogvyp8mx97mazgmhjqzg$113wm2wxudqaawguvrwupijsz5t84mjjb4q$114wm2wxudqaa-b9x0s7embxi50tctuqpoa$115wmjqwhcaaaunre5rf59oxygd7l9ncifa$116wm2wxudqaa7nwdqggei5dsocvydmnn2g$117wm2wxudqaavtqqjqftz47iw-cnoc7pww$118wmjqwhcaaa6tery7vdlieg0tbss6rvbw$119wm2wxudqaa4bncxncxzq6ylsi0yhbt2a$120wm2wxudqaajhntpcz7lccnhfpsy_hp5g$121wm2wxudqaazkt0vg_krderqixyqhyo0g$122wm2wxudqaaidlvzf4ol0rx-_uzda7dyg$123wm2wxudqaa0by_gdkrjyvqkj72ahohca$124wmjqwhcaaabk32j1crpddb55ddfdalqw$125wm2wxudqaany6c...|1|1|1||0|0|1354|1354|631|631|
|user_service|select count(0) from ( select us.from_id as id, count(1) as total from user_source us where us.tenant_id = $0 and us.tenant_wechatapp_id = $1 and us.shop_id = $2 and us.source_type = $3 and us.create_time >= $4 and us.create_time < $5 and us.from_id is not null and us.shop_id is not null group by us.from_id ) table_count|1|11|11||0|0|31879|31879|1|1|
|user_service|select count(*) from user_service.user_employee ue where ue.tenant_id = $0 and ue.employee_id = $1 and ue.tenant_wechatapp_id = $2 and ue.shop_id = $3|1|3|3||0|0|8313|8313|1|1|
|order|select count(0) from order_info od left join order_detail dt on od.id = dt.order_id left join order_address ad on od.id = ad.order_id where od.tenant_id = $0 and od.tenant_wechatapp_id = $1 and dt.product_name like concat($2, $3, $4)|1|4|4||0|0|57546|57546|1|1|
|gift_mail|select ifnull(sum(quantity), $0) from gift_mail.trade where tenant_wechatapp_id = $1 and user_id = $2 and product_id = $3 and trade_type = $4 and order_status in ($5, $6, $7) and to_days(create_time) = to_days(now()) and source = $8|1|1|1||0|0|12234|12234|1|1|
|coupon_service|select * from coupon_service.coupon where datediff(date_format(end_time, '%y-%m-%d'), date_format(now(), '%y-%m-%d')) = $0 and coupon_state in ($1)|1|184|184||0|0|9477714|9477714|2772|2772|
|order|select od.id, od.order_no as orderno, od.status, od.take_type as taketype, od.create_time as createtime, od.remark, od.total_fee as totalfee, od.freight_fee as freightfee, od.discount_fee as discountfee, od.take_id as takeid, od.payment_fee as paymentfee, dt.product_id as productid, dt.price, dt.quantity, dt.sku_id as skuid, dt.art_no as artno, dt.image_url as imageurl, dt.product_name as productname, dt.take_remark as takeremark, dt.take_day as takeday, od.product_fee as productfee, ad.user_name as receivename, ad.mobile_no as mobileno, ad.shop_name as shopname, ad.address, ad.express_no as expressno, ad.express_company as expresscompany, od.finish_type as finishtype, od.send_time as sendtime, od.receive_time as receivetime, od.finish_time as finishtime, od.child_status as childstatus, od.send_good_remark as sendgoodremark, od.service_flag as serviceflag, od.coupon_id as couponid, od.tenant_wechatapp_id as tenantappid, od.tenant_id from order_info od left join order_detail dt on od.id = dt.order_id left join order_address ad on od.id = ad.order_id where od.status = $0 and od.send_time <= $1 and od.take_type = $2|1|2|2||0|0|209540|209540|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149)|1|1|1||0|0|820621|820621|147|147|
|gift_mail|select * from ( select p.id, p.default_image_url, p.product_name, p.product_type, p.tag_price, ifnull(pp.integral_price, ifnull(( select min(inventory.price) from gift_mail.inventory where inventory.product_id = p.id ), $0)) as price, p.volume, p.category_id, p.product_status, $1 as quantity, pp.partner_id as partner_id, p.topping from gift_mail.product p left join gift_mail.partner_product pp on p.id = pp.product_id left join gift_mail.product_status ps on ps.product_id = p.id where p.tenant_id = $2 and product_status = $3 and (p.is_disable is null or p.is_disable = $4) and (ps.tenant_wechatapp_id = $5 or p.product_type = $6) ) p where p.category_id in ($7) and p.topping = $8 order by p.price asc limit $9, $10|1|1|1||0|0|16483|16483|6|6|
|mysql|delete from wx_gateway.wx_template_msg where create_time < date_sub(now(), interval $0 day)|1|41|41||0|0|969033|969033|0|0|
|corpwx|delete from external_user where tenant_id = $0 and cwx_user_id = $1 and user_id in ($2)|1|1|1||0|0|1|1|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172, $173, $174, $175, $176, $177, $178, $179, $180, $181, $182, $183, $184, $185, $186, $187, $188, $189, $190, $191, $192, $193, $194, $195, $196, $197, $198, $199, $200, $201)|1|1|1||0|0|954577|954577|200|200|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|2|2||0|0|333605|333605|33|33|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|3|3||0|0|864906|864906|59|59|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|233938|233938|45|45|
|tenant|select count(*) as amount from sneak_guest where tenant_app_id = $0 and status = $1 and create_shop_id = $2 and create_time <= $3|1|1|1||0|0|6114|6114|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|455994|455994|28|28|
|value_added|select id, tenant_wechatapp_id as tenantwechatappid, user_id as userid, template_id as templateid, sales_erp_id as saleserpid, product_name as productname, shop_name as shopname, product_barcode as productbarcode, amount_total as amounttotal, amount_pay as amountpay, amount_added as amountadded, state as state, add_days, added_percent_per_day as addedpercentperday, devalue_percent_per_day as devaluepercentperday, keeping_days as keepingdays, exchange_days as exchangedays, coupon_user_id as couponuserid, sales_index as salesindex, start_add_time as createtime, date_add(start_add_time, interval add_days - $0 day), date_add(start_add_time, interval add_days + keeping_days - $1 day) from value_added_user where state = $2 and start_add_time = date_add(curdate(), interval $3 * (add_days + keeping_days - $4) day)|1|1|1||0|0|1837763|1837763|724|724|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|85644|85644|49|49|
|goods|select tmp.id, tmp.category_id, tmp.goods_name, tmp.style_no, tmp.status, tmp.thumbnail_img, tmp.express_type, tmp.take_stock_day, tmp.take_remark, tmp.express_fee, tmp.total_quantity, tmp.total_sales_volume, tmp.min_price, tmp.create_time, tmp.exchange_money, skunumber from ( select gs.id, gs.category_id, gs.goods_name, gs.style_no, gs.status, gs.thumbnail_img, gs.express_type, gs.take_stock_day, gs.take_remark, gs.express_fee, ifnull(gs.base_sale_number, $0) + ifnull(t1.sales_volume, $1) as total_sales_volume, ifnull(ifnull(t2.quantity, t3.quantity), $2) as total_quantity, ifnull(ifnull(t2.price, t3.price), $3) as min_price, gs.create_time, gs.exchange_money, ifnull(t2.number, $4) as skunumber, ifnull(t3.number, $5) as activityskunumber from goods.goods gs left join goods.goods_category cg on gs.category_id = cg.id inner join goods.goods_up_app t on gs.id = t.goods_id and t.tenant_app_id = $6 left join ( select tenant_app_id, goods_id, sum(sales_volume) as sales_volume from goods.goods_sku group by tenant_app_id, goods_id ) t1 on t.tenant_app_id = t1.tenant_app_id and t.goods_id = t1.goods_id left join ( select tenant_app_id, goods_id, sum(quantity) as quantity, min(price) as price, count(*) as number from goods.goods_sku where activity_id = $7 group by tenant_app_id, goods_id ) t2 on t.tenant_app_id = t2.tenant_app_id and t.goods_id = t2.goods_id left join ( select tenant_app_id, goods_id, sum(quantity) as quantity, min(price) as price, count(*) as number from goods.goods_sku where activity_id > $8 group by tenant_app_id, goods_id ) t3 on t.tenant_app_id = t3.tenant_app_id and t.goods_id = t3.goods_id where 1 = 1 and gs.topping = $9 ) tmp order by tmp.create_time desc limit $10|1|1|1||0|0|121561|121561|10|10|
|message_push|delete from message_push.message_log where tenant_id = $0 and create_time < $1|1|79|79||0|0|2646534|2646534|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|121622|121622|43|43|
|user_service|select count(0) from user_service.tenant_member t1 join user_service.tenant_member_info t2 on t1.tenant_id = t2.tenant_id and t1.id = t2.id and t2.tenant_app_id = $0 and t2.shop_id = $1 where t1.tenant_id = $2 and t1.tenant_app_id = $3 and (t1.mobile_no like concat($4, $5) or t1.user_name like concat($6, $7, $8))|1|2|2||0|0|46194|46194|1|1|
|tenant|select id, tenant_id, tenant_app_id, user_id, status, group_label, maintain_level, remark, create_time, create_shop_id, create_employee_id, update_time, update_shop_id, update_employee_id, sales_amount, next_maintain_date, maintain_employee_id, sneak_guest_no, last_maintain_date, finish_date, fail_type, oid, user_type from sneak_guest where tenant_app_id = $0 and status = $1 and create_shop_id = $2 order by id desc|1|1|1||0|0|8971|8971|2857|2857|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $44wm2wxudqaagc4eu9eh4pl1mngn2vb8fq$45wm2wxudqaao4vmygaixetag76dqbptka$46wm2wxudqaaacqrj1la3zfentrqjppnig$47wm2wxudqaafunsptcqyfugvyxgcyktgw$48wm2wxudqaaqstbh1jiwwlrro7hpdup2a$49wm2wxudqaakz0cstemd5p-y05gnnh9yq$50wm2wxudqaaw4wc6lwuriczv3kis90l2q$51wm2wxudqaahg1x3hm4kt-uypurslulvq$52wm2wxudqaape_rignhpdp73y-yivb2cg$53wmjqwhcaaaazmupk_n5zkmbjjkakjozq$54wm2wxudqaatujbdadtoe7duemrmb58jq$55wm2wxudqaabwvrjikkwhtusj6xf0fota$56wm2wxudqaa8mteuuumutle4gb7o88-wa$57wm2wxudqaaswmtc_byofbu5jnb4olcww$58wm2wxudqaa0qf21lchygnnatvfe6qexa$59wm2wxudqaagwhf8kcklksygem4ul4iyw$60wm2wxudqaa6pidpgexfhjr79ukhi_wpg$61wmjqwhcaaa7opvtlnucsws7ly_l5vdjg$62wm2wxudqaaph0nrf1-qfyoqunqd4rpdg$63wm2wxudqaaylflrwgwq7jxcr9bqeahlg$64wm2wxudqaakgpv1x_g-xdyfmonorvbtg$65wm2wxudqaa94p3x12fw2lura68xxkx-w$66wm2wxudqaa1mx3are36f-gfoa5dchegq$67wm2wxudqaahynze7bkqpho1hskimggkq$68wm2wxudqaaqv9oskxjwybzk-gxnbbebg$69wm2wxudqaagjbw9qwjx8v7v5dzb1mndw$70wm2wxudqaaodqwwn2bnxm5tn-v7aeo4w$71wm2wxudqaa6qkemk3dyunhkwteuojgca$72wm2wxudqaa5e7pqsffbn-raaw3ozld5q$73wm2wxudqaaia80bf5j-uznuy5gooxdxq$74wm2wxudqaa924f2wilnbp48rdzeasb_a$75wm2wxudqaalcrhlgfb1bdhgeyxgtihaq$76wmjqwhcaaakzefbbp5e5aira0ddf_zmw$77wm2wxudqaap_t-aw67voa7upkrkj7fpg$78wm2wxudqaao9ru-xpg5rlmztrkicowjg$79wm2wxudqaain5kvzn0tjwenhknn4j0_w$80wmjqwhcaaawe2wxtid9v955ch-rmnfgq$81wm2wxudqaac6kvudrdfwjdzdsufb1cpa$82wmjqwhcaaar_upiiganhccmhzicli94a$83wm2wxudqaabsf5lififpb6sdj59na_iw$84wmjqwhcaaaojjmhpikjmxyb9sn4a8brg$85wm2wxudqaadbai1lcpb0sjnhds_br02a$86wm2wxudqaaqxkzfbj1sbhp-vwemcgeva$87wm2wxudqaaqtz8m8_a35vzh5zsjj46sw$88wm2wxudqaaa6zl31ozj6taspiukfmp5a$89wm2wxudqaao7xujbepmstvtd94oc_jzw$90wm2wxudqaazx13oj23301ajowwe7c5dq$91wmjqwhcaaaetqp7kyakxg5xopsf1tfag$92wm2wxudqaaqsy15alqt7xuhpelgyzdbg$93wmjqwhcaaaoq05dehcx76uwgjeyc2grq$94wm2wxudqaazm25xuiick7raeffnzxqla$95wm2wxudqaabf_fyphkf32fc5oepnntka$96wm2wxudqaayuizwgmankyo24zw0zqhza$97wm2wxudqaad9mxne9b7ukf9wqrgqknvq$98wmjqwhcaaafah56czjarupeauzrnj-1w$99wm2wxudqaazdkeh8fawlajiiletl6v7w$100wm2wxudqaavjdinpl4yj_bn-eavdgi-q$101wm2wxudqaanaz7uc5ct_mjyv478yzwba$102wm2wxudqaacnuesjgnl1watqit4q69hw$103wmjqwhcaaa52s5w9lzegadrjxu4_linw$104wm2wxudqaaf4fu_6-zabsutewuk81seg$105wm2wxudqaailmrvrd48on9-zdxacfo6a$106wm2wxudqaaznrwkhtu3v-qej_wmia40g$107wm2wxudqaawnnyrmlbjs3amagxgy5siw$108wm2wxudqaaksnj5pcl7j, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125|1|1|1||0|0|3153|3153|1547|1547|
||delete from tenant.sjfx_dct_erp_sales_detail where create_time < $0|1|1|1||0|0|261630|261630|0|0|
|user_service|insert into user_employee_alloc_log (id, tenant_id, tenant_wechatapp_id, user_id, from_employee_id, to_employee_id, alloc_employee_id, alloc_date_time, remark) values ($0, $1, $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), ($99, $100, $101, $102, $103, $104, $105, $106, $107), ($108, $109, $110, $111, $112, $113, $114, $115, $116), ($117, $118, $119, $120, $121, $122, $123, $124, $125), ($126, $127, $128, $129, $130, $131, $132, $133, $134), ($135, $136, $137, $138, $139, $140, $141, $142, $143), ($144, $145, $146, $147, $148, $149, $150, $151, $152), ($153, $154, $155, $156, $157, $158, $159, $160, $161), ($162, $163, $164, $165, $166, $167, $168, $169, $170), ($171, $172, $173, $174, $175, $176, $177, $178, $179), ($180, $181, $182, $183, $184, $185, $186, $187, $188), ($189, $190, $191, $192, $193, $194, $195, $196, $197), ($198, $199, $200, $201, $202, $203, $204, $205, $206), ($207, $208, $209, $210, $211, $212, $213, $214, $215), ($216, $217, $218, $219, $220, $221, $222, $223, $224), ($225, $226, $227, $228, $229, $230, $231, $232, $233), ($234, $235, $236, $237, $238, $239, $240, $241, $242), ($243, $244, $245, $246, $247, $248, $249, $250, $251), ($252, $253, $254, $255, $256, $257, $258, $259, $260), ($261, $262, $263, ...|1|2|2||0|0|0|0|0|0|
|employee|update label_task_employee set tenant_id = $0, tenant_app_id = $1, label_task_id = $2, shop_id = $3, employee_id = $4, user_id = $5, visit_status = $6, visit_effect = $7, finish_time = $8, visit_voucher = $9, create_time = $10, update_time = $11 where id = $12|1|1|1||0|0|1|1|0|0|
|v4_coupon|select count(*) as total from coupon where coupon_status = $0 and member_id = $1 and tenant_id = $2 and tenant_app_id = $3|1|1|1||0|0|141|141|1|1|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $54wm2wxudqaakxhahlputo-hraddmkxkmq$55wm2wxudqaastrtsku3y-cwyaanoxhspw$56wm2wxudqaa23q8iyvas3fba8pp5xm_dw$57wm2wxudqaai0rgcn71nli-yuhdtnjrkq$58wm2wxudqaaphldd9hvn5dpruiar4yqtw$59wm2wxudqaad767mpc8nznnvmxeujnicg$60wm2wxudqaaytviisjvvxckis81cdwwea$61wm2wxudqaadc5z4odlvlfcz8qfyhyl4g$62wmjqwhcaaabv2d4q7ru2nbwybupimwew$63wm2wxudqaaww92oo-bhi21xznm9k2qiq$64wm2wxudqaaw5qwg8i5u-dl27s14ovdbq$65wm2wxudqaago1ea0eb4zb6q1huck1rxq$66wm2wxudqaadbggs0hxsevo9zd4bzviea$67wm2wxudqaaszygge6zfrpweeqql1fo6q$68wmjqwhcaaa3ooumx_m4s1qgrlw8yoczq$69wm2wxudqaayj0eco-6ysy2v7kp_e0opa$70wm2wxudqaans3earwx6zb08nk0cgy5xg$71wm2wxudqaa0a2jeckemoi6vsx0rs1qna$72wm2wxudqaa4ufrv9knaz03bukuiye4sa$73wm2wxudqaazscleons3enrsh7o_qtddg$74wmjqwhcaaara3son2lqkaabioc5-jmmg$75wm2wxudqaabjzhuacksokflk86yse2fw$76wmjqwhcaaauilheodgptdqc9e_629v7w$77wm2wxudqaacwu8e7aghdekpmdgqkjlhg$78wm2wxudqaaud8n8_0nuupqqibr5xlova$79wm2wxudqaa5yxg5auh0fd5ctq6sjcahq$80wm2wxudqaasvgrvdbej2mqckkmamjv2a$81wm2wxudqaa1ib7dtyl6trs0h7s09wzva$82wm2wxudqaakwpbajvgknoepkiksvrxvg$83wmjqwhcaaab01zcu87kq9ctsarpvkjsa$84wm2wxudqaaxbpuiqtjq9dzsazenxmf4a$85wm2wxudqaaz9kerdpvuckov4021r8jpa$86wmjqwhcaaaxsbizw2dovqdizvr9akmkq$87wm2wxudqaaiydvqyvmlrcqdppyg1a04w$88wm2wxudqaaoeu6csfze9_cg94aklaltw$89wmjqwhcaaatvkx7vbadhuvipfdux_0dw$90wm2wxudqaaoy1prf8kviez02z7l6z_kg$91wmjqwhcaaa0rt2tqy4sy6ggzdsr460jg$92wm2wxudqaa7n1fdmrlnduxxqqshbs_bg$93wm2wxudqaape-zd8-o5r-gqfoec2hezg$94wm2wxudqaavxtxtetjzyubzpbvjyzs-w$95wm2wxudqaa9fol7h8aaeupouhfetkxfa$96wm2wxudqaajskp2ruc7yyx4tdavrnpjw$97wm2wxudqaamqfl8fxnlg4tmtrmnxf0mq$98wm2wxudqaarh46qnladewl0wmnpitnkg$99wm2wxudqaacki1cctpizzuoc_jnonfng$100wm2wxudqaaxmmzckgbfss6eiypfnr0rg$101wmjqwhcaaagkvyvaozzxnhtmpofykwpw$102wmjqwhcaaar9ks1rvfjpgtyt36nlnpyq$103wmjqwhcaaa9oinl44lqmhh5zpahsh60w$104wm2wxudqaa2anj_qgl5xrmierx7gjt5w$105wm2wxudqaaxrc6zhdzfmukidstixuukg$106wmjqwhcaaaj67xzdmkuuiqjvi8fucz2q$107wm2wxudqaa7nhia6ovrd0k6mcf2-7mog$108wm2wxudqaaarvrcvpgyuheykehytvyng$109wm2wxudqaaegzgxmpp46ccgnqnk-rurg$110wm2wxudqaaqvwll_xazejxky4-odnwbq$111wmjqwhcaaaz63lku1hycbpofaldiiqvg$112wmjqwhcaaadmshlzizr9-vochaeyyovw$113wmjqwhcaaaqjnhnrk63vufggdne4hxka$114wmjqwhcaaa9szotkkhcjw-7ajfptujpw$115wm2wxudqaajshka3y093nnigq6m6bdnq$116wm2wxudqaaqa_24qhlxncsoh-vkfn7iq$117wm2wxudqaal-ufkpva4si8bsk8ke-roq$118wm2wxudqaaerdoj21yhepctchqd_edvq$119wm2wxudqaapdjs1h_t-qp9fw-kqj6tmq$120wm2wxudqaar5iml9n_jlfpoed1yvmakq$121wmjqwhcaaanq8anbyi0wqbl5xpozzlrq$122wm2wxudqaaiejiyxack7f_bnqdkbjnxg$123wmjqwhcaaa4a50cl8emllqddfoyagi8w$124wm2wxudqaap7iholddi1iqtjqvkfz0eg$125wm2wxudqaai0nv...|1|1|1||0|0|1475|1475|691|691|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $45wm2wxudqaacvrempgl-2gjl6jrl36tbg$46wm2wxudqaaug0z3wlnzwrq02wjuunbqa$47wm2wxudqaauqevrqpx3i5ldozeukns0w$48wm2wxudqaanzzypcqslupyppezp9cpma$49wm2wxudqaafk0p1ruzk7nvmuz1pprpcg$50wm2wxudqaaajonjwajvtdtlnot9z9opw$51wm2wxudqaa2stppj7cn02e5_pjtrjhza$52wmjqwhcaaalrlmzpmoge0ahgln6_sjeq$53wm2wxudqaards2cjnxdfb7skom8n252a$54wmjqwhcaaaso87qzql4w-6yx8zbnpy7q$55wm2wxudqaaxoqfdbt11kthjb-cb55-nw$56wmjqwhcaaa5amo791di7us9gityjohcq$57wm2wxudqaa7szrig75vqzlqlssdv4k3w$58wmjqwhcaaagcgoyvex2tzuvyunq-bm7w$59wm2wxudqaakpgdswbqcubfdjc6vmskra$60wm2wxudqaax17t-lej_ih2lypawgta1q$61wm2wxudqaat-loxde0e0ilpwm1xg-_la$62wm2wxudqaacpzyzrkzyk6jk3-x-ybueq$63wm2wxudqaaaquwdib_hiwto3-l6forla$64wm2wxudqaa_uuv3heiit6lqktfquc61g$65wm2wxudqaabrvdve5yxyvskiqyyyl6pw$66wm2wxudqaa16yvzu1i3sgekcuwf3ni7a$67wm2wxudqaat2yl3tyo3a8qi7lbl9l_ja$68wm2wxudqaaqeu1_v7vh3lngsmbrtasva$69wmjqwhcaaav-3evrdf9gadatx69rrzvg$70wmjqwhcaaa047c23t_5mn7s9x04wm43q$71wm2wxudqaa2woc21brokkciyherwpswa$72wm2wxudqaalwnm6bxrtcfldynz7piivg$73wm2wxudqaaqeq3rqsxj1eynjigydnxwq$74wm2wxudqaabe8qur9ll28qylp21m2tgw$75wm2wxudqaatesavd53sahgdqizmvx6pa$76wm2wxudqaaignfbdqswqlvm9jvyn7uyw$77wmjqwhcaaa26dbs5jau60awnqsyxsx8q$78wm2wxudqaafkul5wl1-qmbqvcpdjzxnw$79wmjqwhcaaaz8r-evwr2vutlc-dzqjraa$80wm2wxudqaaexgdv9k7qkekdu9prfhbxa$81wmjqwhcaaaenmzsj9byansr6re6u4xbw$82wm2wxudqaa3afamkbgon6lisnyqxo4na$83wmjqwhcaaa6toikcxzndg2iwhdtmdzla$84wmjqwhcaaanxfn4ucpx53ao-u4x2ncfw$85wmjqwhcaaamg-fsoqwkjthaplciag62a$86wmjqwhcaaak6eterxri55v-r-6i1elxa$87wm2wxudqaavk7qngcstiij2r9u06h9uq$88wm2wxudqaak9l6ndrdsuudonxbqdyyeq$89wmjqwhcaaalscpvhmtdhku7utzg_odpg$90wm2wxudqaadwdhjkiqwdcsxpgkyujj4q$91wm2wxudqaaos6niglqvvghv5cgyqskaw$92wm2wxudqaaurnii84oy1j8oapvfkqkea$93wm2wxudqaa3cfpyq2y88i7eqduywxiia$94wmjqwhcaaaxbloht-dxntdfiwc6rpedg$95wm2wxudqaazspirbacqrbjquk-qj5bew$96wmjqwhcaaay6-eg0lvisa8dfkxnobeca$97wm2wxudqaa7k-xcty_j306p-hmkdbd7w$98wm2wxudqaayxvotivi9hwdkjnllkvikq$99wm2wxudqaax8jjj0wao-2sme-qrti4mq$100wm2wxudqaa7fwq8k-w5sijvckfhxskfg$101wmjqwhcaaa8wi6kkp9eljj0eojp9ysnq$102wm2wxudqaa6f32ans6y3p8eeemtdojha$103wm2wxudqaaxrfdtg8rf-wqzq5ihzudmg$104wm2wxudqaap9wm89nrfyhgiiguvxfzug$105wmjqwhcaaa4ukmvklzr7xhojqxnaj83a$106wm2wxudqaauynklk4h65jxodt7t4rozw$107wmjqwhcaaai0pzz2yvqrchoo8va_kpzw$108wmjqwhcaaahbmolx65sgr84bdhvza7kg$109wmjqwhcaaazkwq7zszcjrlsyc9_l5tdq$110wmjqwhcaaaa2oy5pxycyfzbu1zcqgppg$111wm2wxudqaagwsu3-uacsoiagiikndbxq$112wm2wxudqaadz0evikinp5-swpzba3fyq$113wmjqwhcaaaqtfryku0outa5ch66h9aka$114wmjqwhcaaaejo1n8cgwuu4w5q0-gzr_g$115wmjqwhcaaaubhpm2pahkblcmx_urhbfa$116wm2wxudqaal1tk8usofy0bopdr6dtkya$117wm2wxudqaaegfoqcacge_e9h7p44_fua$118wm2wxudqaaq8vbeiuu7qml2eufir-rna$119wm2wxudqaa9-42vv8dzpdzi0n3-mzcgq$120wm2wxudqaaawlql6g5u7abejryvjlz1g$121wm2wxudqaamya1k1dbv05ytyz6d_o0qw$122wm2wxudqaag0j7dnk32qhesolgae2dtw$123wm2wxudqaa3wyjxqfrhuig6mamho0k1g$124wm2wxudqaatn6visojplmpsry5sexodw$125wm2wxudqaamzbg...|1|1|1||0|0|1971|1971|945|945|
|corpwx|update token set type = $0, corp_id = $1, suite_id = $2, suite_ticket = $3, agent_id = $4, agent_auth_code = $5, agent_ticket = $6, token = $7, expire_time = $8, status = $9, create_time = $10, update_time = $11, failed_times = $12, failed_reason = $13 where id = $14|1|1|1||0|0|1|1|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172, $173, $174, $175, $176, $177, $178, $179, $180, $181, $182, $183, $184, $185, $186, $187, $188, $189, $190, $191, $192, $193, $194, $195)|1|1|1||0|0|865176|865176|194|194|
|value_added|select count(0) from ( select t1.id, t2.sales_no as salesno, date_format(t2.sales_date, '%y-%m-%d') as salesdate, date_format(t1.start_add_time, '%y-%m-%d') as valueadddate, t2.dept_erp_id as shopid, t1.shop_name as shopname, t2.employee_erp_id as userid, t2.employee_name as username, t1.product_name as productname, t1.amount_pay as amountpay, t1.id as valueaddno, t1.amount_added as valueaddamount, t1.state, if(t1.state = $0, t1.coupon_user_id, null) as valueaddcoupon, t1.user_id as memberuserid, case when start_add_time > $1 then $2 when date_add(start_add_time, interval add_days day) > $3 and state = $4 then $5 when date_add(start_add_time, interval add_days + keeping_days day) > $6 and date_add(start_add_time, interval add_days day) < $7 and state = $8 then $9 when date_add(start_add_time, interval add_days + keeping_days day) < $10 and amount_added > $11 and state = $12 then $13 else $14 end as addedstatus from value_added.value_added_user t1 join value_added.`value_added_user_extend` t2 on t1.id = t2.id where t1.tenant_wechatapp_id = $15 and exists ( select null from value_added.value_added_category t3 join value_added.value_added_template t4 on t3.template_id = t4.id and t4.is_disable = $16 where t1.tenant_wechatapp_id = t3.tenant_wechatapp_id and t2.category_erp_id = t3.erp_product_category_id ) and t2.sales_date >= $17 and t2.sales_date < $18 and t1.state != $19 ) tmp_count|1|2|2||0|0|37420|37420|1|1|
|coupon_service|select count(0) from coupon_service.user_coupon_give_record g join coupon_service.coupon c on c.tenant_id = $0 and c.tenant_app_id = $1 and c.id = g.coupon_id join coupon_service.coupon_extend ce on ce.id = c.id where g.tenant_id = $2 and g.tenant_app_id = $3 and g.user_id != $4 and c.coupon_state in ($5, $6)|1|1|1||0|0|10395|10395|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154)|1|5|5||0|0|1228152|1228152|153|153|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|119284|119284|38|38|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3)|1|1|1||0|0|44213|44213|2|2|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21wm2wxudqaat-wzizshopzoslj4w37u-g$22wmjqwhcaaae9in17qdf7ck-utpvj8jqw$23wm2wxudqaa0xizomuhe2os9ugqh8ifdw$24wm2wxudqaaacnne2ropxrtuls432f2fa$25wmjqwhcaaacojo1_2syxitzvxljzchpg$26wm2wxudqaa5sk4afxx21vchzxir_fqea$27wm2wxudqaafpqmkf3y7uoxeyzsq-p0aw$28wm2wxudqaapuu1tkehta6it4dp7xx0ng$29wm2wxudqaaqkycqnjabuqfmmybt1zjig$30wmjqwhcaaayz8erz11tf7r0mtqkkq1xq$31wmjqwhcaaat8q6idc1zebrebvpje_njq$32wmjqwhcaaatvrdi_-oiulzrbpafzyoxw$33wm2wxudqaaqfwg2u_pqb5qggwkon7i-q$34wm2wxudqaaykpmnbauwupbno7xecuw_g$35wm2wxudqaagzu2bgmdoyqkpwtgye0yqg$36wm2wxudqaagklqfjw5wew9yjbflbgw2a$37wm2wxudqaa-prrjfuu0nl8j0rayrheyg$38wm2wxudqaauno0pwwkdgyl3n51-y4xig$39wm2wxudqaaqjqdd_o29_refdti8934nq$40wm2wxudqaasan9adon2d69pebcextr4g$41wm2wxudqaaxucs14fqqq0lhj3sctiara$42wm2wxudqaaiwchapdkrml1xshsl2cmra$43wm2wxudqaa8x8gco3yrgjsl_xsqt5t8a$44wm2wxudqaalnactv8zwz-todho96owqw$45wmjqwhcaaaaj7e40vg-rrv-mayjeosbg$46wm2wxudqaaom7f2c1f0lshtcdsrtqaag$47wm2wxudqaaqp6vnw-nnmgsptszuybxrg$48wm2wxudqaaoubash3yelkimc7pkxvtfg$49wm2wxudqaaz_5skpr5g_hxmz2wmunrhq$50wmjqwhcaaar9len6fv4-za_g9jhi9vog$51wm2wxudqaap6-udocfdbbgxn9lx80rsa$52wm2wxudqaaykxkex-xxx8opv7lqyou5w$53wm2wxudqaa5dwv_icghtfsq2s7wl_l3w$54wm2wxudqaa7rcsii63wiw1rlqz8zp6-a$55wm2wxudqaa-4rldomz1fnaywg4qtornq$56wm2wxudqaalnx2mjfowh8s5uyuwcwrqw$57wm2wxudqaammo8w7ykun9x9woxmgsryw$58wmjqwhcaaabihsejo8gj_kque5rjatow$59wmjqwhcaaa4vhszebiapkjaztgdsc-0g$60wmjqwhcaaaxtwsohpqwdsf3p7iyqqbba$61wm2wxudqaax5yrict0ifzbubpudwkw8q$62wm2wxudqaaa5r2orh95rntxpvkjpvucq$63wm2wxudqaamwm_aufe_tqk0f8zueydea$64wm2wxudqaaov5vc0a-m_omymbmu2kpgq$65wmjqwhcaaajzgcjajfkq2_sbljtr-uta$66wm2wxudqaagg-2-otosfyy6nudqn-q-a$67wmjqwhcaaatlnh0-rpoybhpzeux4pxia$68wm2wxudqaa0hdqjcemmsse7zinmc0i6a$69wm2wxudqaarzrmeae1dl-8m7vd5_8mkq$70wm2wxudqaavzvpd2dil7-jsnfnuzkrlw$71wm2wxudqaa7n_rnlwaq0nuag75il4nha$72wmjqwhcaaafzjt-xywqgte2q3zh7swhw$73wmjqwhcaaa-l1thaezyeob_cef5k1bhw$74wm2wxudqaaqerqbqipe7cg97ym641xja$75wm2wxudqaa8fios-wz5rqewrksz3wd0g$76wmjqwhcaaanzklwrkzup0nf_rww8wvbg$77wm2wxudqaac1ni4wdrcqexfwgccppvqw$78wm2wxudqaa5l4qtjhapdt1obcdkoic3g$79wm2wxudqaayfqzhkvrsmp77f5a5_qh_w$80wm2wxudqaahiiuvyamc3zbxkymhtfsdw$81wm2wxudqaaxtuptxplnum7p_ntnx_iqw$82wm2wxudqaay8ql645knwwamujzwqkktg$83wm2wxudqaaehhuim2hbw3ie6qdqqt7yg$84wm2wxudqaae_vkef84cgj09fb00ota2q$85wm2wxudqaawancsgc-gav3zpgxidzyhg$86wm2wxudqaarhsfvysmm_d8lolcqtr4_a$87wm2wxudqaas1ob623h4gw_eqxotdampw$88wm2wxudqaaxss3kzctppf8xo_fr9eu2a$89wm2wxudqaakkke4g22tusoklh2a7f4ug$90wm2wxudqaaqh_jeju8xvvhv1ylphkzjw$91wm2wxudqaantcikgjtmgucuigy4o57_w$92wm2wxudqaa80g4jddupvpplsjsnx-qnw$93wm2wxudqaae6caznhtfg1br3uzurekhq$94wm2wxudqaaghgda54pukjurdd-k8fmig$95wmjqwhcaaamu_uo6w_6e6wzn_co_tw4g$96wm2wxudqaappe9rmsxk9qzd5o1pb91lq$97wmjqwhcaaaodhhd66pvwma2-vcj0qsaq$98wmjqwhcaaadufidqevvc3wiwd4xgnwtw$99wm2wxudqaazbr8euaiacyrkt-w-lvmiq$100wm2wxudqaacjhoc0q78ejxsluvwluzya$101wm2wxudqaafkiz-zyjcreelczbz3iiag$102wmjqwhcaaaiakn7xnejfujdycrynwgaw$103wmjqwhcaaaxsmuldmnjbgnzh15aqhmqq$104wm2wxudqaa2hctvqywdggnoeiu-bfuxg$105wm2wxudqaa-gd-ck-peqhdlx4p3wfncw$106wmjqwhcaaagxsqgpufqa2beaeho1pvbw$107wmjqwhcaaa_ymxgj57ut0__2arr_no1a$108wm2wxudqaaecck567hilirdib1qocrga$109wmjqwhcaaa1cdqcdsbh4gjzbt4mkeobq$110wm2wxudqaanhsaow3uylusv1jkqc6aqa$111wmjqwhcaaai7217h1eojj9n4nigcvssg$112wmjqwhcaaalb4l-qsyzzcdfug_zfsf6q$113wm2wxudqaamganyohb2rs8ukhvc3x_oq$114wm2wxudqaapjuq_51hpygsxn-x8eudwq$115wm2wxudqaasolotdpy5bexoxzdqbgshg$116wm2wxudqaajsfamx4rewzavrs-f0kpdg$117wm2wxudqaacczvqucv-euxiubvlgp96g$118wm2wxudqaasvgkksfpqoff9e4zhtsicq$119wm2wxudqaaih-_ehimzi0n1-7xaclqwg$120wm2wxudqaas-d1q0y79zxtpaduqpoclg$121wm2wxudqaahh6cyqtpbdj10vxipgwjoq$122wm2wxudqaaockkruabn-fup6weoj29xw$123wm2wxudqaaq4alvowb_qcbgqwtsgti4w$124wm2wxudqaacns_ocmfm2ivegscorzuvq$125wmjqwhcaaamlay...|1|1|1||0|0|1804|1804|859|859|
|v4_sales|select ifnull(sum(integral), $0) as points from v4_sales.erp_sales es join v4_sales.erp_sales_detail esd on esd.sales_erp_id = es.sales_erp_id and esd.tenant_id = $1 and esd.tenant_app_id = $2 where es.member_erp_id = $3 and es.sales_status = $4 and es.is_sales = true and esd.sales_type = $5 and es.tenant_id = $6 and es.tenant_app_id = $7|1|4|4||0|0|22242|22242|1|1|
|sms|select count(0) from ( select a.phone_numbers as phoneno, concat($0, a.sign_name, $1, case when b.content is not null then b.content when stc.content is not null then stc.content else a.template_param end) as content, a.template_code, a.out_id as outid, a.template_param, a.create_time as sendtime, a.create_time as recevietime, a.code as state, ifnull(ifnull(e.sms_size, $2) * if(a.code = $3, a.send_count, $4), $5) as send_count, a.message, a.source_type from sms_send a left join sms.sms_send_extend e on a.biz_id = e.biz_id left join sms_template b on a.template_code = b.code left join sms_template_custom stc on a.tenant_app_id = stc.tenant_app_id and a.template_code = stc.code and stc.status = $6 where a.tenant_id = $7 and a.tenant_app_id = $8 and a.create_time >= $9 and a.create_time < $10 order by a.create_time desc ) tmp_count|1|1|1||0|0|2705|2705|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17)|1|1|1||0|0|241271|241271|16|16|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155, $156, $157, $158, $159, $160, $161, $162, $163, $164, $165, $166, $167, $168, $169, $170, $171, $172, $173, $174, $175, $176, $177, $178, $179, $180, $181, $182, $183, $184, $185, $186, $187, $188, $189, $190, $191, $192, $193, $194, $195, $196, $197, $198, $199, $200, $201, $202, $203, $204, $205, $206, $207, $208, $209, $210, $211, $212, $213, $214, $215, $216, $217, $218, $219, $220, $221, $222, $223, $224, $225, $226, $227, $228, $229, $230, $231 ...|1|1|1||0|0|541911|541911|312|312|
|tenant|select count(*) from erp_sales es where tenant_id = $0 and member_erp_id = $1 and tenant_wechatapp_id = $2 and sales_status = $3 and (comment_id is null or comment_id = $4) and sales_date >= $5 and not exists ( select i.id from tenant.erp_sales_ignore i where i.tenant_id = $6 and i.tenant_app_id = $7 and es.sales_erp_id = i.erp_sales_id )|1|1|1||0|0|23807|23807|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14)|1|3|3||0|0|275634|275634|13|13|
|user_service|update user_service.user_employee set employee_id = $0, employee_erp_id = $1, create_time = now(), update_time = now() where tenant_wechatapp_id = $2 and user_id in ( $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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127, $128, $129, $130, $131, $132, $133, $134, $135, $136, $137, $138, $139, $140, $141, $142, $143, $144, $145, $146, $147, $148, $149, $150, $151, $152, $153, $154, $155 ...|1|1|1||0|0|16626|16626|0|0|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121wm2wxudqaazoidbw1sov8qytiuatbe3w$122wm2wxudqaapyru0v5gxct8_9-tfqafug$123wmjqwhcaaagqlcigrysorj9dpmvafpbq$124wm2wxudqaadc-9wjafrn41v9bhyfsv3g$125wm2wxudqaaaaid...|1|1|1||0|0|4868|4868|2393|2393|
|timer|insert into task_execute_log (id, task_id, task_name, task_params, success, error_msg, create_time) values (?, ?, ?, ?, ?, ?, ?)|1|1|1||0|0|0|0|0|0|
|tenant|select count(0) from ( select es.id, es.sales_no, es.sales_date, es.sales_erp_id, es.amount, ifnull(shop.shop_name, ed.dept_name) as dept_name, es.employee_name from tenant.erp_sales es join tenant.erp_department ed on ed.dept_erp_id = es.dept_erp_id and ed.tenant_id = $0 left join tenant.tenant_wechatapp_shop shop on shop.dept_erp_id = ed.dept_erp_id and shop.tenant_wechatapp_id = $1 where es.member_erp_id = $2 and es.tenant_id = $3 and es.tenant_wechatapp_id = $4 and es.sales_status = $5 and not exists ( select i.id from tenant.erp_sales_ignore i where i.tenant_id = $6 and i.tenant_app_id = $7 and es.sales_erp_id = i.erp_sales_id ) ) table_count|1|1|1||0|0|837946|837946|1|1|
|v4_user|select t1.checkin_shop_id as shopid, count(*) as createnum from potential_customer t1 where t1.checkin_time >= $0 and t1.checkin_time < $1 and t1.tenant_id = $2 and t1.tenant_app_id = $3 group by t1.checkin_shop_id|1|1|1||0|0|1849|1849|20|20|
|deliver|select * from express_address where user_id = $0 and type = $1|1|1|1||0|0|9105|9105|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3, $4, $5, $6, $7, $8, $9)|1|1|1||0|0|427283|427283|8|8|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ($1, $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) and t.un_assign_flag = $38|1|1|1||0|0|182|182|83|83|
|v4_employee|select count(*) from ( select t.id as task_id, task_type, if(task_type = $0, st.description, it.description) as description, if(task_type = $1, st.quick_reply, it.quick_reply) as quick_reply, task_name, member_id, member_name, member_mobile_no, member_sex, member_level, t.start_time, t.end_time, datediff(t.end_time, $2) as left_days, send_coupons, recv_coupons, st.coupons, t.accept_time, t.plan_arrival_shop_time, t.arrival_shop_time, t.trade_time from task_task t left join task_system_task_template st on st.id = t.task_template_id and st.tenant_id = $3 and st.tenant_app_id = $4 left join task_invite_task_template it on it.id = t.task_template_id and it.tenant_id = $5 and it.tenant_app_id = $6 where t.status = $7 and task_type = $8 and system_task_type = $9 and t.start_time <= $10 and t.end_time > $11 and shop_id = $12 and employee_id = $13 and finish_time is null and t.tenant_id = $14 and t.tenant_app_id = $15 ) total|1|1|1||0|0|6970|6970|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22)|1|1|1||0|0|363386|363386|21|21|
|gift_mail|select p.id, p.product_name, p.tag_price, i.volume, p.product_status as status, p.default_image_url, i.quantity, i.market_price, if(prp.id is null, false, true) as hasrecommend from gift_mail.platform_product p join gift_mail.platform_inventory i on i.product_id = p.id left join gift_mail.platform_recommend_product prp on prp.tenant_app_id = $0 and prp.is_recommend = true and prp.platform_product_id = p.id where prp.id is null and p.product_status = $1 order by i.volume desc, p.id desc limit $2|1|1|1||0|0|8258|8258|6|6|
|v4_employee|select t.id as task_id, task_type, if(task_type = $0, st.description, it.description) as description, if(task_type = $1, st.quick_reply, it.quick_reply) as quick_reply, task_name, member_id, member_name, member_mobile_no, member_sex, member_level, t.start_time, t.end_time, datediff(t.end_time, $2) as left_days, send_coupons, recv_coupons, st.coupons, t.accept_time, t.plan_arrival_shop_time, t.arrival_shop_time, t.trade_time from task_task t left join task_system_task_template st on st.id = t.task_template_id and st.tenant_id = $3 and st.tenant_app_id = $4 left join task_invite_task_template it on it.id = t.task_template_id and it.tenant_id = $5 and it.tenant_app_id = $6 where t.status = $7 and task_type = $8 and task_template_id = $9 and shop_id = $10 and employee_id = $11 and plan_arrival_shop_time >= $12 and plan_arrival_shop_time < $13 and plan_arrival_shop_time is not null and t.tenant_id = $14 and t.tenant_app_id = $15 order by t.id desc limit $16|1|3|3||0|0|413578|413578|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|2|2||0|0|693410|693410|93|93|
|v4_employee|select count(*) as total from task_task where task_template_id = $0 and tenant_id = $1 and tenant_app_id = $2|1|1|1||0|0|139021|139021|1|1|
|order|select count(*) as amount from `order`.order_info od left join `order`.order_detail dt on od.id = dt.order_id left join order.order_address ad on od.id = ad.order_id where od.tenant_wechatapp_id = $0 and od.take_type = $1 and od.type = $2 and od.status = $3 and ad.shop_id = $4 and dt.take_start_date = $5|1|1|1||0|0|1190|1190|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|8|8||0|0|349091|349091|62|62|
|value_added|select $0 as limitdaytype, t.tenant_wechatapp_id, t.user_id, min(ue.employee_erp_id) as employee_erp_id, ue.dept_erp_id, group_concat(t.product_barcode order by product_barcode asc) as productcode, group_concat(t.product_name order by product_barcode asc) as productname from value_added_user t inner join value_added_user_extend ue on t.id = ue.id where t.tenant_wechatapp_id = $1 and t.state = $2 and t.start_add_time >= date_add(date_format($3, '%y-%m-%d'), interval $4 * (t.add_days + t.keeping_days - $5) day) and t.start_add_time < date_add(date_format($6, '%y-%m-%d'), interval $7 * (t.add_days + t.keeping_days - $8) + $9 day) group by t.tenant_wechatapp_id, t.user_id, ue.dept_erp_id|1|1|1||0|0|415453|415453|144|144|
|employee|select id, scene, employee_id, member_user_name as username, finish_time, status from employee.backlog where tenant_id = $0 and tenant_app_id = $1 and shop_id = $2 and expire_time between $3 and $4 and status != $5 and scene not in ($6, $7) order by id desc limit $8, $9|1|3|3||0|0|285995|285995|8|8|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|695291|695291|64|64|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123)|1|3|3||0|0|778604|778604|122|122|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $45wm2wxudqaaagcbnsmugoqyya4gw1gokg$46wm2wxudqaaxewq6rbhzrl9ptlave-uka$47wm2wxudqaa-dzrkl7nx3xablewmgno7g$48wm2wxudqaa56biqofhrdxxatghruujpw$49wm2wxudqaaufx_anvc6fin-_qlduyh-q$50wm2wxudqaahxi9s62ncx5qgxe3kkrara$51wm2wxudqaaics5tyos4wojfhwwmprwbq$52wm2wxudqaagyvdyjjnl-lmy2r3sghrkw$53wm2wxudqaawjurwjt8t29ubuoc0gxa1w$54wm2wxudqaahtko96hym4hgcmnyt8d77w$55wm2wxudqaakh2mmwg-uupe3kzyscxzna$56wm2wxudqaaan6ue0fml1gdfxfy5o5utq$57wm2wxudqaa50ytrwnnj7zj7a6ks6icsa$58wm2wxudqaaw99flycsztukfuvlaxhpeq$59wm2wxudqaatvixfwkkgbakepgm9degga$60wm2wxudqaaudgxr1dewwmzknmdkjf9sw$61wm2wxudqaas0bl4t8mubjmzqsuwat4eq$62wm2wxudqaal1vt3qypbds_6ltw7ydiog$63wm2wxudqaairvvv16-kewujprhcjlcvw$64wm2wxudqaaxczatg8r7z20yif0ewhxvg$65wm2wxudqaa-kk_hzicydwa10gdxx8i3g$66wm2wxudqaaem5h1n1gwl3nqzpfejk00q$67wm2wxudqaakn7lzogppfn9ti3gi5q7hw$68wm2wxudqaamhzpe3ytokpcdgq-mgybba$69wm2wxudqaadbhue3ehdlamwn1jvrtysa$70wm2wxudqaa9uoili4jyimhrlhnz7glzq$71wm2wxudqaa0y2ejd9_vo5bq_83_bjiea$72wm2wxudqaaezvs0t1bjuhvjuuz5lw0rg$73wm2wxudqaaqaxulfgznhfakewheaoxzw$74wm2wxudqaanh3vsue8mymt2lastssv2q$75wm2wxudqaavaucdljvpfjytxddi9h_sa$76wm2wxudqaa2it0vwrsbgppjgtoge5j6q$77wm2wxudqaap98h2y3olqddz9yphveoig$78wm2wxudqaaeqsjxsjygzjfolvtljy6ja$79wm2wxudqaa9tbhmrzmeg5f6nphmm2vua$80wm2wxudqaaqo3bf5lvispne6xhophpna$81wm2wxudqaaaomx687iflyxrqq-igofyq$82wm2wxudqaax8jzauorti_4y81wcyl-oq$83wm2wxudqaa-sjx0eq693tjppm0bn_64a$84wm2wxudqaasijwrntgqhxgtxfgtpiskg$85wm2wxudqaauronhdd7ysvhif07g4ko1a$86wm2wxudqaar3cs_oac0lijdgncsduyvg$87wm2wxudqaawgi8dwtc0aka_zyjhytbqa$88wm2wxudqaahd2kmm22maubfeortyjkoa$89wm2wxudqaagxtjlxqfxzs5rnfwibkysa$90wm2wxudqaakjifkikvkyag1799dhbdca$91wm2wxudqaaxmzadmmrait0b1figpw2hq$92wm2wxudqaaljbe9laryd61ewmlftv1kw$93wm2wxudqaa4f2fbzmvrgiy4e_7gpen5a$94wm2wxudqaajbe9quqhrrirdl1tcpbnha$95wm2wxudqaasandxbp-2jkjpcs_w86g4a$96wm2wxudqaagruyqoecys8bjwrga8m4ta$97wm2wxudqaaikpx6hirte1g47taewi-yw$98wm2wxudqaaaixzlt28dbxa5j2a1co5cw$99wm2wxudqaayf7kew12msc0xnvmtthjfg$100wm2wxudqaaniyme0qcirlq4ia2bdu-2a$101wm2wxudqaaoar-k16exzw9snyvk8-5tw$102wm2wxudqaa5vbeyx95oohrzsrwsdwnka$103wm2wxudqaakmux2voyo6k9_6il6zttdg$104wm2wxudqaaq1dtwzbuya2wf1nlut-m9a$105wm2wxudqaarojbqj5jiggvm3ck3lzwkg$106wm2wxudqaaipv8tncneovg3cqfblqr3g$107wm2wxudqaacpdbgt3xzta3gkbkbrkv-a$108wm2wxudqaasolbb4fgqf7ffallbsqzsg$109wm2wxudqaavnmoaoio-hfn1jfdhwtpvg$110wm2wxudqaaapej2uwopppejpntj9t8pa$111wm2wxudqaad22cip-ffcoqhiwl4emobg$112wm2wxudqaauk0f8mroasjsqlfamfi3vg$113wm2wxudqaaluebqd4j3vjb_rjtbzj1ug$114wm2wxudqaav57vp1hof4rgl5zcdzio3a$115wm2wxudqaak6h3bbsh0l53augoqdd59q$116wm2wxudqaa5yadbguy5r783nzlif5wva$117wm2wxudqaaudllk52lx-rovl6has5m1w$118wm2wxudqaa3wrko9z29a_kgbqrxelfhq$119wm2wxudqaac73w5vysxrtir76bvufkjg$120wm2wxudqaa4jdflvcqhhsvcerft98hea$121wm2wxudqaa3xqyas2cbvypi-8tzyhwvg$122wm2wxudqaanx8gzfdxsyn4vilsjtdmwq$123wm2wxudqaaruj1zzhyxs3fjg3qyn0tbw$124wm2wxudqaaxmkvu3nlfcekfvqnaz4ota$125wm2wxudqaagtx...|1|1|1||0|0|130|130|63|63|
|user_service|select ue.user_id as id, tm.user_name as username, tm.head_img_url as headimgurl, tm.user_name as nickname, tm.mobile_no as mobile, tm.sex from user_service.user_employee ue join user_service.tenant_member tm on tm.tenant_id = ue.tenant_id and tm.tenant_app_id = ue.tenant_wechatapp_id and tm.user_id = ue.user_id where ue.employee_id = $0 and ue.tenant_id = $1 and ue.tenant_wechatapp_id = $2 and ue.shop_id = $3 order by tm.id desc limit $4|1|2|2||0|0|24949|24949|10|10|
|order|select od.id, od.order_no as orderno, od.status, od.take_type as taketype, od.create_time as createtime, od.remark, od.total_fee as totalfee, od.freight_fee as freightfee, od.discount_fee as discountfee, od.take_id as takeid, od.payment_fee as paymentfee, dt.product_id as productid, dt.price, dt.quantity, dt.sku_id as skuid, dt.art_no as artno, dt.image_url as imageurl, dt.product_name as productname, dt.take_remark as takeremark, dt.take_day as takeday, od.product_fee as productfee, od.finish_type as finishtype, od.send_time as sendtime, od.receive_time as receivetime, od.finish_time as finishtime, od.child_status as childstatus, od.send_good_remark as sendgoodremark, od.service_flag as serviceflag, od.coupon_id as couponid, od.tenant_wechatapp_id as tenantappid, od.tenant_id as tenantid, od.pay_id as payid, od.user_id as userid, od.user_name as username, od.mobile_no as buymobileno, od.activity_id, od.offline_payment_fee, od.activity_type, dt.spec, od.take_shop_id, od.take_shop_name, od.take_employee_user_id, od.take_employee_user_name from order_info od left join order_detail dt on od.id = dt.order_id where od.status = $0 and od.receive_time <= $1|1|2|2||0|0|209677|209677|137|137|
|v4_sales|select count(*) as total from v4_sales.warranty w join v4_sales.erp_sales es on es.id = w.sales_id and es.tenant_id = $0 and es.tenant_app_id = $1 where w.member_id in ($2) and is_disable = false and w.tenant_id = $3 and w.tenant_app_id = $4|1|1|1||0|0|105485|105485|1|1|
|comment_service|select c.*, cr.busi_id, cr.give_prize, cr.give_type from comment_service.comment c left join comment_service.comment_reward cr on cr.comment_id = c.id where c.id in ($0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)|1|1|1||0|0|393156|393156|14|14|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107)|1|1|1||0|0|954483|954483|106|106|
|employee|select count(*) from employee.backlog where tenant_id = $0 and tenant_app_id = $1 and shop_id = $2 and status = $3 and finish_time between $4 and $5|1|1|1||0|0|983|983|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|1|1||0|0|820561|820561|87|87|
|payment|select id, tenant_id, tenant_app_id, goods_order_source, goods_order_no, pay_order_id, transaction_id, goods_amount, refund_amount, fee_type, refund_reason, refund_account, request_ip, user_id, user_identify, user_sub_identify, order_start_time, refund_id, settlement_refund_amount, refund_recv_accout, refund_request_source, refund_finish_time, refund_status, refund_status_desc, error_msg, wxappid, sub_wxappid, mch_id, sub_mch_id, callback_tag, callback_result, create_time, update_time from refund_order where callback_result in ($0, $1) and refund_status in ($2, $3) order by id asc limit $4|1|1|1||0|0|10397|10397|0|0|
|employee|select count(*) from employee.backlog where tenant_id = $0 and tenant_app_id = $1 and shop_id = $2 and status = $3 and expire_time between $4 and $5|1|2|2||0|0|7969|7969|1|1|
|tenant|select count(0) from sneak_guest sg left join employee ey on sg.maintain_employee_id = ey.id where sg.tenant_app_id = $0 and sg.create_shop_id = $1 and sg.maintain_employee_id = $2 and sg.status = $3|1|1|1||0|0|11226|11226|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3, $4, $5, $6, $7)|1|4|4||0|0|180818|180818|6|6|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120)|1|2|2||0|0|820593|820593|119|119|
|corpwx|select t.tenant_id as tenantid, t.wx_user_id as wxuserid, t.union_id as wxunionid, t.user_id as externaluserid, ifnull(et.raw_external_user_id, t.old_user_id) as rawexternaluserid, t.corp_user_id as employeecorpuserid from corpwx.external_user t left join corpwx.external_userid_transform et on t.tenant_id = et.tenant_id and t.user_id = et.external_user_id where t.tenant_id = $0 and t.user_id in ( $1, $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, $32wm2wxudqaay8ndqlic51jwppuyywa0tg$33wmjqwhcaaaczzpze-s8jxrnnqsvhmo1q$34wmjqwhcaaaqk6ygtdi0tsenmgazqfs7w$35wmjqwhcaaalywxdggwfrpn9mtplckzpa$36wm2wxudqaaqipjbqr7peidlh8a_a28sa$37wmjqwhcaaa06h_tf-0uchmlupxyfeybq$38wmjqwhcaaampt9qtsdzlummugdj8alzg$39wm2wxudqaaa0_9r_o-zuyo95mbgz_18a$40wm2wxudqaavxhe_vydylasjlycj3ao2a$41wm2wxudqaatprmuhymfj7fumbxkqapyq$42wm2wxudqaawfyqhzkmzswswaf-fn407w$43wm2wxudqaaizg2xtrnhni6po7kr06vbq$44wm2wxudqaahv4chjwuznsxugrwocsxya$45wm2wxudqaa9qf7qfc9upjdpfo7onayha$46wmjqwhcaaainqgpftiweeys77vd6m0dg$47wm2wxudqaais8thzd3krzqnhogj3efhg$48wm2wxudqaa30nnon_eb78_1l1pt3oicg$49wm2wxudqaa1gvwysq4praea44xyizl-g$50wm2wxudqaasepeuilqrpqcbcxby6333g$51wm2wxudqaazy0z-bl_un55v1gfqub5da$52wmjqwhcaaaehu8uljspri5gcgyvafawa$53wm2wxudqaaduf6gxnmj6v6cuiuejob3w$54wm2wxudqaab-ejj3b2sezhtigkwbvuqg$55wm2wxudqaa1zsdls_g60lsejsbcemjtw$56wm2wxudqaaamhmd64sekfkaik4certnq$57wm2wxudqaaboq-edf8ozaiiemhy9zohq$58wm2wxudqaac-36ku5udhj5vfqdoi2waa$59wm2wxudqaaydh0kburthp1u7zqbpndoq$60wmjqwhcaaae4jcdbhjbnpnurukkgeyag$61wm2wxudqaa5rth96n2b089j3ekgepckq$62wm2wxudqaavjcr5fnvvmdj0zuqws8tcq$63wm2wxudqaablqvbuvp5ntozrombkllia$64wm2wxudqaalbft00xjzlp9npr6_uy81a$65wm2wxudqaap3q_usp9oatkiqk14hhjsw$66wmjqwhcaaan53yxclh8hcc7tvu8xp6zw$67wmjqwhcaaaswtqsup4_wqh1uwj9icidw$68wm2wxudqaad7mprl2jyha-lwkqjugq7w$69wmjqwhcaaamcfqaeqeixj-kzlobzhfrq$70wm2wxudqaagwaxvb18nxno27klllu2vw$71wm2wxudqaadfnfs9pcpuekogt1ecixig$72wm2wxudqaaztqkjikhm0aipkc9zdamag$73wmjqwhcaaarcrfv3i7y2vz7ckn3ofqfa$74wmjqwhcaaa3slgj3lbtrzoo_j5x5f3fq$75wm2wxudqaa4r6mhys99cpmchaayilu-w$76wm2wxudqaa0uh7jtolyleiqq-anw1dow$77wmjqwhcaaaycv6lmhujmddrhaqfarj3a$78wm2wxudqaammnvpqpi-4jl2ugwzgazja$79wmjqwhcaaannu5tgijisd1bl5yflf5ow$80wmjqwhcaaayv-vm84pir5h0zve1uweya$81wmjqwhcaaatuyk0srpdvni1xoht9uccq$82wm2wxudqaapmqbnvosgayvwirg9ssgqw$83wm2wxudqaan-uf4xgqutqn5kdydrog2w$84wmjqwhcaaaeemnwkdolin0drzdsyckwq$85wm2wxudqaa-z9vjjvvhn54iolmk1qvfg$86wmjqwhcaaajkjovixsej6eoi7v6zuj_a$87wmjqwhcaaacdzlsowz1e0rejozasabgq$88wm2wxudqaasset1p8v2mhbif6dlxt7uq$89wm2wxudqaaxqcrj0r-bk4nupzexlngmq$90wm2wxudqaaj8qpcjsndoi6a_ujmsmnfq$91wmjqwhcaaaciiypgxlmdykhudjg0ib4w$92wm2wxudqaaxm4hpsvmlmkuckxkadg72w$93wmjqwhcaaakfomsgvki-7drcgmtqreuw$94wm2wxudqaaersquhwiunflsaljxvrkoq$95wm2wxudqaaw6_d522czafcu1_lbe-v9a$96wmjqwhcaaasu5zznqnufk8wwf4lxja_w$97wm2wxudqaaqjpwgtnyjochdluwxsge_q$98wm2wxudqaahjuthsuax6dup-fod1rcqq$99wm2wxudqaarqthr_m2himh7c3fxug8na$100wm2wxudqaakurgb0g8oalxjfyang7kbw$101wm2wxudqaay-aw2hpvdyeklqfqhp-2lq$102wm2wxudqaa72jyswknakihnukt4kau4w$103wm2wxudqaa-_d11kf0duv7qsu718_kdw$104wmjqwhcaaayao3-_uqiekvrfkd1cuvsg$105wmjqwhcaaabikmiwnsx-drjcscig274g$106wm2wxudqaalrs5mimfnur3bd3tubko7a$107wm2wxudqaa4hipphmoit0irkqsf6i0fq$108wm2wxudqaax0bqdcqqbxwi6nuttct_ug$109wmjqwhcaaa_vyrsiqvpfmfv0bvr1fqdq$110wmjqwhcaaasxb2z6tpnsibfanp2gigww$111wm2wxudqaattw7cokwq9m_5sqgio3pag$112wmjqwhcaaaydxwgthpzifv1tezp4hqua$113wmjqwhcaaamvlaawd8jwzuwbgcohitng$114wm2wxudqaab-ma0cuoqvlleugbp8r9_q$115wm2wxudqaai5fh3ykci-7nsppy7rssta$116wmjqwhcaaaxrowtoggb7, $117, $118, $119, $120, $121, $122, $123, $124, $125|1|1|1||0|0|1342|1342|628|628|
|tenant|select count(0) from ( select sg.employee_id as employeeid, sg._actual as actualnum, sg._maintain as continuenum, sg._failure as failnum, sg._success as dealnum, e.employee_name, e.head_img_url from ( select sgm.employee_id, count(distinct sneak_guest_id) as _actual, sum(_maintain) as _maintain, sum(_success) as _success, sum(_failure) as _failure, max(sgm.create_time) as create_time from ( select sgm.employee_id, sneak_guest_id, if(event_type = $0, $1, $2) as _maintain, if(event_type = $3, $4, $5) as _success, if(event_type = $6, $7, $8) as _failure, sgm.create_time as create_time from tenant.sneak_guest_maintain sgm join tenant.sneak_guest sg on sgm.sneak_guest_id = sg.id where sgm.tenant_id = $9 and sgm.tenant_app_id = $10 and sgm.shop_id = $11 and sgm.create_time between $12 and $13 and sgm.event_type in ($14, $15, $16) and (sg.fail_type is null or sg.fail_type = $17) ) sgm where 1 = 1 group by sgm.employee_id ) sg join tenant.employee e on e.id = sg.employee_id order by sg.create_time desc ) tmp_count|1|3|3||0|0|28627|28627|1|1|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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, $99, $100, $101, $102, $103, $104, $105, $106, $107, $108, $109, $110, $111, $112, $113, $114, $115, $116, $117, $118, $119, $120, $121, $122, $123, $124, $125, $126, $127)|1|1|1||0|0|693443|693443|126|126|
|gift_mail|select count(0) from ( select p.*, sp.take_type, ifnull(pp.integral_price, ifnull(( select min(inventory.price) from inventory where inventory.product_id = p.id ), $0)) as price, ifnull(t.quantity, $1) as quantity, pt.partner_name as vendorname, $2 as distance, c.categroy_name as categroy_name, pp.partner_id from product p inner join category c on c.id = p.category_id left join self_product sp on p.id = sp.product_id left join partner_product pp on p.id = pp.product_id left join partner pt on pt.id = pp.partner_id left join ( select product_id, sum(quantity) as quantity from gift_mail.inventory group by product_id ) t on p.id = t.product_id where p.is_disable is null or p.is_disable = $3 ) p left join product_status ps on p.id = ps.product_id and ps.tenant_wechatapp_id = $4 where p.product_status = $5 and p.topping = $6 and p.tenant_id = $7 and (ps.id is not null or p.tenant_wechatapp_id = $8)|1|1|1||0|0|51550|51550|1|1|
|employee|select date_format(t.create_time, '%d') as monthday, ifnull(sum(task_amount), $0) as shouldmarknum, ifnull(sum(finish_amount), $1) as marklabelnum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.employee_id in ($4, $5, $6, $7, $8, $9) and t.scene = $10 and t.begin_time >= $11 and t.expire_time < $12 group by date_format(t.create_time, '%d')|1|4|4||0|0|26784|26784|10|10|
||delete from tenant.sjfx_dct_erp_sales_detail_extend where create_time < $0|1|1|1||0|0|141555|141555|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id 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)|1|3|3||0|0|772342|772342|92|92|
|user_service|select count(*) from user_service.tenant_member_info t where t.tenant_id = $0 and t.tenant_app_id = $1 and t.shop_id = $2|1|1|1||0|0|21907|21907|1|1|
|mysql|delete from message_push.message_log where create_time < date_sub(now(), interval $0 day)|1|74|74||0|0|2702277|2702277|0|0|
|user_service|select tu.user_id, tm.shop_id, mb.erp_member_id as membererpid, tu.mobile_no, tu.user_name, ue.employee_id, tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = $0 and tu.tenant_app_id = $1 and mb.erp_member_id in ($2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20)|1|3|3||0|0|70208|70208|19|19|
