提交 fe6081ac authored 作者: zengzhi's avatar zengzhi

auto commit

上级 55fde17e
# 2019年09月02日运行日报:https://git.sjfx.com.cn/report/daily/blob/master/2019-09-02/daily.md
## 服务器情况
|服务器 |CPU使用率 |内存使用率 |主硬盘使用率 |查看详情 |
| :- | :-: | :-: | :-: | :- |
|v3nginx |- |- |- |http://47.98.156.252:17123/|
|v3-publish |5.92% |38% |51.2% |http://47.110.9.96:17123/|
|v3-base-mq001 |3.17% |66.7% |23.8% |http://114.55.171.242:17123/|
|v3-base-mq002 |3.8% |67.3% |23.4% |http://47.110.226.218:17123/|
|proxy-local |3.12% |77.7% |22.7% |http://47.96.14.81:17123/|
|v3eureka001 |10.3% |67.1% |28.1% |http://47.110.137.241:17123/|
|v3eureka002 |8.76% |**82.1%** |39.5% |http://114.55.171.107:17123/|
|v3-gateway001 |2.84% |49% |72.2% |http://47.111.11.230:17123/|
|v3-gateway002 |2.16% |42.8% |70.2% |http://47.110.14.10:17123/|
|v3-gateway003 |2.86% |**80.7%** |64.5% |http://47.110.12.94:17123/|
|v3-gateway004 |2.95% |79.7% |63.5% |http://114.55.169.175:17123/|
|v3-BS-F001 |7.18% |79.8% |21.8% |http://47.98.220.95:17123/|
|v3-BS-F002 |9.11% |78.1% |25.4% |http://47.111.105.30:17123/|
|v3-BS-F003 |9.56% |**81.9%** |32.5% |http://47.111.105.137:17123/|
|v3-BS-F004 |5.23% |49.5% |20.4% |http://47.111.105.218:17123/|
|v3-BS-H001 |5.99% |77.5% |22.4% |http://47.111.169.175:17123/|
|v3-BS-H002 |8.89% |**80.3%** |25.2% |http://114.55.171.6:17123/|
|v3-BS-H003 |9.2% |**81.2%** |26.2% |http://47.111.186.205:17123/|
|v3-BS-H004 |5.15% |48.3% |20.5% |http://114.55.209.3:17123/|
|v3-BS-G001 |6.8% |76% |22.1% |http://114.55.243.46:17123/|
|v3-BS-G002 |2.07% |21.6% |17.5% |http://47.98.158.5:17123/|
|v3-BS-G003 |8.7% |75.7% |22.6% |http://47.98.220.48:17123/|
|v3-BS-G004 |6.12% |64.4% |22.5% |http://47.111.79.177:17123/|
|v3-BS-I001 |6.21% |75.5% |21.8% |http://114.55.243.77:17123/|
|v3-BS-I002 |2.13% |21.6% |17.5% |http://114.55.242.246:17123/|
|v3-BS-I003 |8.29% |72.5% |22.4% |http://47.110.15.201:17123/|
|v3-BS-I004 |5.85% |65.2% |22.2% |http://114.55.243.68:17123/|
|v3-tag |2.29% |63.2% |32.1% |http://47.110.13.5:17123/|
## 数据库情况
### rm-bp1qn4bl8d8p9mnm4
内存使用率: 最小值 50.6% 最大值 51% 平均值 0.0352941176470588%
CPU使用率: 最小值 0% 最大值 100% 平均值 8.67171626297568%
每秒IO请求次数: 最小值 1 最大值 2008.68 平均值 87.4253356401385
连接数: 最小值 396 最大值 448 平均值 418.643598615917
活跃连接数: 最小值 0 最大值 10 平均值 0.273356401384083
空间使用量: 总使用量;58431MB 数据使用量;54770MB 日志使用量;530MB 临时使用量;2MB 系统使用量:3129MB
### rr-bp13k3q7292ce5t6k
内存使用率: 最小值 45.1% 最大值 45.1% 平均值 22.55%
CPU使用率: 最小值 0% 最大值 0% 平均值 0%
每秒IO请求次数: 最小值 3.27 最大值 3.91 平均值 3.59
连接数: 最小值 60 最大值 60 平均值 60
活跃连接数: 最小值 0 最大值 0 平均值 0
空间使用量: 总使用量;57993MB 数据使用量;54545MB 日志使用量;527MB 临时使用量;0MB 系统使用量:2921MB
### rm-bp1piz35u161jjc92
内存使用率: 最小值 48.7% 最大值 48.7% 平均值 5.41111111111111%
CPU使用率: 最小值 0.21% 最大值 0.36% 平均值 0.24%
每秒IO请求次数: 最小值 0.35 最大值 4.34 平均值 1.60222222222222
连接数: 最小值 87 最大值 87 平均值 87
活跃连接数: 最小值 1 最大值 1 平均值 1
空间使用量: 总使用量;75963MB 数据使用量;64306MB 日志使用量;3078MB 临时使用量;1MB 系统使用量:8578MB
慢日志:[rm-bp1qn4bl8d8p9mnm4](rm-bp1qn4bl8d8p9mnm4slowsql.md)
慢日志(excel):[rm-bp1qn4bl8d8p9mnm4](rm-bp1qn4bl8d8p9mnm4slowsql.xlsx)
慢日志:[rm-bp1piz35u161jjc92](rm-bp1piz35u161jjc92slowsql.md)
慢日志(excel):[rm-bp1piz35u161jjc92](rm-bp1piz35u161jjc92slowsql.xlsx)
## zookeeper当前情况
zk_version 3.4.12-e5259e437540f349646870ea94dc2658c4e44b3b, built on 03/27/2018 03:55 GMT
zk_avg_latency 0
zk_max_latency 809
zk_min_latency 0
zk_packets_received 18273114
zk_packets_sent 18297298
zk_num_alive_connections 53
zk_outstanding_requests 0
zk_server_state leader
zk_znode_count 2642
zk_watch_count 1429
zk_ephemerals_count 1429
zk_approximate_data_size 798602
zk_open_file_descriptor_count 87
zk_max_file_descriptor_count 1048576
zk_followers 3
zk_synced_followers 3
zk_pending_syncs 0
## Redis情况
Cpu使用率:0.60%
已用内存:121005300.00Byte
每秒总访问量:110.92
已用连接数:1486.00
键总数:30185.00
设置过期时间的key数量:30181.00
每秒请求次数:67.98 最大每秒请求次数:531.44
每秒回复次数:1218.88 最大每秒回复次数:7550.46
## 昨日注册情况
![register](register.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/19697bf0-85e1-11e9-b79e-3bd17e684a34?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-09-01T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-02T15%3A59%3A59.999Z')))
## 7日注册情况
![7register](7register.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/ef3e87a0-86a1-11e9-b79e-3bd17e684a34?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-08-25T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-02T15%3A59%3A59.999Z')))
## 昨日访问情况
![vistpai](vistpai.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/8aee1530-86a7-11e9-b79e-3bd17e684a34?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-09-01T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-02T15%3A59%3A59.999Z')))
![visttable](visttable.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/94ad9340-86a5-11e9-b79e-3bd17e684a34?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-09-01T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-02T15%3A59%3A59.999Z')))
## 昨日请求数
![reqcount](reqcount.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/35503f30-86a8-11e9-b79e-3bd17e684a34?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-09-01T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-02T15%3A59%3A59.999Z')))
## 7日请求数
![7reqcount](7reqcount.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/b810fea0-86a8-11e9-b79e-3bd17e684a34?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-08-25T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-02T15%3A59%3A59.999Z')))
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|account|/* applicationname = intellij idea 2019.1 */ update user_service.user_employee ue join tenant.employee ee on ue.employee_id = ee.id set ue.employee_erp_id = ee.employee_erp_id , ee.update_time = now ( ) where ue.employee_erp_id != ee.employee_erp_id|1|1|1||0|0|1492501|1492501|0|0|
|account|/* applicationname = datagrip 2019.1.2 */ select count ( * ) from tenant.erp_sales_detail|1|23|23||0|0|12293266|12293266|1|1|
|account|/* applicationname = intellij idea 2019.1 */ select tu.* from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where tu.shop_id is null|1|6|6||0|0|2795578|2795578|6|6|
|account|/* applicationname = intellij idea 2019.1 */ select * from user_service.user_employee_20190829 ue20190829 left join user_service.user_employee ue on ue.id = ue20190829.id where ue20190829.employee_id = :1 and ue.id is null|1|4|4||0|0|835498|835498|16|16|
|tenant|/* applicationname = datagrip 2018.2.2 */ select * from employee.batch_step_execution where start_time >= :1 and timestampdiff ( second , start_time , end_time ) > :2|1|4|4||0|0|315580|315580|31|31|
|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 from user_login_token where ( tenant_id = :1 and account_id = :2 and status = :3 and tenant_wx_app_id = :4 )|1|1|1||0|0|59389|59389|0|0|
||/* applicationname = datagrip 2018.2.2 */ select * from employee.batch_step_execution where start_time >= :1|1|2|2||0|0|313427|313427|502|502|
|account|/* applicationname = intellij idea 2019.1 */ select * from user_service.user_employee group by employee_id , user_id having count ( * ) > :1|1|6|6||0|0|1555476|1555476|14|14|
|account|/* applicationname = datagrip 2019.1.2 */ select *from tenant.erp_sales where tenant_id = :1|1|6|6||0|0|739453|739453|5001|5001|
|account|/* applicationname = intellij idea 2019.1 */ select * from user_service.user_employee ue left join user_service.user_employee_20190829 ue20190829 on ue.employee_id = ue20190829.employee_id where ue.employee_id = :1|1|6|6||0|0|850328|850328|1002|1002|
|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 from user_login_token where employee_id = :1 and tenant_id = :2 and tenant_wx_app_id = :3 and shop_id = :4 and login_way = :5 and status = :6|1|1|1||0|0|3900|3900|0|0|
|user_service|select t1.user_id as userid , t2.head_img_url as headimgurl , t2.nick_name as nickname , t1.mobile_no as mobileno , t1.is_subscribe as subscribe , t1.sex , t1.tenant_union_id as tenantunionid , date_format ( t1.bind_time , '%y-%m-%d%h:%i:%s' ) as registertime , t1.id as tenantuserid from tenant_user t1 join `user` t2 on t1.user_id = t2.id left join user_employee t3 on t1.user_id = t3.user_id and t1.tenant_id = t3.tenant_id and t1.tenant_app_id = t3.tenant_wechatapp_id where t3.id is null and t1.mobile_no is not null and t1.mobile_no != :1 and t1.shop_id = :2 and t1.tenant_id = :3 and t1.tenant_app_id = :4 order by t1.bind_time asc limit :5|1|1|1||0|0|134705|134705|8|8|
|order|select od.id from order_info od left join order_detail dt on od.id = dt.order_id where od.status = :1 and dt.sku_id = :2 and od.user_id = :3|1|1|1||0|0|46164|46164|0|0|
|account|/* applicationname = intellij idea 2019.1 */ select * from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where tu.shop_id is null|1|7|7||0|0|2795571|2795571|6|6|
|account|/* applicationname = intellij idea 2019.1 */ insert into user_service.user_employee ( select ue20190829.* from user_service.user_employee_20190829 ue20190829 join tenant.employee ee on ee.id = ue20190829.employee_id left join user_service.user_employee ue2 on ue2.tenant_wechatapp_id = ue20190829.tenant_wechatapp_id and ue2.user_id = ue20190829.user_id where ee.tenant_id = :1 and ue2.id is null )|1|3|3||0|0|1632722|1632722|0|0|
|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|2|2||0|0|171859|171859|0|0|
|activity_service|select id , tenant_id , tenant_wechatapp_id , activity_id , acitivity_type , user_id , qualified_id , page_id , scene_type , scene_biz_id , create_time , update_time from activity_gift_grant where activity_id = :1 and acitivity_type = :2 and user_id = :3 and scene_type = :4|1|1|1||0|0|164823|164823|0|0|
|account|/* applicationname = intellij idea 2019.1 */ select * from user_service.user_employee_20190829 where employee_id = :1|1|3|3||0|0|835482|835482|403|403|
|employee|select bg.id , bg.employee_id , bg.shop_id , bg.scene , bg.status , bg.create_time , bg.begin_time , bg.expire_time , bg.member_user_name , bg.mobile_no member_mobile_no from employee.backlog bg where bg.tenant_app_id = :1 and bg.expire_time between :2 and :3 and bg.shop_id = :4 and bg.employee_id = :5 and bg.status in ( :6 , :7 , :8 ) and bg.scene = :9 and bg.leave_flag = :10 order by id desc limit :11|1|1|1||0|0|1283193|1283193|14|14|
|account|/* applicationname = intellij idea 2019.1 */ select count ( * ) from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where tu.shop_id not in ( select shop_id from tenant.employee_shop es where ue.employee_id = es.employee_id )|1|49|49||0|0|217921628|217921628|0|0|
||select * from sms.sms_send t where t.phone_numbers = :1 order by id desc limit :2|1|13|13||0|0|1312628|1312628|5|5|
|account|/* applicationname = intellij idea 2019.1 */ select employee_user_id from user_service.user_employee_20190829 where employee_id = :1 group by employee_user_id|1|5|5||0|0|835482|835482|1|1|
|platform|select count ( 1 ) from `taskassignment` ta where ta.tasktype = :1 and ( ta.taskstatus = :2 or ta.taskstatus = :3 ) and vendorid = :4 and uid = :5|1|1|1||0|0|632141|632141|1|1|
|account|/* applicationname = intellij idea 2019.1 */ select count ( * ) from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where tu.shop_id not in ( select shop_id from tenant.employee_shop es where ue.employee_id = es.employee_id ) and tu.tenant_id = :1|1|66|66||0|0|270734105|270734105|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 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|1|5|5||0|0|304610|304610|1|1|
|account|/* applicationname = intellij idea 2019.1 */ select count ( * ) from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where not exists ( select * from tenant.employee_shop es where es.tenant_id = tu.tenant_id and ue.employee_id = es.employee_id and es.shop_id = tu.shop_id ) and tu.tenant_id = :1 and tu.shop_id is null|1|2|2||0|0|2825902|2825902|1|1|
|tenant|/* applicationname = datagrip 2018.2.2 */ select count ( * ) amount from user_service.erp_member em left join user_service.tenant_user tu on em.tenant_wechatapp_id = tu.tenant_app_id and em.member_erp_id = tu.erp_member_id where em.tenant_wechatapp_id = :1 and tu.id is null and em.dept_erp_id = :2|1|1|1||0|0|80746|80746|1|1|
|activity_service|select id , tenant_id , tenant_wechatapp_id , activity_id , acitivity_type , user_id , qualified_id , page_id , scene_type , scene_biz_id , create_time , update_time from activity_gift_grant where activity_id = :1 and acitivity_type = :2 and user_id = :3 and scene_type = :4 and scene_biz_id = :5|1|1|1||0|0|164821|164821|1|1|
|account|/* applicationname = intellij idea 2019.1 */ select * from user_service.user_employee group by tenant_wechatapp_id , user_id having count ( * ) > :1|1|2|2||0|0|777738|777738|0|0|
|account|/* applicationname = datagrip 2019.1.2 */ select count ( * ) from tenant.erp_sales|1|5|5||0|0|5765523|5765523|1|1|
|account|/* applicationname = intellij idea 2019.1 */ select count ( * ) from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where not exists ( select * from tenant.employee_shop es where es.tenant_id = tu.tenant_id and ue.employee_id = es.employee_id and es.shop_id = tu.shop_id ) and tu.tenant_id = :1|1|45|45||0|0|165356712|165356712|1|1|
|platform|select count ( 1 ) from `smssent` where vendorid = :1 and success = true and date_sub ( date ( :2 ) , interval :3 day ) = date_format ( senttime , :4 )|1|2|2||0|0|66068|66068|1|1|
|user_service|select tenantuser.* , user.nick_name from tenant_user tenantuser join user_service.user user on tenantuser.user_id = user.id where ( tenantuser.tenant_id = :1 and tenantuser.tenant_app_id = :2 and tenantuser.user_id not in ( :3 , :4 ) ) order by tenantuser.user_id asc limit :5|1|1|1||0|0|16|16|8|8|
|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 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 ) table_count|1|13|13||0|0|4578632|4578632|1|1|
|warranty_service|select count ( 0 ) from warranty_service.warranty where tenant_wechatapp_id = :1 and is_disable = false and dept_erp_id = :2 and sales_date >= :3 and sales_date <= :4 and employee_erp_id in ( :5 , :6 , :7 , :8 , :9 , :10 , :11 )|1|9|9||0|0|66455|66455|1|1|
|user_service|select ue.employee_id as employeeid , count ( * ) as quantity from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where employee_id in ( :1 , :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 ) and ue.tenant_wechatapp_id = :14 and tu.shop_id = :15 group by ue.employee_id|1|1|1||0|0|71749|71749|11|11|
|employee|select bg.id , bg.employee_id , bg.shop_id , bg.scene , bg.status , bg.create_time , bg.begin_time , bg.expire_time , bg.member_user_name , bg.mobile_no member_mobile_no from employee.backlog bg where bg.tenant_app_id = :1 and bg.shop_id = :2 and bg.employee_id = :3 and bg.status in ( :4 , :5 , :6 ) and bg.scene = :7 and bg.leave_flag = :8 order by id desc limit :9 , :10|1|13|13||0|0|1283169|1283169|3|3|
|employee|select bg.id , bg.employee_id , bg.shop_id , bg.scene , bg.status , bg.create_time , bg.begin_time , bg.expire_time , bg.member_user_name , bg.mobile_no member_mobile_no from employee.backlog bg where bg.tenant_app_id = :1 and bg.expire_time between :2 and :3 and bg.shop_id = :4 and bg.status in ( :5 , :6 , :7 ) and bg.leave_flag = :8 order by id desc limit :9|1|8|8||0|0|287779|287779|20|20|
|coupon_service|select * from coupon_user where datediff ( date_format ( end_time , :1 ) , date_format ( now ( ) , :2 ) ) = :3 and coupon_state in ( :4 )|1|1|1||0|0|499354|499354|1469|1469|
|account|/* applicationname = intellij idea 2019.1 */ select * from erp_sync.sync_record where tenant_id = :1 and user_id = :2|1|106|106||0|0|3552434|3552434|10|10|
|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 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 where es.sales_status = :1 and es.tenant_wechatapp_id = :2 and esd.product_barcode = :3 order by es.sales_date desc|1|1|1||0|0|6108|6108|1415|1415|
|platform|select `noteid` , `vendorid` , `detailindex` , `productname` , `productbarcode` , `category` , `salestype` , `quantity` , `amount` , `integral` , `productdesc` , `slid` , `paidamount` , `id` from `salesdetaillog` where `noteid` = :1 and `vendorid` = :2|1|2|2||0|0|20864|20864|3|3|
|payment|select t.id , t.goods_order_source as goodsordersource , t.goods_order_no as goodsorderno , t.order_start_time as orderstarttime from pay_order t where t.pay_status = :1 order by id asc limit :2|1|3|3||0|0|50752|50752|0|0|
|platform|select `vendorid` , `memberid` , `salesdate` , `noteid` , `noteno` , `empid` , `empname` , `amounttotal` , `quantitytotal` , `integraltotal` , `salesstoreid` , `staffattitude` , `professionallevel` , `appearance` , `storeimage` , `productdisplay` , `salescomment` , `commenttime` , `replycontent` , `replytime` , `replyuser` , `tipfee` , `tipmorderid` , `tippayno` , `tippaytime` , `status` , `aftersalesremark` , `uid` , `eid` , `sid` , `id` from `saleslog` where vendorid = :1 and tipfee > :2 and tippayno is not null and date_sub ( date ( :3 ) , interval :4 day ) = date_format ( tippaytime , :5 )|1|4|4||0|0|120774|120774|0|0|
|account|/* applicationname = intellij idea 2019.1 */ select count ( * ) from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id join tenant.employee ee on ee.id = ue.employee_id where tu.tenant_id = :1 and ( tu.shop_id is null or tu.shop_id != ee.shop_id )|1|3|3||0|0|2944472|2944472|1|1|
||/* applicationname = datagrip 2018.2.2 */ select * from message_push.message_log where tenant_app_id = :1 and create_time >= :2 and scene_type = :3 order by create_time desc|1|2|2||0|0|43873|43873|7|7|
|account|/* applicationname = intellij idea 2019.1 */ select * from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where tu.shop_id not in ( select shop_id from tenant.employee_shop es where ue.employee_id = es.employee_id )|1|3|3||0|0|11252299|11252299|1002|1002|
|user_service|select tenantuser.* , user.nick_name from tenant_user tenantuser join user_service.user user on tenantuser.user_id = user.id where ( tenantuser.tenant_id = :1 and tenantuser.tenant_app_id = :2 and ( tenantuser.user_name like concat ( :3 , :4 , :5 ) or user.nick_name like concat ( :6 , :7 , :8 ) or tenantuser.mobile_no = :9 ) and tenantuser.user_id not in ( :10 , :11 , :12 , :13 ) ) order by tenantuser.user_id asc limit :14 , :15|1|4|4||0|0|1712386|1712386|8|8|
|employee|select bg.id , bg.employee_id , bg.shop_id , bg.scene , bg.status , bg.create_time , bg.begin_time , bg.expire_time , bg.member_user_name , bg.mobile_no member_mobile_no from employee.backlog bg where bg.tenant_app_id = :1 and bg.shop_id = :2 and bg.employee_id = :3 and bg.status in ( :4 , :5 , :6 ) and bg.scene = :7 and bg.leave_flag = :8 order by id desc limit :9|1|2|2||0|0|1283193|1283193|15|15|
|platform|select ifnull ( eid , 0 ) as eid , ifnull ( shopid , 0 ) as sid , vendorid , count ( 1 ) as quantity from productcerts where vendorid = :1 and to_days ( :2 ) :3 to_days ( createtime ) = :4 group by eid , shopid , vendorid|1|1|1||0|0|28984|28984|0|0|
|user_service|select ue.employee_id as employeeid , count ( * ) as quantity from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where employee_id in ( :1 , :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 ) and ue.tenant_wechatapp_id = :12 and tu.shop_id = :13 group by ue.employee_id|1|1|1||0|0|72560|72560|8|8|
|mysql|delete from payment.job_status_trace_log where creation_time < date_sub ( now ( ) , interval :1 day )|1|3|3||0|0|198271|198271|0|0|
|erp_sync|select * from retry_data where tenant_app_id = :1 and user_id = :2|1|2|2||0|0|4791|4791|2|2|
|account|/* applicationname = datagrip 2019.1.2 */ select *from tenant.erp_sales where employee_erp_id = :1 and tenant_id = :2|1|35|35||0|0|5765564|5765564|875|875|
|account|/* applicationname = intellij idea 2019.1 */ update user_service.user_employee ue join user_service.user_employee_20190829 ue20190829 on ue.tenant_wechatapp_id = ue20190829.tenant_wechatapp_id and ue.user_id = ue20190829.user_id set ue.employee_id = ue20190829.employee_id , ue.employee_erp_id = ue20190829.employee_erp_id , ue.update_time = now ( ) where ue.tenant_id = :1 and ue.employee_id != ue20190829.employee_id|1|2|2||0|0|817323|817323|0|0|
|platform|select `tasktype` , `tasktime` , `taskstatus` , `bid` , `vendorid` , `uid` , `completetime` , `remark` , `createtime` , `id` from `taskassignment` where `bid` = :1 and `tasktype` = :2 and `tasktime` = :3 and `vendorid` = :4 and `uid` = :5|1|2|2||0|0|631987|631987|0|0|
|account|/* applicationname = intellij idea 2019.1 */ select count ( * ) from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where not exists ( select * from tenant.employee_shop es where ue.employee_id = es.employee_id and es.shop_id = tu.shop_id ) and tu.tenant_id = :1|1|59|59||0|0|270820391|270820391|1|1|
|user_service|select ue.employee_id as employeeid , count ( * ) as quantity from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where employee_id in ( :1 ) and ue.tenant_wechatapp_id = :2 and tu.shop_id = :3 group by ue.employee_id|1|2|2||0|0|68986|68986|1|1|
|message_push|delete from message_log where create_time < :1|1|16|16||0|0|212211|212211|0|0|
|tenant|select count ( 0 ) from erp_sales join erp_department on erp_sales.dept_erp_id = erp_department.dept_erp_id and erp_sales.tenant_id = erp_department.tenant_id join tenant on erp_sales.tenant_id = tenant.id and tenant.`status` = :1 where :2 = :3 and erp_sales.tenant_id = :4|1|15|15||0|0|2335707|2335707|0|0|
|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|1|1|1||0|0|50752|50752|0|0|
|user_service|select ue.employee_id as employeeid , count ( * ) as quantity from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where employee_id in ( :1 , :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 ) and ue.tenant_wechatapp_id = :16 and tu.shop_id = :17 group by ue.employee_id|2|5|4||0|0|52427|26256|30|15|
|user_service|select tenantuser.* , user.nick_name from tenant_user tenantuser join user_service.user user on tenantuser.user_id = user.id where ( tenantuser.tenant_id = :1 and tenantuser.tenant_app_id = :2 and ( tenantuser.user_name like concat ( :3 , :4 , :5 ) or user.nick_name like concat ( :6 , :7 , :8 ) or tenantuser.mobile_no = :9 ) and tenantuser.user_id not in ( :10 , :11 , :12 , :13 ) ) order by tenantuser.user_id asc limit :14|2|12|8||0|0|4202072|2902691|12|8|
|account|/* applicationname = intellij idea 2019.1 */ update user_service.user_employee ue join tenant.employee ee on ue.employee_id = ee.id set ue.employee_erp_id = ee.employee_erp_id , ee.update_time = now ( ) where ue.employee_erp_id != ee.employee_erp_id and ee.tenant_id = :1|2|3|1||0|0|2985050|1492527|0|0|
|tenant|select id , sales_no , sales_date , member_erp_id , sales_erp_id , is_sales from erp_sales where sales_no like concat ( :1 , :2 , :3 ) and sales_status = :4 and tenant_id = :5 and tenant_wechatapp_id = :6 order by sales_date desc limit :7|2|2|1||0|0|281017|140972|0|0|
|account|/* applicationname = intellij idea 2019.1 */ select * from user_service.user_employee where employee_id = :1|2|2|1||0|0|1493120|746794|778|389|
|payment|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|2|4|2||0|0|37465|18733|37465|18733|
|account|/* applicationname = intellij idea 2019.1 */ select ue20190829.* from user_service.user_employee_20190829 ue20190829 join tenant.employee ee on ee.id = ue20190829.employee_id left join user_service.user_employee ue2 on ue2.tenant_wechatapp_id = ue20190829.tenant_wechatapp_id and ue2.user_id = ue20190829.user_id where ee.tenant_id = :1 and ue2.id is null|2|4|3||0|0|3265478|1632757|38|37|
|user_service|select count ( 0 ) from tenant_user tenantuser join user_service.user user on tenantuser.user_id = user.id where ( tenantuser.tenant_id = :1 and tenantuser.tenant_app_id = :2 and tenantuser.user_id not in ( :3 ) )|2|3|1||0|0|463748|231874|2|1|
|user_service|select count ( 0 ) from tenant_user tenantuser join user_service.user user on tenantuser.user_id = user.id where ( tenantuser.tenant_id = :1 and tenantuser.tenant_app_id = :2 and tenantuser.user_id not in ( :3 , :4 , :5 , :6 ) )|2|3|2||0|0|426886|213443|2|1|
||update user_service.user_employee ue join user_service.user_employee_20190829 ue20190829 on ue.tenant_wechatapp_id = ue20190829.tenant_wechatapp_id and ue.user_id = ue20190829.user_id set ue.employee_id = ue20190829.employee_id , ue.employee_erp_id = ue20190829.employee_erp_id , ue.update_time = now ( ) , ue.employee_user_id = ue20190829.employee_user_id where ue.tenant_id = :1 and ue.employee_id != ue20190829.employee_id|2|2|1||0|0|1622069|823820|0|0|
|account|/* applicationname = datagrip 2019.1.2 */ select *from tenant.erp_sales where tenant_id = :1 and employee_erp_id = :2|2|55|44||0|0|11531151|5765584|1073|875|
|activity_service|select count ( distinct ( user_id ) ) from user_trace where tenant_app_id = :1 and activity_id = :2 and status != :3|3|4|2||0|0|48678|16226|3|1|
|platform|select vm.* from vendormember vm join member m on vm.id = m.vendormemberid and vm.vendorid = m.vendorid where m.employeeid = :1 and vm.vendorid = :2 and ( ( birthdaytype = :3 and month ( birthday ) = month ( date_sub ( curdate ( ) , interval :4 day ) ) and day ( birthday ) = day ( date_sub ( curdate ( ) , interval :5 day ) ) ) or ( birthdaytype = :6 and month ( birthday ) = month ( date_sub ( :7 , interval :8 day ) ) and day ( birthday ) = day ( date_sub ( :9 , interval :10 day ) ) ) )|3|6|3||0|0|91104|62551|64|56|
|activity_service|select assist_task_activity_id as id , count ( distinct user_id ) as partakenum , sum ( if ( partake_type = 'appoint' and status = :1 , :2 , :3 ) ) as appointnum , sum ( if ( partake_type = :4 , :5 , :6 ) ) as applynum , sum ( if ( partake_type = :7 and status >= :8 , :9 , :10 ) ) as finishnum from assist_task_user where assist_task_activity_id in ( :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 ) group by assist_task_activity_id|3|6|2||0|0|1125464|375159|54|18|
|activity_service|select t1.user_id as userid , t2.user_name as username , t2.data as userheadimg , ifnull ( t1.finished_time , t1.update_time ) as time , t1.cutdown_amount as cutdownamount , t2.partake_data as partakedata from activity_service.cutdown_price_activity_apply t1 join activity_service.user_trace t2 on t1.id = t2.user_apply_id and t2.step = :1 where t1.activity_id = :2|3|4|1||0|0|115551|68991|9624|4650|
|gift_mail|select t.* , tt.can_take_date , tt.shop_name , tt.take_shop_name , tt.take_employee_name , ta.recipients , ta.user_tel , concat ( ta.area , ta.address ) address , if ( t.trade_type = 3 , pl.id , it.barcode ) as barcode , if ( t.trade_type = 3 or t.trade_type = :1 , pl.default_image_url , p.default_image_url ) as defaultimageurl from trade t left outer join trade_take tt on tt.trade_id = t.id left outer join trade_addr ta on ta.trade_id = t.id left outer join product p on p.id = t.product_id left outer join platform_product pl on pl.id = t.product_id left outer join inventory it on it.product_id = t.product_id and it.specification = t.specification where ( t.tenant_wechatapp_id = :2 ) order by create_time desc|3|16|5||0|0|57306|19102|3717|1239|
|employee|select count ( 0 ) from employee.backlog bg where bg.tenant_app_id = :1 and bg.shop_id = :2 and bg.employee_id = :3 and bg.status in ( :4 , :5 ) and bg.scene = :6 and bg.leave_flag = :7|3|7|3||0|0|146768|52531|3|1|
||insert into user_service.user_employee_20190902 ( select * from user_service.user_employee where tenant_id = :1 ) on duplicate key update user_employee_20190902.update_time = user_employee_20190902.update_time|3|4|1||0|0|2294640|773371|0|0|
|qrcode_service|select *from qrcode_service.qrcode_scan_log where open_id = :1 and tenant_app_id = :2 order by create_time desc limit :3|3|9|4||0|0|3079610|1027012|3|1|
||select ue.* , tu.erp_member_id , s.dept_erp_id from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id join tenant.employee ee on ee.id = ue.employee_id join tenant.tenant_wechatapp_shop s on ee.shop_id = s.id where tu.tenant_id = :1 and ( tu.shop_id is null or tu.shop_id != ee.shop_id )|4|7|3||0|0|11189692|2797464|148|37|
|account|select id , tenant_id , tenant_wechatapp_id , account_type , user_id , mch_billno , send_name , mch_id , sub_mch_id , wxappid , msgappid , re_openid , total_amount , total_num , wishing , client_ip , act_name , remark , scene_id , risk_info , consume_mch_id , send_time , order_status , failure_reason , biz_id , biz_type , biz_tag , send_listid , need_callback , create_time , update_time , user_name , mobile_no , receive_time , refund_amount , refund_time from wx_redpacket_send_order where order_status in ( :1 , :2 ) order by id desc|4|7|2||0|0|82647|20674|29|14|
|coupon_service|select id , tenant_id , tenant_wechatapp_id , coupon_template_id , coupon_no , coupon_state , owner_id , creator_id , creator_mobile_no , creator_name , user_name , mobile_no , create_channel , coupon_name , face_value , coupon_type , use_threshold , begin_time , end_time , remark , create_time , update_time , product_name , exchange_shop , channel_id , writeoff_user_id , off_type , is_give , writeoff_time from coupon_user where coupon_template_id = :1 and owner_id = :2|4|16|7||0|0|1998221|499687|0|0|
|employee|update backlog set status = :1 where tenant_app_id = :2 and employee_id = :3 and status in ( :4 , :5 ) and shop_id = :6|4|7|3||0|0|267252|82438|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|5|8|2||0|0|209292|52359|5|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 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.phone_numbers like concat ( :2 , :3 , :4 ) ) table_count|5|30|14||0|0|6565573|1314122|5|1|
|comment_service|select *from comment_service.comment_reward where comment_id = :1 limit :2|5|6|1||0|0|220110|44036|4|1|
|employee|select bg.id , bg.employee_id , bg.shop_id , bg.scene , bg.status , bg.create_time , bg.begin_time , bg.expire_time , bg.member_user_name , bg.mobile_no member_mobile_no from employee.backlog bg where bg.tenant_app_id = :1 and bg.shop_id = :2 and bg.employee_id = :3 and bg.status in ( :4 , :5 ) and bg.scene = :6 and bg.leave_flag = :7 order by id desc limit :8 , :9|5|46|15||0|0|6195666|1283193|47|12|
|sms|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 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.phone_numbers like concat ( :2 , :3 , :4 ) order by a.create_time desc limit :5|5|6|1||0|0|6565037|1314136|59|20|
|user_service|select tu.user_id as userid , tu.mobile_no as mobileno , tu.user_name as username , u.nick_name as nickname , u.head_img_url as headimgurl from tenant_user tu join `user` u on tu.user_id = u.id where tu.tenant_app_id = :1 and ( tu.mobile_no = :2 or u.nick_name like concat ( :3 , :4 ) or tu.user_name like concat ( :5 , :6 ) )|6|17|8||0|0|1624034|296382|11|7|
|authorization_service|update user_login_token set status = :1 where user_id = :2 and tenant_id = :3 and tenant_wx_app_id = :4 and login_way = :5|7|16|4||0|0|804|212|0|0|
|platform|update vendormember vm inner join ( select sum ( integral ) as integral , sum ( if ( integral > 0 , integral , 0 ) ) as hisintegral from integrallog where vendorid = :1 and memberid = :2 and isdeleted = :3 ) s on :4 = :5 set vm.integral = ifnull ( s.integral , :6 ) , vm.hisintegral = ifnull ( s.hisintegral , :7 ) , vm.updatetime = now ( ) where vendorid = :8 and memberid = :9|9|14|3||0|0|2117|1283|0|0|
|coupon_service|select id as usercouponid , coupon_no as couponno , end_time as endtime , begin_time as begintime , face_value as facevalue , coupon_name as couponname , coupon_type as coupontype , remark , exchange_shop , off_type from coupon_user where owner_id = :1 and coupon_template_id = :2 and coupon_state = :3 and end_time > now ( ) limit :4|9|54|12||0|0|4493421|499782|5|1|
|employee|select bg.id , bg.employee_id , bg.shop_id , bg.scene , bg.status , bg.create_time , bg.begin_time , bg.expire_time , bg.member_user_name , bg.mobile_no member_mobile_no from employee.backlog bg where bg.tenant_app_id = :1 and bg.shop_id = :2 and bg.employee_id = :3 and bg.status in ( :4 , :5 ) and bg.scene = :6 and bg.leave_flag = :7 order by id desc limit :8|11|121|15||0|0|10191015|1283189|82|20|
|gift_mail|select count ( 0 ) from ( select t.* , tt.can_take_date , tt.shop_name , tt.take_shop_name , tt.take_employee_name , ta.recipients , ta.user_tel , concat ( ta.area , ta.address ) address , if ( t.trade_type = 3 , pl.id , it.barcode ) as barcode , if ( t.trade_type = 3 or t.trade_type = :1 , pl.default_image_url , p.default_image_url ) as defaultimageurl from trade t left outer join trade_take tt on tt.trade_id = t.id left outer join trade_addr ta on ta.trade_id = t.id left outer join product p on p.id = t.product_id left outer join platform_product pl on pl.id = t.product_id left outer join inventory it on it.product_id = t.product_id and it.specification = t.specification where ( t.tenant_wechatapp_id = :2 ) order by create_time desc ) tmp_count|12|31|3||0|0|199157|17244|12|1|
|gift_mail|select t.* , tt.can_take_date , tt.shop_name , tt.take_shop_name , tt.take_employee_name , ta.recipients , ta.user_tel , concat ( ta.area , ta.address ) address , if ( t.trade_type = 3 , pl.id , it.barcode ) as barcode , if ( t.trade_type = 3 or t.trade_type = :1 , pl.default_image_url , p.default_image_url ) as defaultimageurl from trade t left outer join trade_take tt on tt.trade_id = t.id left outer join trade_addr ta on ta.trade_id = t.id left outer join product p on p.id = t.product_id left outer join platform_product pl on pl.id = t.product_id left outer join inventory it on it.product_id = t.product_id and it.specification = t.specification where ( t.tenant_wechatapp_id = :2 ) order by create_time desc limit :3|18|66|7||0|0|385475|30326|360|20|
|platform|select `tasktype` , `tasktime` , `taskstatus` , `bid` , `vendorid` , `uid` , `completetime` , `remark` , `createtime` , `id` from `taskassignment` where tasktype = :1 and vendorid = :2 and date_format ( tasktime , :3 ) >= curdate ( ) and ( taskstatus = :4 or taskstatus = :5 )|19|29|4||0|0|12010679|632141|21|9|
|activity_service|select id , tenant_id , tenant_app_id , activity_id , user_id , tenant_app_open_id , customize_page_id , qualitied_id , status , remark , create_time , update_time from intelligent_marketing_activity_gift where `status` = :1 limit :2 , :3|20|46|4||0|0|2444200|122210|0|0|
|facepass_sync|select id , tenant_id , tenant_wechatapp_id , shop_id , status , retries , success_time , send_fail_msg , create_time , update_time , send_data from customer_face_register_message where status in ( :1 , :2 ) and retries < :3 limit :4|20|25|2||0|0|279244|13964|0|0|
|order|select tenant_wechatapp_id from order_info where status = :1 and child_status is null group by tenant_wechatapp_id|22|46|4||0|0|1015717|46181|6|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 asc|22|46|4||0|0|1393398|63386|0|0|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|22|53|6||0|0|7022422|319201|22|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 from user_login_token where ( tenant_id = :1 and account_id = :2 and status = :3 )|22|57|8||0|0|1038509|99845|37|2|
|erp_sync|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|24|33|2||0|0|82928|3748|82928|3748|
|tenant|select count ( 0 ) from erp_sales where tenant_id = :1 and tenant_wechatapp_id = :2 and sales_date >= :3 and employee_erp_id = :4 and sales_status = :5|26|50|5||0|0|4891342|200543|26|1|
|employee|select * from backlog where tenant_app_id = :1 and employee_id = :2 and status in ( :3 , :4 ) and shop_id = :5 and scene = :6 and expire_time >= :7 order by create_time desc limit :8|27|101|9||0|0|3315735|122805|54|5|
|facepass_sync|select id , tenant_id , tenant_wechatapp_id , shop_id , status , create_time , update_time , receive_data , response_data from customer_face_sync_message where status = :1 and create_time < date_add ( now ( ) , interval :2 minute ) order by id asc limit :3|33|98|6||0|0|1846259|58106|34|4|
|platform|select `typefullname` , `methodname` , `arguments` , `partition` , `offset` , `createtime` , `updatetime` , `retried` , `errormsg` , `id` from `pushlog` where `typefullname` = :1 and `methodname` = :2 and `arguments` = :3|33|52|4||0|0|8055892|244153|0|0|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|34|56|3||0|0|830676|38544|34|1|
|customer|select count ( 0 ) from customer_face_pass t where :1 = :2 and t.is_checkin = :3 and t.shop_id = :4 and t.person_type not in ( :5 )|44|307|15||0|0|4587620|187586|40|1|
|user_service|select count ( * ) from tenant_user t1 join `user` t2 on t1.user_id = t2.id left join user_employee t3 on t1.user_id = t3.user_id and t1.tenant_id = t3.tenant_id and t1.tenant_app_id = t3.tenant_wechatapp_id where t3.id is null and t1.mobile_no is not null and t1.mobile_no != :1 and t1.shop_id = :2 and t1.tenant_id = :3 and t1.tenant_app_id = :4|55|93|3||0|0|6943695|210212|55|1|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|57|135|5||0|0|2792704|109735|57|1|
|facepass_sync|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|72|114|2||0|0|147046|2056|147046|2056|
||insert into user_service.user_employee ( select ue20190829.* from user_service.user_employee_20190829 ue20190829 join tenant.employee ee on ee.id = ue20190829.employee_id left join user_service.user_employee ue2 on ue2.tenant_wechatapp_id = ue20190829.tenant_wechatapp_id and ue2.user_id = ue20190829.user_id where ee.tenant_id = :1 and ue2.id is null )|73|88|3||0|0|119247856|1641274|0|0|
|account|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|82|146|3||0|0|262424|3748|262424|3748|
# 运行日志 # 运行日志
# 2019-09 # 2019-09
[2019-09-01](2019-09-01/daily.md)&ensp;&ensp;&ensp;&ensp; [2019-09-01](2019-09-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-02](2019-09-02/daily.md)&ensp;&ensp;&ensp;&ensp;
# 2019-08 # 2019-08
[2019-08-01](2019-08-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-05](2019-08-05/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-06](2019-08-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-07](2019-08-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-08](2019-08-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-09](2019-08-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-11](2019-08-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-12](2019-08-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-13](2019-08-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-14](2019-08-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-15](2019-08-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-18](2019-08-18/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-19](2019-08-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-20](2019-08-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-21](2019-08-21/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-22](2019-08-22/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-23](2019-08-23/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-25](2019-08-25/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-26](2019-08-26/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-27](2019-08-27/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-28](2019-08-28/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-29](2019-08-29/daily.md)&ensp;&ensp;&ensp;&ensp; [2019-08-01](2019-08-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-05](2019-08-05/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-06](2019-08-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-07](2019-08-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-08](2019-08-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-09](2019-08-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-11](2019-08-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-12](2019-08-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-13](2019-08-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-14](2019-08-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-15](2019-08-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-18](2019-08-18/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-19](2019-08-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-20](2019-08-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-21](2019-08-21/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-22](2019-08-22/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-23](2019-08-23/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-25](2019-08-25/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-26](2019-08-26/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-27](2019-08-27/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-28](2019-08-28/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-08-29](2019-08-29/daily.md)&ensp;&ensp;&ensp;&ensp;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论