提交 3b7f94b4 authored 作者: zengzhi's avatar zengzhi

auto commit

上级 e2342401
# 2020年02月28日运行日报:https://git.sjfx.com.cn/report/daily/blob/master/2020-02-28/daily.md
## 服务器情况
|服务器 |CPU使用率 |内存使用率 |主硬盘使用率 |查看详情 |
| :- | :-: | :-: | :-: | :- |
|v3nginx |- |- |- |http://47.98.156.252:17123/|
|v3-publish |- |42.5% |53.2% |http://47.110.9.96:17123/|
|v3-base-mq001 |2.53% |67.6% |34.3% |http://114.55.171.242:17123/|
|v3-base-mq002 |3.32% |68.3% |24.7% |http://47.110.226.218:17123/|
|proxy-local |1.48% |31.7% |22.4% |http://47.96.14.81:17123/|
|v3eureka001 |7.93% |75.2% |26.7% |http://47.110.137.241:17123/|
|v3eureka002 |15.8% |79.6% |60.5% |http://114.55.171.107:17123/|
|v3-gateway001 |2.43% |58.2% |50.6% |http://47.111.11.230:17123/|
|v3-gateway002 |2.1% |42% |52.2% |http://47.110.14.10:17123/|
|v3-gateway003 |2.79% |77.6% |48.3% |http://47.110.12.94:17123/|
|v3-gateway004 |2.8% |79.6% |47.8% |http://114.55.169.175:17123/|
|v3-BS-F001 |5.32% |69.1% |20.8% |http://47.98.220.95:17123/|
|v3-BS-F002 |8.11% |53.3% |22.8% |http://47.111.105.30:17123/|
|v3-BS-F003 |5.45% |77.7% |25% |http://47.111.105.137:17123/|
|v3-BS-F004 |6.36% |78.6% |21.9% |http://47.111.105.218:17123/|
|v3-BS-H001 |4.92% |67.8% |20.4% |http://47.111.169.175:17123/|
|v3-BS-H002 |8.24% |55% |22.8% |http://114.55.171.6:17123/|
|v3-BS-H003 |5.32% |**80.7%** |24.9% |http://47.111.186.205:17123/|
|v3-BS-H004 |5.79% |78.7% |22.2% |http://114.55.209.3:17123/|
|v3-BS-G001 |6.03% |71.9% |20.1% |http://114.55.243.46:17123/|
|v3-BS-G002 |17.2% |51% |21.8% |http://47.98.158.5:17123/|
|v3-BS-G003 |6.8% |**91.1%** |20.4% |http://47.98.220.48:17123/|
|v3-BS-G004 |8.51% |74.6% |25.4% |http://47.111.79.177:17123/|
|v3-BS-I001 |5.2% |72.9% |22.1% |http://114.55.243.77:17123/|
|v3-BS-I002 |17% |50.4% |22% |http://114.55.242.246:17123/|
|v3-BS-I003 |7.8% |**85.7%** |21.3% |http://47.110.15.201:17123/|
|v3-BS-I004 |5.87% |**82%** |23.7% |http://114.55.243.68:17123/|
|v3-tag |3.02% |72.4% |17.1% |http://47.110.13.5:17123/|
## 数据库情况
### rm-bp1qn4bl8d8p9mnm4
内存使用率: 最小值 38.89% 最大值 39.4% 平均值 0.0273801250868659%
CPU使用率: 最小值 0.97% 最大值 100% 平均值 31.5009867963864%
每秒IO请求次数: 最小值 0 最大值 3529.22 平均值 193.848109798471
连接数: 最小值 419.42 最大值 442.17 平均值 428.730257123003
活跃连接数: 最小值 0 最大值 8.55 平均值 0.898061153578866
空间使用量: 总使用量;80258.3MB 数据使用量;70449.78MB 日志使用量;5387.76MB 临时使用量;3.11MB 系统使用量:4417.66MB
### rr-bp13k3q7292ce5t6k
内存使用率: 最小值 33.81% 最大值 33.81% 平均值 33.81%
CPU使用率: 最小值 4.52% 最大值 4.52% 平均值 4.52%
每秒IO请求次数: 最小值 195.6 最大值 195.6 平均值 195.6
连接数: 最小值 60 最大值 60 平均值 60
活跃连接数: 最小值 0.17 最大值 0.17 平均值 0.17
空间使用量: 总使用量;78672.25MB 数据使用量;70197.9MB 日志使用量;5345.55MB 临时使用量;1.5MB 系统使用量:3127.29MB
### rm-bp1piz35u161jjc92
内存使用率: 最小值 46.75% 最大值 46.87% 平均值 5.20777777777778%
CPU使用率: 最小值 88.22% 最大值 89.98% 平均值 89.02%
每秒IO请求次数: 最小值 1491.64 最大值 1925 平均值 1660.75666666667
连接数: 最小值 84 最大值 84 平均值 84
活跃连接数: 最小值 21.3 最大值 31.63 平均值 24.3166666666667
空间使用量: 总使用量;70805.33MB 数据使用量;47396.31MB 日志使用量;17327.35MB 临时使用量;3.55MB 系统使用量:6078.12MB
慢日志:[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 966
zk_min_latency 0
zk_packets_received 76261763
zk_packets_sent 76343722
zk_num_alive_connections 55
zk_outstanding_requests 0
zk_server_state leader
zk_znode_count 3092
zk_watch_count 1413
zk_ephemerals_count 1732
zk_approximate_data_size 980731
zk_open_file_descriptor_count 89
zk_max_file_descriptor_count 1048576
zk_followers 3
zk_synced_followers 3
zk_pending_syncs 0
## Redis情况
Cpu使用率:0.60%
已用内存:108225300.00Byte
每秒总访问量:109.42
已用连接数:1505.25
键总数:14008.00
设置过期时间的key数量:14001.00
每秒请求次数:85.04 最大每秒请求次数:3073.40
每秒回复次数:1292.77 最大每秒回复次数:4088.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'2020-02-27T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-02-28T15%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'2020-02-20T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-02-28T15%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'2020-02-27T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-02-28T15%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'2020-02-27T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-02-28T15%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'2020-02-27T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-02-28T15%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'2020-02-20T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-02-28T15%3A59%3A59.999Z')))
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
||alter table employee.backlog modify unique_id int ( 11 )|1|160|160||0|0|0|0|0|0|
||update coupon_service.coupon_push cp join coupon_service.coupon_pack_detail cpd on cpd.coupon_template_id = cp.template_id set source_id = coupon_pack_id|1|2|2||0|0|2629950|2629950|0|0|
|value_added|select id , tenant_wechatapp_id as tenantwechatappid , user_id as userid , template_id as templateid , sales_erp_id as saleserpid , product_name as productname , shop_name as shopname , product_barcode as productbarcode , amount_total as amounttotal , amount_pay as amountpay , amount_added as amountadded , state as state , add_days , added_percent_per_day as addedpercentperday , devalue_percent_per_day as devaluepercentperday , keeping_days as keepingdays , exchange_days as exchangedays , coupon_user_id as couponuserid , sales_index as salesindex , start_add_time as createtime , date_add ( start_add_time , interval add_days-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|297440|297440|361|361|
|gift_mail|select * from ( select p.* , sp.take_type , ifnull ( pp.integral_price , ifnull ( ( select min ( inventory.price ) from inventory where inventory.product_id = p.id ) , :1 ) ) as price , ifnull ( t.quantity , :2 ) quantity , pt.partner_name vendorname , 0.0 distance , c.categroy_name categroy_name , pp.partner_id partner_id from product p inner join category c on c.id = p.category_id left outer join self_product sp on p.id = sp.product_id left outer join partner_product pp on p.id = pp.product_id left outer join partner pt on pt.id = pp.partner_id left outer join ( select product_id , sum ( quantity ) quantity from gift_mail.inventory group by product_id ) t on p.id = t.product_id where ( ( p.is_disable is null or p.is_disable = :3 ) ) ) as p where ( p.tenant_id = :4 and p.partner_id = :5 ) order by p.id desc limit :6|1|1|1||0|0|18128|18128|2|2|
|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|6|6||0|0|39768|39768|0|0|
|user_service|select * from tenant_user where tenant_app_id = :1 and tenant_app_open_id = :2|1|1|1||0|0|0|0|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 ) and ue.tenant_wechatapp_id = :14 and tu.shop_id = :15 group by ue.employee_id|1|1|1||0|0|13473|13473|10|10|
|platform|select count ( 1 ) from coupondetail where vendorid = :1 and coupontype = :2 and couponstate = :3 and to_days ( :4 ) :5 to_days ( createtime ) = :6|1|3|3||0|0|322224|322224|1|1|
|account|/* applicationname = datagrip 2018.2.2 */ select count ( * ) from employee.backlog where md5_str in ( select md5_str from employee.backlog group by md5_str having count ( * ) > :1 ) and leave_flag = :2|1|33|33||0|0|5118882|5118882|1|1|
|account|/* applicationname = datagrip 2019.1.2 */ select *from coupon_service.coupon_template|1|1|1||0|0|5001|5001|5001|5001|
|message_push|delete from message_log where create_time < :1|1|16|16||0|0|201122|201122|0|0|
|order|select max ( create_time ) from `order`.order_operator_log where tenant_wechatapp_id = :1 and order_id = :2|1|1|1||0|0|272806|272806|1|1|
|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 ) and a.create_time >= :5 and a.create_time < :6 order by a.create_time desc limit :7|1|4|4||0|0|2091844|2091844|20|20|
|account|/* applicationname = datagrip 2018.2.2 */ select count ( * ) from employee.backlog where update_time >= :1|1|39|39||0|0|2635742|2635742|1|1|
|mysql|delete from employee.backlog where scene in ( :1 , :2 , :3 )|1|46|46||0|0|2701838|2701838|0|0|
|mysql|insert into employee.backlog_bak select * from employee.backlog where scene in ( :1 , :2 , :3 )|1|49|49||0|0|2701838|2701838|0|0|
|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|70602|70602|0|0|
|value_added|-- 增值达到最大天数 select 'value_added_limit_contact' as limitdaytype , tenant_wechatapp_id as tenantappid , user_id as userid , 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 where tenant_wechatapp_id = :1 and state = :2 and t.start_add_time >= date_add ( date_format ( :3 , :4 ) , interval :5 * ( add_days-1 ) day ) and t.start_add_time < date_add ( date_format ( :6 , :7 ) , interval ( :8 * ( add_days-1 ) :9 :10 ) day ) group by tenant_wechatapp_id , user_id|1|1|1||0|0|16278|16278|27|27|
|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 login_token = :1|1|7|7||0|0|1|1|1|1|
|account|/* applicationname = datagrip 2018.2.2 */ select tenant_app_id , md5_str , count ( * ) from employee.backlog group by tenant_app_id , md5_str having count ( * ) > :1|1|47|47||0|0|5110392|5110392|502|502|
|mysql|insert into erp_sync.sync_record_20190924 select * from erp_sync.sync_record where create_time < date_sub ( now ( ) , interval :1 day )|1|13|13||0|0|689236|689236|0|0|
|account|/* applicationname = datagrip 2019.1.2 */ select *from coupon_service.coupon_user where create_channel = :1|1|2|2||0|0|235086|235086|5001|5001|
|mysql|delete from wx_gateway.wx_template_msg where create_time < date_sub ( now ( ) , interval :1 day )|1|39|39||0|0|1126350|1126350|0|0|
|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|1|15|15||0|0|872902|872902|0|0|
|coupon_service|select count ( 0 ) from ( select c.id , c.coupon_name , c.coupon_type , round ( c.face_value / 100 , 2 ) as facevalue , round ( c.discount / 10 , 1 ) as discount , c.begin_time , c.end_time , c.wx_card_id , c.wx_card_no , c.template_id , round ( c.use_threshold / 100 ) as usethreshold , t.scope , ce.product_name , ( case when c.end_time < now ( ) then 'invalid' when c.begin_time > now ( ) then 'not_effective' else c.coupon_state end ) as state from coupon_service.coupon c join coupon_service.coupon_extend ce on ce.id = c.id join coupon_service.template t on t.id = c.template_id where c.tenant_app_id = :1 and c.user_id = :2 ) as c|1|2|2||0|0|98625|98625|1|1|
|mysql|create unique index idx_backlog_md5 on employee.backlog ( md5_str )|1|110|110||0|0|0|0|0|0|
|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.create_time >= :2 and a.create_time < :3 ) table_count|1|6|6||0|0|2985455|2985455|1|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 ) )|1|1|1||0|0|6069|6069|1|1|
|mysql|delete from erp_sync.sync_record where create_time < date_sub ( now ( ) , interval :1 day )|1|2|2||0|0|689236|689236|0|0|
|user_service|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 ue.employee_id = :1 and ue.tenant_wechatapp_id = :2 and tu.shop_id = :3|1|2|2||0|0|21422|21422|1|1|
|user_service|select count ( 0 ) from tenant_user tu join user u on u.id = tu.user_id where tu.tenant_id = :1 and ( tu.user_name like concat ( :2 , :3 , :4 ) or tu.mobile_no = :5 or u.nick_name like concat ( :6 , :7 , :8 ) ) and tenant_app_id = :9|1|13|13||0|0|48332|48332|1|1|
|account|/* applicationname = datagrip 2018.2.2 */ select * from employee.backlog where update_time >= :1 order by update_time desc|1|38|38||0|0|2636244|2636244|502|502|
||update coupon_service.coupon_push cp join coupon_service.coupon_mall_product cmp on cmp.coupon_template_id = cp.template_id set source_id = cmp.id|1|3|3||0|0|3374610|3374610|0|0|
|timer|insert into task_execute_log ( id , task_id , task_name , task_params , success , error_msg , create_time ) values ( :1 , :2 , :3 , :4 , :5 , :6 , :7 )|1|1|1||0|0|0|0|0|0|
|account|/* applicationname = datagrip 2018.2.2 */ select * from employee.backlog_bak|1|7|7||0|0|66096|66096|66096|66096|
|account|select id , tenant_id , tenant_app_id , account_type , owner_type , owner_id , balance , platform_balance , cumulation , status , create_time , update_time from account where tenant_app_id = :1 and account_type = :2 and owner_type = :3 and owner_id = :4|1|1|1||0|0|1|1|1|1|
|mysql|update gift_mail.trade set source = :1 where pay_price > :2|1|1|1||0|0|32280|32280|0|0|
|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.create_time >= :2 and a.create_time < :3 order by a.create_time desc limit :4|1|1|1||0|0|2091865|2091865|20|20|
|mysql|create index idx_backlog_md5 on employee.backlog ( md5_str )|1|87|87||0|0|0|0|0|0|
||insert into coupon_service.coupon ( id , tenant_id , tenant_app_id , template_id , coupon_push_id , coupon_no , coupon_state , user_id , coupon_name , coupon_type , face_value , discount , use_threshold , begin_time , end_time , wx_card_id , wx_card_no , source , source_id , business_id , create_time , update_time ) select cu.id , cu.tenant_id , cu.tenant_wechatapp_id , cu.coupon_template_id , cu.coupon_template_id as coupon_push_id , cu.coupon_no , case cu.coupon_state when 1 then 'received' when 2 then 'used' when 3 then 'invalid' else 'undefined' end , cu.creator_id , cu.coupon_name , ( case cu.coupon_type when 1 then 'mall' when 2 then if ( off_type = 'cash' , 'shop_cash' , 'shop_discount' ) when 4 then 'value_added' when 5 then 'exchange' when 6 then 'appointment' else 'undefined' end ) as coupon_type , if ( off_type = 'cash' , cu.face_value*100 , 0 ) as face_value , if ( off_type = 'discount' , cu.face_value , 0 ) as discount , cu.use_threshold , cu.begin_time , cu.end_time , '' as wx_card_id , '' as wx_card_no , ( case cu.create_channel when 1 then 'coupon_market_single' when 2 then 'coupon_market_single' when 3 then 'valueadded' when 6 then 'luck_draw' when 9 then 'customize_page' when 10 then 'v2_import' when 11 then 'employee_give_coupon' when 12 then 'coupon_market_pack' when 13 then 'erp' when 14 then 'ambassador' when 7 then 'bind_mobileno_gift' when 8 then 'blessings_of_light' else 'undefined' end ) as source , 0 as source_id , ifnull ( channel_id , cu.id ) , create_time , update_time from coupon_service.coupon_user cu|1|25|25||0|0|792948|792948|0|0|
|account|/* applicationname = datagrip 2019.1.2 */ select t1.id , t2.tenant_id , t1.tenant_wechatapp_id , t1.id as template_id , ( case t1.coupon_type when 1 then 'mall' when 2 then if ( off_type = 'cash' , 'shop_cash' , 'shop_discount' ) when 4 then 'value_added' when 5 then 'exchange' when 6 then 'appointment' else 'undefined' end ) as coupon_type , ( case t1.take_effect_way when 1 then 'fix_time_range' when 2 then 'fix_term' else '' end ) as take_effect_way , 0 as take_start_day , ifnull ( t1.take_effect_day , 0 ) as take_effect_day , if ( t1.take_effect_way = 1 , t1.begin_time , null ) as begin_time , if ( t1.take_effect_way = 1 , t1.end_time , null ) as end_time , ( case t1.create_channel when 1 then 'coupon_market_single' when 2 then 'coupon_market_single' when 3 then 'valueadded' when 6 then 'luck_draw' when 9 then 'customize_page' when 10 then 'v2_import' when 11 then 'employee_give_coupon' when 12 then 'coupon_market_pack' when 13 then 'erp' when 14 then 'ambassador' when 7 then 'bind_mobileno_gift' when 8 then 'blessings_of_light' else 'undefined' end ) as source , 0 as source_id , t1.give_flag as can_give , if ( t1.participation_mode = 'reservation' , 1 , 0 ) as need_booking , t1.use_threshold*100 , '0' as wx_card_id , 'normal' as state , t1.create_time , t1.update_time from coupon_service.coupon_template t1 join tenant.tenant_wechatapp t2 on t1.tenant_wechatapp_id = t2.id|1|2|2||0|0|10003|10003|5001|5001|
|account|/* applicationname = datagrip 2019.1.2 */ select *from coupon_service.coupon_user where create_channel = :1 order by id desc|1|2|2||0|0|172161|172161|5001|5001|
|employee|select count ( 0 ) 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|1|15|15||0|0|0|0|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 , :16 , :17 , :18 , :19 , :20 , :21 ) and ue.tenant_wechatapp_id = :22 and tu.shop_id = :23 group by ue.employee_id|1|2|2||0|0|84091|84091|15|15|
|user_service|select tu.id as tenantuserid , tu.user_id , u.nick_name , tu.user_name , tu.mobile_no , tu.head_img_url , tu.sex , tu.tenant_union_id as tenantunionid from tenant_user tu join `user` u on tu.user_id = u.id where tu.`status` = :1 and tu.tenant_app_id = :2 and tu.user_id in ( :3 )|1|1|1||0|0|1|1|1|1|
|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|3|3||0|0|297439|297439|0|0|
|goods|select tmp.id , tmp.category_id , tmp.goods_name , tmp.style_no , tmp.status , tmp.thumbnail_img , tmp.express_type , tmp.take_stock_day , tmp.take_remark , tmp.express_fee , tmp.total_quantity , tmp.total_sales_volume , tmp.min_price , tmp.create_time , tmp.exchange_money from ( select gs.id , gs.category_id , gs.goods_name , gs.style_no , gs.status , gs.thumbnail_img , gs.express_type , gs.take_stock_day , gs.take_remark , gs.express_fee , ifnull ( gs.base_sale_number , 0 ) +ifnull ( t1.sales_volume , 0 ) total_sales_volume , ifnull ( ifnull ( t2.quantity , t3.quantity ) , 0 ) total_quantity , ifnull ( ifnull ( t2.price , t3.price ) , 0 ) min_price , gs.create_time , gs.exchange_money from goods.goods gs left join goods.goods_category cg on gs.category_id = cg.id inner join ( select tenant_app_id , goods_id from goods.goods_take_shop group by tenant_app_id , goods_id ) t on gs.id = t.goods_id left join ( select tenant_app_id , goods_id , sum ( sales_volume ) sales_volume from goods.goods_sku group by tenant_app_id , goods_id ) t1 on t.tenant_app_id = t1.tenant_app_id and t.goods_id = t1.goods_id left join ( select tenant_app_id , goods_id , sum ( quantity ) quantity , min ( price ) price from goods.goods_sku where activity_id = :1 group by tenant_app_id , goods_id ) t2 on t.tenant_app_id = t2.tenant_app_id and t.goods_id = t2.goods_id left join ( select tenant_app_id , goods_id , sum ( quantity ) quantity , min ( price ) price from goods.goods_sku where activity_id > :2 group by tenant_app_id , goods_id ) t3 on t.tenant_app_id = t3.tenant_app_id and t.goods_id = t3.goods_id where t.tenant_app_id = :3 and gs.status = :4 ) tmp order by tmp.create_time desc limit :5 , :6|1|2|2||0|0|94170|94170|6|6|
|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|5|5||0|0|120774|120774|0|0|
|account|select id , tenant_id , tenant_wechatapp_id , account_type , user_id , mch_billno , send_name , mch_id , sub_mch_id , wxappid , msgappid , re_openid , total_amount , total_num , wishing , client_ip , act_name , remark , scene_id , risk_info , consume_mch_id , send_time , order_status , failure_reason , biz_id , biz_type , biz_tag , send_listid , need_callback , create_time , update_time , user_name , mobile_no , receive_time , refund_amount , refund_time from wx_redpacket_send_order where order_status in ( :1 , :2 ) order by id desc|1|1|1||0|0|36610|36610|21|21|
|mysql|alter table account.`account_flow` add `oper_type` int ( 2 ) default 1 comment '操作类型:1正常扣款,2冻结扣款,3解冻返款' after `remark`|1|225|225||0|0|0|0|0|0|
|coupon_service|select * from coupon_user where datediff ( date_format ( end_time , :1 ) , date_format ( now ( ) , :2 ) ) = :3 and coupon_state in ( :4 )|1|9|9||0|0|792948|792948|552|552|
|gift_mail|select count ( 0 ) from ( select p.* , sp.take_type , ifnull ( pp.integral_price , ifnull ( ( select min ( inventory.price ) from inventory where inventory.product_id = p.id ) , :1 ) ) as price , ifnull ( t.quantity , :2 ) quantity , pt.partner_name vendorname , 0.0 distance , c.categroy_name categroy_name , pp.partner_id partner_id from product p inner join category c on c.id = p.category_id left outer join self_product sp on p.id = sp.product_id left outer join partner_product pp on p.id = pp.product_id left outer join partner pt on pt.id = pp.partner_id left outer join ( select product_id , sum ( quantity ) quantity from gift_mail.inventory group by product_id ) t on p.id = t.product_id where ( ( p.is_disable is null or p.is_disable = :3 ) ) ) as p where ( p.tenant_id = :4 and p.partner_id = :5 )|1|1|1||0|0|18126|18126|1|1|
|mysql|update coupon_service.coupon set coupon_push_id = :1 , template_id = :2 where source = :3 and template_id = :4|1|2|2||0|0|793028|793028|0|0|
|comment_service|select *from comment_service.comment_reward where comment_id = :1 limit :2|1|1|1||0|0|70887|70887|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|153561|153561|1|1|
|employee|select id , tenant_id , tenant_app_id , employee_id , status , scene , data , begin_time , expire_time , member_erp_id , mobile_no , member_user_name , shop_id , finish_time , create_time from backlog where id = :1|1|15|15||0|0|0|0|0|0|
||/* applicationname = intellij idea 2019.3.1 */ select * from authorization_service.user_login_token where employee_id = :1 and tenant_id = :2|1|1|1||0|0|42858|42858|205|205|
|platform|select count ( 1 ) from `smssent` where vendorid = :1 and success = true and date_sub ( date ( :2 ) , interval :3 day ) = date_format ( senttime , :4 )|1|3|3||0|0|66068|66068|1|1|
|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|6550|6550|9|9|
|timer|update task_info set service = :1 , name = :2 , callback = :3 , params = :4 , cron = :5 , delay = null , next_time = null , status = :6 , create_time = :7 , update_time = :8 where id = :9|1|1|1||0|0|1|1|0|0|
|warranty_service|select *from warranty_service.warranty where upload_frequency <= :1 and version = :2 and warranty_img_url is null|1|15|15||0|0|508001|508001|0|0|
|mysql|delete from message_push.message_log where create_time < date_sub ( now ( ) , interval :1 day )|1|2|2||0|0|43196|43196|0|0|
||update coupon_service.coupon_push cp join coupon_service.coupon_get_center cgc on cgc.coupon_template_id = cp.template_id set source_id = cgc.id|1|4|4||0|0|4728000|4728000|0|0|
||/* applicationname = intellij idea 2019.3.1 */ select * from authorization_service.user_login_token where login_data = :1|1|14|14||0|0|2664187|2664187|0|0|
|account|/* applicationname = datagrip 2018.2.2 */ select * from employee.backlog where md5_str in ( select md5_str from employee.backlog group by md5_str having count ( * ) > :1 )|2|54|53||0|0|7693979|5118882|16472|15970|
|account|/* applicationname = datagrip 2018.2.2 */ select * from employee.backlog where user_id is null|2|145|120||0|0|3856694|2635742|1383524|1383022|
|account|/* applicationname = datagrip 2018.2.2 */ select max ( id ) from employee.backlog where user_id is null|2|88|45||0|0|5271484|2635742|2|1|
|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|2|4|3||0|0|162082|81045|7|4|
|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 ) and ue.tenant_wechatapp_id = :13 and tu.shop_id = :14 group by ue.employee_id|2|3|2||0|0|47730|23865|24|12|
|account|/* applicationname = datagrip 2018.2.2 */ select t.tenant_app_id , count ( * ) from ( select tenant_app_id , md5_str , count ( * ) from employee.backlog group by tenant_app_id , md5_str having count ( * ) > :1 ) t group by t.tenant_app_id|2|92|47||0|0|10248112|5124056|210|105|
|warranty_service|select count ( * ) from warranty where user_id = :1 and tenant_wechatapp_id = :2 and is_disable = :3|2|2|1||0|0|4721|3428|2|1|
||/* applicationname = datagrip 2018.2.2 */ select id from employee.backlog where md5_str in ( select md5_str from employee.backlog group by md5_str having count ( * ) > :1 )|2|11|7||0|0|7763695|5118882|16472|15970|
|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 ) and a.create_time >= :5 and a.create_time < :6 ) table_count|2|27|15||0|0|3325912|2091861|1|1|
|order|select id from order_operator_log where tenant_wechatapp_id = :1 and order_id = :2 and ( src_child_status = :3 and dst_child_status = :4 ) order by create_time desc limit :5|2|2|1||0|0|546580|273871|0|0|
|user_service|select count ( * ) from user_service.user_employee ue join user_service.tenant_user tu on tu.user_id = ue.user_id and tu.tenant_app_id = ue.tenant_wechatapp_id where ue.employee_id = :1 and ue.tenant_wechatapp_id = :2 and tu.shop_id = :3|3|10|4||0|0|125149|85124|3|1|
|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|3|5|3||0|0|1494162|498054|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|3|9|5||0|0|847514|512052|0|0|
|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|7|3||0|0|96611|62569|91|74|
|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|3|10|4||0|0|475413|158471|6|4|
|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 ) )|3|8|5||0|0|76297|27679|3|1|
|employee|update backlog set leave_flag = :1 where tenant_app_id = :2 and employee_id = :3|3|5|2||0|0|149181|86517|0|0|
|account|/* applicationname = datagrip 2018.2.2 */ select * from authorization_service.user_login_token where status = :1 order by create_time desc|3|7|4||0|0|12338601|4113371|1506|502|
|customize_page|select id , tenant_id , tenant_wechatapp_id , page_id , user_id , tenant_app_open_id , create_time , update_time , business_id , src_type , user_name , mobile_no , head_img from award_qualified where tenant_wechatapp_id = :1 and page_id = :2 and ( user_id = :3 or tenant_app_open_id = :4 )|4|6|2||0|0|201085|70194|0|0|
|coupon_service|select * from coupon_user where create_channel = :1 and tenant_wechatapp_id = :2 and channel_id = :3 limit :4|4|20|9||0|0|354594|122693|0|0|
||/* applicationname = intellij idea 2019.3.1 */ select c.constraint_name , c.table_name , c.constraint_type , r.match_option , r.update_rule , r.delete_rule from information_schema.table_constraints c left join information_schema.referential_constraints r on r.constraint_schema = c.constraint_schema and r.constraint_name = c.constraint_name where c.table_schema = :1|4|30|8||0|0|1186|320|46|35|
|account|/* applicationname = datagrip 2018.2.2 */ select * from employee.backlog where md5_str in ( select md5_str from employee.backlog group by md5_str having count ( * ) > :1 ) order by create_time desc|4|124|33||0|0|20293753|5134852|32442|15970|
|account|/* applicationname = datagrip 2018.2.2 */ select md5_str , count ( * ) from employee.backlog group by md5_str having count ( * ) > :1|4|87|60||0|0|10439243|2635742|175151|61649|
||/* applicationname = datagrip 2018.2.2 */ select * from employee.backlog where md5_str in ( select md5_str from employee.backlog group by md5_str having count ( * ) > :1 )|4|186|86||0|0|15224921|5118882|16472|15970|
|position|select * from geo_position where tenant_id = :1 and tenant_app_id = :2 and object_type = :3 and object_id = :4|5|31|9||0|0|5|1|5|1|
|account|/* applicationname = datagrip 2018.2.2 */ select max ( id ) from employee.backlog where update_time <= :1|5|223|56||0|0|13178710|2635742|5|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|5|20|11||0|0|226927|155816|5|1|
|platform|select `noteid` , `vendorid` , `detailindex` , `productname` , `productbarcode` , `category` , `salestype` , `quantity` , `amount` , `integral` , `productdesc` , `slid` , `paidamount` , `id` from `salesdetaillog` where `noteid` = :1 and `vendorid` = :2|6|18|5||0|0|175126|31140|20|6|
|user_service|select count ( 0 ) from user_employee ue join tenant_user tu on ue.user_id = tu.user_id and tu.tenant_id = :1 and tu.tenant_app_id = :2 join user u on tu.user_id = u.id where ue.employee_id = :3 and ue.tenant_id = :4 and ue.tenant_wechatapp_id = :5 and tu.shop_id = :6|6|10|3||0|0|503753|92234|6|1|
|user_service|select * from user_employee where employee_erp_id = :1 and tenant_id = :2 and date_format ( update_time , :3 ) = date_format ( now ( ) , :4 )|6|11|3||0|0|8131393|1355443|262|135|
|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|9|18|4||0|0|2454|809|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|10|15|2||0|0|1135|942|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|10|15|3||0|0|419178|72977|10|1|
|account|/* applicationname = datagrip 2018.2.2 */ select count ( * ) from ( select md5_str , count ( * ) from employee.backlog group by md5_str having count ( * ) > :1 ) t|13|48|13||0|0|33467967|2619376|13|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|17|23|3||0|0|1476628|121574|0|0|
|account|/* applicationname = datagrip 2018.2.2 */ select count ( * ) from employee.backlog where update_time <= :1|17|685|55||0|0|44807614|2635742|17|1|
|account|/* applicationname = datagrip 2018.2.2 */ select count ( * ) from employee.backlog where user_id is null|20|724|52||0|0|52714840|2635742|20|1|
|platform|select `typefullname` , `methodname` , `arguments` , `partition` , `offset` , `createtime` , `updatetime` , `retried` , `errormsg` , `id` from `pushlog` where `typefullname` = :1 and `methodname` = :2 and `arguments` = :3|20|41|3||0|0|4906411|252492|1|1|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|20|32|2||0|0|524907|31350|20|1|
|user_service|select count ( 0 ) from ( 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 ) table_count|22|43|5||0|0|2020019|163421|22|1|
|erp_sync|select * from retry_data where tenant_app_id = :1 and user_id = :2|22|40|3||0|0|147820|8910|37|4|
|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|23|46|4||0|0|1864585|81333|0|0|
|payment|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|24|49|4||0|0|263944|11169|263944|11169|
|gift_mail|select * from ( select p.* , sp.take_type , ifnull ( pp.integral_price , ifnull ( ( select min ( inventory.price ) from inventory where inventory.product_id = p.id ) , :1 ) ) as price , ifnull ( t.quantity , :2 ) quantity , pt.partner_name vendorname , 0.0 distance , c.categroy_name categroy_name , pp.partner_id partner_id from product p inner join category c on c.id = p.category_id left outer join self_product sp on p.id = sp.product_id left outer join partner_product pp on p.id = pp.product_id left outer join partner pt on pt.id = pp.partner_id left outer join ( select product_id , sum ( quantity ) quantity from gift_mail.inventory group by product_id ) t on p.id = t.product_id where ( ( p.is_disable is null or p.is_disable = :3 ) ) ) as p where ( p.tenant_id = :4 ) order by p.id desc limit :5 , :6|27|36|2||0|0|492050|18265|413|20|
|coupon_service|select count ( * ) from coupon where ( coupon_state = :1 and user_id = :2 and tenant_app_id = :3 and end_time > :4 )|28|57|8||0|0|2482600|122703|28|1|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|28|77|6||0|0|9022272|322224|28|1|
|order|select tenant_wechatapp_id from order_info where status = :1 and child_status is null group by tenant_wechatapp_id|28|44|3||0|0|1976723|70604|22|3|
|user_service|select count ( * ) from tenant_user where tenant_app_id = :1 and shop_id = :2 and mobile_no is not null and mobile_no != :3|29|110|14||0|0|2350500|158182|29|1|
|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 )|36|60|3||0|0|27159724|754448|24|11|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|36|80|4||0|0|931603|31139|36|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|39|98|8||0|0|4229995|108485|39|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 )|61|155|14||0|0|7053341|323879|121|2|
|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|75|126|4||0|0|4027134|96302|74|1|
|user_service|select count ( * ) from tenant_user t1 left join user_employee t3 on t1.user_id = t3.user_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_app_id = :3|89|470|15||0|0|9590392|169777|86|1|
|gift_mail|select * from ( select p.* , sp.take_type , ifnull ( pp.integral_price , ifnull ( ( select min ( inventory.price ) from inventory where inventory.product_id = p.id ) , :1 ) ) as price , ifnull ( t.quantity , :2 ) quantity , pt.partner_name vendorname , 0.0 distance , c.categroy_name categroy_name , pp.partner_id partner_id from product p inner join category c on c.id = p.category_id left outer join self_product sp on p.id = sp.product_id left outer join partner_product pp on p.id = pp.product_id left outer join partner pt on pt.id = pp.partner_id left outer join ( select product_id , sum ( quantity ) quantity from gift_mail.inventory group by product_id ) t on p.id = t.product_id where ( ( p.is_disable is null or p.is_disable = :3 ) ) ) as p where ( p.tenant_id = :4 ) order by p.id desc limit :5|124|185|3||0|0|2258352|18309|2130|20|
|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|144|403|15||0|0|8446846|121653|144|1|
|gift_mail|select count ( 0 ) from ( select p.* , sp.take_type , ifnull ( pp.integral_price , ifnull ( ( select min ( inventory.price ) from inventory where inventory.product_id = p.id ) , :1 ) ) as price , ifnull ( t.quantity , :2 ) quantity , pt.partner_name vendorname , 0.0 distance , c.categroy_name categroy_name , pp.partner_id partner_id from product p inner join category c on c.id = p.category_id left outer join self_product sp on p.id = sp.product_id left outer join partner_product pp on p.id = pp.product_id left outer join partner pt on pt.id = pp.partner_id left outer join ( select product_id , sum ( quantity ) quantity from gift_mail.inventory group by product_id ) t on p.id = t.product_id where ( ( p.is_disable is null or p.is_disable = :3 ) ) ) as p where ( p.tenant_id = :4 )|154|228|3||0|0|2801517|18289|154|1|
|employee|select * from backlog where tenant_app_id = :1 order by id desc limit :2 offset :3|345|395|2||0|0|163794002|718107|17250|50|
|employee|select * from backlog where tenant_app_id = :1 order by id limit :2 offset :3|526|832|13||0|0|316816174|1863718|51542|100|
# 运行日志
# 2020-02
[2020-02-07](2020-02-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-08](2020-02-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-09](2020-02-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-10](2020-02-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-11](2020-02-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-12](2020-02-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-13](2020-02-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-14](2020-02-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-16](2020-02-16/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-17](2020-02-17/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-18](2020-02-18/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-19](2020-02-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-20](2020-02-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-21](2020-02-21/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-23](2020-02-23/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-24](2020-02-24/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-25](2020-02-25/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-26](2020-02-26/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-27](2020-02-27/daily.md)&ensp;&ensp;&ensp;&ensp;
[2020-02-07](2020-02-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-08](2020-02-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-09](2020-02-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-10](2020-02-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-11](2020-02-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-12](2020-02-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-13](2020-02-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-14](2020-02-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-16](2020-02-16/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-17](2020-02-17/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-18](2020-02-18/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-19](2020-02-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-20](2020-02-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-21](2020-02-21/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-23](2020-02-23/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-24](2020-02-24/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-25](2020-02-25/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-26](2020-02-26/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-27](2020-02-27/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-02-28](2020-02-28/daily.md)&ensp;&ensp;&ensp;&ensp;
# 2020-01
[2020-01-01](2020-01-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-02](2020-01-02/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-05](2020-01-05/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-06](2020-01-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-07](2020-01-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-08](2020-01-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-09](2020-01-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-10](2020-01-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-12](2020-01-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-13](2020-01-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-14](2020-01-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-15](2020-01-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-16](2020-01-16/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-01-17](2020-01-17/daily.md)&ensp;&ensp;&ensp;&ensp;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论