|数据库名称|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|283|626|12||0|0|998164|69779|283|1|
|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)|126|670|85||0|0|11604393|212718|77|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|111|194|8||0|0|207364|5473|207364|5473|
|v4_sales|select * from v4_sales.erp_sales_detail where sales_erp_id = $0 and sales_type = $1 order by sales_index|89|766|75||0|0|86881757|976727|298|11|
|v4_sales|select * from v4_sales.erp_sales_detail where sales_erp_id = $0 and product_barcode = $1|89|251|31||0|0|86877776|976690|89|1|
|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|81|249|40||0|0|1067577|27320|78|1|
|v4_sales|select * from erp_sales where sales_erp_id = $0 limit $1|58|192|62||0|0|15510355|532025|58|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|50|71|2||0|0|661001|132134|50|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)|49|109|15||0|0|19197195|391881|49|1|
|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|48|417|92||0|0|19704599|848787|18|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|39|67|9||0|0|6977257|207820|35|1|
|comment_service|select * from comment_service.comment_reward where comment_id = $0 limit $1|39|79|8||0|0|14997972|386141|6|1|
|coupon_service|select count(*) from employee_give_coupon_log where tenant_app_id = $0 and coupon_push_id = $1|34|45|3||0|0|654628|31152|34|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)|33|169|27||0|0|43880355|1330550|27|2|
|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|30|43|6||0|0|247723|8267|180|6|
|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|29|82|18||0|0|121239|10817|29|1|
|tenant|select count(*) from sneak_guest where tenant_app_id = $0 and status = $1 and create_shop_id = $2 and maintain_employee_id = $3|26|79|18||0|0|112725|10817|26|1|
|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()|25|66|12||0|0|1119010|64986|25|1|
|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|25|70|16||0|0|118649|10817|25|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, $11wm2wxudqaawflnchgjmom4yd_ozoesqa$12wm2wxudqaako2luxzddqctk0uf9rxgwq$13wm2wxudqaazyrxkgnskh30eqcq-ovl-a$14wm2wxudqaaz5u37lnxiris6ljv-ldekq$15wm2wxudqaawuwzenjl5julden7peia8w$16wm2wxudqaai35de9wkhpjympbavh6niq$17wm2wxudqaadneiqz5cbuy_or-a2_wzzw$18wm2wxudqaaqe8m_fk8k8ulekk-kbxfww$19wm2wxudqaacjd72xa0ccoke8iasvnkpg$20wm2wxudqaao3sp0_scnfnvyopikghr1q$21wm2wxudqaaun1g2s7ayp_tye6mz7bgbg$22wm2wxudqaajaonskw_-jdcoztolwo81w$23wm2wxudqaavyczfypycbc0_m3mmk7sxg$24wm2wxudqaa4mf5jc2sc8sattd4081p-a$25wm2wxudqaabdfsnsfzo3vge75lqv4wxg$26wm2wxudqaahjdo4ufcebkrtpcoxalukg$27wm2wxudqaao-ujtyxknzztcw0-9w3sta$28wm2wxudqaaknuqwrgsoh46robhr34-sw$29wm2wxudqaaopxxm6bt2o7kxihwvjopxq$30wm2wxudqaabsyhyomnnngtddyrhlyhta$31wm2wxudqaa7xabfmwlujs8jynczwd5tq$32wm2wxudqaah77b0ifkdfvlj6b2gug3cg$33wm2wxudqaacinfpncexjxiw0ntwijnla$34wm2wxudqaajw1syiseyyjye7bf30vaiw$35wm2wxudqaamjluosqgm0jpcu9gcier4g$36wm2wxudqaak8eo8yyjxbpezlwb4gcnpa$37wm2wxudqaalalnggozxvzxzmidlxe01a$38wm2wxudqaa1u8gjwyns-dqnpq7w-anyw$39wm2wxudqaabdhoxgyhwki2j5bqhia-7w$40wm2wxudqaakhot, $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|25|42|8||0|0|36371|1459|18023|723|
|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)|23|248|68||0|0|30583942|1330734|39|3|
|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|23|55|10||0|0|11631672|505910|23|1|
|v4_user|select count(1) from member_source where source_id = $0 and tenant_id = $1 and tenant_app_id = $2|18|45|16||0|0|3740303|207817|18|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|16|20|1||0|0|229808|53922|160|10|
|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|16|26|2||0|0|149901|42086|16|1|
|corpwx|update external_user set un_assign_flag = $0 where tenant_id = $1 and un_assign_flag = $2|16|38|7||0|0|440292|57322|0|0|
|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|15|25|2||0|0|146313|42088|15|1|
|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|14|28|3||0|0|228650|16427|14|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.template_id = $4|13|2192|234||0|0|2410086|199998|13|1|
|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|13|25|3||0|0|102641|11236|13|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|13|16|1||0|0|135632|20182|13|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|12|24|7||0|0|2675614|223337|23|5|
|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|12|39|8||0|0|81085|18754|172|43|
|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|12|39|8||0|0|83470|19282|967|180|
|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)|12|21|6||0|0|4614506|450961|12|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|12|217|56||0|0|160953|14771|471|43|
|v4_sales|select count(1) from warranty where member_id in ($0) and is_disable = $1 and tenant_id = $2 and tenant_app_id = $3|11|49|21||0|0|959776|104263|11|1|
|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|11|22|4||0|0|75421|27322|11|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|11|16|2||0|0|36013|7417|11|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|10|13|1||0|0|1118280|111828|0|0|
|warranty_service|select count(*) from warranty where user_id = $0 and tenant_wechatapp_id = $1 and is_disable = $2|10|30|7||0|0|32424|9994|10|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, null) 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 = $2 and st.tenant_app_id = $3 left join task_invite_task_template it on it.id = t.task_template_id and it.tenant_id = $4 and it.tenant_app_id = $5 where t.status = $6 and task_type = $7 and task_template_id = $8 and shop_id = $9 and employee_id = $10 and finish_time is null and t.end_time > now() and t.tenant_id = $11 and t.tenant_app_id = $12 order by t.id desc limit $13|10|25|5||0|0|1347886|184797|100|10|
|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|10|68|13||0|0|5955132|595701|60|8|
|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|9|11|1||0|0|20552|4285|9|1|
|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)|9|24|3||0|0|4550991|505912|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)|9|15|5||0|0|11969846|1331066|37|7|
|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|9|13|2||0|0|25429|3930|9|1|
|tenant|select count(*) from ( select s.sneak_guest_id from tenant.sneak_guest_maintain s join tenant.sneak_guest sg on sg.id = s.sneak_guest_id and (sg.fail_type is null or sg.fail_type = $0) where s.tenant_id = $1 and s.tenant_app_id = $2 and s.shop_id = $3 and s.event_type = $4 and s.create_time between $5 and $6 group by s.sneak_guest_id ) a|9|107|31||0|0|786614|197500|9|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|8|13|3||0|0|58096|7262|8|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, $30wm2wxudqaar26upnycbygygixavh07ea$31wm2wxudqaaw_swyvskcr7wckqeibkdag$32wm2wxudqaaysomrdl6wk0-zpwevlmj6g$33wm2wxudqaak0glzgmufb2ucelui4ahkq$34wm2wxudqaavqpbrrdr3daksyjbfodjvg$35wm2wxudqaamifcglmla0xe0d0-aerqzq$36wm2wxudqaatvglqyngbj0pdf9q74jsia$37wm2wxudqaaeqettm7krn4wzjkljly8jq$38wm2wxudqaa2qi0b37-ssulgk59a__xmg$39wm2wxudqaa_ai2y1p-p4kyeukpnvtzma$40wm2wxudqaah8i5eig64fll2gjk2_niha$41wm2wxudqaacroxaogma8yobr_y9psuca$42wm2wxudqaa_rn-_j2tbjntpvr65m_1-w$43wm2wxudqaaqkalfxrxfu1ftino4tyoba$44wm2wxudqaaaf8su26rb9mik9k1paxi4g$45wm2wxudqaautpcavhcy2wb3ji6aqmz7q$46wm2wxudqaamwa4cxcwg1nwxaqz8zxppw$47wm2wxudqaaqnqluxf-r68uqcngf_cfxa$48wm2wxudqaaazfb7t3hlh06hfco0wjc4a$49wm2wxudqaaabygwkqa6drscdxdj07ztw$50wm2wxudqaacquz74uoszzfj53pnh1e-g$51wm2wxudqaazxpvl5vwdlrxsiirgyyvaa$52wm2wxudqaawo7fq7z7ezfqgbncqzzudq$53wm2wxudqaakkz5v4a_ijdnbaf9lidj2q$54wm2wxudqaa8yjxnev76swqayod_jpclg$55wm2wxudqaaaruscq1elk4at67vsg8vjg$56wm2wxudqaavccq0pqkqpykaxgtlfcrba$57wm2wxudqaai4jnxlqvpbxy8sew0rawfa$58wm2wxudqaaearwxweb1j8aicz4cnnw3w$59wm2wxudqaas5tvmgmaw6-hjhs-s5np2g$60wm2wxudqaao5_hbn1poeyejzxocs_wtw$61wm2wxudqaallfj6nh5eltiv9rfjmicnw$62wm2wxudqaa0qdyb3phkq4gkcr5jqdicw$63wm2wxudqaa8jkvz8yz2xpvfstzkuy4ya$64wm2wxudqaaoziswzd3eyfyplosp6kung$65wm2wxudqaa4jaznrg5bzf8daova6znjg$66wm2wxudqaahngjyntkpxfba-_y9zrhsa$67wm2wxudqaamqu9zwtqcaco1fgbmlowrw$68wm2wxudqaapga5i5cywy3vegfviaoypq$69wm2wxudqaayz9cahl-dlr7qo_vceusga$70wm2wxudqaaacmljaqxtjvum5ghvb0s2g$71wm2wxudqaa3gzsgu073hzorgw_oard1a$72wm2wxudqaakixdmxcnwvczritnskmcfg$73wm2wxudqaatpfofkwyxogdapq6cxwx0w$74wm2wxudqaa1bmkpvixmlzwe2iyg8fbaa$75wm2wxudqaacrg5j4b1snkduptjxbt1qa$76wm2wxudqaajgfx60euv3vmi0cvhttv0g$77wm2wxudqaaoa5-kewcq_wqwja9xmyyng$78wm2wxudqaadtjggz1amzx4plvnnufhpg$79wm2wxudqaasgidwutg2w0ehhl8eh0xfq$80wm2wxudqaabrhsg4hwvdtjtjdwkdjuba$81wm2wxudqaaoqwwwt_b6ugi-rpdwf5j9q$82wm2wxudqaabdcftb9kj3liepnzz-w3wq$83wm2wxudqaazkbelkdrrfexrjmlsht34q$84wm2wxudqaaupdo3_yjedulekma-1a6ag$85wm2wxudqaantqv0cr5jtqx_stydbovvq$86wm2wxudqaakj3qqj06p2o24h0oalwfeg$87wm2wxudqaafutgz2zywd0tucy0_1uaaw$88wm2wxudqaagi8ej_bcm2iykfeqpedb5w$89wm2wxudqaayd1mrbwbe3kvi-_fcg7v7g$90wm2wxudqaa3fpfnilf6m7vakqs3p-s1a$91wm2wxudqaaklx8f-fp9jg8fx4zueyqlg$92wm2wxudqaakjkoaghgole48krak16pia$93wm2wxudqaa8btzi66jk2ln09wpam6fkg$94wm2wxudqaaxg_xun3bui-jqvwnuevwba$95wm2wxudqaaqphv9q9nmpnml1ro7ydklg$96wm2wxudqaamyo9qglmwg9dupzezmd9ma$97wm2wxudqaaurmyrrg2wfb_ouq6jr1psg$98wm2wxudqaa2c6v0dvmqs0bshdonipmfa$99wm2wxudqaawonvgg1y5cha-yhwdrueea$100wm2wxudqaacgzzxihuysg4bbudmwepkg$101wm2wxudqaagraox0rx8mjl689eedvbtg$102wm2wxudqaasqdvg64njah3mlbuffin2g$103wm2wxudqaapk38jpjdemq4gddhjf3iga$104wm2wxudqaa3ydt6978ww0tdkwzp5elgq$105wm2wxudqaajijz9wmgl9rtsvttzcjrwg$106wm2wxudqaaiml7c0xgyddc5xmqbotx_g$107wm2wxudqaa6hymijix1nnaxb6pi2yflq$108wm2wxudqaaenafprmjlvbcjaoablbe0q$109wm2wxudqaapfu7cb8wq_tly2ipnc7hbw$110wm2wxudqaaqje1wyk612c_e4qj0akk-a$111wm2wxudqaamvri6_elzudqrdohomtalg$112wm2wxudqaabpsqdcfaxndcoj8gotxm0q$113wm2wxudqaabu4jeiznhgstenovl8zlaa$114wm2wxudqaayinuzsneu393lorb3qvktg$115wm2wxudqaafq4bslksynjmmltkjor8wa$116wm2wxudqaaf2o1fisvedepcijgww8qxw$117wm2wxudqaaibuauekyws7ww6e4ydk_sa$118wm2wxudqaapojgv51csmi_hwsh6nfv5w$119wm2wxudqaa88di3qrgy5wekx1zwfozhg$120wm2wxudqaax8akgvtyfbt-4myamddlnw$121wm2wxudqaaacbnbarqgydpvio-zj908a$122wm2wxudqaab1w5np8xglaasyfqhrpwhq$123wm2wxudqaazds1uw0iswu2ja7popcvia$124wm2wxudqaaalzcfjuh8lisrvyqep6v0g$125wm2wxudqaa6p1...|8|14|5||0|0|4736|592|2160|270|
|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)|8|9|1||0|0|10638183|1330397|20|4|
|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|7|18|10||0|0|1560168|223256|0|0|
|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|7|17|9||0|0|3310734|472962|486|277|
|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|7|11|3||0|0|8293|1752|7|1|
|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)|7|10|2||0|0|53682|12055|7|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|7|27|7||0|0|145991|30543|27691|5771|
|coupon_service|select * from coupon_service.coupon_can_give where coupon_id = $0 limit $1|6|8|1||0|0|1294570|229467|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|7||0|0|48066|8011|0|0|
|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|6|11|2||0|0|97872|16433|26|6|
|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)|6|7|1||0|0|7983543|1330973|92|21|
|v4_user|select count(1) from member where status = $0 and member_name like $1 and tenant_id = $2 and tenant_app_id = $3|5|31|18||0|0|1038885|207804|5|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|5|9|3||0|0|223208|91599|47|12|
|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|5|15|7||0|0|30171|8709|5|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|5|11|3||0|0|585602|117122|0|0|
|authorization_service|insert into user_login_token (id, platform_user_id, user_id, wx_user_id, wx_app_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) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|5|6|1||0|0|0|0|0|0|
|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|1140232|410779|293|111|
|value_added|update value_added_user set state = $0 where state = $1 and tenant_id = $2 and tenant_wechatapp_id = $3 and user_id = $4 and product_barcode = $5|5|11|2||0|0|845|169|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)|5|6|1||0|0|6650701|1331210|46|10|
|order|select max(create_time) from `order`.order_operator_log where tenant_wechatapp_id = $0 and order_id = $1|4|14|3||0|0|3318887|830690|4|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|4|12|5||0|0|23041|5771|4|1|
|v4_sales|select count(1) 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|4|6|2||0|0|1009982|252550|4|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)|4|6|1||0|0|228|57|76|19|
|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|4|4|1||0|0|482986|120939|40|10|
|corpwx|select count(0) from ( select template_id, msg_type, msg_content, err_msg, create_time, to_user from corpwx.mini_app_msg where tenant_id = $0 union select replace(json_extract(msg_content, $1), $2, $3) as templateid, $4, msg_content, err_msg, create_time, to_user from corpwx.task_card_send_record where tenant_id = $5 ) a where 1 = 1|4|46|20||0|0|1878130|469569|4|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|4|7|3||0|0|319894|80014|0|0|
|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|4|5|1||0|0|21451|5363|4|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|4|18|5||0|0|3319252|830647|0|0|
|authorization_service|select id, user_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, employee_id, shop_id, platform_user_id, wx_user_id, wx_app_user_id from user_login_token where user_id = $0 and tenant_id = $1 and tenant_wx_app_id = $2 and login_way = $3 and status = $4 and expire_time > now()|4|4|1||0|0|26|16|1|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|4|6|2||0|0|23504|6890|8|2|
|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)|4|10|6||0|0|5320236|1330411|43|13|
|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|4|4|1||0|0|33281|8362|24|6|
|corpwx|select template_id, name from corpwx.app_template where template_id in ( select template_id from corpwx.mini_app_msg where tenant_id = $0 and template_id is not null group by template_id union all select templateid from ( select replace(json_extract(msg_content, $1), $2, $3) as templateid from corpwx.task_card_send_record where tenant_id = $4 ) a where templateid is not null group by templateid )|4|104|33||0|0|76983486|19246056|12|3|
|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|4|11|4||0|0|6364|1591|4|1|
|corpwx|select msg_type from corpwx.mini_app_msg where tenant_id = $0 group by msg_type union select $1 from corpwx.task_card_send_record where tenant_id = $2|4|46|20||0|0|1877654|469418|12|3|
|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|3|4|2||0|0|49515|16511|18|6|
|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|3|10|4||0|0|154419|74667|3|1|
|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|3|23|15||0|0|49507|22144|3|1|
|employee|update backlog_system set status = $0, finish_time = now() where tenant_app_id = $1 and scene = $2|3|11|7||0|0|3302505|1100835|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)|3|7|3||0|0|9350|3117|3|1|
|employee|insert into backlog (id, tenant_id, tenant_app_id, user_id, user_type, employee_id, status, scene, begin_time, expire_time, md5_str, shop_id, member_erp_id, task_amount, finish_amount) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) on duplicate key update task_amount = $0, finish_time = if($1 > finish_amount, null, finish_time), status = if($2 > finish_amount, $3, status), update_time = now()|3|5|1||0|0|0|0|0|0|
|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)|3|7|4||0|0|150555|50185|3|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|3|16|7||0|0|156570|78424|3|1|
|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|3|61|30||0|0|463878|197821|3|1|
|user_service|select tenant_id, id, tenant_app_id, user_id, wx_user_id, erp_member_id, customer_user_id, wx_union_id, create_time, update_time, external_user_id from tenant_member_bind where tenant_id = $0 and tenant_app_id = $1 and user_id in ($2, $3, $4, $5, $6, $7, $8, $9)|3|4|1||0|0|24|8|24|8|
|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))|3|5|3||0|0|95844|31948|3|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)|3|3|1||0|0|3991075|1330973|14|8|
|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')|3|13|7||0|0|458561|326387|974|970|
|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|3|62|35||0|0|1393839|464613|3|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)|3|3|1||0|0|549221|452934|12|4|
|goods|select count(0) 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|3|3|1||0|0|361839|120833|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|8|3||0|0|128439|42813|77|45|
|gift_mail|select tt.shop_id from gift_mail.trade t join gift_mail.trade_take tt on tt.tenant_wechatapp_id = t.tenant_wechatapp_id and tt.trade_id = t.id where t.tenant_id = $0 and t.tenant_wechatapp_id = $1 and tt.shop_id is not null|3|6|4||0|0|44202|24134|22100|12067|
|wx_gateway|insert into wx_template_msg (id, tenant_id, tenant_app_id, user_id, push_id, tenant_user_open_id, template_id, template_no, url, data, msg_id, status, err_msg, title, content, create_time, update_time, tenant_short_name, tenant_app_name, user_mobile_no, user_name, user_head_img_url) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|3|5|2||0|0|0|0|0|0|
|v4_employee|select count(1) 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, null) 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 = $2 and st.tenant_app_id = $3 left join task_invite_task_template it on it.id = t.task_template_id and it.tenant_id = $4 and it.tenant_app_id = $5 where t.status = $6 and task_type = $7 and task_template_id = $8 and shop_id = $9 and employee_id = $10 and finish_time is null and t.end_time > now() and t.tenant_id = $11 and t.tenant_app_id = $12 ) total|3|4|1||0|0|17422|6422|3|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 exists ( select $2 from tenant.sneak_guest_maintain sgm where sg.id = sgm.sneak_guest_id and sgm.event_type = $3 and sgm.intention_info regexp $4 ) and sg.status = $5|3|52|32||0|0|69666|23222|3|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 task_template_id = $9 and shop_id = $10 and employee_id = $11 and arrival_shop_time >= $12 and arrival_shop_time < $13 and arrival_shop_time is not null and t.tenant_id = $14 and t.tenant_app_id = $15 order by t.id desc limit $16|3|13|8||0|0|1082409|360803|3|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)|2|10|8||0|0|1412833|952009|122|61|
|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|2|9|7||0|0|4568|2284|2|1|
|v4_employee|select id, batch_no, task_type, system_task_type, task_frequency, task_name, task_template_id, business_id, shop_id, employee_id, member_id, start_time, end_time, finish_time, send_coupons, recv_coupons, recv_coupon_time, accept_time, plan_arrival_shop_time, arrival_shop_time, trade_nos, trade_num, trade_amount, trade_time, member_name, member_mobile_no, member_latest_birthday, member_sex, member_age, member_level_id, member_level, member_sales_amount, member_sales_count, member_integral_balance, member_integral_total, status, tenant_id, tenant_app_id, create_time, update_time from task_task where member_id = $0 and task_template_id in ($1) and tenant_id = $2 and tenant_app_id = $3|2|2|1||0|0|0|0|0|0|
|wx_gateway|select count(0) from wx_gateway.wx_image where tenant_app_id = $0 and state = $1|2|6|5||0|0|423902|211951|2|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)|2|3|1||0|0|356362|249374|70|35|
|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)|2|3|2||0|0|1777142|918776|224|112|
|user_service|select id, tenant_id, wechat_app_id, open_id, union_id, nick_name, head_img_url, sex, wx_mobile_no, create_time, update_time from mini_app_user where wechat_app_id = $0 and wx_mobile_no = $1 and id <> $2|2|3|2||0|0|53284|26653|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)|2|7|6||0|0|2659141|1329686|7|5|
|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|2|2|1||0|0|142551|71304|2|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)|2|2|1||0|0|530182|287466|142|71|
|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, null) 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 = $2 and st.tenant_app_id = $3 left join task_invite_task_template it on it.id = t.task_template_id and it.tenant_id = $4 and it.tenant_app_id = $5 where t.status = $6 and task_type = $7 and task_template_id = $8 and shop_id = $9 and employee_id = $10 and (member_mobile_no = $11 or member_name like concat($12, $13, $14)) and finish_time is null and t.end_time > now() and t.tenant_id = $15 and t.tenant_app_id = $16 order by t.id desc limit $17|2|5|2||0|0|721606|360803|2|1|
|employee|select ifnull(sum(task_amount), $0) as shouldaddnum, ifnull(sum(finish_amount), $1) as addednum from backlog t where t.tenant_id = $2 and t.tenant_app_id = $3 and t.shop_id = $4 and t.employee_id = $5 and t.scene = $6 and t.begin_time >= $7 and t.expire_time < $8|2|4|3||0|0|1623|1026|2|1|
|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|5|3||0|0|2119231|1313623|1125|746|
|wx_gateway|select count(*) from wx_gateway.wx_image where tenant_app_id = $0 and state = $1|2|6|5||0|0|423902|211951|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, $17, $18)|2|10|5||0|0|2659364|1329683|30|15|
|user_service|select tm.tenant_id, tm.tenant_app_id, tm.user_id, tm.mobile_no, tm.sex, tm.user_name, tm.head_img_url, tmi.birthday, tmi.birthday_is_lunar, tmi.shop_id, tmi.memorial_day_is_lunar, tmi.memorial_day, tmi.memorial_name, tmi.interest, tmi.address, tmb.erp_member_id, wu.open_id as tenantappopenid, wu.is_subscribe as issubscribe 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.tenant_member_bind tmb on tm.tenant_id = tmb.tenant_id and tm.id = tmb.id left join user_service.wx_user wu on tmb.wx_user_id = wu.id where tm.tenant_id = $0 and tm.tenant_app_id = $1 and tm.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|2|4|2||0|0|132420|66210|5448|2724|
|wx_gateway|update wx_template_msg set status = $0, err_msg = $1 where msg_id = $2|2|3|1||0|0|2|1|0|0|
|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)|2|2|1||0|0|78|39|26|13|
|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)|2|7|6||0|0|2659581|1330284|10|10|
|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')|2|4|2||0|0|20126|10063|42|21|
|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)|2|5|3||0|0|1284358|952020|144|72|
|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)|2|7|3||0|0|174898|87449|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 finish_time between $4 and $5|2|5|3||0|0|1718|859|2|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|2|2|1||0|0|16395|8310|24|12|
|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|2|10|6||0|0|25154|13099|2|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)|2|3|1||0|0|512369|427101|36|18|
|coupon_service|insert into coupon (id, tenant_id, tenant_app_id, template_id, coupon_push_id, coupon_no, coupon_state, user_id, coupon_name, coupon_type, face_value, discount, use_threshold, balance, begin_time, end_time, wx_card_id, wx_card_no, source, source_id, business_id, create_time, update_time) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|2|3|1||0|0|0|0|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|2|3|2||0|0|1191746|596310|6|3|
|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|2|2|1||0|0|1191747|596021|4|3|
|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|2|6|4||0|0|803110|401590|20|11|
|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|2|415|215||0|0|1157560|578780|2|1|
|authorization_service|select id, user_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, employee_id, shop_id, platform_user_id, wx_user_id, wx_app_user_id from user_login_token where wx_user_id = $0 and tenant_id = $1 and tenant_wx_app_id = $2 and login_way = $3 and expire_time > now() and status = $4 and user_id = $5|2|2|1||0|0|1|1|1|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 in ($4, $5, $6, $7) and t.scene = $8 and t.begin_time >= $9 and t.expire_time < $10|2|4|2||0|0|20042|10021|2|1|
|goods|select id, img_url, img_index from goods_img where goods_id = $0 order by update_time desc|2|2|1||0|0|52109|26056|5|4|
|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 (cg.id = $9 or cg.parent_id = $10) and gs.topping = $11 ) tmp order by tmp.create_time desc limit $12|2|2|1||0|0|240924|120462|20|10|
|v4_employee|select count(1) from task_task where task_template_id = $0 and tenant_id = $1 and tenant_app_id = $2|2|4|2||0|0|278042|139021|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|2|2|1||0|0|142551|71304|2|1|
|v4_sales|select * from erp_sales where member_erp_id = $0 and is_sales = true and sales_status = $1 and id < $2 and tenant_id = $3 and tenant_app_id = $4 order by sales_date limit $5|2|14|13||0|0|135728|67864|2|1|
|message_push|insert into message_log (id, tenant_id, tenant_app_id, user_id, scene_type, msg_id, post_data, create_time, update_time) values (?, ?, ?, ?, ?, ?, ?, ?, ?)|2|3|2||0|0|0|0|0|0|
|tenant|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 limit $18, $19|2|2|1||0|0|395666|197833|4|2|
|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|2|3|1||0|0|37618|23540|2|1|
|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|2|2|1||0|0|505010|252550|3|2|
|goods|select * from goods_take_shop where tenant_id = $0 and goods_id = $1 and activity_id = $2 order by create_time desc|2|2|1||0|0|202298|101182|68|67|
|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)|2|2|1||0|0|2662164|1331243|22|11|
|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)|2|2|1||0|0|2661696|1330962|27|14|
|v4_coupon|select count(1) from coupon where coupon_status = $0 and member_id = $1 and tenant_id = $2 and tenant_app_id = $3|2|2|1||0|0|169906|84953|2|1|
|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|5960|3144|5960|3144|
|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|2|2|1||0|0|812134|450938|2|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|1|1|1||0|0|80064|80064|0|0|
|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|1|1||0|0|460|460|0|0|
|user_service|select * from user_employee where tenant_wechatapp_id = $0 and employee_id = $1|1|1|1||0|0|3389|3389|3389|3389|
|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|1|1||0|0|201942|201942|0|0|
|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)|1|1|1||0|0|19998|19998|0|0|
|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|1820791|1820791|640|640|
|tenant|insert into erp_sales_detail (id, tenant_id, tenant_wechatapp_id, sales_erp_id, sales_index, sales_type, product_barcode, product_name, cert_no, hand_size, category_erp_id, category_name, stone_weight, gold_weight, total_weight, quantity, amount_total, amount_pay, integral, remark) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) on duplicate key update update_time = now(), sales_type = $0, product_barcode = $1, product_name = $2, cert_no = $3, hand_size = $4, category_erp_id = $5, category_name = $6, stone_weight = $7, gold_weight = $8, total_weight = $9, quantity = $10, amount_total = $11, amount_pay = $12, integral = $13, remark = $14|1|1|1||0|0|0|0|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|1|1||0|0|43830|43830|19|19|
|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)|1|1|1||0|0|818211|818211|104|104|
|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 dt.product_name like concat($11, $12, $13)|1|1|1||0|0|47565|47565|1|1|
|user_service|update tenant_member_info set shop_id = $0 where tenant_id = $1 and id in ($2)|1|1|1||0|0|1|1|0|0|
|user_service|select tenant_id, id, tenant_app_id, user_id, wx_user_id, erp_member_id, customer_user_id, wx_union_id, create_time, update_time, external_user_id from tenant_member_bind where tenant_id = $0 and tenant_app_id = $1 and user_id in ($2, $3)|1|1|1||0|0|2|2|2|2|
|activity_service|select count(*) from activity_signup_user_apply where activity_id = $0 and audit_status in ($1, $2, $3)|1|2|2||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)|1|2|2||0|0|74299|74299|25|25|
|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)|1|1|1||0|0|274575|274575|36|36|
|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|410824|410824|100|100|
|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)|1|1|1||0|0|460824|460824|84|84|
|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|1|1|1||0|0|1363|1363|0|0|
|tenant|select count(0) from erp_sales_detail t1 left join erp_sales_detail_extend t2 on t2.tenant_id = t1.tenant_id and t2.tenant_wechatapp_id = t1.tenant_wechatapp_id and t2.sales_erp_id = t1.sales_erp_id and t2.sales_index = t1.sales_index left join erp_sales t3 on t3.tenant_id = t1.tenant_id and t3.tenant_wechatapp_id = t1.tenant_wechatapp_id and t3.sales_erp_id = t1.sales_erp_id where t1.tenant_id = $0 and t1.tenant_wechatapp_id = $1 and t3.tenant_id = t1.tenant_id and t3.tenant_wechatapp_id = t1.tenant_wechatapp_id and t3.member_erp_id = $2 and t3.sales_status = $3 and t3.is_sales = $4|1|1|1||0|0|2502|2502|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)|1|1|1||0|0|215778|215778|47|47|
|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|1|1||0|0|202069|202069|127|127|
|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|1|1|1||0|0|595446|595446|3|3|
|employee|select tenant_id, tenant_app_id, employee_id, scene, shop_id, count(*) as record from backlog where tenant_app_id = $0 and employee_id = $1 and expire_time >= $2 and status in ($3, $4) and shop_id = $5 and scene not in ($6, $7) group by tenant_id, tenant_app_id, employee_id, scene, shop_id|1|1|1||0|0|288|288|1|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)|1|1|1||0|0|1330974|1330974|9|9|
|authorization_service|select id, tenant_id, account_id, type, login_name, hash_password, salt, user_id, employee_id, tenant_app_id, status, create_time, update_time from login_account where type = $0 and login_name = $1|1|5|5||0|0|59463|59463|1|1|
|export|select od.coupon_id, case o.pay_type when $0 then $1 when $2 then $3 when $4 then $5 when $6 then $7 else $8 end paytypetext from coupon_service.coupon_market_order_detail od join coupon_service.coupon_market_order o on o.tenant_id = $9 and o.tenant_app_id = $10 and o.id = od.order_id where od.tenant_id = $11 and od.tenant_app_id = $12 and od.coupon_id in ( $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|1|1|1||0|0|22160|22160|198|198|
|v4_sales|select count(es.id) 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 es.sales_status = $4 and is_sales = true and es.sales_date >= $5 and es.employee_erp_id = $6 and dept_erp_id = $7 and w.id is null and es.tenant_id = $8 and es.tenant_app_id = $9|1|1|1||0|0|359|359|1|1|
|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|1|1||0|0|819572|819572|263|263|
|employee|select * from backlog where tenant_app_id = $0 and employee_id = $1 and status in ($2, $3) and scene = $4 and shop_id = $5 and expire_time >= $6 order by id desc|1|2|2||0|0|306|306|15|15|
|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.price desc limit $8, $9|1|2|2||0|0|16439|16439|6|6|
|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|1|1||0|0|858756|858756|307|307|
|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)|1|1|1||0|0|770234|770234|114|114|
|tenant|select count(distinct sg.id) as createnum, count(sgm.id) as maintaincount from tenant.sneak_guest sg left join tenant.sneak_guest_maintain sgm on sg.id = sgm.sneak_guest_id and sgm.event_type = $0 and sgm.create_time >= $1 and sgm.create_time < $2 where sg.tenant_app_id = $3 and sg.create_time >= $4 and sg.create_time < $5 and sg.create_shop_id = $6|1|1|1||0|0|1659|1659|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|3|3||0|0|37882|37882|2|2|
|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|20|20||0|0|1820770|1820770|0|0|
|corpwx|select * from ( select template_id, msg_type, msg_content, err_msg, create_time, to_user from corpwx.mini_app_msg where tenant_id = $0 union select replace(json_extract(msg_content, $1), $2, $3) as templateid, $4, msg_content, err_msg, create_time, to_user from corpwx.task_card_send_record where tenant_id = $5 ) a where 1 = 1 order by create_time desc limit $6|1|1|1||0|0|469589|469589|20|20|
|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|167|167||0|0|9276175|9276175|1138|1138|
|user_service|select t1.user_id as userid, t3.open_id as wxopenid from user_service.tenant_member t1 join user_service.tenant_member_bind t2 on t1.tenant_id = t2.tenant_id and t1.id = t2.id join user_service.wx_user t3 on t2.wx_user_id = t3.id and t3.is_subscribe = $0 where t1.tenant_id = $1 and t1.tenant_app_id = $2 and t1.user_id in ($3, $4, $5, $6, $7, $8, $9, $10, $11)|1|1|1||0|0|27|27|9|9|
|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|1|1|1||0|0|13765|13765|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)|1|2|2||0|0|770245|770245|125|125|
|coupon_service|insert into coupon_extend (id, tenant_id, tenant_app_id, coupon_id, remark, user_name, mobile_no, creator_user_id, creator_user_name, creator_mobile_no, product_name, exchange_shop, is_give, writeoff_user_id, writeoff_employee_id, writeoff_time, source_shop_id, source_user_id, source_user_type, member_source_shop, create_time, update_time) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|1|1|1||0|0|0|0|0|0|
|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|1|1|1||0|0|0|0|0|0|
|user_service|select tenant_id, id, tenant_app_id, user_id, mobile_no, user_name, head_img_url, sex, status, create_time, update_time from tenant_member where tenant_id = $0 and tenant_app_id = $1 and user_id in ($2, $3, $4, $5, $6, $7, $8, $9)|1|1|1||0|0|8|8|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)|1|1|1||0|0|240791|240791|20|20|
|tenant|select count(*) from ( select s.sneak_guest_id from tenant.sneak_guest_maintain s join tenant.sneak_guest sg on sg.id = s.sneak_guest_id and (sg.fail_type is null or sg.fail_type = $0) where s.tenant_id = $1 and s.tenant_app_id = $2 and s.shop_id = $3 and s.create_time between $4 and $5 and s.event_type in ($6, $7, $8) group by s.sneak_guest_id ) a|1|1|1||0|0|197695|197695|1|1|
|coupon_service|select count(0) from coupon_service.coupon_market cm join coupon_service.coupon_push cp on cp.source_id = cm.id and cp.source = $0 and cp.state = $1 join coupon_service.template t on t.id = cp.template_id join coupon_service.template_grant_limit tgl on tgl.coupon_push_id = cp.id left join coupon_service.template_redpack tr on tr.template_id = t.id where cm.tenant_app_id = $2 and cm.state != $3 and cm.type = $4|1|1|1||0|0|35118|35118|1|1|
|authorization_service|select id, user_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, employee_id, shop_id, platform_user_id, wx_user_id, wx_app_user_id from user_login_token where wx_app_user_id = $0 and tenant_id = $1 and tenant_wx_app_id = $2 and login_way = $3 and expire_time > now() and status = $4 and user_id = $5|1|1|1||0|0|2|2|0|0|
|v4_user|insert into employee_external_bind_log (id, external_user_id, corp_user_id, employee_id, oper_type, create_time, update_time, tenant_id) values (?, ?, ?, ?, ?, ?, ?, ?)|1|2|2||0|0|0|0|0|0|
|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)|1|1|1||0|0|9|9|3|3|
|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)|1|1|1||0|0|537909|537909|99|99|
|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 ) tmp order by tmp.create_time desc limit $9|1|1|1||0|0|120265|120265|1|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)|1|1|1||0|0|1330134|1330134|12|12|
|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, null) 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 = $2 and st.tenant_app_id = $3 left join task_invite_task_template it on it.id = t.task_template_id and it.tenant_id = $4 and it.tenant_app_id = $5 where t.status = $6 and task_type = $7 and task_template_id = $8 and shop_id = $9 and employee_id = $10 and (member_mobile_no = $11 or member_name like concat($12, $13, $14)) and finish_time is null and t.end_time > now() and t.tenant_id = $15 and t.tenant_app_id = $16 order by t.id desc limit $17, $18|1|1|1||0|0|135056|135056|10|10|
|v4_employee|select count(*) as total_count, count(finish_time) as finish_count, ifnull(sum(if(finish_time >= $0 and finish_time < $1, $2, $3)), $4) as todayfinishcount, count(send_coupons) as coupon_send_count, count(recv_coupons) as coupon_recv_count, count(accept_time) as accept_count, count(arrival_shop_time) as arrival_shop_count, count(trade_time) as trade_count from task_task where task_type = $5 and status = $6 and shop_id = $7 and employee_id = $8 and task_template_id = $9 and tenant_id = $10 and tenant_app_id = $11|1|1|1||0|0|3304|3304|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) and t.un_assign_flag = $42|1|1|1||0|0|241|241|118|118|
|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|350034|350034|100|100|
|tenant|select distinct t1.category_erp_id, t1.category_name from erp_sales_detail t1 left join erp_sales t2 on t2.sales_erp_id = t1.sales_erp_id and t2.tenant_id = t1.tenant_id where t1.tenant_id = $0 and t1.tenant_wechatapp_id = $1 and ifnull(t1.category_name, $2) != $3 and t2.tenant_id = t1.tenant_id and t2.tenant_wechatapp_id = t1.tenant_wechatapp_id and t2.member_erp_id = $4 and t2.sales_status = $5 and t2.is_sales = $6|1|1|1||0|0|1690|1690|107|107|
|coupon_service|select count(0) from coupon_service.coupon_market cm join coupon_service.coupon_push cp on cp.source_id = cm.id and cp.source = $0 and cp.state = $1 join coupon_service.template t on t.id = cp.template_id join coupon_service.template_grant_limit tgl on tgl.coupon_push_id = cp.id left join coupon_service.template_redpack tr on tr.template_id = t.id where cm.tenant_app_id = $2 and cm.state != $3 and cm.type = $4 and cm.state = $5|1|2|2||0|0|34984|34984|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)|1|1|1||0|0|373824|373824|110|110|
|corpwx|commit|1|1|1||0|0|0|0|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, $232\...|1|5|5||0|0|1313281|1313281|404|404|
|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|1|1|1||0|0|53811|53811|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, $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)|1|2|2||0|0|818295|818295|188|188|
|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)|1|1|1||0|0|128952|128952|39|39|
|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)|1|3|3||0|0|776510|776510|173|173|
|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)|1|2|2||0|0|918776|918776|177|177|
|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)|1|1|1||0|0|67946|67946|29|29|
|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|5673|5673|1|1|
|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|26400|26400|1|1|
|v4_employee|select count(*) as total_count, count(finish_time) as finish_count, ifnull(sum(if(finish_time >= $0 and finish_time < $1, $2, $3)), $4) as todayfinishcount, count(send_coupons) as coupon_send_count, count(recv_coupons) as coupon_recv_count, count(accept_time) as accept_count, count(arrival_shop_time) as arrival_shop_count, count(trade_time) as trade_count from task_task where task_type = $5 and status = $6 and shop_id = $7 and employee_id = $8 and system_task_type = $9 and start_time <= $10 and end_time > $11 and tenant_id = $12 and tenant_app_id = $13|1|1|1||0|0|6094|6094|1|1|
|tenant|select ee.id as employeeid, ee.employee_erp_id as employeeerpid, ee.employee_name as employeename, ee.mobile_no as mobileno, ee.corp_wx_user_id as corpwxuserid, ee.head_img_url as headimgurl, ee.employee_no as employeeno, ee.employee_type as employeetype, ee.sex as sex from tenant.employee ee where status = $0 and tenant_id = $1|1|1|1||0|0|775|775|379|379|
|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)|1|1|1||0|0|1220636|1220636|123|123|
|gift_mail|select count(0) from ( select t.*, tt.can_take_date, tt.shop_id, tt.shop_name, tt.take_shop_name, tt.take_employee_name, ta.recipients, ta.user_tel, concat(ta.area, ta.address) as address, if(t.trade_type = $0 or t.trade_type = $1, pl.id, it.barcode) as barcode, if(t.trade_type = $2 or t.trade_type = $3, pl.default_image_url, p.default_image_url) as defaultimageurl from trade t left join trade_take tt on t.tenant_wechatapp_id = tt.tenant_wechatapp_id and t.id = tt.trade_id left join trade_addr ta on t.tenant_wechatapp_id = ta.tenant_wechatapp_id and t.id = ta.trade_id left join product p on p.id = t.product_id left join platform_product pl on pl.id = t.product_id left join inventory it on it.product_id = t.product_id and it.specification = t.specification left join trade_express te on te.tenant_wechatapp_id = t.tenant_wechatapp_id and te.trade_id = t.id where t.tenant_wechatapp_id = $4 and t.trade_type = $5 order by create_time desc ) tmp_count|1|1|1||0|0|22731|22731|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|2|2||0|0|91686|91686|6|6|
|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, $1, $2, $3, $4) and tenant_id = $5 and tenant_app_id = $6|1|1|1||0|0|13330|13330|2|2|
|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|1313159|1313159|282|282|
|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)|1|1|1||0|0|12|12|4|4|
|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|3|3||0|0|37352|37352|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)|1|1|1||0|0|118682|118682|148|148|
|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, $202, $203, $204, $205, $206, $207, $208, $209, $210, $211, $212, $213, $214, $215, $216, $217, $218, $219, $220, $221, $222, $223)|1|3|3||0|0|778951|778951|222|222|
|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)|1|1|1||0|0|245148|245148|15|15|
|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|50825|50825|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, $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|1|2|2||0|0|296|296|146|146|
|user_service|select tenant_id, id, tenant_app_id, user_id, wx_user_id, erp_member_id, customer_user_id, wx_union_id, create_time, update_time, external_user_id from tenant_member_bind where tenant_id = $0 and tenant_app_id = $1 and user_id in ($2, $3, $4, $5)|1|1|1||0|0|4|4|4|4|
|tenant|select distinct t1.sales_type from erp_sales_detail t1 left join erp_sales t2 on t2.sales_erp_id = t1.sales_erp_id and t2.tenant_id = t1.tenant_id where t1.tenant_id = $0 and t1.tenant_wechatapp_id = $1 and ifnull(t1.sales_type, $2) != $3 and t2.tenant_id = t1.tenant_id and t2.tenant_wechatapp_id = t1.tenant_wechatapp_id and t2.member_erp_id = $4 and t2.sales_status = $5 and t2.is_sales = $6|1|1|1||0|0|1595|1595|12|12|
|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|3|3||0|0|69725|69725|28|28|
|tenant|select shop.*, dept.dept_name, count(es.id) as employeescount from tenant_wechatapp_shop shop left join erp_department dept on shop.dept_erp_id = dept.dept_erp_id and shop.tenant_id = dept.tenant_id left join employee_shop es on shop.id = es.shop_id and es.status in ($0, $1) where shop.tenant_wechatapp_id = $2 and shop.status in ($3, $4) and shop.status = $5 group by shop.id order by shop.create_time desc limit $6|1|1|1||0|0|82047|82047|20|20|
|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)|1|3|3||0|0|819262|819262|108|108|
|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|26736|26736|1|1|
|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, $233, ...|1|1|1||0|0|770375|770375|255|255|
|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|1|3|3||0|0|828953|828953|1|1|
|tenant|select count(*) from sneak_guest where tenant_app_id = $0 and status = $1 and create_shop_id = $2|1|3|3||0|0|10734|10734|1|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 in ($4, $5, $6, $7, $8, $9, $10) and t.scene = $11 and t.begin_time >= $12 and t.expire_time < $13|1|3|3||0|0|21107|21107|1|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)|1|1|1||0|0|1329680|1329680|14|14|
|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 exists ( select $2 from tenant.sneak_guest_maintain sgm where sg.id = sgm.sneak_guest_id and sgm.event_type = $3 and sgm.intention_info regexp $4 ) and exists ( select $5 from tenant.sneak_guest_maintain sgm where sg.id = sgm.sneak_guest_id and sgm.event_type = $6 and sgm.intention_info regexp $7 ) and sg.status = $8|1|8|8||0|0|33960|33960|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|1820791|1820791|883|883|
|deliver|select * from express_address where user_id = $0 and type = $1|1|1|1||0|0|8416|8416|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)|1|5|5||0|0|1220577|1220577|64|64|
|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|76840|76840|0|0|
|v4_user|insert into employee_external_bind (id, external_user_id, corp_user_id, employee_id, create_time, update_time, tenant_id) values (?, ?, ?, ?, ?, ?, ?)|1|1|1||0|0|0|0|0|0|
|v4_employee|select count(1) 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|3101|3101|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, $10) and t.scene = $11 and t.begin_time >= $12 and t.expire_time < $13 group by date_format(t.create_time, '%d')|1|3|3||0|0|21149|21149|21|21|
||delete from tenant.sjfx_dct_erp_sales_detail where create_time < $0|1|1|1||0|0|234793|234793|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)|1|6|6||0|0|1329684|1329684|16|16|
|erp_sync|select * from erp_sync.retry_data where (need_erp_member_id = $0 or (need_erp_member_id = $1 and erp_member_id is not null)) and retry_times > $2 order by id|1|1|1||0|0|2724|2724|431|431|
|mysql|delete from wx_gateway.wx_template_msg where create_time < date_sub(now(), interval $0 day)|1|32|32||0|0|933251|933251|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)|1|6|6||0|0|205370|205370|7|7|
|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.price desc limit $8|1|1|1||0|0|16433|16433|6|6|
|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)|1|1|1||0|0|82433|82433|1|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)|1|1|1||0|0|1330064|1330064|3|3|
|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)|1|1|1||0|0|951999|951999|51|51|
|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|1|1||0|0|47565|47565|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, $155)|1|4|4||0|0|918776|918776|154|154|
|coupon_service|select cm.id, cp.coupon_type, t.coupon_name, cm.display_way, round(t.face_value / $0, $1) as facevalue, round(t.discount / $2, $3) as discount, t.face_value as point, tgl.get_quantity, cp.take_effect_way, cm.pay_type, cm.state, tgl.put_quantity - tgl.get_quantity as surplusquantity, cp.take_start_day, cp.take_effect_day, cp.begin_time, cp.end_time, tr.type as redpacktype, round(tr.min_price / $4, $5) as minprice, round(tr.max_price / $6, $7) as maxprice, round(cp.use_threshold / $8, $9) as usethreshold from coupon_service.coupon_market cm join coupon_service.coupon_push cp on cp.source_id = cm.id and cp.source = $10 and cp.state = $11 join coupon_service.template t on t.id = cp.template_id join coupon_service.template_grant_limit tgl on tgl.coupon_push_id = cp.id left join coupon_service.template_redpack tr on tr.template_id = t.id where cm.tenant_app_id = $12 and cm.state != $13 and cm.type = $14 order by cm.id desc limit $15|1|1|1||0|0|35221|35221|20|20|
|goods|select count(0) 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 (cg.id = $9 or cg.parent_id = $10) and gs.topping = $11 ) tmp|1|1|1||0|0|120434|120434|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)|1|1|1||0|0|115787|115787|14|14|
|coupon_service|select cm.id, cp.coupon_type, t.coupon_name, cm.display_way, round(t.face_value / $0, $1) as facevalue, round(t.discount / $2, $3) as discount, t.face_value as point, tgl.get_quantity, cp.take_effect_way, cm.pay_type, cm.state, tgl.put_quantity - tgl.get_quantity as surplusquantity, cp.take_start_day, cp.take_effect_day, cp.begin_time, cp.end_time, tr.type as redpacktype, round(tr.min_price / $4, $5) as minprice, round(tr.max_price / $6, $7) as maxprice, round(cp.use_threshold / $8, $9) as usethreshold from coupon_service.coupon_market cm join coupon_service.coupon_push cp on cp.source_id = cm.id and cp.source = $10 and cp.state = $11 join coupon_service.template t on t.id = cp.template_id join coupon_service.template_grant_limit tgl on tgl.coupon_push_id = cp.id left join coupon_service.template_redpack tr on tr.template_id = t.id where cm.tenant_app_id = $12 and cm.state != $13 and cm.type = $14 and cm.state = $15 order by cm.id desc limit $16|1|3|3||0|0|35018|35018|17|17|
|gift_mail|select ifnull(sum(quantity), $0) from gift_mail.trade where tenant_wechatapp_id = $1 and user_id = $2 and trade_type = $3 and product_id = $4 and order_status in ($5, $6, $7) and source = $8|1|2|2||0|0|3250|3250|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)|1|1|1||0|0|274142|274142|52|52|
|coupon_service|select id, tenant_id, tenant_app_id, template_id, coupon_type, take_effect_way, take_start_day, take_effect_day, begin_time, end_time, source, source_id, can_give, need_booking, use_threshold, wx_card_id, state, create_time, update_time from coupon_push where tenant_id = $0 and tenant_app_id = $1 and wx_card_id = $2|1|2|2||0|0|1786|1786|0|0|
|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)|1|2|2||0|0|65183|65183|4|4|
|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|361330|361330|49|49|
|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)|1|1|1||0|0|818231|818231|124|124|
|tenant|select count(0) from ( select shop.*, dept.dept_name, count(es.id) as employeescount from tenant_wechatapp_shop shop left join erp_department dept on shop.dept_erp_id = dept.dept_erp_id and shop.tenant_id = dept.tenant_id left join employee_shop es on shop.id = es.shop_id and es.status in ($0, $1) where shop.tenant_wechatapp_id = $2 and shop.status in ($3, $4) and shop.status = $5 group by shop.id ) table_count|1|1|1||0|0|82129|82129|1|1|
|activity_service|select * from activity_service.sign_in_activity_log where user_id = $0 and sign_in_id = $1 limit $2|1|1|1||0|0|36189|36189|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, $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)|1|3|3||0|0|858592|858592|225|225|
|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)|1|1|1||0|0|28150|28150|17|17|
|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|460|460|460|460|
|employee|insert into backlog (id, tenant_id, tenant_app_id, user_id, employee_id, status, scene, begin_time, expire_time, md5_str, shop_id, task_amount, finish_amount) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) on duplicate key update update_time = now()|1|1|1||0|0|0|0|0|0|
|mysql|delete from message_push.message_log where create_time < date_sub(now(), interval $0 day)|1|71|71||0|0|2618083|2618083|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)|1|1|1||0|0|1220629|1220629|116|116|
