提交 383b296d authored 作者: zengzhi's avatar zengzhi

auto commit

上级 fa0c2825
# 2019年12月16日运行日报:https://git.sjfx.com.cn/report/daily/blob/master/2019-12-16/daily.md
## 服务器情况
|服务器 |CPU使用率 |内存使用率 |主硬盘使用率 |查看详情 |
| :- | :-: | :-: | :-: | :- |
|v3nginx |- |- |- |http://47.98.156.252:17123/|
|v3-publish |6.87% |49% |52.2% |http://47.110.9.96:17123/|
|v3-base-mq001 |3.57% |76% |34% |http://114.55.171.242:17123/|
|v3-base-mq002 |3.25% |73.5% |24.5% |http://47.110.226.218:17123/|
|proxy-local |2.83% |71.9% |22.1% |http://47.96.14.81:17123/|
|v3eureka001 |9.08% |77.6% |25.8% |http://47.110.137.241:17123/|
|v3eureka002 |21.2% |77.7% |59.8% |http://114.55.171.107:17123/|
|v3-gateway001 |2.62% |59.5% |41.7% |http://47.111.11.230:17123/|
|v3-gateway002 |2.21% |46.1% |42.6% |http://47.110.14.10:17123/|
|v3-gateway003 |2.92% |76.8% |38.3% |http://47.110.12.94:17123/|
|v3-gateway004 |2.99% |76.6% |37.5% |http://114.55.169.175:17123/|
|v3-BS-F001 |5.12% |70.1% |18.6% |http://47.98.220.95:17123/|
|v3-BS-F002 |7.75% |48.8% |26.9% |http://47.111.105.30:17123/|
|v3-BS-F003 |5.56% |76.9% |20.7% |http://47.111.105.137:17123/|
|v3-BS-F004 |7.61% |78.7% |20.5% |http://47.111.105.218:17123/|
|v3-BS-H001 |4.61% |66.4% |18.6% |http://47.111.169.175:17123/|
|v3-BS-H002 |7.69% |48.4% |26.3% |http://114.55.171.6:17123/|
|v3-BS-H003 |4.99% |78.6% |20.7% |http://47.111.186.205:17123/|
|v3-BS-H004 |7.17% |77.9% |20.9% |http://114.55.209.3:17123/|
|v3-BS-G001 |5.04% |71.9% |18.3% |http://114.55.243.46:17123/|
|v3-BS-G002 |4.72% |37.3% |18.3% |http://47.98.158.5:17123/|
|v3-BS-G003 |6.83% |78.4% |19.8% |http://47.98.220.48:17123/|
|v3-BS-G004 |6.03% |68.1% |24% |http://47.111.79.177:17123/|
|v3-BS-I001 |4.76% |72% |20.4% |http://114.55.243.77:17123/|
|v3-BS-I002 |4.9% |35.2% |18.2% |http://114.55.242.246:17123/|
|v3-BS-I003 |7.45% |77.5% |19.5% |http://47.110.15.201:17123/|
|v3-BS-I004 |6.54% |73.5% |22.5% |http://114.55.243.68:17123/|
|v3-tag |2.31% |69.1% |17% |http://47.110.13.5:17123/|
## 数据库情况
### rm-bp1qn4bl8d8p9mnm4
内存使用率: 最小值 0% 最大值 38.85% 平均值 0.026997915218902%
CPU使用率: 最小值 0% 最大值 88.44% 平均值 7.75341904100071%
每秒IO请求次数: 最小值 0 最大值 1975.15 平均值 64.119610840862
连接数: 最小值 0 最大值 437.17 平均值 414.777943015982
活跃连接数: 最小值 0 最大值 3.68 平均值 0.203829047949962
空间使用量: 总使用量;66339.72MB 数据使用量;62597.16MB 日志使用量;478.55MB 临时使用量;3.17MB 系统使用量:3260.83MB
### rr-bp13k3q7292ce5t6k
内存使用率: 最小值 33.75% 最大值 33.75% 平均值 33.75%
CPU使用率: 最小值 0.41% 最大值 0.41% 平均值 0.41%
每秒IO请求次数: 最小值 4.44 最大值 4.44 平均值 4.44
连接数: 最小值 60.92 最大值 60.92 平均值 60.92
活跃连接数: 最小值 0 最大值 0 平均值 0
空间使用量: 总使用量;65966.26MB 数据使用量;62381.2MB 日志使用量;482.51MB 临时使用量;1.38MB 系统使用量:3101.17MB
### rm-bp1piz35u161jjc92
内存使用率: 最小值 46.53% 最大值 46.54% 平均值 5.17111111111111%
CPU使用率: 最小值 0.19% 最大值 2% 平均值 0.564444444444444%
每秒IO请求次数: 最小值 3.78 最大值 167.45 平均值 33.1133333333333
连接数: 最小值 84 最大值 84 平均值 84
活跃连接数: 最小值 0 最大值 0.13 平均值 0.0244444444444444
空间使用量: 总使用量;51649.05MB 数据使用量;42053.89MB 日志使用量;3590.3MB 临时使用量;2.04MB 系统使用量:6002.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 809
zk_min_latency 0
zk_packets_received 44999948
zk_packets_sent 45072890
zk_num_alive_connections 41
zk_outstanding_requests 0
zk_server_state leader
zk_znode_count 2872
zk_watch_count 1326
zk_ephemerals_count 1605
zk_approximate_data_size 893239
zk_open_file_descriptor_count 75
zk_max_file_descriptor_count 1048576
zk_followers 3
zk_synced_followers 3
zk_pending_syncs 0
## Redis情况
Cpu使用率:0.60%
已用内存:108607500.00Byte
每秒总访问量:106.17
已用连接数:1556.00
键总数:23313.00
设置过期时间的key数量:23306.00
每秒请求次数:58.12 最大每秒请求次数:381.69
每秒回复次数:1314.12 最大每秒回复次数:4437.06
## 昨日注册情况
![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-12-15T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-12-16T15%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-12-08T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-12-16T15%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-12-15T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-12-16T15%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-12-15T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-12-16T15%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-12-15T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-12-16T15%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-12-08T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-12-16T15%3A59%3A59.999Z')))
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|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|1|2|2||0|0|15407|15407|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|
|coupon_service|select * from coupon_user where datediff ( date_format ( end_time , :1 ) , date_format ( now ( ) , :2 ) ) = :3 and coupon_state in ( :4 )|1|10|10||0|0|679030|679030|726|726|
|corpwx|update external_user set un_assign_flag = :1 where ( tenant_id = :2 and corp_user_id = :3 and user_id = :4 )|1|1|1||0|0|65|65|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|448505|448505|0|0|
|message_push|delete from message_log where create_time < :1|1|16|16||0|0|212340|212340|0|0|
|mysql|delete from message_push.message_log where create_time < date_sub ( now ( ) , interval :1 day )|1|1|1||0|0|18632|18632|0|0|
|coupon_service|select id , tenant_id , tenant_wechatapp_id , coupon_template_id , coupon_no , coupon_state , owner_id , creator_id , creator_mobile_no , creator_name , user_name , mobile_no , create_channel , coupon_name , face_value , coupon_type , use_threshold , begin_time , end_time , remark , create_time , update_time , product_name , exchange_shop , channel_id , writeoff_user_id , off_type , is_give , writeoff_time from coupon_user where coupon_template_id = :1 and owner_id = :2|1|2|2||0|0|679339|679339|0|0|
|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 `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|646394|646394|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|4|4||0|0|28826|28826|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|31|31||0|0|1010990|1010990|0|0|
|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|1|1|1||0|0|88432|88432|0|0|
|activity_service|select count ( 0 ) from activity_service.user_trace ut left join activity_service.activity at on ut.activity_id = at.id where ut.step = :1 and ut.status = :2 and ut.activity_id = :3|1|10|10||0|0|1094652|1094652|1|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|1|1|1||0|0|20435|20435|1|1|
|mysql|delete from wx_gateway.wx_template_msg where create_time < date_sub ( now ( ) , interval :1 day )|1|56|56||0|0|1490113|1490113|0|0|
|value_added|select count ( 0 ) from ( select t1.id , t2.sales_no as salesno , date_format ( t2.sales_date , '%y-%m-%d' ) as salesdate , date_format ( t1.start_add_time , '%y-%m-%d' ) as valueadddate , t2.dept_erp_id as shopid , t1.shop_name as shopname , t2.employee_erp_id as userid , t2.employee_name as username , t1.product_name as productname , t1.amount_pay as amountpay , t1.id as valueaddno , t1.amount_added as valueaddamount , t1.state , if ( t1.state = 2 , t1.coupon_user_id , null ) as valueaddcoupon , t1.user_id as memberuserid from value_added.value_added_user t1 join value_added.`value_added_user_extend` t2 on t1.id = t2.id where t1.tenant_wechatapp_id = :1 and exists ( select null from value_added.value_added_category t3 join value_added.value_added_template t4 on t3.template_id = t4.id and t4.is_disable = :2 where t1.tenant_wechatapp_id = t3.tenant_wechatapp_id and t2.category_erp_id = t3.erp_product_category_id ) and t1.state != :3 ) tmp_count|1|1|1||0|0|256844|256844|1|1|
|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|14029|14029|34|34|
|mysql|delete from erp_sync.sync_record where create_time < date_sub ( now ( ) , interval :1 day )|1|2|2||0|0|1010990|1010990|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|3|3||0|0|249470|249470|0|0|
|platform|select `vendorid` , `memberid` , `salesdate` , `noteid` , `noteno` , `empid` , `empname` , `amounttotal` , `quantitytotal` , `integraltotal` , `salesstoreid` , `staffattitude` , `professionallevel` , `appearance` , `storeimage` , `productdisplay` , `salescomment` , `commenttime` , `replycontent` , `replytime` , `replyuser` , `tipfee` , `tipmorderid` , `tippayno` , `tippaytime` , `status` , `aftersalesremark` , `uid` , `eid` , `sid` , `id` from `saleslog` where vendorid = :1 and tipfee > :2 and tippayno is not null and date_sub ( date ( :3 ) , interval :4 day ) = date_format ( tippaytime , :5 )|1|6|6||0|0|120774|120774|0|0|
|erp_sync|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|2|2|1||0|0|4230|2115|4230|2115|
|order|select max ( create_time ) from `order`.order_operator_log where tenant_wechatapp_id = :1 and order_id = :2|2|2|1||0|0|487000|243631|2|1|
|gift_mail|select count ( 0 ) from ( select t.id , t.user_name , t.mobile_no , t.specification , i.barcode , t.product_name , t.trade_no , t.create_time , t.quantity , if ( if ( t.trade_type = 2 , tpw.employee_id , take.take_employee_id ) is not null , t.quantity , 0 ) as takequantity , take.take_shop_name , if ( t.trade_type = 2 , tpw.employee_name , take.take_employee_name ) as take_employee_name , if ( t.trade_type = 2 , tpw.update_time , if ( take.take_employee_id is not null , take.update_time , null ) ) as taketime , p.partner_name from gift_mail.trade t left outer join gift_mail.trade_take take on take.trade_id = t.id left outer join gift_mail.partner_product pp on pp.product_id = t.product_id left outer join gift_mail.partner p on p.id = pp.partner_id left outer join gift_mail.trade_partner_wipe tpw on tpw.trade_id = t.id left outer join gift_mail.inventory i on i.id = t.inventory_id where ( t.tenant_wechatapp_id = :1 and t.order_status not in ( :2 ) and t.product_id = :3 and t.inventory_id = :4 ) ) tmp_count|3|23|8||0|0|87071|29083|3|1|
|employee|update backlog set leave_flag = :1 where tenant_app_id = :2 and employee_id = :3|3|14|6||0|0|325431|123590|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|94791|62525|32|28|
|gift_mail|select t.id , t.user_name , t.mobile_no , t.specification , i.barcode , t.product_name , t.trade_no , t.create_time , t.quantity , if ( if ( t.trade_type = 2 , tpw.employee_id , take.take_employee_id ) is not null , t.quantity , 0 ) as takequantity , take.take_shop_name , if ( t.trade_type = 2 , tpw.employee_name , take.take_employee_name ) as take_employee_name , if ( t.trade_type = 2 , tpw.update_time , if ( take.take_employee_id is not null , take.update_time , null ) ) as taketime , p.partner_name from gift_mail.trade t left outer join gift_mail.trade_take take on take.trade_id = t.id left outer join gift_mail.partner_product pp on pp.product_id = t.product_id left outer join gift_mail.partner p on p.id = pp.partner_id left outer join gift_mail.trade_partner_wipe tpw on tpw.trade_id = t.id left outer join gift_mail.inventory i on i.id = t.inventory_id where ( t.tenant_wechatapp_id = :1 and t.order_status not in ( :2 ) and t.product_id = :3 and t.inventory_id = :4 ) limit :5|3|23|9||0|0|81945|27365|60|20|
|wx_gateway|select * from wx_user where user_id = :1 and open_id not like :2 limit :3|3|11|4||0|0|2327049|775683|3|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|3|3|1||0|0|192175|94603|3|1|
|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|4|1||0|0|181925|54471|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|4|14|5||0|0|379474|94873|2152|538|
|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|5|14|5||0|0|179157|35889|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|5|7|2||0|0|87|33|0|0|
|order|select tenant_wechatapp_id from order_info where status = :1 and child_status is null group by tenant_wechatapp_id|5|13|5||0|0|316610|63322|15|3|
|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|7|8|2||0|0|213690|38241|7|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|21|5||0|0|186324|26960|10|2|
|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|9|22|5||0|0|3061897|750147|3|1|
|user_service|select user_id , user_name , mobile_no , head_img_url from user_service.tenant_user where tenant_id = :1 and tenant_app_id = :2 and user_name like concat ( :3 , :4 , :5 ) limit :6|10|33|12||0|0|908045|136785|47|10|
|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|10|33|9||0|0|6744949|679562|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|10|12|1||0|0|537697|65988|10|1|
|platform|select `typefullname` , `methodname` , `arguments` , `partition` , `offset` , `createtime` , `updatetime` , `retried` , `errormsg` , `id` from `pushlog` where `typefullname` = :1 and `methodname` = :2 and `arguments` = :3|14|22|2||0|0|3498766|249920|0|0|
|customer|select count ( 0 ) from customer_face_pass t where t.shop_id = :1 and t.is_checkin = :2 and t.enter_shop_time >= date_sub ( current_date , interval :3 day )|15|101|15||0|0|1039513|191737|13|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 )|17|28|3||0|0|2922337|245405|34|2|
|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|20|32|3||0|0|7990|626|0|0|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|21|36|4||0|0|241032|14171|21|1|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|25|65|5||0|0|8055600|322224|25|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|29|63|8||0|0|10572994|364586|0|0|
|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 )|32|79|6||0|0|20687648|646489|19|8|
|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|41|42|1||0|0|680605|16621|436|20|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|47|97|7||0|0|1069095|26959|47|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|134|536|15||0|0|13297240|168989|132|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|199|203|1||0|0|3302494|16647|3604|20|
|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 )|276|284|1||0|0|4573433|16627|276|1|
# 运行日志
# 2019-12
[2019-12-01](2019-12-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-02](2019-12-02/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-03](2019-12-03/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-05](2019-12-05/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-08](2019-12-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-09](2019-12-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-10](2019-12-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-11](2019-12-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-12](2019-12-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-13](2019-12-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-15](2019-12-15/daily.md)&ensp;&ensp;&ensp;&ensp;
[2019-12-01](2019-12-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-02](2019-12-02/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-03](2019-12-03/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-05](2019-12-05/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-08](2019-12-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-09](2019-12-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-10](2019-12-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-11](2019-12-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-12](2019-12-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-13](2019-12-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-15](2019-12-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-12-16](2019-12-16/daily.md)&ensp;&ensp;&ensp;&ensp;
# 2019-11
[2019-11-01](2019-11-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-03](2019-11-03/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-04](2019-11-04/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-05](2019-11-05/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-06](2019-11-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-07](2019-11-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-10](2019-11-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-11](2019-11-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-12](2019-11-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-13](2019-11-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-14](2019-11-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-15](2019-11-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-17](2019-11-17/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-18](2019-11-18/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-19](2019-11-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-20](2019-11-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-24](2019-11-24/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-25](2019-11-25/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-26](2019-11-26/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-27](2019-11-27/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-28](2019-11-28/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-11-29](2019-11-29/daily.md)&ensp;&ensp;&ensp;&ensp;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论