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

auto commit

上级 67fdb8c5
# 2019年08月12日运行日报:https://git.sjfx.com.cn/report/daily/blob/master/2019-08-12/daily.md
## 服务器情况
|服务器 |CPU使用率 |内存使用率 |主硬盘使用率 |查看详情 |
| :- | :-: | :-: | :-: | :- |
|v3nginx |- |- |- |http://47.98.156.252:17123/|
|v3-publish |5.44% |37.5% |43.1% |http://47.110.9.96:17123/|
|v3-base-mq001 |3.42% |70.7% |22.3% |http://114.55.171.242:17123/|
|v3-base-mq002 |4.68% |71.6% |22.9% |http://47.110.226.218:17123/|
|proxy-local |8.69% |67.5% |21.7% |http://47.96.14.81:17123/|
|v3eureka001 |5.45% |60% |24.3% |http://47.110.137.241:17123/|
|v3eureka002 |6.91% |**80.4%** |27.2% |http://114.55.171.107:17123/|
|v3-gateway001 |2.37% |**85.1%** |50.6% |http://47.111.11.230:17123/|
|v3-gateway002 |2.25% |**84.3%** |54.5% |http://47.110.14.10:17123/|
|v3-gateway003 |2.31% |78.2% |43% |http://47.110.12.94:17123/|
|v3-gateway004 |2.27% |75.9% |42.7% |http://114.55.169.175:17123/|
|v3-BS-F001 |8.27% |**87.2%** |43.7% |http://47.98.220.95:17123/|
|v3-BS-F002 |5.9% |78.5% |24.8% |http://47.111.105.30:17123/|
|v3-BS-F003 |6.63% |**83%** |49.2% |http://47.111.105.137:17123/|
|v3-BS-F004 |3.19% |37.6% |20.8% |http://47.111.105.218:17123/|
|v3-BS-H001 |6.75% |**84.3%** |43.5% |http://47.111.169.175:17123/|
|v3-BS-H002 |6% |**81.6%** |24.9% |http://114.55.171.6:17123/|
|v3-BS-H003 |6.2% |**83.4%** |46.4% |http://47.111.186.205:17123/|
|v3-BS-H004 |3.37% |33.6% |20.6% |http://114.55.209.3:17123/|
|v3-BS-G001 |7.47% |**87.6%** |43.6% |http://114.55.243.46:17123/|
|v3-BS-G002 |3.12% |29.8% |19.7% |http://47.98.158.5:17123/|
|v3-BS-G003 |5.98% |**84.1%** |26.7% |http://47.98.220.48:17123/|
|v3-BS-G004 |4.85% |60.2% |27.4% |http://47.111.79.177:17123/|
|v3-BS-I001 |6.99% |**86.3%** |42% |http://114.55.243.77:17123/|
|v3-BS-I002 |2.83% |30.8% |20.5% |http://114.55.242.246:17123/|
|v3-BS-I003 |6.28% |**83.1%** |26.7% |http://47.110.15.201:17123/|
|v3-BS-I004 |4.3% |59.7% |26.1% |http://114.55.243.68:17123/|
|v3-tag |1.57% |56.8% |28.8% |http://47.110.13.5:17123/|
## 数据库情况
### rm-bp1qn4bl8d8p9mnm4
内存使用率: 最小值 48.3% 最大值 48.4% 平均值 0.0336812804453723%
CPU使用率: 最小值 0.97% 最大值 50% 平均值 7.64943632567851%
每秒IO请求次数: 最小值 0.03 最大值 837.05 平均值 55.7084133611692
连接数: 最小值 396 最大值 446 平均值 420.217814892136
活跃连接数: 最小值 0 最大值 20 平均值 0.224773834377175
空间使用量: 总使用量;109933MB 数据使用量;106509MB 日志使用量;550MB 临时使用量;2MB 系统使用量:2872MB
### rr-bp13k3q7292ce5t6k
内存使用率: 最小值 44.6% 最大值 44.6% 平均值 44.6%
CPU使用率: 最小值 0.97% 最大值 0.97% 平均值 0.97%
每秒IO请求次数: 最小值 6.61 最大值 6.61 平均值 6.61
连接数: 最小值 180 最大值 180 平均值 180
活跃连接数: 最小值 0 最大值 0 平均值 0
空间使用量: 总使用量;109843MB 数据使用量;106485MB 日志使用量;577MB 临时使用量;0MB 系统使用量:2781MB
### rm-bp1piz35u161jjc92
内存使用率: 最小值 61.5% 最大值 61.5% 平均值 30.75%
CPU使用率: 最小值 93.96% 最大值 94.14% 平均值 94.05%
每秒IO请求次数: 最小值 306.93 最大值 341.86 平均值 324.395
连接数: 最小值 228 最大值 228 平均值 228
活跃连接数: 最小值 48 最大值 49 平均值 48.5
空间使用量: 总使用量;76173MB 数据使用量;50583MB 日志使用量;19056MB 临时使用量;3MB 系统使用量:6531MB
慢日志:[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 13792707
zk_packets_sent 13811637
zk_num_alive_connections 27
zk_outstanding_requests 0
zk_server_state leader
zk_znode_count 2633
zk_watch_count 764
zk_ephemerals_count 1441
zk_approximate_data_size 804871
zk_open_file_descriptor_count 61
zk_max_file_descriptor_count 1048576
zk_followers 3
zk_synced_followers 3
zk_pending_syncs 0
## Redis情况
Cpu使用率:0.60%
已用内存:127995400.00Byte
每秒总访问量:106.92
已用连接数:1706.00
键总数:52927.00
设置过期时间的key数量:52923.00
每秒请求次数:80.48 最大每秒请求次数:885.33
每秒回复次数:1151.38 最大每秒回复次数:8370.17
## 昨日注册情况
![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-08-11T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-08-12T15%3A59%3A59.999Z')))
## 7日注册情况
![7register](7register.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/ef3e87a0-86a1-11e9-b79e-3bd17e684a34?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-08-04T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-08-12T15%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-08-11T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-08-12T15%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-08-11T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-08-12T15%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-08-11T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-08-12T15%3A59%3A59.999Z')))
## 7日请求数
![7reqcount](7reqcount.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/b810fea0-86a8-11e9-b79e-3bd17e684a34?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2019-08-04T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-08-12T15%3A59%3A59.999Z')))
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|account|select id from account.account where balance is null and account_type = :1|1|23|23||0|0|6739513|6739513|197|197|
|user_service|select * from erp_integral_log where tenant_id = :1 and update_time >= :2 and update_time <= :3 order by tenant_wechatapp_id , member_erp_id|1|9|9||0|0|720730|720730|130|130|
|user_service|select count ( 0 ) from tenant_user tenantuser join user user on tenantuser.user_id = user.id where ( tenantuser.tenant_app_id = :1 and tenantuser.user_id not in ( :2 , :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 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 ) and ( user.nick_name like concat ( :93 , :94 , :95 ) or tenantuser.mobile_no = :96 ) )|1|1|1||0|0|11847|11847|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|629562|629562|0|0|
|platform|select `vendorid` , `memberid` , `salesdate` , `noteid` , `noteno` , `empid` , `empname` , `amounttotal` , `quantitytotal` , `integraltotal` , `salesstoreid` , `staffattitude` , `professionallevel` , `appearance` , `storeimage` , `productdisplay` , `salescomment` , `commenttime` , `replycontent` , `replytime` , `replyuser` , `tipfee` , `tipmorderid` , `tippayno` , `tippaytime` , `status` , `aftersalesremark` , `uid` , `eid` , `sid` , `id` from `saleslog` where vendorid = :1 and tipfee > :2 and tippayno is not null and date_sub ( date ( :3 ) , interval :4 day ) = date_format ( tippaytime , :5 )|1|4|4||0|0|120774|120774|0|0|
|message_push|delete from message_log where create_time < :1|1|17|17||0|0|203827|203827|0|0|
|user_service|select count ( 0 ) from tenant_user tenantuser join user user on tenantuser.user_id = user.id where ( tenantuser.tenant_app_id = :1 and tenantuser.user_id not in ( :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 ( user.nick_name like concat ( :26 , :27 , :28 ) or tenantuser.mobile_no = :29 ) )|1|2|2||0|0|11602|11602|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 ) )|1|4|4||0|0|204945|204945|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|19639|19639|2|2|
|activity_service|select count ( distinct ( user_id ) ) from user_trace where tenant_app_id = :1 and activity_id = :2 and status != :3|1|1|1||0|0|19337|19337|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|1|1||0|0|318771|318771|1|1|
||/* applicationname = datagrip 2018.2.2 */ select count ( * ) from user_service.erp_member em left join user_service.tenant_user tu on em.tenant_wechatapp_id = tu.tenant_app_id and em.member_erp_id = tu.erp_member_id where tu.id is null|1|18|18||0|0|8479109|8479109|1|1|
|tenant|update tenant.erp_sales es join tenant.erp_sales_detail esd on es.tenant_id = esd.tenant_id and es.tenant_wechatapp_id = esd.tenant_wechatapp_id and es.sales_erp_id = esd.sales_erp_id set is_sales = true where esd.sales_type = :1 and esd.tenant_id = :2 and es.is_sales = false|1|15|15||0|0|1915945|1915945|0|0|
||/* applicationname = datagrip 2018.2.2 */ select count ( * ) from user_service.tenant_user|1|2|2||0|0|2699779|2699779|1|1|
|user_service|select scene_id , count ( * ) as quantity , scene_type from user_service.user_source where scene_type = :1 and scene_id in ( :2 ) and tenant_wechatapp_id = :3 group by scene_id|1|1|1||0|0|3514|3514|0|0|
|user_service|select count ( 0 ) from tenant_user tenantuser join user user on tenantuser.user_id = user.id where ( tenantuser.tenant_app_id = :1 and tenantuser.user_id not in ( :2 , :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 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 , :99 , :100 , :101 , :102 , :103 , :104 , :105 , :106 , :107 , :108 , :109 , :110 , :111 , :112 , :113 , :114 , :115 , :116 , :117 , :118 , :119 , :120 , :121 , :122 , :123 , :124 , :125 , :126 , :127 , :128 , :129 , :130 , :131 , :132 , :133 , :134 , :135 , :136 , :137 , :138 , :139 , :140 , :141 , :142 , :143 , :144 , :145 , :146 , :147 , :148 , :149 , :150 , :151 , :152 , :153 , :154 , :155 , :156 , :157 , :158 , :159 , :160 , :161 , :162 , :163 , :164 , :165 , :166 , :167 , :168 , :169 , :170 , :171 , :172 , :173 , :174 , :175 , :176 , :177 , :178 , :179 , :180 , :181 , :182 , :183 , :184 , :185 , :186 ) and ( user.nick_name like concat ( :187 , :188 , :189 ) or tenantuser.mobile_no = :190 ) )|1|8|8||0|0|275983|275983|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|
|payment|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|1|1|1||0|0|33098|33098|33098|33098|
|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|158257|158257|0|0|
||/* applicationname = datagrip 2018.2.2 */ select min ( create_time ) from user_service.erp_member|1|4|4||0|0|4832038|4832038|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 , 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 = :1 and t.trade_type = :2 ) order by create_time desc limit :3|1|1|1||0|0|12448|12448|20|20|
|activity_service|select t1.id , t1.tenant_app_id as tenantappid , t1.user_id as userid , t1.user_name as username , t1.mobile_no as mobileno , t1.user_apply_id as userapplyid , t1.step , t1.data , t1.partake_data as partakedata , t2.id as activityid , t2.activity_name as activityname , t2.activity_type as activitytype , t1.create_time as time 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 order by t1.create_time desc limit :5|1|1|1||0|0|1297351|1297351|20|20|
|coupon_service|select * from coupon_user where datediff ( date_format ( end_time , :1 ) , date_format ( now ( ) , :2 ) ) = :3 and coupon_state in ( :4 )|1|1|1||0|0|476360|476360|2680|2680|
|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|
|activity_service|select t1.user_id as userid , t2.user_name as username , t2.data as userheadimg , ifnull ( t1.finished_time , t1.update_time ) as time , t1.cutdown_amount as cutdownamount , t2.partake_data as partakedata from activity_service.cutdown_price_activity_apply t1 join activity_service.user_trace t2 on t1.id = t2.user_apply_id and t2.step = :1 where t1.activity_id = :2|1|1|1||0|0|14570|14570|1164|1164|
|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|2|2|1||0|0|117724|58887|0|0|
|user_service|select count ( 0 ) from tenant_user tenantuser join user user on tenantuser.user_id = user.id where user_id != :1 and tenant_app_id = :2|2|12|6||0|0|476768|276189|2|1|
|employee|update backlog set employee_id = :1 , user_id = :2 where ( employee_id = :3 and tenant_app_id = :4 and status in ( :5 , :6 ) )|2|6|4||0|0|174321|107833|0|0|
|user_service|select count ( 0 ) from tenant_user tenantuser join user user on tenantuser.user_id = user.id where ( tenantuser.tenant_app_id = :1 and tenantuser.user_id not in ( :2 , :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 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 , :49 , :50 , :51 , :52 , :53 , :54 , :55 , :56 , :57 , :58 , :59 , :60 , :61 , :62 , :63 , :64 , :65 , :66 , :67 , :68 , :69 , :70 , :71 , :72 , :73 , :74 , :75 , :76 , :77 , :78 , :79 , :80 , :81 , :82 , :83 , :84 , :85 , :86 , :87 , :88 , :89 , :90 , :91 , :92 , :93 , :94 , :95 , :96 , :97 , :98 , :99 , :100 , :101 , :102 , :103 , :104 , :105 , :106 , :107 , :108 , :109 , :110 , :111 , :112 , :113 , :114 , :115 , :116 , :117 , :118 , :119 , :120 , :121 , :122 , :123 , :124 , :125 , :126 , :127 , :128 , :129 , :130 , :131 , :132 , :133 , :134 , :135 , :136 , :137 , :138 , :139 , :140 , :141 , :142 , :143 , :144 , :145 , :146 , :147 , :148 , :149 , :150 , :151 , :152 , :153 , :154 , :155 , :156 , :157 , :158 , :159 , :160 , :161 , :162 , :163 , :164 , :165 , :166 , :167 , :168 , :169 , :170 , :171 , :172 , :173 , :174 , :175 , :176 , :177 , :178 , :179 , :180 , :181 , :182 , :183 , :184 , :185 , :186 , :187 ) and ( user.nick_name like concat ( :188 , :189 , :190 ) or tenantuser.mobile_no = :191 ) )|2|11|9||0|0|552018|276016|2|1|
|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|2|3|2||0|0|953524|476798|0|0|
|coupon_service|select id as usercouponid , coupon_no as couponno , end_time as endtime , begin_time as begintime , face_value as facevalue , coupon_name as couponname , coupon_type as coupontype , remark , exchange_shop , off_type from coupon_user where owner_id = :1 and coupon_template_id = :2 and coupon_state = :3 and end_time > now ( ) limit :4|2|5|4||0|0|952930|476532|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|2|13|7||0|0|1768186|884098|2|1|
||/* applicationname = intellij idea 2019.1 */ select * from account.account where balance is null|2|13|10||0|0|13478447|6739534|197|197|
|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|90643|62558|74|63|
|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 , 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 = :1 ) order by create_time desc|3|11|4||0|0|50801|18135|3087|1228|
|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|3|5|2||0|0|217626|73921|3|1|
||select * from account.account t where t.tenant_app_id = :1 and t.owner_id = :2|3|19|9||0|0|922611|307552|9|3|
|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|4|2||0|0|357183|119061|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.tenant_app_id = :2 ) table_count|3|11|5||0|0|316695|139114|3|1|
|activity_service|select assist_task_activity_id as id , count ( distinct user_id ) as partakenum , sum ( if ( partake_type = 'appoint' and status = :1 , :2 , :3 ) ) as appointnum , sum ( if ( partake_type = :4 , :5 , :6 ) ) as applynum , sum ( if ( partake_type = :7 and status >= :8 , :9 , :10 ) ) as finishnum from assist_task_user where assist_task_activity_id in ( :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 ) group by assist_task_activity_id|4|8|2||0|0|1477423|369358|68|17|
|qrcode_service|select *from qrcode_service.qrcode_scan_log where open_id = :1 and tenant_app_id = :2 order by create_time desc limit :3|5|6|1||0|0|4784958|958037|2|1|
|user_service|select count ( 0 ) from ( select t1.erp_member_id as membererpid , t2.head_img_url as headimgurl , t2.nick_name as nickname , t1.mobile_no as mobileno , date_format ( t1.bind_time , '%y-%m-%d%h:%i:%s' ) as registertime 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.erp_member_id is not null and t1.shop_id = :2 and t1.tenant_id = :3 and t1.tenant_app_id = :4 ) table_count|6|17|5||0|0|141981|47742|6|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|7|9|2||0|0|1308|1286|0|0|
|account|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|7|7|1||0|0|46634|6680|46634|6680|
|facepass_sync|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|9|10|1||0|0|59871|6679|59871|6679|
|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|9|21|4||0|0|707436|146571|9|1|
|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 , 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 = :1 ) order by create_time desc ) tmp_count|11|14|2||0|0|150571|15675|11|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 , 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 = :1 ) order by create_time desc limit :2|11|27|5||0|0|158839|16923|220|20|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|12|30|4||0|0|3825252|318771|12|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|12|30|5||0|0|765386|107436|25|3|
|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|14|21|4||0|0|5718246|429242|0|0|
|platform|select `typefullname` , `methodname` , `arguments` , `partition` , `offset` , `createtime` , `updatetime` , `retried` , `errormsg` , `id` from `pushlog` where `typefullname` = :1 and `methodname` = :2 and `arguments` = :3|14|19|1||0|0|3254393|242707|1|1|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|15|22|2||0|0|264823|37890|15|1|
|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|16|25|2||0|0|3000829|194058|16|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 )|16|125|15||0|0|1206901|169121|16|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 )|16|20|2||0|0|10075504|629719|24|13|
|employee|select * from backlog where tenant_app_id = :1 and user_id = :2 and status in ( :3 , :4 ) and scene = :5 and expire_time >= :6 order by create_time desc limit :7|26|63|5||0|0|2071700|107833|45|6|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|26|52|4||0|0|993816|107461|26|1|
|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 ) )|34|115|8||0|0|2147110|205036|1123|1022|
|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|62|163|10||0|0|12590|715|0|0|
# 运行日志
# 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-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-07
[2019-07-01](2019-07-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-02](2019-07-02/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-03](2019-07-03/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-04](2019-07-04/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-07](2019-07-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-08](2019-07-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-09](2019-07-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-10](2019-07-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-11](2019-07-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-12](2019-07-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-14](2019-07-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-15](2019-07-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-16](2019-07-16/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-17](2019-07-17/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-18](2019-07-18/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-21](2019-07-21/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-22](2019-07-22/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-23](2019-07-23/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-24](2019-07-24/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-25](2019-07-25/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-26](2019-07-26/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-28](2019-07-28/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-29](2019-07-29/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-30](2019-07-30/daily.md)&ensp;&ensp;&ensp;&ensp;[2019-07-31](2019-07-31/daily.md)&ensp;&ensp;&ensp;&ensp;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论