提交 6062cda4 authored 作者: zengzhi's avatar zengzhi

auto commit

上级 ef50f1e3
......@@ -5,38 +5,82 @@
|服务器 |CPU使用率 |内存使用率 |主硬盘使用率 |查看详情 |
| :- | :-: | :-: | :-: | :- |
|v3nginx |- |- |- |http://47.98.156.252:17123/|
|v3-publish |7.4% |43.3% |54.7% |http://47.110.9.96:17123/|
|v3-base-mq001 |4.25% |71.1% |33.3% |http://114.55.171.242:17123/|
|v3-base-mq002 |5.06% |70.3% |23.8% |http://47.110.226.218:17123/|
|proxy-local |1.98% |48.5% |22.1% |http://47.96.14.81:17123/|
|v3eureka001 |8.31% |64.2% |22.7% |http://47.110.137.241:17123/|
|v3eureka002 |15.9% |73.2% |28.1% |http://114.55.171.107:17123/|
|v3-gateway001 |2.85% |66.6% |67.6% |http://47.111.11.230:17123/|
|v3-gateway002 |2.46% |60.5% |68.2% |http://47.110.14.10:17123/|
|v3-gateway003 |2.68% |73.3% |63.3% |http://47.110.12.94:17123/|
|v3-gateway004 |3.01% |78% |62.3% |http://114.55.169.175:17123/|
|v3-BS-F001 |7.83% |78.3% |21.1% |http://47.98.220.95:17123/|
|v3-BS-F002 |7.19% |78.5% |25.9% |http://47.111.105.30:17123/|
|v3-BS-F003 |7.93% |78.7% |26.9% |http://47.111.105.137:17123/|
|v3-BS-F004 |8.46% |79% |25% |http://47.111.105.218:17123/|
|v3-BS-H001 |5.81% |73.3% |20.7% |http://47.111.169.175:17123/|
|v3-BS-H002 |7.27% |75.2% |25.7% |http://114.55.171.6:17123/|
|v3-BS-H003 |7.96% |74.4% |26.5% |http://47.111.186.205:17123/|
|v3-BS-H004 |7.83% |78.8% |25% |http://114.55.209.3:17123/|
|v3-BS-G001 |7.05% |**82.1%** |20.5% |http://114.55.243.46:17123/|
|v3-BS-G002 |12.4% |61.8% |21% |http://47.98.158.5:17123/|
|v3-BS-G003 |8.57% |**82.2%** |23.3% |http://47.98.220.48:17123/|
|v3-BS-G004 |6.51% |74.8% |27.2% |http://47.111.79.177:17123/|
|v3-BS-I001 |6.12% |79.3% |20.4% |http://114.55.243.77:17123/|
|v3-BS-I002 |15.9% |61% |21% |http://114.55.242.246:17123/|
|v3-BS-I003 |8.34% |79.2% |23.1% |http://47.110.15.201:17123/|
|v3-BS-I004 |6.34% |76.1% |26.9% |http://114.55.243.68:17123/|
|v3-tag |2.7% |57.5% |18.5% |http://47.110.13.5:17123/|
|v3-publish |8.07% |43.2% |54.7% |http://47.110.9.96:17123/|
|v3-base-mq001 |4.3% |71.1% |33.3% |http://114.55.171.242:17123/|
|v3-base-mq002 |5.08% |70.3% |23.8% |http://47.110.226.218:17123/|
|proxy-local |1.86% |48.5% |22.1% |http://47.96.14.81:17123/|
|v3eureka001 |8.48% |64.3% |22.7% |http://47.110.137.241:17123/|
|v3eureka002 |11.8% |73.4% |28.1% |http://114.55.171.107:17123/|
|v3-gateway001 |2.8% |66.6% |67.6% |http://47.111.11.230:17123/|
|v3-gateway002 |2.42% |60.5% |68.2% |http://47.110.14.10:17123/|
|v3-gateway003 |2.74% |73.4% |63.4% |http://47.110.12.94:17123/|
|v3-gateway004 |3.03% |77.9% |62.3% |http://114.55.169.175:17123/|
|v3-BS-F001 |7.8% |78.4% |21.1% |http://47.98.220.95:17123/|
|v3-BS-F002 |7.17% |78.5% |26% |http://47.111.105.30:17123/|
|v3-BS-F003 |8.02% |78.6% |26.8% |http://47.111.105.137:17123/|
|v3-BS-F004 |8.46% |79% |25.1% |http://47.111.105.218:17123/|
|v3-BS-H001 |5.88% |73.3% |20.7% |http://47.111.169.175:17123/|
|v3-BS-H002 |7.31% |75.2% |25.8% |http://114.55.171.6:17123/|
|v3-BS-H003 |12.7% |73.7% |26.6% |http://47.111.186.205:17123/|
|v3-BS-H004 |7.87% |78.8% |25.1% |http://114.55.209.3:17123/|
|v3-BS-G001 |7.45% |**82.2%** |20.5% |http://114.55.243.46:17123/|
|v3-BS-G002 |11.2% |61.7% |21% |http://47.98.158.5:17123/|
|v3-BS-G003 |8.72% |**82.1%** |23.2% |http://47.98.220.48:17123/|
|v3-BS-G004 |7.89% |74.8% |27.3% |http://47.111.79.177:17123/|
|v3-BS-I001 |6.14% |79.4% |20.4% |http://114.55.243.77:17123/|
|v3-BS-I002 |14.1% |61% |21% |http://114.55.242.246:17123/|
|v3-BS-I003 |8.35% |79.1% |23.2% |http://47.110.15.201:17123/|
|v3-BS-I004 |7.86% |76.2% |27% |http://114.55.243.68:17123/|
|v3-tag |2.66% |57.3% |18.5% |http://47.110.13.5:17123/|
## 数据库情况
### rm-bp1qn4bl8d8p9mnm4
内存使用率: 最小值 21.3% 最大值 50.6% 平均值 0.0351877607788595%
CPU使用率: 最小值 0% 最大值 73.87% 平均值 5.97575799721836%
每秒IO请求次数: 最小值 0 最大值 2033.45 平均值 49.5885187760779
连接数: 最小值 399 最大值 472 平均值 429.769819193324
活跃连接数: 最小值 0 最大值 8 平均值 0.153685674547983
空间使用量: 总使用量;59710MB 数据使用量;56144MB 日志使用量;371MB 临时使用量;3MB 系统使用量:3192MB
### rr-bp13k3q7292ce5t6k
内存使用率: 最小值 45.6% 最大值 45.6% 平均值 22.8%
CPU使用率: 最小值 0.65% 最大值 0.65% 平均值 0.65%
每秒IO请求次数: 最小值 4.27 最大值 19.55 平均值 11.91
连接数: 最小值 61 最大值 61 平均值 61
活跃连接数: 最小值 0 最大值 0 平均值 0
空间使用量: 总使用量;59617MB 数据使用量;56083MB 日志使用量;390MB 临时使用量;0MB 系统使用量:3144MB
### rm-bp1piz35u161jjc92
内存使用率: 最小值 48.8% 最大值 48.8% 平均值 5.42222222222222%
CPU使用率: 最小值 0.22% 最大值 0.6% 平均值 0.268888888888889%
每秒IO请求次数: 最小值 0.46 最大值 19.26 平均值 4.09222222222222
连接数: 最小值 88 最大值 88 平均值 88
活跃连接数: 最小值 1 最大值 1 平均值 1
空间使用量: 总使用量;104771MB 数据使用量;92602MB 日志使用量;3398MB 临时使用量;1MB 系统使用量:8770MB
慢日志:[rm-bp1qn4bl8d8p9mnm4](rm-bp1qn4bl8d8p9mnm4slowsql.md)
慢日志(excel):[rm-bp1qn4bl8d8p9mnm4](rm-bp1qn4bl8d8p9mnm4slowsql.xlsx)
慢日志:[rm-bp1piz35u161jjc92](rm-bp1piz35u161jjc92slowsql.md)
慢日志(excel):[rm-bp1piz35u161jjc92](rm-bp1piz35u161jjc92slowsql.xlsx)
## zookeeper当前情况
......@@ -48,9 +92,9 @@ zk_max_latency 809
zk_min_latency 0
zk_packets_received 30180861
zk_packets_received 30182330
zk_packets_sent 30227890
zk_packets_sent 30229359
zk_num_alive_connections 38
......@@ -78,6 +122,21 @@ zk_pending_syncs 0
## Redis情况
Cpu使用率:0.60%
已用内存:124327700.00Byte
每秒总访问量:82.00
已用连接数:1549.00
键总数:28414.00
设置过期时间的key数量:28407.00
每秒请求次数:125.69 最大每秒请求次数:3924.58
每秒回复次数:1452.60 最大每秒回复次数:3219.08
## 昨日注册情况
......
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|mysql|insert into erp_to_platform.sync_log_20190924 select * from erp_to_platform.sync_log where create_time < date_sub ( now ( ) , interval :1 day )|1|2|2||0|0|168245|168245|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|10152|10152|1|1|
|mysql|delete from wx_gateway.wx_template_msg where create_time < date_sub ( now ( ) , interval :1 day )|1|54|54||0|0|1489574|1489574|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|443761|443761|0|0|
|order|select max ( create_time ) from `order`.order_operator_log where tenant_wechatapp_id = :1 and order_id = :2|1|2|2||0|0|203945|203945|1|1|
|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|574279|574279|1259|1259|
|platform|select `noteid` , `vendorid` , `detailindex` , `productname` , `productbarcode` , `category` , `salestype` , `quantity` , `amount` , `integral` , `productdesc` , `slid` , `paidamount` , `id` from `salesdetaillog` where `noteid` = :1 and `vendorid` = :2|1|3|3||0|0|19234|19234|1|1|
|tenant|select erp_sales.id , erp_sales.sales_erp_id as saleserpid , erp_sales.sales_no as salesno , erp_sales.sales_date as salesdate , erp_sales.member_erp_id as membererpid , erp_sales.employee_erp_id as employeeerpid , erp_sales.employee_name as employeename , erp_sales.dept_erp_id as depterpid , erp_sales.amount as amount , erp_sales.sales_remark as salesremark , erp_sales.receipts as receipts , erp_sales.sales_status as salesstatus , erp_sales.busi_date as busidate , erp_department.dept_name as deptname , tenant.full_name as tenantfullname , tenant.short_name as tenantshortname from erp_sales join erp_department on erp_sales.dept_erp_id = erp_department.dept_erp_id and erp_sales.tenant_id = erp_department.tenant_id join tenant on erp_sales.tenant_id = tenant.id and tenant.`status` = :1 where :2 = :3 and erp_sales.tenant_id = :4 and erp_sales.sales_no = :5 limit :6|1|4|4||0|0|6278394|6278394|1|1|
|activity_service|select t3.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.data , t2.id as activityid , t2.activity_name as activityname , t2.activity_type as activitytype , t1.create_time as time , t3.cutdown_amount as cutdownamount , t3.cutdown_num as cutdownnum , t3.order_no as orderno from activity_service.user_trace t1 join activity_service.activity t2 on t1.activity_id = t2.id join activity_service.cutdown_price_activity_apply t3 on t1.user_apply_id = t3.id where t1.status = :1 and t2.tenant_wechatapp_id = :2 and t2.activity_type = :3 and t2.id = :4 and t1.step = :5 order by t1.create_time desc limit :6|1|3|3||0|0|1029159|1029159|20|20|
|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|638796|638796|0|0|
|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 )|1|1|1||0|0|26170|26170|0|0|
|mysql|delete from erp_sync.sync_record where create_time < date_sub ( now ( ) , interval :1 day )|1|3|3||0|0|1054594|1054594|0|0|
|sjfxjira|update cwd_user_attributes set user_id = :1 , directory_id = :2 , attribute_name = :3 , attribute_value = :4 , lower_attribute_value = :5 where id = :6|1|1|1||0|0|1|1|0|0|
|mysql|delete from erp_to_platform.sync_log where create_time < date_sub ( now ( ) , interval :1 day )|1|1|1||0|0|168245|168245|0|0|
|account|/* applicationname = datagrip 2019.1.2 */ select * from coupon_service.coupon_user where date_format ( create_time , :1 ) = :2|1|2|2||0|0|400834|400834|5001|5001|
|order|select id , tenant_id , tenant_wechatapp_id , order_id , user_id , user_name , shop_id , shop_name , operator_type , src_status , dst_status , full_message , remark , create_time , update_time , src_child_status , dst_child_status from order_operator_log where tenant_wechatapp_id = :1 and order_id = :2 and dst_status = :3 order by create_time desc|1|2|2||0|0|203946|203946|1|1|
|mysql|delete from message_push.message_log where create_time < date_sub ( now ( ) , interval :1 day )|1|2|2||0|0|30486|30486|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|211199|211199|0|0|
|mysql|insert into erp_sync.sync_record_20190924 select * from erp_sync.sync_record where create_time < date_sub ( now ( ) , interval :1 day )|1|33|33||0|0|1054594|1054594|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|
|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|7|7||0|0|75855|75855|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|322223|322223|1|1|
|activity_service|commit|1|2|2||0|0|0|0|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 )|1|2|2||0|0|143984|143984|2|2|
|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|2|2||0|0|28984|28984|0|0|
|user_service|commit|1|1|1||0|0|0|0|0|0|
|tenant|select erp_sales.id , erp_sales.sales_erp_id as saleserpid , erp_sales.sales_no as salesno , erp_sales.sales_date as salesdate , erp_sales.member_erp_id as membererpid , erp_sales.employee_erp_id as employeeerpid , erp_sales.employee_name as employeename , erp_sales.dept_erp_id as depterpid , erp_sales.amount as amount , erp_sales.sales_remark as salesremark , erp_sales.receipts as receipts , erp_sales.sales_status as salesstatus , erp_sales.busi_date as busidate , erp_department.dept_name as deptname , tenant.full_name as tenantfullname , tenant.short_name as tenantshortname from erp_sales join erp_department on erp_sales.dept_erp_id = erp_department.dept_erp_id and erp_sales.tenant_id = erp_department.tenant_id join tenant on erp_sales.tenant_id = tenant.id and tenant.`status` = :1 where :2 = :3 and erp_sales.tenant_id = :4 limit :5 , :6|1|5|5||0|0|6836054|6836054|18|18|
|message_push|delete from message_log where create_time < :1|1|16|16||0|0|211838|211838|0|0|
|authorization_service|update user_login_token set login_code = :1 where id = :2|1|1|1||0|0|1|1|0|0|
|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|1|3|3||0|0|77699|77699|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|
|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|1|1|1||0|0|6940|6940|1604|1604|
|activity_service|select count ( 0 ) from activity_service.user_trace t1 join activity_service.activity t2 on t1.activity_id = t2.id join activity_service.cutdown_price_activity_apply t3 on t1.user_apply_id = t3.id where t1.status = :1 and t2.tenant_wechatapp_id = :2 and t2.activity_type = :3 and t2.activity_name = :4 and t1.step = :5|2|17|9||0|0|2147767|1074548|2|1|
|activity_service|select count ( distinct ( user_id ) ) from user_trace where tenant_app_id = :1 and activity_id = :2 and status != :3|2|2|1||0|0|25794|19337|2|1|
|platform|select * from ( select * from coupondetail where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and expirytime >= now ( ) ) as tv limit :4 , :5|2|7|5||0|0|644446|322223|4|3|
|tenant|select erp_sales.id , erp_sales.sales_erp_id as saleserpid , erp_sales.sales_no as salesno , erp_sales.sales_date as salesdate , erp_sales.member_erp_id as membererpid , erp_sales.employee_erp_id as employeeerpid , erp_sales.employee_name as employeename , erp_sales.dept_erp_id as depterpid , erp_sales.amount as amount , erp_sales.sales_remark as salesremark , erp_sales.receipts as receipts , erp_sales.sales_status as salesstatus , erp_sales.busi_date as busidate , erp_department.dept_name as deptname , tenant.full_name as tenantfullname , tenant.short_name as tenantshortname from erp_sales join erp_department on erp_sales.dept_erp_id = erp_department.dept_erp_id and erp_sales.tenant_id = erp_department.tenant_id join tenant on erp_sales.tenant_id = tenant.id and tenant.`status` = :1 where :2 = :3 and erp_sales.tenant_id = :4 limit :5|2|4|2||0|0|5329103|2664598|40|20|
|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|2|11|6||0|0|44278|22721|2362|1278|
|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|2|6|3||0|0|153203|76606|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|6|3||0|0|92975|62543|52|48|
|wx_gateway|select * from wx_user where user_id = :1 and open_id not like :2 limit :3|3|13|5||0|0|2327049|775683|3|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 employee_id = :1 and tenant_id = :2 and tenant_wx_app_id = :3 and shop_id = :4 and login_way = :5 and status = :6|3|4|2||0|0|62862|40690|3|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 where a.phone_numbers like concat ( :2 , :3 , :4 ) ) table_count|4|19|15||0|0|6089616|1522410|4|1|
|activity_service|select count ( 0 ) from activity_service.user_trace t1 join activity_service.activity t2 on t1.activity_id = t2.id join activity_service.cutdown_price_activity_apply t3 on t1.user_apply_id = t3.id where t1.status = :1 and t2.tenant_wechatapp_id = :2 and t2.activity_type = :3 and t1.step = :4|4|34|9||0|0|4719070|1183590|4|1|
|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|4|4|1||0|0|58156|14539|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|4|16|7||0|0|2297786|574777|1|1|
|sms|select a.phone_numbers as phoneno , concat ( '【' , a.sign_name , '】' , case when b.content is not null then b.content when stc.content is not null then stc.content else a.template_param end ) as content , a.template_code , a.out_id as outid , a.template_param , a.create_time as sendtime , a.create_time as recevietime , a.code as state , a.send_count , a.message from sms_send a left join sms_template b on a.template_code = b.code left join sms_template_custom stc on a.tenant_app_id = stc.tenant_app_id and a.template_code = stc.code and stc.status = :1 where a.phone_numbers like concat ( :2 , :3 , :4 ) order by a.create_time desc limit :5|4|5|1||0|0|6089628|1522413|12|3|
|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|4|7|3||0|0|842|398|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|92|32|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|5|6|2||0|0|265396|59393|5|1|
|order|select tenant_wechatapp_id from order_info where status = :1 and child_status is null group by tenant_wechatapp_id|5|9|3||0|0|267449|53495|15|3|
|user_service|select count ( * ) from tenant_user where tenant_app_id = :1 and shop_id = :2 and mobile_no is not null and mobile_no != :3|6|9|3||0|0|622687|124654|6|1|
|erp_sync|select * from erp_sync.retry_data where ( need_erp_member_id = :1 or ( need_erp_member_id = :2 and erp_member_id is not null ) ) and retry_times > :3 order by id asc|6|12|3||0|0|458445|76433|94|16|
|tenant|select count ( 0 ) from erp_sales join erp_department on erp_sales.dept_erp_id = erp_department.dept_erp_id and erp_sales.tenant_id = erp_department.tenant_id join tenant on erp_sales.tenant_id = tenant.id and tenant.`status` = :1 where :2 = :3 and erp_sales.tenant_id = :4 and erp_sales.sales_no = :5|6|52|15||0|0|31764125|6278406|4|1|
|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|6|34|8||0|0|3401265|575004|4|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|7|14|3||0|0|219953|32083|2|1|
|tenant|select count ( 0 ) from erp_sales join erp_department on erp_sales.dept_erp_id = erp_department.dept_erp_id and erp_sales.tenant_id = erp_department.tenant_id join tenant on erp_sales.tenant_id = tenant.id and tenant.`status` = :1 where :2 = :3 and erp_sales.tenant_id = :4|7|92|15||0|0|36361929|6836280|3|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|8|18|4||0|0|2885314|444569|2|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|12|29|5||0|0|340494|85790|12|1|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|14|34|3||0|0|4511122|322223|14|1|
|facepass_sync|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|16|19|1||0|0|34506|2200|34506|2200|
|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|123|13||0|0|1184212|136002|16|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|30|2||0|0|3459520|216336|16|1|
|platform|select `typefullname` , `methodname` , `arguments` , `partition` , `offset` , `createtime` , `updatetime` , `retried` , `errormsg` , `id` from `pushlog` where `typefullname` = :1 and `methodname` = :2 and `arguments` = :3|17|29|3||0|0|3728811|247184|0|0|
|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|18|30|3||0|0|5142906|285717|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 )|18|26|2||0|0|11500686|638927|19|8|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|18|30|2||0|0|160714|11820|18|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 ) )|19|83|8||0|0|3155804|277205|14|6|
|account|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|20|24|1||0|0|43129|2200|43129|2200|
|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|23|53|4||0|0|430073|21171|23|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 limit :3|25|100|8||0|0|484513|22714|500|20|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|38|74|3||0|0|730933|23156|38|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|85|223|9||0|0|8397941|165018|85|1|
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论