|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|user_service|select ue.employee_id as employeeid , count ( * ) as quantity from user_service.user_employee ue join user_service.tenant_member_info tmi on ue.tenant_id = tmi.tenant_id and ue.tenant_wechatapp_id = tmi.tenant_app_id and ue.user_id = tmi.user_id join user_service.tenant_member tm on tm.tenant_id = tmi.tenant_id and tm.id = tmi.id where ue.employee_id in ( :1 ) and ue.tenant_id = :2 and ue.tenant_wechatapp_id = :3 and tmi.shop_id = :4 group by ue.employee_id|613|1072|5||0|0|180645052|513881|605|1|
|corpwx|update external_user set un_assign_flag = :1 where ( tenant_id = :2 and un_assign_flag = :3 )|147|218|3||0|0|179817351|1250440|0|0|
|value_added|select id , template_name as templatename , added_percent_per_day as addedpercentperday , add_days as adddays , keeping_days as keepingdays , devalue_percent_per_day as devaluepercentperday , exchange_days as exchangedays , is_disable as isdisable , effective_days as effectivedays , ifnull ( usenumber , 0 ) as usenumber , generator_method as generatormethod , remark as remark from value_added_template left join ( select template_id , count ( * ) usenumber from value_added_user where tenant_wechatapp_id = :1 group by template_id ) value_added_user on value_added_template.id = value_added_user.template_id where tenant_wechatapp_id = :2 and id = :3|70|199|6||0|0|9762692|205243|70|1|
|tenant|select count ( * ) from tenant.sneak_guest_maintain where tenant_id = :1 and tenant_app_id = :2 and shop_id = :3 and event_type = :4 and create_time between :5 and :6|67|190|8||0|0|4920622|117252|67|1|
|authorization_service|update user_login_token set status = :1 , update_time = now ( ) where employee_id = :2 and tenant_id = :3 and tenant_wx_app_id = :4 and shop_id = :5 and login_way = :6 and status = :7|58|382|14||0|0|215|9|0|0|
|tenant|select count ( 0 ) from erp_sales es where es.tenant_id = :1 and es.tenant_wechatapp_id = :2 and es.sales_date >= :3 and es.employee_erp_id = :4 and es.sales_status = :5|47|389|13||0|0|4110112|105803|47|1|
|user_service|select count ( 0 ) from ( 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 , if ( ifnull ( wu.is_subscribe , 0 ) = 0 , false , true ) as hassubscribe from user_service.tenant_member tm left join user_service.user_employee ue on tm.tenant_id = ue.tenant_id and tm.tenant_app_id = ue.tenant_wechatapp_id and tm.user_id = ue.user_id join user_service.tenant_member_info tmi on tmi.tenant_id = tm.tenant_id and tmi.id = tm.id join user_service.tenant_member_bind tmb on tmb.tenant_id = tm.tenant_id and tmb.tenant_app_id = tm.tenant_app_id and tmb.user_id = tm.user_id left join user_service.wx_user wu on wu.id = tmb.wx_user_id where tm.tenant_id = :1 and tm.tenant_app_id = :2 order by tm.id desc ) tmp_count|43|208|10||0|0|8397049|446596|43|1|
|user_service|select count ( * ) from user_service.tenant_member tm left join user_service.user_employee t3 on tm.tenant_id = t3.tenant_id and tm.user_id = t3.user_id and tm.tenant_app_id = t3.tenant_wechatapp_id 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 t3.id is null and tmi.shop_id = :1 and tmi.tenant_app_id = :2 and tmi.tenant_id = :3|43|78|4||0|0|11566900|507681|43|1|
|erp_sync|select * from erp_sync.retry_data where ( need_erp_member_id = :1 or ( need_erp_member_id = :2 and erp_member_id is not null ) ) and retry_times > :3 order by id|35|57|3||0|0|4111969|117747|1120|32|
|shop_work|select * from shop_work.work_report wr where exists ( select * from shop_work.task t where t.tenant_id = wr.tenant_id and t.task_group_id = wr.id and t.status = :1 and t.task_type = :2 ) and tenant_id = :3|28|108|8||0|0|8348444|298992|29226|1052|
|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 = :1 and es.tenant_wechatapp_id = :2 and es.sales_status = :3 and es.sales_no like concat ( :4 , :5 ) order by es.sales_date desc limit :6|13|53|12||0|0|2100686|280510|2|1|
|shop_work|select count ( 0 ) from ( select s.id as shop_id , s.shop_name as shop_name , er.employee_id as employee_id , er.employee_name as employee_name , if ( p.total_task_score > 0 , p.total_task_score , 0 ) as task_score , if ( pr.amount is not null , p.total_task_score * pr.amount , 0 ) as supervise_score , pr.amount , if ( c.praise is not null , c.praise , 0 ) as praise , if ( c.recommend is not null , c.recommend , 0 ) as recommend from shop_work.employee_role er join shop_work.shop s on er.shop_id = s.id left join ( select p.employee_id , p.role , sum ( if ( p.source_type = 'task_report' , p.amount , 0 ) ) as total_task_score from shop_work.point p where p.tenant_id = :1 and p.status = :2 and p.work_report_time >= :3 and p.work_report_time < :4 and p.role = :5 group by p.employee_id , p.role ) p on er.employee_id = p.employee_id and p.role = er.employee_role left join shop_work.point_role_rate pr on pr.tenant_id = :6 and pr.role = er.employee_role left join ( select a.report_user , sum ( praise ) praise , sum ( recommend ) recommend from ( select wr.report_user , if ( c.object_type = 'repeat_task' , 1 , 0 ) as praise , if ( c.object_type = 'repeat_task_recommend' , 1 , 0 ) as recommend from shop_work.work_report wr join shop_work.task t on t.task_group_id = wr.id left join shop_work.comment c on c.object_id = t.id and c.create_time >= :7 and c.create_time < :8 where wr.tenant_id = :9 and wr.status = :10 and wr.execute_role = :11 ) a group by a.report_user ) c on c.report_user = er.employee_id where er.tenant_id = :12 and er.employee_role = :13 order by total_task_score desc ) tmp_count|12|37|3||0|0|7688024|641512|12|1|
|coupon_service|update coupon_service.coupon_write_off_log set state = :1 where coupon_id = :2|11|45|8||0|0|12152086|1105730|0|0|
|item_manage|select id , tenant_id , `name` , `describe` , `type` , parent_id , employee_id , status , start_time , end_time , startup_time , submit_time , sub_num , sub_complete_num , delete_flag , dynamic_update_time , before_status from task where ( tenant_id = :1 and type = :2 and parent_id = :3 )|10|15|2||0|0|423271|42391|7|1|
|account|select id , tenant_id , tenant_wechatapp_id , shop_id , account_type , user_id , mch_billno , send_name , mch_id , sub_mch_id , wxappid , msgappid , re_openid , total_amount , total_num , wishing , client_ip , act_name , remark , scene_id , risk_info , consume_mch_id , send_time , order_status , failure_reason , biz_id , biz_type , biz_tag , send_listid , need_callback , create_time , update_time , user_name , mobile_no , receive_time , refund_amount , refund_time from wx_redpacket_send_order where order_status in ( :1 , :2 ) order by id desc|10|14|2||0|0|739642|73988|185|24|
|employee|select id , tenant_id , tenant_app_id , backlog_id , url , status , create_time , update_time from backlog_file where ( tenant_id = :1 and tenant_app_id = :2 and backlog_id in ( :3 , :4 , :5 , :6 , :7 , :8 ) and status = :9 )|9|12|1||0|0|2678909|298507|18|6|
|employee|select tenant_id , tenant_app_id , employee_id , scene , shop_id , count ( * ) as record from backlog where tenant_app_id = :1 and employee_id = :2 and expire_time >= :3 and status in ( :4 , :5 ) group by tenant_id , tenant_app_id , employee_id , scene , shop_id|8|10|1||0|0|54410|15331|24|7|
|corpwx|select id , tenant_id , cwx_user_id , user_id , union_id , name , create_time , update_time , sex , avatar , tenant_user_id , un_assign_flag , corp_user_id , wx_user_id from external_user where ( tenant_id = :1 and un_assign_flag = :2 and wx_user_id = :3 )|8|14|4||0|0|478689|72351|0|0|
|shop_work|select s.id as shop_id , s.shop_name as shop_name , er.employee_id as employee_id , er.employee_name as employee_name , if ( p.total_task_score > 0 , p.total_task_score , 0 ) as task_score , if ( pr.amount is not null , p.total_task_score * pr.amount , 0 ) as supervise_score , pr.amount , if ( c.praise is not null , c.praise , 0 ) as praise , if ( c.recommend is not null , c.recommend , 0 ) as recommend from shop_work.employee_role er join shop_work.shop s on er.shop_id = s.id left join ( select p.employee_id , p.role , sum ( if ( p.source_type = 'task_report' , p.amount , 0 ) ) as total_task_score from shop_work.point p where p.tenant_id = :1 and p.status = :2 and p.work_report_time >= :3 and p.work_report_time < :4 and p.role = :5 group by p.employee_id , p.role ) p on er.employee_id = p.employee_id and p.role = er.employee_role left join shop_work.point_role_rate pr on pr.tenant_id = :6 and pr.role = er.employee_role left join ( select a.report_user , sum ( praise ) praise , sum ( recommend ) recommend from ( select wr.report_user , if ( c.object_type = 'repeat_task' , 1 , 0 ) as praise , if ( c.object_type = 'repeat_task_recommend' , 1 , 0 ) as recommend from shop_work.work_report wr join shop_work.task t on t.task_group_id = wr.id left join shop_work.comment c on c.object_id = t.id and c.create_time >= :7 and c.create_time < :8 where wr.tenant_id = :9 and wr.status = :10 and wr.execute_role = :11 ) a group by a.report_user ) c on c.report_user = er.employee_id where er.tenant_id = :12 and er.employee_role = :13 order by total_task_score desc limit :14 , :15|7|20|3||0|0|4483951|641653|70|10|
|coupon_service|select count ( 0 ) from ( select egc.id , tmp.coupon_name , tmp.coupon_type , tmp.remark , cp.take_effect_way , cp.take_start_day , cp.take_effect_day , date_format ( cp.begin_time , '%y-%m-%d' ) as begin_time , date_format ( cp.end_time , '%y-%m-%d' ) as end_time , egc.limit_grant_time , date_format ( egc.grant_begin_time , '%y-%m-%d' ) as grant_begin_time , date_format ( egc.grant_end_time , '%y-%m-%d' ) as grant_end_time , ifnull ( tmp.face_value , 0 ) /100 as face_value , tmp.face_value as point , ifnull ( tmp.discount , 0 ) /10 as discount , tmp.scope , tmp.product_name , if ( egc.state = 'down' , 1 , ( case when cp.end_time is not null and cp.end_time < now ( ) then :1 when egc.limit_grant_time = :2 and egc.grant_end_time < now ( ) then :3 when tgl.put_quantity <= ( select count ( * ) from coupon_service.employee_give_coupon_log where employee_give_coupon_id = egc.id ) then :4 else :5 end ) ) as state , tr.type as redpacktype , ifnull ( tr.min_price , :6 ) /100 as minprice from coupon_service.employee_give_coupon egc inner join coupon_service.coupon_push cp on egc.template_id = cp.template_id and cp.source = :7 and egc.id = cp.source_id and cp.state = :8 inner join coupon_service.template tmp on egc.template_id = tmp.id and tmp.state = :9 inner join coupon_service.template_grant_limit tgl on cp.id = tgl.coupon_push_id left join coupon_service.template_redpack tr on tr.template_id = tmp.id where egc.tenant_app_id = :10 and egc.state = :11 and ( egc.limit_grant_time = :12 or egc.grant_begin_time <= now ( ) ) and ( egc.limit_shop = :13 or exists ( select 1 from coupon_service.employee_give_coupon_shop cs where egc.id = cs.employee_give_id and cs.shop_id = :14 ) ) and egc.limit_role in ( :15 , :16 ) order by state asc , egc.id desc ) tmp_count|7|8|1||0|0|6267253|1399713|7|1|
|corpwx|select id , tenant_id , cwx_user_id , user_id , union_id , name , create_time , update_time , sex , avatar , tenant_user_id , un_assign_flag , corp_user_id , wx_user_id from external_user where ( tenant_id = :1 and wx_user_id = :2 )|6|11|3||0|0|643692|136579|1|1|
|sms|select count ( 0 ) from ( select a.phone_numbers as phoneno , concat ( '【' , a.sign_name , '】' , case when b.content is not null then b.content when stc.content is not null then stc.content else a.template_param end ) as content , a.template_code , a.out_id as outid , a.template_param , a.create_time as sendtime , a.create_time as recevietime , a.code as state , a.send_count , a.message , a.source_type from sms_send a left join sms_template b on a.template_code = b.code left join sms_template_custom stc on a.tenant_app_id = stc.tenant_app_id and a.template_code = stc.code and stc.status = :1 where a.tenant_app_id = :2 ) table_count|5|14|6||0|0|124211|24939|5|1|
|shop_work|select s.id as shop_id , s.shop_name as shop_name , er.employee_id as employee_id , er.employee_name as employee_name , if ( p.total_task_score > 0 , p.total_task_score , 0 ) as task_score , if ( pr.amount is not null , p.total_task_score * pr.amount , 0 ) as supervise_score , pr.amount , if ( c.praise is not null , c.praise , 0 ) as praise , if ( c.recommend is not null , c.recommend , 0 ) as recommend from shop_work.employee_role er join shop_work.shop s on er.shop_id = s.id left join ( select p.employee_id , p.role , sum ( if ( p.source_type = 'task_report' , p.amount , 0 ) ) as total_task_score from shop_work.point p where p.tenant_id = :1 and p.status = :2 and p.work_report_time >= :3 and p.work_report_time < :4 and p.role = :5 group by p.employee_id , p.role ) p on er.employee_id = p.employee_id and p.role = er.employee_role left join shop_work.point_role_rate pr on pr.tenant_id = :6 and pr.role = er.employee_role left join ( select a.report_user , sum ( praise ) praise , sum ( recommend ) recommend from ( select wr.report_user , if ( c.object_type = 'repeat_task' , 1 , 0 ) as praise , if ( c.object_type = 'repeat_task_recommend' , 1 , 0 ) as recommend from shop_work.work_report wr join shop_work.task t on t.task_group_id = wr.id left join shop_work.comment c on c.object_id = t.id and c.create_time >= :7 and c.create_time < :8 where wr.tenant_id = :9 and wr.status = :10 and wr.execute_role = :11 ) a group by a.report_user ) c on c.report_user = er.employee_id where er.tenant_id = :12 and er.employee_role = :13 order by total_task_score desc limit :14|5|14|3||0|0|3205635|641633|50|10|
|corpwx|select id , tenant_id , cwx_user_id , user_id , union_id , name , create_time , update_time , sex , avatar , tenant_user_id , un_assign_flag , corp_user_id , wx_user_id from external_user where ( tenant_id = :1 and union_id = :2 )|5|8|2||0|0|512024|136577|1|1|
|coupon_service|select *from coupon_service.coupon_market_order where pay_type in ( :1 , :2 ) and order_state = :3 and update_time <= date_sub ( now ( ) , interval :4 minute )|5|6|1||0|0|798174|159784|0|0|
|shop_work|select t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name , sum ( if ( ti.field_type = 'type_bool' and ti.value in ( :1 , :2 ) , :3 , :4 ) ) as bool_true_count , sum ( if ( ti.field_type = :5 and ti.value in ( :6 , :7 ) , :8 , :9 ) ) as bool_false_count , sum ( if ( ti.field_type = :10 , :11 , :12 ) ) as string_count , sum ( if ( ti.field_type = :13 , :14 , :15 ) ) as date_count , sum ( if ( ti.field_type = :16 , ti.value , :17 ) ) as number_sum , sum ( if ( ti.field_type = :18 , substring_index ( ti.value , :19 , :20 ) , :21 ) ) as progress_target , sum ( if ( ti.field_type = :22 , substring_index ( ti.value , :23 , :24 ) , :25 ) ) as progress_reach from shop_work.work_report wr join shop_work.task t on wr.id = t.task_group_id join shop_work.task_item ti on ti.task_id = t.id where wr.tenant_id = :26 and wr.create_time >= :27 and wr.create_time < :28 and wr.report_type = :29 and wr.status = :30 and wr.execute_role = :31 and ti.status != :32 and ti.field_type in ( :33 , :34 , :35 , :36 , :37 ) and ti.value is not null and t.status = :38 group by t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name|5|23|5||0|0|17960965|4118946|103|23|
|user_service|select count ( * ) from user_service.tenant_member_info t where t.tenant_id = :1 and t.tenant_app_id = :2 and t.shop_id = :3|4|5|1||0|0|1207483|391939|4|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 , :99 , :100 , :101 , :102 , :103 , :104 , :105 , :106 , :107 , :108 , :109 , :110 , :111 , :112 , :113 , :114 , :115|4|11|4||0|0|2271000|615063|620|193|
|shop_work|select t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name , sum ( if ( ti.field_type = 'type_bool' and ti.value in ( :1 , :2 ) , :3 , :4 ) ) as bool_true_count , sum ( if ( ti.field_type = :5 and ti.value in ( :6 , :7 ) , :8 , :9 ) ) as bool_false_count , sum ( if ( ti.field_type = :10 , :11 , :12 ) ) as string_count , sum ( if ( ti.field_type = :13 , :14 , :15 ) ) as date_count , sum ( if ( ti.field_type = :16 , ti.value , :17 ) ) as number_sum , sum ( if ( ti.field_type = :18 , substring_index ( ti.value , :19 , :20 ) , :21 ) ) as progress_target , sum ( if ( ti.field_type = :22 , substring_index ( ti.value , :23 , :24 ) , :25 ) ) as progress_reach from shop_work.work_report wr join shop_work.task t on wr.id = t.task_group_id join shop_work.task_item ti on ti.task_id = t.id where wr.tenant_id = :26 and wr.shop_id = :27 and wr.create_time >= :28 and wr.create_time < :29 and wr.report_type = :30 and wr.status = :31 and wr.execute_role = :32 and ti.status != :33 and ti.field_type in ( :34 , :35 , :36 , :37 , :38 ) and ti.value is not null and t.status = :39 group by t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name|4|26|15||0|0|5951349|1707294|63|17|
|shop_work|select t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name , sum ( if ( ti.field_type = 'type_bool' and ti.value in ( :1 , :2 ) , :3 , :4 ) ) as bool_true_count , sum ( if ( ti.field_type = :5 and ti.value in ( :6 , :7 ) , :8 , :9 ) ) as bool_false_count , sum ( if ( ti.field_type = :10 , :11 , :12 ) ) as string_count , sum ( if ( ti.field_type = :13 , :14 , :15 ) ) as date_count , sum ( if ( ti.field_type = :16 , ti.value , :17 ) ) as number_sum , sum ( if ( ti.field_type = :18 , substring_index ( ti.value , :19 , :20 ) , :21 ) ) as progress_target , sum ( if ( ti.field_type = :22 , substring_index ( ti.value , :23 , :24 ) , :25 ) ) as progress_reach from shop_work.work_report wr join shop_work.task t on wr.id = t.task_group_id join shop_work.task_item ti on ti.task_id = t.id where wr.tenant_id = :26 and wr.area_id = :27 and wr.shop_id = :28 and wr.team_id = :29 and wr.create_time >= :30 and wr.create_time < :31 and wr.report_type = :32 and wr.status = :33 and wr.execute_role = :34 and ti.status != :35 and ti.field_type in ( :36 , :37 , :38 , :39 , :40 ) and ti.value is not null and t.status = :41 group by t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name|4|17|6||0|0|5945608|1925074|77|28|
|tenant|select * from warranty_service.warranty where tenant_wechatapp_id = :1 and version <> :2 and is_disable = :3 and update_time between :4 and :5 order by id desc|3|17|8||0|0|72531|24177|36009|12003|
|user_service|select * from user_employee where tenant_wechatapp_id = :1 and employee_id = :2|3|3|1||0|0|546856|305215|3434|2650|
|coupon_service|select count ( 0 ) from ( select cu.id , cu.coupon_name , cu.coupon_type , cu.coupon_no , cu.source as couponchannel , cu.coupon_state , ce.user_name , ce.creator_user_name as creatorname , if ( coupon_type in ( 'point' , 'interact_point' ) , cu.face_value , round ( cu.face_value/100 , 2 ) ) as facevalue , cu.begin_time , cu.end_time , ce.remark , ce.mobile_no , ce.creator_mobile_no , cu.create_time , wol.create_time as writeofftime , r.create_time as reservationdate , r.shop_name as reservationshopname , if ( wol.employee_id is null , wol.user_name , wol.employee_name ) writeoffusername , wol.shop_id as shopid , wol.dept_erp_id as erpdeptid , cu.user_id , ce.source_user_id , ce.source_user_type , cal.create_time as abolishtime , cal.employee_id as abolishemployeeid from coupon_service.coupon cu join coupon_service.coupon_extend ce on ce.id = cu.id left join coupon_service.coupon_write_off_log wol on wol.tenant_app_id = cu.tenant_app_id and wol.coupon_id = cu.id and wol.state = :1 left join coupon_service.reservation r on r.coupon_user_id = cu.id and r.state = :2 left join coupon_service.coupon_abolish_log cal on cal.tenant_id = cu.tenant_id and cal.tenant_app_id = cu.tenant_app_id and cal.coupon_id = cu.id where cu.tenant_app_id = :3 and cu.template_id = :4 ) tmp_count|3|14|9||0|0|258695|192722|3|1|
|value_added|-- 增值达到最大天数 select 'value_added_limit_contact' as limitdaytype , t.tenant_wechatapp_id as tenantappid , t.user_id as userid , min ( ue.employee_erp_id ) 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 , :4 ) , interval :5 * ( t.add_days-1 ) day ) and t.start_add_time < date_add ( date_format ( :6 , :7 ) , interval ( :8 * ( t.add_days-1 ) :9 :10 ) day ) group by t.tenant_wechatapp_id , t.user_id , ue.dept_erp_id|3|5|2||0|0|412201|205386|202|97|
|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 join user_service.user_employee t3 on t1.tenant_app_id = t3.tenant_wechatapp_id and t1.user_id = t3.user_id and t3.employee_id = :1 where t1.tenant_id = :2 and t1.tenant_app_id = :3 and t2.tenant_app_id = :4 and t2.shop_id = :5|3|3|1||0|0|689729|427334|3|1|
|warranty_service|select count ( 0 ) from warranty_service.warranty where tenant_wechatapp_id = :1 and is_disable = false and sales_date >= :2 and sales_date <= :3|2|11|6||0|0|28247|14131|2|1|
|corpwx|select id , tenant_id , cwx_user_id , user_id , union_id , name , create_time , update_time , sex , avatar , tenant_user_id , un_assign_flag , corp_user_id , wx_user_id from external_user where ( tenant_id = :1 and wx_user_id in ( :2 , :3 ) )|2|3|1||0|0|116216|72329|4|4|
|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_wechatapp_id = esd.tenant_wechatapp_id and es.sales_erp_id = esd.sales_erp_id left join erp_sales_extend ee on 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 es.sales_status = :1 and es.tenant_wechatapp_id = :2 and esd.product_barcode = :3 order by es.sales_date desc|2|3|2||0|0|19323|9666|3619|1810|
|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 = :1 and s.tenant_app_id = :2 and sg.create_shop_id = :3 and s.event_type = :4 and s.create_time between :5 and :6|2|2|1||0|0|5267|3056|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 , if ( ifnull ( wu.is_subscribe , 0 ) = 0 , false , true ) as hassubscribe from user_service.tenant_member tm left join user_service.user_employee ue on tm.tenant_id = ue.tenant_id and tm.tenant_app_id = ue.tenant_wechatapp_id and tm.user_id = ue.user_id join user_service.tenant_member_info tmi on tmi.tenant_id = tm.tenant_id and tmi.id = tm.id join user_service.tenant_member_bind tmb on tmb.tenant_id = tm.tenant_id and tmb.tenant_app_id = tm.tenant_app_id and tmb.user_id = tm.user_id left join user_service.wx_user wu on wu.id = tmb.wx_user_id where tm.tenant_id = :1 and tm.tenant_app_id = :2 order by tm.id desc limit :3|2|2|1||0|0|583180|291590|24|12|
|employee|select id , tenant_id , tenant_app_id , backlog_id , url , status , create_time , update_time from backlog_file where ( tenant_id = :1 and tenant_app_id = :2 and backlog_id in ( :3 , :4 , :5 , :6 ) and status = :7 )|2|2|1||0|0|593848|298007|6|4|
|employee|select id , tenant_id , tenant_app_id , backlog_id , url , status , create_time , update_time from backlog_file where ( tenant_id = :1 and tenant_app_id = :2 and backlog_id in ( :3 , :4 ) and status = :5 )|2|2|1||0|0|595451|297809|4|2|
|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.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 = :1 and tm.tenant_app_id = :2 and tm.user_id not in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 , :99 , :100 , :101 , :102 , :103 , :104 , :105 , :106 , :107 , :108 , :109 , :110 , :111 , :112 , :113 , :114 , :115 , :116 , :117 , :118 , :119 , :120 , :121 , :122 , :123 , :124 , :125 , :126 , :127 , :128 , :129 , :130 , :131 , :132 , :133 , :134 , :135 , :136 , :137 , :138 , :139 , :140 , :141 , :142 , :143 , :144 , :145 , :146 , :147 , :148 , :149 , :150 , :151 , :152 , :153 , :154 , :155 , :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|2|20|11||0|0|333345|166677|2|1|
|shop_work|select t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name , sum ( if ( ti.field_type = 'type_bool' and ti.value in ( :1 , :2 ) , :3 , :4 ) ) as bool_true_count , sum ( if ( ti.field_type = :5 and ti.value in ( :6 , :7 ) , :8 , :9 ) ) as bool_false_count , sum ( if ( ti.field_type = :10 , :11 , :12 ) ) as string_count , sum ( if ( ti.field_type = :13 , :14 , :15 ) ) as date_count , sum ( if ( ti.field_type = :16 , ti.value , :17 ) ) as number_sum , sum ( if ( ti.field_type = :18 , substring_index ( ti.value , :19 , :20 ) , :21 ) ) as progress_target , sum ( if ( ti.field_type = :22 , substring_index ( ti.value , :23 , :24 ) , :25 ) ) as progress_reach from shop_work.work_report wr join shop_work.task t on wr.id = t.task_group_id join shop_work.task_item ti on ti.task_id = t.id where wr.tenant_id = :26 and wr.area_id = :27 and wr.shop_id = :28 and wr.create_time >= :29 and wr.create_time < :30 and wr.report_type = :31 and wr.status = :32 and wr.execute_role = :33 and ti.status != :34 and ti.field_type in ( :35 , :36 , :37 , :38 , :39 ) and ti.value is not null and t.status = :40 group by t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name|2|5|2||0|0|2976238|1488119|24|12|
|payment|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|2|4|2||0|0|20314|10158|20314|10158|
|shop_work|select wr.area_id as object_id , ti.task_item_template_id , sum ( if ( ti.field_type = 'type_bool' and ti.value in ( :1 , :2 ) , :3 , :4 ) ) as bool_true_count , sum ( if ( ti.field_type = :5 and ti.value in ( :6 , :7 ) , :8 , :9 ) ) as bool_false_count , sum ( if ( ti.field_type = :10 , :11 , :12 ) ) as string_count , sum ( if ( ti.field_type = :13 , :14 , :15 ) ) as date_count , sum ( if ( ti.field_type = :16 , ti.value , :17 ) ) as number_sum , sum ( if ( ti.field_type = :18 , substring_index ( ti.value , :19 , :20 ) , :21 ) ) as progress_target , sum ( if ( ti.field_type = :22 , substring_index ( ti.value , :23 , :24 ) , :25 ) ) as progress_reach from shop_work.work_report wr join shop_work.task_item ti on wr.id = ti.task_group_id join shop_work.task t on t.task_group_id = wr.id and t.id = ti.task_id where wr.tenant_id = :26 and wr.report_type = :27 and wr.status = :28 and wr.execute_role = :29 and t.status = :30 and ti.task_item_template_id = :31 and ti.status != :32 and ti.field_type in ( :33 , :34 , :35 , :36 , :37 ) and ti.value is not null and wr.create_time >= :38 and wr.create_time < :39 group by object_id , ti.task_item_template_id|2|4|2||0|0|1660864|830436|4|2|
|employee|select id , tenant_id , tenant_app_id , backlog_id , url , status , create_time , update_time from backlog_file where ( tenant_id = :1 and tenant_app_id = :2 and backlog_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 ) and status = :13 )|2|2|1||0|0|592037|296173|20|10|
|user_service|select tu.user_id , tm.shop_id , mb.erp_member_id membererpid , tu.mobile_no , tu.user_name , ue.employee_id , tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 , :99 , :100 , :101 , :102 , :103 , :104 , :105 , :106 , :107 , :108 , :109 , :110 , :111 , :112 , :113 , :114 , :115 ,|2|4|2||0|0|1053569|727847|615|500|
|payment|select id , tenant_id , tenant_app_id , goods_order_source , goods_order_no , goods_name , goods_amount , fee_type , request_ip , user_id , user_identify , user_sub_identify , pay_way , trade_type , order_start_time , order_expire_time , prepay_id , transaction_id , pay_amount , pay_finish_time , pay_status , pay_status_desc , error_msg , wxappid , sub_wxappid , mch_id , sub_mch_id , callback_tag , callback_result , create_time , update_time from pay_order where callback_result in ( :1 , :2 ) and pay_status in ( :3 , :4 ) order by id asc limit :5|2|4|3||0|0|318325|159174|0|0|
|corpwx|select id , tenant_id , cwx_user_id , user_id , union_id , name , create_time , update_time , sex , avatar , tenant_user_id , un_assign_flag , corp_user_id , wx_user_id from external_user where ( tenant_id = :1 and union_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 , ...|2|4|2||0|0|29963|18352|0|0|
|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.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 = :1 and tm.tenant_app_id = :2 and tm.user_id not in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 )|2|2|1||0|0|184968|92484|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 , :99 , :100 , :101 , :102 , :103 , :104 , :105 , :106 , :107 , :108 , :109 , :110 , :111 , :112 , :113 , :114 , :115 , :116|2|5|3||0|0|1013791|613830|483|364|
|sms|select ifnull ( sum ( t2.sms_size ) , 0 ) as amount from sms.sms_send t1 join sms.sms_report t2 on t1.biz_id = t2.biz_id where t1.tenant_app_id = :1 and t1.create_time between date_format ( :2 , :3 ) and date_format ( :4 , :5 ) and t1.code = :6|1|1|1||0|0|11265|11265|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 )|1|1|1||0|0|14254|14254|13|13|
|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.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 = :1 and tm.tenant_app_id = :2 and tm.user_id not in ( :3 , :4 , :5 , :6 , :7 , :8 )|1|3|3||0|0|118373|118373|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 , :99 , :100 , :101 , :102 , :103 , :104 , :105 , :106 , :107 , :108 , :109 , :110 , :111 , :112 , :113 , :114 , :115 , :116 ,|1|4|4||0|0|487033|487033|121|121|
|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 )|1|2|2||0|0|410375|410375|16|16|
|comment_service|select *from comment_service.comment_reward where comment_id = :1 limit :2|1|1|1||0|0|149568|149568|1|1|
|corpwx|select id , tenant_id , cwx_user_id , user_id , union_id , name , create_time , update_time , sex , avatar , tenant_user_id , un_assign_flag , corp_user_id , wx_user_id from external_user where ( tenant_id = :1 and wx_user_id in ( :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 ) )|1|1|1||0|0|72269|72269|9|9|
|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 )|1|2|2||0|0|261150|261150|89|89|
|value_added|-- 根据添加时间得出当前增值金额 update value_added_user set amount_added = if ( :1 > ( ( ( added_percent_per_day / :2 ) * if ( :3 >= timestampdiff ( day , date_format ( start_add_time , :4 ) , now ( ) ) :5 :6 :7 add_days , timestampdiff ( day , date_format ( start_add_time , :8 ) , now ( ) ) :9 :10 , add_days ) ) :11 ( ( devalue_percent_per_day / :12 ) * if ( :13 >= timestampdiff ( day , date_format ( start_add_time , :14 ) , now ( ) ) :15 :16 :17 add_days :18 keeping_days , :19 , timestampdiff ( day , date_format ( start_add_time , :20 ) , now ( ) ) :21 :22 :23 add_days :24 keeping_days ) ) ) * amount_pay , :25 , ( ( ( added_percent_per_day / :26 ) * if ( :27 >= timestampdiff ( day , date_format ( start_add_time , :28 ) , now ( ) ) :29 :30 :31 add_days , timestampdiff ( day , date_format ( start_add_time , :32 ) , now ( ) ) :33 :34 , add_days ) ) :35 ( ( devalue_percent_per_day / :36 ) * if ( :37 >= timestampdiff ( day , date_format ( start_add_time , :38 ) , now ( ) ) :39 :40 :41 add_days :42 keeping_days , :43 , timestampdiff ( day , date_format ( start_add_time , :44 ) , now ( ) ) :45 :46 :47 add_days :48 keeping_days ) ) ) * amount_pay ) , update_time = now ( ) where state = :49 and update_time <= curdate ( ) and ( start_add_time >= date_add ( curdate ( ) , interval :50 ( add_days :51 keeping_days :52 :53 ) day ) or ( amount_added > :54 and start_add_time < date_add ( curdate ( ) , interval :55 ( add_days :56 keeping_days :57 :58 ) day ) ) ) -- 判断条件 在增值时间内 增值金大于0 状态正常|1|5|5||0|0|781155|781155|0|0|
|coupon_service|select count ( 0 ) from ( select cu.id , cu.coupon_name , cu.coupon_type , cu.coupon_no , cu.source as couponchannel , cu.coupon_state , ce.user_name , ce.creator_user_name as creatorname , if ( coupon_type in ( 'point' , 'interact_point' ) , cu.face_value , round ( cu.face_value/100 , 2 ) ) as facevalue , cu.begin_time , cu.end_time , ce.remark , ce.mobile_no , ce.creator_mobile_no , cu.create_time , wol.create_time as writeofftime , r.create_time as reservationdate , r.shop_name as reservationshopname , if ( wol.employee_id is null , wol.user_name , wol.employee_name ) writeoffusername , wol.shop_id as shopid , wol.dept_erp_id as erpdeptid , cu.user_id , ce.source_user_id , ce.source_user_type , cal.create_time as abolishtime , cal.employee_id as abolishemployeeid from coupon_service.coupon cu join coupon_service.coupon_extend ce on ce.id = cu.id left join coupon_service.coupon_write_off_log wol on wol.tenant_app_id = cu.tenant_app_id and wol.coupon_id = cu.id and wol.state = :1 left join coupon_service.reservation r on r.coupon_user_id = cu.id and r.state = :2 left join coupon_service.coupon_abolish_log cal on cal.tenant_id = cu.tenant_id and cal.tenant_app_id = cu.tenant_app_id and cal.coupon_id = cu.id where cu.tenant_app_id = :3 ) tmp_count|1|5|5||0|0|156757|156757|1|1|
|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.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 = :1 and tm.tenant_app_id = :2 and tm.user_id not in ( :3 , :4 , :5 , :6 )|1|3|3||0|0|330176|330176|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 )|1|2|2||0|0|457920|457920|43|43|
|mysql|delete from message_push.message_log where create_time < date_sub ( now ( ) , interval :1 day )|1|41|41||0|0|2214166|2214166|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 )|1|1|1||0|0|353883|353883|81|81|
|corpwx|select id , tenant_id , cwx_user_id , user_id , union_id , name , create_time , update_time , sex , avatar , tenant_user_id , un_assign_flag , corp_user_id , wx_user_id from external_user where ( tenant_id = :1 and union_id in ( :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 ) and un_assign_flag = :22 )|1|1|1||0|0|15379|15379|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 )|1|1|1||0|0|330338|330338|18|18|
|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 )|1|1|1||0|0|47853|47853|28|28|
|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 )|1|1|1||0|0|172822|172822|15|15|
|coupon_service|select c.* from coupon_service.coupon c left join coupon_service.coupon_expire_task ct on ct.tenant_id = :1 and ct.tenant_app_id = :2 and c.id = ct.coupon_id where c.tenant_id = :3 and c.tenant_app_id = :4 and c.end_time between :5 and :6 and c.coupon_state in ( :7 ) and ct.id is null|1|1|1||0|0|3488|3488|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 )|1|1|1||0|0|326617|326617|12|12|
|mysql|delete from wx_gateway.wx_template_msg where create_time < date_sub ( now ( ) , interval :1 day )|1|49|49||0|0|1733221|1733221|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 )|1|1|1||0|0|196688|196688|44|44|
|order|select max ( create_time ) from `order`.order_operator_log where tenant_wechatapp_id = :1 and order_id = :2|1|1|1||0|0|487888|487888|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 )|1|2|2||0|0|103868|103868|22|22|
|employee|select id , tenant_id , tenant_app_id , backlog_id , url , status , create_time , update_time from backlog_file where ( tenant_id = :1 and tenant_app_id = :2 and backlog_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 ) and status = :10 )|1|1|1||0|0|296751|296751|6|6|
|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-1 day ) , date_add ( start_add_time , interval add_days + keeping_days-1 day ) from value_added_user where keeping_days > :1 and state = :2 and start_add_time = date_add ( curdate ( ) , interval :3 * ( add_days-1 ) day )|1|2|2||0|0|781199|781199|803|803|
|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 )|1|1|1||0|0|371876|371876|96|96|
|corpwx|select id , tenant_id , cwx_user_id , user_id , union_id , name , create_time , update_time , sex , avatar , tenant_user_id , un_assign_flag , corp_user_id , wx_user_id from external_user where ( tenant_id = :1 and wx_user_id in ( :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 ) )|1|1|1||0|0|72365|72365|9|9|
|employee|update backlog_system set status = :1 , finish_time = now ( ) where tenant_app_id = :2 and scene = :3|1|2|2||0|0|199942|199942|0|0|
|mysql|update warranty_service.warranty set id = :1 , warranty_data = ... pos刷卡：1311.00","userid":"828854123200823296","amount":1311,"detail":[{"id":"477929656563214855","saleserpid":"22118","salestype":"销售","productbarcode":"0000001041891","productname":"足金戒指","certno":"","categoryname":"黄金 ( g ) ...|1|128|128||0|0|3785641|3785641|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 , :99 , :100 , :101 , :102 , :103 , :104 , :105 , :106 , :107 , :108 , :109 , :110 , :111 )|1|1|1||0|0|111205|111205|109|109|
|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 = :1 and tenant_app_id = :2 and user_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 ,|1|1|1||0|0|2650|2650|2650|2650|
|coupon_service|select count ( 0 ) from ( select cu.id , cu.coupon_name , cu.coupon_type , cu.coupon_no , cu.source as couponchannel , cu.coupon_state , ce.user_name , ce.creator_user_name as creatorname , if ( coupon_type in ( 'point' , 'interact_point' ) , cu.face_value , round ( cu.face_value/100 , 2 ) ) as facevalue , cu.begin_time , cu.end_time , ce.remark , ce.mobile_no , ce.creator_mobile_no , cu.create_time , wol.create_time as writeofftime , r.create_time as reservationdate , r.shop_name as reservationshopname , if ( wol.employee_id is null , wol.user_name , wol.employee_name ) writeoffusername , wol.shop_id as shopid , wol.dept_erp_id as erpdeptid , cu.user_id , ce.source_user_id , ce.source_user_type , cal.create_time as abolishtime , cal.employee_id as abolishemployeeid from coupon_service.coupon cu join coupon_service.coupon_extend ce on ce.id = cu.id left join coupon_service.coupon_write_off_log wol on wol.tenant_app_id = cu.tenant_app_id and wol.coupon_id = cu.id and wol.state = :1 left join coupon_service.reservation r on r.coupon_user_id = cu.id and r.state = :2 left join coupon_service.coupon_abolish_log cal on cal.tenant_id = cu.tenant_id and cal.tenant_app_id = cu.tenant_app_id and cal.coupon_id = cu.id where cu.tenant_app_id = :3 and ce.mobile_no = :4 and cu.create_time >= :5 and cu.create_time <= :6 ) tmp_count|1|1|1||0|0|39092|39092|1|1|
|coupon_service|select * from coupon_service.coupon where datediff ( date_format ( end_time , :1 ) , date_format ( now ( ) , :2 ) ) = :3 and coupon_state in ( :4 )|1|14|14||0|0|2806251|2806251|852|852|
|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 )|1|1|1||0|0|173556|173556|66|66|
|shop_work|select t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name , sum ( if ( ti.field_type = 'type_bool' and ti.value in ( :1 , :2 ) , :3 , :4 ) ) as bool_true_count , sum ( if ( ti.field_type = :5 and ti.value in ( :6 , :7 ) , :8 , :9 ) ) as bool_false_count , sum ( if ( ti.field_type = :10 , :11 , :12 ) ) as string_count , sum ( if ( ti.field_type = :13 , :14 , :15 ) ) as date_count , sum ( if ( ti.field_type = :16 , ti.value , :17 ) ) as number_sum , sum ( if ( ti.field_type = :18 , substring_index ( ti.value , :19 , :20 ) , :21 ) ) as progress_target , sum ( if ( ti.field_type = :22 , substring_index ( ti.value , :23 , :24 ) , :25 ) ) as progress_reach from shop_work.work_report wr join shop_work.task t on wr.id = t.task_group_id join shop_work.task_item ti on ti.task_id = t.id where wr.tenant_id = :26 and wr.area_id = :27 and wr.create_time >= :28 and wr.create_time < :29 and wr.report_type = :30 and wr.status = :31 and wr.execute_role = :32 and ti.status != :33 and ti.field_type in ( :34 , :35 , :36 , :37 , :38 ) and ti.value is not null and t.status = :39 group by t.task_category , t.task_template_id , ti.task_item_template_id , ti.field_type , ti.field_name|1|3|3||0|0|3022716|3022716|23|23|
|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 = :1 and sneak_guest_maintain_id in ( :2 ) )|1|1|1||0|0|110011|110011|1|1|
|employee|select id , scene , employee_id , member_user_name username , finish_time , status from employee.backlog where tenant_id = :1 and tenant_app_id = :2 and shop_id = :3 and expire_time between :4 and :5 order by id desc limit :6|1|1|1||0|0|294557|294557|10|10|
|user_service|select tu.user_id , tm.shop_id , mb.erp_member_id membererpid , tu.mobile_no , tu.user_name , ue.employee_id , tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id left join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 )|1|1|1||0|0|189112|189112|75|75|
|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 = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 )|1|2|2||0|0|178703|178703|42|42|
|tenant|select * from warranty_service.warranty where tenant_wechatapp_id = :1 and version <> :2 and is_disable = :3|1|3|3||0|0|12174|12174|12029|12029|
