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

auto commit

上级 15dca802
# 2020年04月24日运行日报:https://git.sjfx.com.cn/report/daily/blob/master/2020-04-24/daily.md
## 服务器情况
|服务器 |CPU使用率 |内存使用率 |主硬盘使用率 |查看详情 |
| :- | :-: | :-: | :-: | :- |
|v3nginx |- |- |- |http://47.98.156.252:17123/|
|v3-publish |5.65% |53% |49.2% |http://47.110.9.96:17123/|
|v3-base-mq001 |3.59% |72% |35.9% |http://114.55.171.242:17123/|
|v3-base-mq002 |4.08% |72% |26.3% |http://47.110.226.218:17123/|
|proxy-local |2.61% |66.4% |23.5% |http://47.96.14.81:17123/|
|v3eureka001 |8.98% |67.9% |28.2% |http://47.110.137.241:17123/|
|v3eureka002 |9.46% |**82.5%** |38.7% |http://114.55.171.107:17123/|
|v3-gateway001 |2.82% |60.3% |55.1% |http://47.111.11.230:17123/|
|v3-gateway002 |2.3% |45.1% |57.8% |http://47.110.14.10:17123/|
|v3-gateway003 |2.72% |78.1% |52.5% |http://47.110.12.94:17123/|
|v3-gateway004 |2.83% |78.4% |52.2% |http://114.55.169.175:17123/|
|v3-BS-F001 |5.79% |75.9% |19.8% |http://47.98.220.95:17123/|
|v3-BS-F002 |8.95% |61.5% |22.8% |http://47.111.105.30:17123/|
|v3-BS-F003 |5.12% |73.4% |27.1% |http://47.111.105.137:17123/|
|v3-BS-F004 |6.38% |**82.4%** |22.5% |http://47.111.105.218:17123/|
|v3-BS-H001 |5.07% |76.8% |19.7% |http://47.111.169.175:17123/|
|v3-BS-H002 |8.7% |63.2% |22.9% |http://114.55.171.6:17123/|
|v3-BS-H003 |5.02% |77.6% |26.7% |http://47.111.186.205:17123/|
|v3-BS-H004 |5.97% |**80.7%** |22.6% |http://114.55.209.3:17123/|
|v3-BS-G001 |6.56% |78% |19.1% |http://114.55.243.46:17123/|
|v3-BS-G002 |22.5% |62.8% |30.6% |http://47.98.158.5:17123/|
|v3-BS-G003 |5.42% |**84.9%** |24.7% |http://47.98.220.48:17123/|
|v3-BS-G004 |6% |75.9% |24% |http://47.111.79.177:17123/|
|v3-BS-I001 |5.19% |79.4% |21.6% |http://114.55.243.77:17123/|
|v3-BS-I002 |22.5% |64.9% |30.3% |http://114.55.242.246:17123/|
|v3-BS-I003 |5.8% |**81.3%** |19.3% |http://47.110.15.201:17123/|
|v3-BS-I004 |5.19% |**82.4%** |23.4% |http://114.55.243.68:17123/|
|v3-tag |2.47% |79% |23.2% |http://47.110.13.5:17123/|
## 数据库情况
### rm-bp1qn4bl8d8p9mnm4
内存使用率: 最小值 39.09% 最大值 39.35% 平均值 0.0273453787352328%
CPU使用率: 最小值 1.12% 最大值 100% 平均值 11.7275677553856%
每秒IO请求次数: 最小值 0.02 最大值 1949.8 平均值 77.4595413481585
连接数: 最小值 413 最大值 434.35 平均值 419.636601806811
活跃连接数: 最小值 0 最大值 4.4 平均值 0.267143849895759
空间使用量: 总使用量;80371.73MB 数据使用量;74978.62MB 日志使用量;906.36MB 临时使用量;0.07MB 系统使用量:4486.69MB
### rr-bp13k3q7292ce5t6k
内存使用率: 最小值 33.93% 最大值 33.93% 平均值 33.93%
CPU使用率: 最小值 3.63% 最大值 3.63% 平均值 3.63%
每秒IO请求次数: 最小值 37.36 最大值 37.36 平均值 37.36
连接数: 最小值 60.01 最大值 60.01 平均值 60.01
活跃连接数: 最小值 0.06 最大值 0.06 平均值 0.06
空间使用量: 总使用量;79134.5MB 数据使用量;74822.12MB 日志使用量;1163.7MB 临时使用量;0.01MB 系统使用量:3148.68MB
### rm-bp1piz35u161jjc92
内存使用率: 最小值 46.85% 最大值 46.85% 平均值 5.20555555555556%
CPU使用率: 最小值 0.2% 最大值 74.6% 平均值 23.35%
每秒IO请求次数: 最小值 3.7 最大值 1793.93 平均值 615.541111111111
连接数: 最小值 83 最大值 83 平均值 83
活跃连接数: 最小值 0 最大值 3.78 平均值 1.14666666666667
空间使用量: 总使用量;56646.74MB 数据使用量;46037.39MB 日志使用量;4464.36MB 临时使用量;2.17MB 系统使用量:6142.82MB
慢日志:[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 90323734
zk_packets_sent 90412582
zk_num_alive_connections 40
zk_outstanding_requests 0
zk_server_state leader
zk_znode_count 3150
zk_watch_count 936
zk_ephemerals_count 1765
zk_approximate_data_size 998360
zk_open_file_descriptor_count 74
zk_max_file_descriptor_count 1048576
zk_followers 3
zk_synced_followers 3
zk_pending_syncs 0
## Redis情况
Cpu使用率:0.60%
已用内存:114434600.00Byte
每秒总访问量:135.58
已用连接数:1496.33
键总数:22391.00
设置过期时间的key数量:22384.00
每秒请求次数:77.96 最大每秒请求次数:2606.33
每秒回复次数:1147.83 最大每秒回复次数:7261.25
## 昨日注册情况
![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-04-23T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-04-24T15%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-04-16T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-04-24T15%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-04-23T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-04-24T15%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-04-23T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-04-24T15%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-04-23T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-04-24T15%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-04-16T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-04-24T15%3A59%3A59.999Z')))
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|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 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.product_type = :5 )|214|318|2||0|0|4134592|19384|214|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 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.product_type = :5 ) order by p.id desc limit :6|185|272|1||0|0|3576422|19404|2064|20|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|47|78|4||0|0|1418287|34750|47|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|46|264|14||0|0|4021599|179577|46|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 )|39|72|3||0|0|29640009|760016|22|10|
|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 )|37|63|4||0|0|8220101|372986|74|2|
|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|30|68|6||0|0|2438969|141386|0|0|
|authorization_service|select id , user_id , tenant_id , tenant_wx_app_id , account_id , login_way , login_code , login_token , roles , status , expire_time , create_time , update_time , login_ip , login_time , login_data , employee_id , shop_id 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|30|50|6||0|0|2219643|118629|30|1|
|platform|select `typefullname` , `methodname` , `arguments` , `partition` , `offset` , `createtime` , `updatetime` , `retried` , `errormsg` , `id` from `pushlog` where `typefullname` = :1 and `methodname` = :2 and `arguments` = :3|28|53|2||0|0|7132996|254786|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|26|37|2||0|0|1696864|77327|26|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|26|34|2||0|0|1739805|102064|26|1|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|24|36|2||0|0|691278|32686|24|1|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|22|47|4||0|0|7089008|322234|22|1|
|wx_gateway|select * from wx_user where user_id = :1 and open_id not like :2 limit :3|16|64|6||0|0|21311253|1764608|16|1|
|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|14|66|15||0|0|1033429|172507|13|1|
|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|11|16|2||0|0|435654|42427|0|0|
|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|11|15|2||0|0|1382536|182802|11|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 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.product_status = :4 and p.tenant_id = :5 )|11|16|1||0|0|212290|19301|11|1|
|warranty_service|select *from warranty_service.warranty where tenant_wechatapp_id = :1 and upload_frequency <= :2 and version = :3 and warranty_img_url is null|11|33|9||0|0|376273|90480|0|0|
|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 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.product_type = :5 ) order by p.id desc limit :6 , :7|10|14|1||0|0|194168|19440|188|20|
|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|9|18|4||0|0|1049564|116925|27|3|
|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 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.product_status = :4 and p.tenant_id = :5 ) order by p.id desc limit :6|8|12|1||0|0|154416|19302|8|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|8|15|4||0|0|224928|34760|18|4|
|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|8|22|3||0|0|1143120|192387|23|6|
|coupon_service|select count ( * ) from coupon where ( coupon_state = :1 and user_id = :2 and tenant_app_id = :3 and end_time > :4 )|5|6|1||0|0|419217|102476|5|1|
|order|select max ( create_time ) from `order`.order_operator_log where tenant_wechatapp_id = :1 and order_id = :2|5|5|1||0|0|1512864|302662|5|1|
|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|5|7|1||0|0|122|32|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|4|6|2||0|0|471428|158549|1|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|9|5||0|0|98036|62557|77|61|
|platform|select * from ( select c.* , cd.getamount , useamount from coupon c left join ( select couponid , sum ( if ( couponstate in ( 3 , 6 , 4 ) , 1 , 0 ) ) as getamount , sum ( if ( couponstate = 4 , 1 , 0 ) ) as useamount from coupondetail group by couponid ) cd on c.id = cd.couponid ) as tv where :1 = :2 and vendorid = :3 order by effectivedate desc limit :4 , :5|3|5|2||0|0|968473|322833|7|3|
|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|3|3|1||0|0|11563|4104|3|1|
|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|2|2|1||0|0|199793|105724|2|1|
|warranty_service|select count ( 0 ) from warranty_service.warranty where tenant_wechatapp_id = :1 and is_disable = false and sales_no = :2|2|11|6||0|0|74847|37424|2|1|
|user_service|select count ( 0 ) from `user` where user_name like concat ( :1 , :2 , :3 ) or mobile_no = :4 or nick_name like concat ( :5 , :6 , :7 )|2|30|15||0|0|6784325|3453439|0|0|
|comment_service|select *from comment_service.comment_reward where comment_id = :1 limit :2|2|2|1||0|0|155666|77847|2|1|
|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|2|3|1||0|0|608|426|0|0|
|platform|select sum ( getquantity ) as getquantity , sum ( usequantity ) as usequantity , sum ( ( amount-getquantity ) ) as nogetquantity from ( select ifnull ( getquantity , 0 ) as getquantity , ifnull ( usequantity , 0 ) as usequantity , ifnull ( amount , 0 ) as amount from coupon c left join ( select ifnull ( count ( couponid ) , 0 ) getquantity , couponid from coupondetail where couponstate != :1 and couponstate != :2 group by couponid ) coupongetquantity on c.id = coupongetquantity.couponid left join ( select ifnull ( count ( couponid ) , 0 ) usequantity , couponid from coupondetail where couponstate = :3 group by couponid ) couponusequantity on c.id = couponusequantity.couponid where vendorid = :4 and coupontype = :5 ) c|2|4|3||0|0|1290111|645067|2|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 in ( :6 , :7 ) and expire_time >= :8 order by create_time desc limit :9|2|8|4||0|0|380987|192387|8|7|
|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 in ( :6 , :7 ) and expire_time >= :8|1|1|1||0|0|4792|4792|1|1|
|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|
|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 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.product_status = :4 and p.tenant_id = :5 and p.categroy_name like :6 and p.take_type = :7 )|1|1|1||0|0|19298|19298|1|1|
|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|40325|40325|7|7|
|user_service|select count ( 0 ) from erp_member_info where :1 = :2|1|7|7||0|0|6715894|6715894|1|1|
|platform|select * from ( select ta.`*` , ifnull ( s.shopname , '' ) as `shopname` , m.id as userid , sl.id as sid , sl.amounttotal , sl.salesdate , sl.staffattitude , sl.professionallevel , sl.appearance , sl.storeimage , sl.productdisplay , sl.salescomment , sl.commenttime , sl.tipfee , sl.tippaytime , vm.username , ifnull ( vm.gradename , '' ) as `gradename` from taskassignment ta join saleslog sl on ta.bid = sl.id join vendormember vm on ta.uid = vm.uid join `member` m on ta.uid = m.id left join shop s on sl.sid = s.id where ta.tasktype = :1 and ( ta.taskstatus = :2 or ta.taskstatus = :3 ) and ta.uid = :4 ) as tv order by tasktime desc limit :5 , :6|1|1|1||0|0|11|11|2|2|
|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|
|mysql|delete from wx_gateway.wx_template_msg where create_time < date_sub ( now ( ) , interval :1 day )|1|30|30||0|0|911255|911255|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 , :22 , :23 , :24 , :25 ) and ue.tenant_wechatapp_id = :26 and tu.shop_id = :27 group by ue.employee_id|1|1|1||0|0|105738|105738|24|24|
|coupon_service|select * from coupon_user where datediff ( date_format ( end_time , :1 ) , date_format ( now ( ) , :2 ) ) = :3 and coupon_state in ( :4 )|1|14|14||0|0|792948|792948|284|284|
|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|2|2||0|0|77790|77790|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|17411|17411|13|13|
|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 , :7 , :8 ) )|1|2|2||0|0|30187|30187|1|1|
|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|6|6||0|0|120774|120774|0|0|
|message_push|delete from message_log where create_time < :1|1|16|16||0|0|176296|176296|0|0|
|platform|select * from ( select c.* , s.empname , sp.shopname as usestore , vm.username , m.mobileno as userphone from coupondetail c left join saleslog s on c.usenoteid = s.noteid left join shop sp on sp.id = s.sid left join member m on m.id = c.getuid left join vendormember vm on m.vendormemberid = vm.id where ( s.vendorid = :1 or s.vendorid is null ) and c.vendorid = :2 and ( c.couponstate = :3 or c.couponstate = :4 or c.couponstate = :5 ) ) as tv where :6 = :7 order by createtime desc limit :8 , :9|1|2|2||0|0|322294|322294|14|14|
|employee|update backlog set leave_flag = :1 where tenant_app_id = :2 and employee_id = :3|1|2|2||0|0|67817|67817|0|0|
|order|select od.id , od.order_no orderno , od.status , od.take_type taketype , od.create_time createtime , od.remark , od.total_fee totalfee , od.freight_fee freightfee , od.discount_fee discountfee , od.take_id takeid , od.payment_fee paymentfee , dt.product_id productid , dt.price , dt.quantity , dt.sku_id skuid , dt.art_no artno , dt.image_url imageurl , dt.product_name productname , dt.take_remark takeremark , dt.take_day takeday , od.product_fee productfee , od.finish_type finishtype , od.send_time sendtime , od.receive_time receivetime , od.finish_time finishtime , od.child_status childstatus , od.send_good_remark sendgoodremark , od.service_flag serviceflag , od.coupon_id couponid , od.tenant_wechatapp_id tenantappid , od.tenant_id tenantid , od.pay_id payid , od.user_id userid , od.user_name username , od.mobile_no buymobileno , od.activity_id , od.offline_payment_fee , od.activity_type , dt.spec , od.take_shop_id , od.take_shop_name , od.take_employee_user_id , od.take_employee_user_name from order_info od left join order_detail dt on od.id = dt.order_id where od.status = :1 and od.receive_time <= :2|1|1|1||0|0|77826|77826|40|40|
|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|760016|760016|1|1|
||select * from user_service.erp_member where grade_erp_id < :1 limit :2|1|20|20||0|0|6469465|6469465|0|0|
|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 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|13|13||0|0|192975|192975|1|1|
|mysql|insert into erp_sync.sync_record_20190924 select * from erp_sync.sync_record where create_time < date_sub ( now ( ) , interval :1 day )|1|10|10||0|0|556767|556767|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|324290|324290|0|0|
# 运行日志
# 2020-04
[2020-04-01](2020-04-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-02](2020-04-02/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-06](2020-04-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-07](2020-04-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-08](2020-04-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-09](2020-04-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-10](2020-04-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-12](2020-04-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-13](2020-04-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-14](2020-04-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-15](2020-04-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-16](2020-04-16/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-19](2020-04-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-20](2020-04-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-21](2020-04-21/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-22](2020-04-22/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-23](2020-04-23/daily.md)&ensp;&ensp;&ensp;&ensp;
[2020-04-01](2020-04-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-02](2020-04-02/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-06](2020-04-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-07](2020-04-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-08](2020-04-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-09](2020-04-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-10](2020-04-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-12](2020-04-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-13](2020-04-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-14](2020-04-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-15](2020-04-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-16](2020-04-16/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-19](2020-04-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-20](2020-04-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-21](2020-04-21/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-22](2020-04-22/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-23](2020-04-23/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-24](2020-04-24/daily.md)&ensp;&ensp;&ensp;&ensp;
# 2020-03
[2020-03-23](2020-03-23/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-24](2020-03-24/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-25](2020-03-25/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-26](2020-03-26/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-27](2020-03-27/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-29](2020-03-29/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-01](2020-03-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-02](2020-03-02/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-03](2020-03-03/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-04](2020-03-04/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-05](2020-03-05/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-06](2020-03-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-08](2020-03-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-09](2020-03-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-10](2020-03-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-11](2020-03-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-12](2020-03-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-15](2020-03-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-16](2020-03-16/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-17](2020-03-17/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-18](2020-03-18/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-19](2020-03-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-03-22](2020-03-22/daily.md)&ensp;&ensp;&ensp;&ensp;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论