提交 746d6533 authored 作者: zengzhi's avatar zengzhi

auto commit

上级 a444ac4b
# 2019年09月10日运行日报:https://git.sjfx.com.cn/report/daily/blob/master/2019-09-10/daily.md
## 服务器情况
|服务器 |CPU使用率 |内存使用率 |主硬盘使用率 |查看详情 |
| :- | :-: | :-: | :-: | :- |
|v3nginx |- |- |- |http://47.98.156.252:17123/|
|v3-publish |5.91% |40.3% |55.2% |http://47.110.9.96:17123/|
|v3-base-mq001 |2.85% |77% |33.4% |http://114.55.171.242:17123/|
|v3-base-mq002 |4.37% |68.2% |23.6% |http://47.110.226.218:17123/|
|proxy-local |3.36% |**80.9%** |22.5% |http://47.96.14.81:17123/|
|v3eureka001 |11.2% |73.1% |32.9% |http://47.110.137.241:17123/|
|v3eureka002 |8.73% |**84.3%** |42.7% |http://114.55.171.107:17123/|
|v3-gateway001 |2.9% |60.4% |47.7% |http://47.111.11.230:17123/|
|v3-gateway002 |2.11% |50.9% |50.9% |http://47.110.14.10:17123/|
|v3-gateway003 |2.83% |**81.4%** |43.6% |http://47.110.12.94:17123/|
|v3-gateway004 |2.85% |79.1% |43.4% |http://114.55.169.175:17123/|
|v3-BS-F001 |7.41% |79% |22.6% |http://47.98.220.95:17123/|
|v3-BS-F002 |9.15% |79.6% |30% |http://47.111.105.30:17123/|
|v3-BS-F003 |8.57% |79.6% |26.6% |http://47.111.105.137:17123/|
|v3-BS-F004 |6.13% |56.2% |21.9% |http://47.111.105.218:17123/|
|v3-BS-H001 |5.97% |78.5% |22.8% |http://47.111.169.175:17123/|
|v3-BS-H002 |9.52% |**82.2%** |28.8% |http://114.55.171.6:17123/|
|v3-BS-H003 |8.54% |**80.3%** |27.1% |http://47.111.186.205:17123/|
|v3-BS-H004 |6% |56.1% |21.7% |http://114.55.209.3:17123/|
|v3-BS-G001 |6.72% |79.9% |22.6% |http://114.55.243.46:17123/|
|v3-BS-G002 |1.97% |22.2% |17.5% |http://47.98.158.5:17123/|
|v3-BS-G003 |8.62% |77.9% |23.3% |http://47.98.220.48:17123/|
|v3-BS-G004 |9.16% |67.9% |23.6% |http://47.111.79.177:17123/|
|v3-BS-I001 |6.08% |79.4% |22.2% |http://114.55.243.77:17123/|
|v3-BS-I002 |2.06% |21.9% |17.4% |http://114.55.242.246:17123/|
|v3-BS-I003 |8.32% |75.3% |23.3% |http://47.110.15.201:17123/|
|v3-BS-I004 |9.2% |73.3% |23.7% |http://114.55.243.68:17123/|
|v3-tag |1.75% |50.1% |32.9% |http://47.110.13.5:17123/|
## 数据库情况
### rm-bp1qn4bl8d8p9mnm4
内存使用率: 最小值 49.6% 最大值 49.8% 平均值 0.0346314325452017%
CPU使用率: 最小值 0% 最大值 68.71% 平均值 7.97876912378296%
每秒IO请求次数: 最小值 0 最大值 1235.25 平均值 60.4167385257304
连接数: 最小值 391 最大值 440 平均值 407.608484005563
活跃连接数: 最小值 0 最大值 10 平均值 0.186369958275382
空间使用量: 总使用量;59717MB 数据使用量;56224MB 日志使用量;361MB 临时使用量;2MB 系统使用量:3130MB
### rr-bp13k3q7292ce5t6k
内存使用率: 最小值 45.1% 最大值 45.1% 平均值 22.55%
CPU使用率: 最小值 0% 最大值 0% 平均值 0%
每秒IO请求次数: 最小值 4.15 最大值 5.6 平均值 4.875
连接数: 最小值 63 最大值 63 平均值 63
活跃连接数: 最小值 0 最大值 0 平均值 0
空间使用量: 总使用量;59325MB 数据使用量;56041MB 日志使用量;360MB 临时使用量;0MB 系统使用量:2924MB
### rm-bp1piz35u161jjc92
内存使用率: 最小值 48.7% 最大值 48.7% 平均值 5.41111111111111%
CPU使用率: 最小值 0.18% 最大值 1.89% 平均值 0.401111111111111%
每秒IO请求次数: 最小值 0.3 最大值 173.9 平均值 22.2577777777778
连接数: 最小值 88 最大值 88 平均值 88
活跃连接数: 最小值 1 最大值 1 平均值 1
空间使用量: 总使用量;81009MB 数据使用量;69279MB 日志使用量;3152MB 临时使用量;1MB 系统使用量:8577MB
慢日志:[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 20736475
zk_packets_sent 20764771
zk_num_alive_connections 51
zk_outstanding_requests 0
zk_server_state leader
zk_znode_count 2644
zk_watch_count 1480
zk_ephemerals_count 1431
zk_approximate_data_size 799862
zk_open_file_descriptor_count 85
zk_max_file_descriptor_count 1048576
zk_followers 3
zk_synced_followers 3
zk_pending_syncs 0
## Redis情况
Cpu使用率:0.95%
已用内存:125970700.00Byte
每秒总访问量:180.33
已用连接数:1451.17
键总数:43873.00
设置过期时间的key数量:43869.00
每秒请求次数:94.44 最大每秒请求次数:2435.27
每秒回复次数:784.77 最大每秒回复次数:7397.94
## 昨日注册情况
![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-09T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-10T15%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-09-02T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-10T15%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-09T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-10T15%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-09T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-10T15%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-09T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-10T15%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-09-02T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-10T15%3A59%3A59.999Z')))
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|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|176761|176761|0|0|
||/* applicationname = intellij idea 2019.1 */ select * from erp_sync.sync_record where user_id = :1 and tenant_id = :2 and tenant_app_id = :3|1|27|27||0|0|259374|259374|7|7|
|platform|select * from ( select * from coupondetail where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and expirytime >= now ( ) ) as tv limit :4 , :5|1|3|3||0|0|319201|319201|0|0|
|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|1|1|1||0|0|15121|15121|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|4|4||0|0|120774|120774|0|0|
|warranty_service|select count ( 0 ) from warranty_service.warranty where tenant_wechatapp_id = :1 and is_disable = false and dept_erp_id = :2 and employee_erp_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 )|1|6|6||0|0|29392|29392|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|3|3||0|0|66068|66068|1|1|
|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|
|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|633265|633265|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 ) )|1|1|1||0|0|44840|44840|1|1|
|activity_service|select count ( 0 ) from activity_service.user_trace t1 join activity_service.activity t2 on t1.activity_id = t2.id where t1.status = :1 and t2.tenant_wechatapp_id = :2 and t2.activity_type = :3 and t1.step = :4|1|7|7||0|0|923998|923998|1|1|
|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|1|2|2||0|0|196807|196807|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 ) table_count|1|13|13||0|0|4702073|4702073|1|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|1|1|1||0|0|14288|14288|349|349|
|message_push|delete from message_log where create_time < :1|1|17|17||0|0|215672|215672|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|8|8||0|0|510665|510665|995|995|
|platform|select sum ( quantity ) from salesdetaillog where salestype = :1 and slid in ( select id from saleslog where vendorid = :2 and `status` = :3 and date_format ( salesdate , :4 ) >= :5 and date_format ( salesdate , :6 ) < :7 )|1|2|2||0|0|50040|50040|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|319201|319201|1|1|
|mysql|delete from payment.job_status_trace_log where creation_time < date_sub ( now ( ) , interval :1 day )|1|1|1||0|0|143375|143375|0|0|
|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 , :12 , :13 )|1|8|8||0|0|66594|66594|1|1|
|warranty_service|select count ( 0 ) from warranty_service.warranty where tenant_wechatapp_id = :1 and is_disable = false and sales_date >= :2 and sales_date <= :3|1|4|4||0|0|18882|18882|1|1|
|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|2|2|1||0|0|108247|54141|2|1|
|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|2|5|3||0|0|640068|320034|250|125|
|order|select tenant_wechatapp_id from order_info where status = :1 and child_status is null group by tenant_wechatapp_id|2|4|3||0|0|94741|47371|14|7|
|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|2|2|1||0|0|12576|6292|2914|1458|
|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 ) )|2|5|4||0|0|456836|231438|313|313|
||/* applicationname = intellij idea 2019.1 */ select * from user_service.erp_member where mobile_no = :1|2|49|26||0|0|9979481|4989787|1|1|
|user_service|-- 获取会员的一些信息 线下数据展示 select id , tenant_id , tenant_wechatapp_id , erp_member_id , mobile_no , user_name , sex , birthday , birthday_is_lunar , home_address , memorialday , memorialday_name , memorialday_is_lunar , interested , amount , create_time , update_time from erp_member_info where :1 = :2 and tenant_id = :3 order by tenant_id limit :4|2|6|3||0|0|9387362|4693681|40|20|
|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|2|5|3||0|0|638602|319301|40|20|
|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|2|2|1||0|0|28315|14159|0|0|
|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|3|4|2||0|0|198334|66189|0|0|
|platform|select count ( 1 ) 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|3|8|4||0|0|1094670|364890|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|91314|62567|85|71|
|user_service|select count ( 0 ) from erp_member_info where :1 = :2 and tenant_id = :3|3|25|15||0|0|13314766|4969773|2|1|
|coupon_service|select cu.id , cu.coupon_name , cu.coupon_type , cu.coupon_no , cu.create_channel , cu.coupon_state , cu.user_name , cu.creator_name , cu.face_value , cu.begin_time , cu.end_time , cu.remark , cu.mobile_no , cu.creator_mobile_no , cu.create_time , wol.create_time as writeofftime , r.create_time as reservationdate , r.shop_name as reservationshopname , wol.writeoff_user_name , wol.writeoff_shop_id as shopid , wol.dept_erp_id as erpdeptid from coupon_service.coupon_user cu left join coupon_service.write_off_log wol on wol.coupon_user_id = cu.id and wol.state = :1 left join coupon_service.reservation r on r.coupon_user_id = cu.id and r.state = :2 left join coupon_service.grant_info gi on gi.coupon_user_id = cu.id where cu.tenant_wechatapp_id = :3 and cu.coupon_template_id = :4 and cu.create_channel = :5 limit :6|3|11|4||0|0|232040|77347|140|100|
|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|3|6|3||0|0|1917705|639235|3|1|
|coupon_service|select count ( 0 ) from coupon_service.coupon_user cu left join coupon_service.write_off_log wol on wol.coupon_user_id = cu.id and wol.state = :1 left join coupon_service.reservation r on r.coupon_user_id = cu.id and r.state = :2 left join coupon_service.grant_info gi on gi.coupon_user_id = cu.id where cu.tenant_wechatapp_id = :3 and cu.coupon_template_id = :4 and cu.create_channel = :5|3|5|2||0|0|232040|77347|3|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|4|6|2||0|0|1290|1280|0|0|
|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|4|7|3||0|0|57761|15879|80|20|
|employee|update backlog set leave_flag = :1 where tenant_app_id = :2 and employee_id = :3|4|6|2||0|0|185865|59019|0|0|
|facepass_sync|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|5|6|1||0|0|10431|2100|10431|2100|
|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|5|19|7||0|0|2554425|511180|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|7|8|2||0|0|994|290|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 ( tenant_id = :1 and account_id = :2 and status = :3 )|7|13|3||0|0|462544|114174|12|2|
|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|7|15|4||0|0|365367|53205|6|2|
|account|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|10|11|1||0|0|20914|2118|20914|2118|
|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|12|20|4||0|0|2374560|197880|0|0|
|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|15|28|2||0|0|3038276|202645|15|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 )|17|25|2||0|0|10768225|633425|11|6|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|20|49|5||0|0|6384020|319201|20|1|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|22|38|3||0|0|487295|38774|22|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|23|32|4||0|0|2941547|199913|23|1|
|platform|select `typefullname` , `methodname` , `arguments` , `partition` , `offset` , `createtime` , `updatetime` , `retried` , `errormsg` , `id` from `pushlog` where `typefullname` = :1 and `methodname` = :2 and `arguments` = :3|24|33|2||0|0|5585649|244692|2|1|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|42|100|4||0|0|1897029|110498|42|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 )|45|277|15||0|0|3883924|192526|37|1|
# 运行日志 # 运行日志
# 2019-09 # 2019-09
[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-09-03](2019-09-03/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-04](2019-09-04/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-05](2019-09-05/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-06](2019-09-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-08](2019-09-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-09](2019-09-09/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-09-03](2019-09-03/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-04](2019-09-04/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-05](2019-09-05/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-06](2019-09-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-08](2019-09-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-09](2019-09-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-09-10](2019-09-10/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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论