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

auto commit

上级 29caeabf
# 2019年09月05日运行日报:https://git.sjfx.com.cn/report/daily/blob/master/2019-09-05/daily.md
## 服务器情况
|服务器 |CPU使用率 |内存使用率 |主硬盘使用率 |查看详情 |
| :- | :-: | :-: | :-: | :- |
|v3nginx |- |- |- |http://47.98.156.252:17123/|
|v3-publish |6.35% |39.2% |64% |http://47.110.9.96:17123/|
|v3-base-mq001 |3.24% |67.4% |24% |http://114.55.171.242:17123/|
|v3-base-mq002 |4.14% |67.6% |23.5% |http://47.110.226.218:17123/|
|proxy-local |3.28% |78.9% |22.5% |http://47.96.14.81:17123/|
|v3eureka001 |11.2% |69% |29.9% |http://47.110.137.241:17123/|
|v3eureka002 |8.68% |**83.4%** |40.7% |http://114.55.171.107:17123/|
|v3-gateway001 |3.06% |57.7% |62.7% |http://47.111.11.230:17123/|
|v3-gateway002 |2.08% |43.9% |60.9% |http://47.110.14.10:17123/|
|v3-gateway003 |2.96% |**81.2%** |55.6% |http://47.110.12.94:17123/|
|v3-gateway004 |2.97% |79.5% |53.4% |http://114.55.169.175:17123/|
|v3-BS-F001 |7.36% |78.2% |22.3% |http://47.98.220.95:17123/|
|v3-BS-F002 |9.31% |79.1% |28.3% |http://47.111.105.30:17123/|
|v3-BS-F003 |9.69% |**84.7%** |30.4% |http://47.111.105.137:17123/|
|v3-BS-F004 |5.45% |48.7% |21.3% |http://47.111.105.218:17123/|
|v3-BS-H001 |6.29% |76.7% |23.1% |http://47.111.169.175:17123/|
|v3-BS-H002 |9.02% |**81.7%** |27% |http://114.55.171.6:17123/|
|v3-BS-H003 |9.18% |**85%** |30.3% |http://47.111.186.205:17123/|
|v3-BS-H004 |5.31% |47.8% |21.3% |http://114.55.209.3:17123/|
|v3-BS-G001 |6.75% |78.8% |22.8% |http://114.55.243.46:17123/|
|v3-BS-G002 |1.99% |21.8% |17.8% |http://47.98.158.5:17123/|
|v3-BS-G003 |8.58% |76.5% |23.3% |http://47.98.220.48:17123/|
|v3-BS-G004 |7.89% |69.4% |23.4% |http://47.111.79.177:17123/|
|v3-BS-I001 |6.42% |77.7% |22.4% |http://114.55.243.77:17123/|
|v3-BS-I002 |2.1% |21.7% |17.8% |http://114.55.242.246:17123/|
|v3-BS-I003 |8.83% |73.5% |23.1% |http://47.110.15.201:17123/|
|v3-BS-I004 |7.72% |67.6% |23.3% |http://114.55.243.68:17123/|
|v3-tag |2.33% |63.9% |32.5% |http://47.110.13.5:17123/|
## 数据库情况
### rm-bp1qn4bl8d8p9mnm4
内存使用率: 最小值 50.1% 最大值 50.6% 平均值 0.0351877607788595%
CPU使用率: 最小值 0% 最大值 100% 平均值 7.9241515994436%
每秒IO请求次数: 最小值 0 最大值 1482.23 平均值 56.8589916550767
连接数: 最小值 399 最大值 511 平均值 440.647426981919
活跃连接数: 最小值 0 最大值 46 平均值 0.223226703755216
空间使用量: 总使用量;58894MB 数据使用量;55402MB 日志使用量;361MB 临时使用量;2MB 系统使用量:3129MB
### rr-bp13k3q7292ce5t6k
内存使用率: 最小值 45.1% 最大值 45.1% 平均值 22.55%
CPU使用率: 最小值 0% 最大值 0.65% 平均值 0.325%
每秒IO请求次数: 最小值 3.89 最大值 9.9 平均值 6.895
连接数: 最小值 61 最大值 61 平均值 61
活跃连接数: 最小值 0 最大值 0 平均值 0
空间使用量: 总使用量;58478MB 数据使用量;55197MB 日志使用量;359MB 临时使用量;0MB 系统使用量:2922MB
### rm-bp1piz35u161jjc92
内存使用率: 最小值 48.7% 最大值 48.7% 平均值 5.41111111111111%
CPU使用率: 最小值 0.21% 最大值 0.23% 平均值 0.223333333333333%
每秒IO请求次数: 最小值 1.29 最大值 3.31 平均值 1.95111111111111
连接数: 最小值 87 最大值 87 平均值 87
活跃连接数: 最小值 1 最大值 1 平均值 1
空间使用量: 总使用量;77573MB 数据使用量;66166MB 日志使用量;2828MB 临时使用量;1MB 系统使用量:8578MB
慢日志:[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 19199519
zk_packets_sent 19225355
zk_num_alive_connections 47
zk_outstanding_requests 0
zk_server_state leader
zk_znode_count 2649
zk_watch_count 1158
zk_ephemerals_count 1436
zk_approximate_data_size 802966
zk_open_file_descriptor_count 81
zk_max_file_descriptor_count 1048576
zk_followers 3
zk_synced_followers 3
zk_pending_syncs 0
## Redis情况
Cpu使用率:0.60%
已用内存:124788900.00Byte
每秒总访问量:95.33
已用连接数:1487.50
键总数:33109.00
设置过期时间的key数量:33105.00
每秒请求次数:86.60 最大每秒请求次数:1329.44
每秒回复次数:1427.31 最大每秒回复次数:10237.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-09-04T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-05T15%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-28T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-05T15%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-04T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-05T15%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-04T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-05T15%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-04T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-05T15%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-28T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2019-09-05T15%3A59%3A59.999Z')))
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|account|/* applicationname = intellij idea 2019.1 */ select * from user_service.user_employee_20190829 where tenant_id = :1|1|2|2||0|0|835482|835482|20|20|
|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|
|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|3|3||0|0|20472|20472|0|0|
|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 ) group by assist_task_activity_id|1|2|2||0|0|375486|375486|4|4|
|tenant|/* applicationname = datagrip 2018.2.2 */ select * from authorization_service.user_login_token where employee_id = :1 and login_way = :2 order by create_time desc|1|1|1||0|0|1186491|1186491|97|97|
|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|50244|50244|1|1|
||select * from activity_service.assist_task_user t where t.user_id = :1|1|2|2||0|0|375442|375442|6|6|
|activity_service|select id , tenant_id , tenant_wechatapp_id , activity_id , acitivity_type , user_id , qualified_id , page_id , scene_type , scene_biz_id , create_time , update_time from activity_gift_grant where activity_id = :1 and acitivity_type = :2 and user_id = :3 and scene_type = :4 and scene_biz_id = :5|1|1|1||0|0|164848|164848|0|0|
|platform|select * from ( select employee.empname , a.* from employee right join ( select a.uid as uid , ifnull ( a.totaltotal , 0 ) as totaltotal , ifnull ( a.totalnotcompleted , 0 ) as totalnotcompleted , ifnull ( a.totalcompleted , 0 ) as totalcompleted , ifnull ( a.totalabnormal , 0 ) as totalabnormal , ifnull ( b.onetotal , 0 ) as onetotal , ifnull ( ( a.totalcompleted/a.totaltotal ) , 0 ) *100 as totalcompletionrate , ifnull ( ( b.onecompleted/b.onetotal ) , 0 ) *100 as onecompletionrate , ifnull ( ( c.twocompleted/c.twototal ) , 0 ) *100 as twocompletionrate , ifnull ( ( d.threecompleted/d.threetotal ) , 0 ) *100 as threecompletionrate , ifnull ( b.onenotcompleted , 0 ) as onenotcompleted , ifnull ( b.onecompleted , 0 ) as onecompleted , ifnull ( b.oneabnormal , 0 ) as oneabnormal , ifnull ( c.twototal , 0 ) as twototal , ifnull ( c.twonotcompleted , 0 ) as twonotcompleted , ifnull ( c.twocompleted , 0 ) as twocompleted , ifnull ( c.twoabnormal , 0 ) as twoabnormal , ifnull ( d.threetotal , 0 ) as threetotal , ifnull ( d.threenotcompleted , 0 ) as threenotcompleted , ifnull ( d.threecompleted , 0 ) as threecompleted , ifnull ( d.threeabnormal , 0 ) as threeabnormal from ( select a.uid , ifnull ( totaltotal , 0 ) as totaltotal , ifnull ( totalnotcompleted , 0 ) as totalnotcompleted , ifnull ( totalcompleted , 0 ) as totalcompleted , ifnull ( totalabnormal , 0 ) as totalabnormal from ( select count ( 1 ) as totaltotal , uid from taskassignment ta where tasktype > :1 and tasktype < :2 and vendorid = :3 and ta.createtime >= :4 and ta.createtime < :5 group by uid ) a left join ( select count ( 1 ) as totalnotcompleted , uid from taskassignment ta where tasktype > :6 and tasktype < :7 and ta.taskstatus != :8 and ta.taskstatus != :9 and vendorid = :10 and ta.createtime >= :11 and ta.createtime < :12 group by uid ) b on a.uid = b.uid left join ( select count ( 1 ) as totalcompleted , uid from taskassignment ta where tasktype > :13 and tasktype < :14 and ta.taskstatus = :15 and ta.taskstatus != :16 and vendorid = :17 and ta.createtime >= :18 and ta.createtime < :19 group by uid ) c on a.uid = c.uid left join ( select count ( 1 ) as totalabnormal , uid from taskassignment ta where tasktype > :20 and tasktype < :21 and ta.taskstatus = :22 and vendorid = :23 and ta.createtime >= :24 and ta.createtime < :25 group by uid ) d on a.uid = d.uid ) a left join ( select a.uid , ifnull ( totaltotal , 0 ) as onetotal , ifnull ( totalnotcompleted , 0 ) as onenotcompleted , ifnull ( totalcompleted , 0 ) as onecompleted , ifnull ( totalabnormal , 0 ) as oneabnormal from ( select count ( 1 ) as totaltotal , uid from taskassignment ta where tasktype = :26 and tasktype = :27 and vendorid = :28 and ta.createtime >= :29 and ta.createtime < :30 group by uid ) a left join ( select count ( 1 ) as totalnotcompleted , uid from taskassignment ta where tasktype = :31 and ta.taskstatus != :32 and ta.taskstatus != :33 and vendorid = :34 and ta.createtime >= :35 and ta.createtime < :36 group by uid ) b on a.uid = b.uid left join ( select count ( 1 ) as totalcompleted , uid from taskassignment ta where tasktype = :37 and ta.taskstatus = :38 and ta.taskstatus != :39 and vendorid = :40 and ta.createtime >= :41 and ta.createtime < :42 group by uid ) c on a.uid = c.uid left join ( select count ( 1 ) as totalabnormal , uid from taskassignment ta where tasktype = :43 and ta.taskstatus = :44 and vendorid = :45 and ta.createtime >= :46 and ta.createtime < :47 group by uid ) d on a.uid = d.uid ) b on a.uid = b.uid left join ( select a.uid , ifnull ( totaltotal , 0 ) as twototal , ifnull ( totalnotcompleted , 0 ) as twonotcompleted , ifnull ( totalcompleted , 0 ) as twocompleted , ifnull ( totalabnormal , 0 ) as twoabnormal from ( select count ( 1 ) as totaltotal , uid from taskassignment ta where tasktype = :48 and tasktype = :49 and vendorid = :50 and ta.createtime >= :51 and ta.createtime < :52 group by uid ) a left join ( select count ( 1 ) as totalnotcompleted , uid from taskassignment ta where tasktype = :53 and ta.taskstatus != :54 and ta.taskstatus != :55 and vendorid = :56 and ta.createtime >= :57 and ta.createtime < :58 group by uid ) b on a.uid = b.uid left join ( select count ( 1 ) as totalcompleted , uid from taskassignment ta where tasktype = :59 and ta.taskstatus = :60 and ta.taskstatus != :61 and vendorid = :62 and ta.createtime >= :63 and ta.createtime < :64 group by uid ) c on a.uid = c.uid left join ( select count ( 1 ) as totalabnormal , uid from taskassignment ta where tasktype = :65 and ta.taskstatus = :66 and vendorid = :67 and ta.createtime >= :68 and ta.createtime < :69 group by uid ) d on a.uid = d.uid ) c on a.uid = c.uid left join ( select a.uid , ifnull ( totaltotal , 0 ) as threetotal , ifnull ( totalnotcompleted , 0 ) as threenotcompleted , ifnull ( totalcompleted , 0 ) as threecompleted , ifnull ( totalabnormal , 0 ) as threeabnormal from ( select count ( 1 ) as totaltotal , uid from taskassignment ta where tasktype = :70 and tasktype = :71 and vendorid = :72 and ta.createtime >= :73 and ta.createtime < :74 group by uid ) a left join ( select count ( 1 ) as totalnotcompleted , uid from taskassignment ta where tasktype = :75 and ta.taskstatus != :76 and ta.taskstatus != :77 and vendorid = :78 and ta.createtime >= :79 and ta.createtime < :80 group by uid ) b on a.uid = b.uid left join ( select count ( 1 ) as totalcompleted , uid from taskassignment ta where tasktype = :81 and ta.taskstatus = :82 and ta.taskstatus != :83 and vendorid = :84 and ta.createtime >= :85 and ta.createtime < :86 group by uid ) c on a.uid = c.uid left join ( select count ( 1 ) as totalabnormal , uid from taskassignment ta where tasktype = :87 and ta.taskstatus = :88 and vendorid = :89 and ta.createtime >= :90 and ta.createtime < :91 group by uid ) d on a.uid = d.uid ) d on a.uid = d.uid order by uid desc ) a on employee.uid = a.uid where :92 = :93 group by a.uid ) a limit :94 , :95|1|1|1||0|0|632618|632618|0|0|
|user_service|select tenantuser.* , user.nick_name 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 ) ) order by tenantuser.user_id asc limit :5|1|1|1||0|0|204709|204709|8|8|
||select ar.* from authorization_service.account_role2 ar join authorization_service.account a on ar.account_id = a.id left join tenant.employee_shop es on a.employee_id = es.employee_id and ar.shop_id = es.shop_id where es.id is null|1|8|8||0|0|41804|41804|726|726|
|platform|select count ( 1 ) from ( select c.openid , c.nickname , c.headimgurl , a.* from wetplsent a left join member c on a.uid = c.id ) as tv where vendorid = :1|1|2|2||0|0|108264|108264|1|1|
|message_push|delete from message_log where create_time < :1|1|17|17||0|0|218230|218230|0|0|
|platform|select * from ( select c.openid , c.nickname , c.headimgurl , a.* from wetplsent a left join member c on a.uid = c.id ) as tv where vendorid = :1 order by sendtime desc limit :2 , :3|1|4|4||0|0|54172|54172|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|632441|632441|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|502120|502120|632|632|
|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|1|6|6||0|0|7078|7078|20|20|
|activity_service|select atu.user_id as userid , if ( atu.finished_task_num > ata.task_total_num , ata.task_total_num , atu.finished_task_num ) as lightupnum , date_format ( atu.update_time , '%y-%m-%d%h:%i:%s' ) as datetime from assist_task_user atu join assist_task_activity ata on ata.id = atu.assist_task_activity_id where atu.assist_task_activity_id = :1 and atu.partake_type = :2 order by lightupnum desc , atu.update_time desc|1|7|7||0|0|85076|85076|5618|5618|
|user_service|select ue.employee_id as employeeid , count ( * ) as quantity from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where employee_id in ( :1 , :2 , :3 , :4 , :5 , :6 , :7 ) and ue.tenant_wechatapp_id = :8 and tu.shop_id = :9 group by ue.employee_id|1|2|2||0|0|28088|28088|7|7|
|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|
|account|/* applicationname = intellij idea 2019.1 */ insert into authorization_service.login_account ( id , tenant_id , account_id , type , login_name , user_id , employee_id , tenant_app_id , status , create_time , update_time ) select etu.id +1 as id , a.tenant_id , a.id as account_id , 'app_user_id' as type , '' as login_name , info.user_id as user_id , 0 as employee_id , info.tenant_app_id as tenant_app_id , 'enable' as status , now ( ) , now ( ) from authorization_service.user_login_info info join tenant.employee_tenant_user etu on info.tenant_id = etu.tenant_id and etu.tenant_app_id = info.tenant_app_id and info.user_id = etu.user_id join authorization_service.account a on a.tenant_id = info.tenant_id and a.employee_id = etu.employee_id on duplicate key update create_time = now ( )|1|7|7||0|0|29956|29956|0|0|
|user_service|select t.id , t.tenant_app_id , t.user_id , t.erp_member_id from tenant_user t where t.tenant_app_id = :1 and t.shop_id = :2 and t.mobile_no is not null and t.mobile_no != :3 order by id asc limit :4 , :5|1|2|2||0|0|2774595|2774595|4|4|
||select * from authorization_service.account_role2 ar join authorization_service.account a on ar.account_id = a.id left join tenant.employee_shop es on a.employee_id = es.employee_id and ar.shop_id = es.shop_id where es.id is null|1|12|12||0|0|73772|73772|726|726|
||select * from authorization_service.user_login_token where user_id = :1 order by id desc|1|1|1||0|0|1178041|1178041|3|3|
|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 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|
|user_service|select ue.employee_id as employeeid , count ( * ) as quantity from user_service.user_employee ue join user_service.tenant_user tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where employee_id in ( :1 , :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 ) and ue.tenant_wechatapp_id = :11 and tu.shop_id = :12 group by ue.employee_id|1|7|7||0|0|10580|10580|10|10|
|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|173340|173340|0|0|
|payment|select id , tenant_id , tenant_app_id , goods_order_source , goods_order_no , goods_name , goods_amount , fee_type , request_ip , user_id , user_identify , user_sub_identify , pay_way , trade_type , order_start_time , order_expire_time , prepay_id , transaction_id , pay_amount , pay_finish_time , pay_status , pay_status_desc , error_msg , wxappid , sub_wxappid , mch_id , sub_mch_id , callback_tag , callback_result , create_time , update_time from pay_order where callback_result in ( :1 , :2 ) and pay_status in ( :3 , :4 ) order by id asc limit :5|1|1|1||0|0|50939|50939|0|0|
|basepublish|select * from publish_item order by id desc|1|1|1||0|0|676|676|676|676|
|message_push|select * from message_log where update_time >= :1|1|85|85||0|0|2777824|2777824|41526|41526|
||select ar.* from authorization_service.account_role2 ar join authorization_service.account a on ar.account_id = a.id left join tenant.employee_shop es on a.employee_id = es.employee_id and ar.shop_id = es.shop_id where ar.role_code in ( :1 , :2 ) and es.id is null|1|8|8||0|0|41287|41287|209|209|
|user_service|select t1.user_id as userid , t2.head_img_url as headimgurl , t2.nick_name as nickname , t1.mobile_no as mobileno , t1.is_subscribe as subscribe , t1.sex , t1.tenant_union_id as tenantunionid , date_format ( t1.bind_time , '%y-%m-%d%h:%i:%s' ) as registertime , t1.id as tenantuserid from tenant_user t1 join `user` t2 on t1.user_id = t2.id left join user_employee t3 on t1.user_id = t3.user_id and t1.tenant_id = t3.tenant_id and t1.tenant_app_id = t3.tenant_wechatapp_id where t3.id is null and t1.mobile_no is not null and t1.mobile_no != :1 and t1.shop_id = :2 and t1.tenant_id = :3 and t1.tenant_app_id = :4 order by t1.bind_time asc limit :5 , :6|1|1|1||0|0|4047|4047|8|8|
|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 )|1|4|4||0|0|7058|7058|1|1|
|employee|select * from backlog where tenant_app_id = :1 and employee_id = :2 and status in ( :3 , :4 ) and shop_id = :5 and scene = :6 and expire_time >= :7 order by create_time desc limit :8 , :9|1|4|4||0|0|125327|125327|1|1|
|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|1353406|1353406|20|20|
|user_service|select id , plat_unionid , plat_openid , user_name , mobile_no , nick_name , sex , head_img_url , country , province , city , status , create_time , update_time , is_subscribe , subscribe_time from user where id in ( :1 , :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :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 , :188 , :189 , :190 , :191 , :192 , :193 , :194 , :195 , :196 , :197 , :198 , :199 , :200 , :201 , :202 , :203 , :204 , :205 , :206 , :207 , :208 , :209 , :210 , :211 , :212 , :213 , :214 , :215 , :216 , :217 , :218 , :219 , :220 , :221 , :222 , :223 , :224 , :225 , :226 , :227 , :228 , :229 , :230 , :231 , :232 , :233 , :234 , :235 , :236 , :237 , :238 , :239 , :240 , :241 , :242 , :243 , :244 , :245 , :246 , :247 , :248 , :249 , :250 , :251 , :252 , :253 , :254 , :255 , :256 , :257 , :258 , :259 , :260 , :261 , :262 , :263 , :264 , :265 , :266 , :267 , :268 , :269 , :270 , :271 , :272 , :273 , :274 , :275 , :276 , :277 , :278 , :279 , :280 , :281 , :282 , :283 , :284 , :285 , :286 , :287 , :288 , :289 , :290 , :291 , :292 , :293 , :294 , :295 , :296 , :297 , :298 , :299 , :300 , :301 , :302 , :303 , :304 , :305 , :306 , :307 , :308 , :309 , :310 , :311 , :312 , :313 , :314 , :315 , :316 , :317 , :318 , :319 , :320 , :321 , :322 , :323 , :324 , :325 , :326 , :327 , :328 , :329 , :330 , :331 , :332 , :333 , :334 , :335 , :336 , :337 , :338 , :339 , :340 , :341 , :342 , :343 , :344 , :345 , :346 , :347 , :348 , :349 , :350 , :351 , :352 , :353 , :354 , :355 , :356 , :357 , :358 , :359 , :360 , :361 , :362 , :363 , :364 , :365 , :366 , :367 , :368 , :369 , :370 , :371 , :372 , :373 , :374 , :375 , :376 , :377 , :378 , :379 , :380 , :381 , :382 , :383 , :384 , :385 , :386 , :387 , :388 , :389 , :390 , :391 , :392 , :393 , :394 , :395 , :396 , :397 , :398 , :399 , :400 , :401 , :402 , :403 , :404 , :405 , :406 , :407 , :408 , :409 , :410 , :411 , :412 , :413 , :414 , :415 , :416 , :417 , :418 , :419 , :420 , :421 , :422 , :423 , :424 , :425 , :426 , :427 , :428 , :429 , :430 , :431 , :432 , :433 , :434 , :435 , :436 , :437 , :438 , :439 , :440 , :441 , :442 , :443 , :444 , :445 , :446 , :447 , :448 , :449 , :450 , :451 , :452 , :453 , :454 , :455 , :456 , :457 , :458 , :459 , :460 , :461 , :462 , :463 , :464 , :465 , :466 , :467 , :468 , :469 , :470 , :471 , :472 , :473 , :474 , :475 , :476 , :477 , :478 , :479 , :480 , :481 , :482 , :483 , :484 , :485 , :486 , :487 , :488 , :489 , :490 , :491 , :492 , :493 , :494 , :495 , :496 , :497 , :498 , :499 , :500 , :501 , :502 , :503 , :504 , :505 , :506 , :507 , :508 , :509 , :510 , :511 , :512 , :513 , :514 , :515 , :516 , :517 , :518 , :519 , :520 , :521 , :522 , :523 , :524 , :525 , :526 , :527 , :528 , :529 , :530 , :531 , :532 , :533 , :534 , :535 , :536 , :537 , :538 , :539 , :540 , :541 , :542 , :543 , :544 , :545 , :546 , :547 , :548 , :549 , :550 , :551 , :552 , :553 , :554 , :555 , :556 , :557 , :558 , :559 , :560 , :561 , :562 , :563 , :564 , :565 , :566 , :567 , :568 , :569 , :570 , :571 , :572 , :573 , :574 , :575 , :576 , :577 , :578 , :579 , :580 , :581 , :582 , :583 , :584 , :585 , :586 , :587 , :588 , :589 , :590 , :591 , :592 , :593 , :594 , :595 , :596 , :597 , :598 , :599 , :600 , :601 , :602 , :603 , :604 , :605 , :606 , :607 , :608 , :609 , :610 , :611 , :612 , :613 , :614 , :615 , :616 , :617 , :618 , :619 , :620 , :621 , :622 , :623 , :624 , :625 , :626 , :627 , :628 , :629 , :630 , :631 , :632 , :633 , :634 , :635 , :636 , :637 , :638 , :639 , :640 , :641 , :642 , :643 , :644 , :645 , :646 , :647 , :648 , :649 , :650 , :651 , :652 , :653 , :654 , :655 , :656 , :657 , :658 , :659 , :660 , :661 , :662 , :663 , :664 , :665 , :666 , :667 , :668 , :669 , :670 , :671 , :672 , :673 , :674 , :675 , :676 , :677 , :678 , :679 , :680 , :681 , :682 , :683 , :684 , :685 , :686 , :687 , :688 , :689 , :690 , :691 , :692 , :693 , :694 , :695 , :696 , :697 , :698 , :699 , :700 , :701 , :702 , :703 , :704 , :705 , :706 , :707 , :708 , :709 , :710 , :711 , :712 , :713 , :714 , :715 , :716 , :717 , :718 , :719 , :720 , :721 , :722 , :723 , :724 , :725 , :726 , :727 , :728 , :729 , :730 , :731 , :732 , :733 , :734 , :735 , :736 , :737 , :738 , :739 , :740 , :741 , :742 , :743 , :744 , :745 , :746 , :747 , :748 , :749 , :750 , :751 , :752 , :753 , :754 , :755 , :756 , :757 , :758 , :759 , :760 , :761 , :762 , :763 , :764 , :765 , :766 , :767 , :768 , :769 , :770 , :771 , :772 , :773 , :774 , :775 , :776 , :777 , :778 , :779 , :780 , :781 , :782 , :783 , :784 , :785 , :786 , :787 , :788 , :789 , :790 , :791 , :792 , :793 , :794 , :795 , :796 , :797 , :798 , :799 , :800 , :801 , :802 , :803 , :804 , :805 , :806 , :807 , :808 , :809 , :810 , :811 , :812 , :813 , :814 , :815 , :816 , :817 , :818 , :819 , :820 , :821 , :822 , :823 , :824 , :825 , :826 , :827 , :828 , :829 , :830 , :831 , :832 , :833 , :834 , :835 , :836 , :837 , :838 , :839 , :840 , :841 , :842 , :843 , :844 , :845 , :846 , :847 , :848 , :849 , :850 , :851 , :852 , :853 , :854 , :855 , :856 , :857 , :858 , :859 , :860 , :861 , :862 , :863 , :864 , :865 , :866 , :867 , :868 , :869 , :870 , :871 , :872 , :873 , :874 , :875 , :876 , :877 , :878 , :879 , :880 , :881 , :882 , :883 , :884 , :885 , :886 , :887 , :888 , :889 , :890 , :891 , :892 , :893 , :894 , :895 , :896 , :897 , :898 , :899 , :900 , :901 , :902 , :903 , :904 , :905 , :906 , :907 , :908 , :909 , :910 , :911 , :912 , :913 , :914 , :915 , :916 , :917 , :918 , :919 , :920 , :921 , :922 , :923 , :924 , :925 , :926 , :927 , :928 , :929 , :930 , :931 , :932 , :933 , :934 , :935 , :936 , :937 , :938 , :939 , :940 , :941 , :942 , :943 , :944 , :945 , :946 , :947 , :948 , :949 , :950 , :951 , :952 , :953 , :954 , :955 , :956 , :957 , :958 , :959 , :960 , :961 , :962 , :963 , :964 , :965 , :966 , :967 , :968 , :969 , :970 , :971 , :972 , :973 , :974 , :975 , :976 , :977 , :978 , :979 , :980 , :981 , :982 , :983 , :984 , :985 , :986 , :987 , :988 , :989 , :990 , :991 , :992 , :993 , :994 , :995 , :996 , :997 , :998 , :999 , :1000 , :1001 , :1002 , :1003 , :1004 , :1005 , :1006 , :1007 , :1008 , :1009 , :1010 , :1011 , :1012 , :1013 , :1014 , :1015 , :1016 , :1017 , :1018 , :1019 , :1020 , :1021 , :1022 , :1023 , :1024 , :1025 , :1026 , :1027 , :1028 , :1029 , :1030 , :1031 , :1032 , :1033 , :1034 , :1035 , :1036 , :1037 , :1038 , :1039 , :1040 , :1041 , :1042 , :1043 , :1044 , :1045 , :1046 , :1047 , :1048 , :1049 , :1050 , :1051 , :1052 , :1053 , :1054 , :1055 , :1056 , :1057 , :1058 , :1059 , :1060 , :1061 , :1062 , :1063 , :1064 , :1065 , :1066 , :1067 , :1068 , :1069 , :1070 , :1071 , :1072 , :1073 , :1074 , :1075 , :1076 , :1077 , :1078 , :1079 , :1080 , :1081 , :1082 , :1083 , :1084 , :1085 , :1086 , :1087 , :1088 , :1089 , :1090 , :1091 , :1092 , :1093 , :1094 , :1095 , :1096 , :1097 , :1098 , :1099 , :1100 , :1101 , :1102 , :1103 , :1104 , :1105 , :1106 , :1107 , :1108 , :1109 , :1110 , :1111 , :1112 , :1113 , :1114 , :1115 , :1116 , :1117 , :1118 , :1119 , :1120 , :1121 , :1122 , :1123 , :1124 , :1125 , :1126 , :1127 , :1128 , :1129 , :1130 , :1131 , :1132 , :1133 , :1134 , :1135 , :1136 , :1137 , :1138 , :1139 , :1140 , :1141 , :1142 , :1143 , :1144 , :1145 , :1146 , :1147 , :1148 , :1149 , :1150 , :1151 , :1152 , :1153 , :1154 , :1155 , :1156 , :1157 , :1158 , :1159 , :1160 , :1161 , :1162 , :1163 , :1164 , :1165 , :1166 , :1167 , :1168 , :1169 , :1170 , :1171 , :1172 , :1173 , :1174 , :1175 , :1176 , :1177 , :1178 , :1179 , :1180 , :1181 , :1182 , :1183 , :1184 , :1185 , :1186 , :1187 , :1188 , :1189 , :1190 , :1191 , :1192 , :1193 , :1194 , :1195 , :1196 , :1197 , :1198 , :1199 , :1200 , :1201 , :1202 , :1203 , :1204 , :1205 , :1206 , :1207 , :1208 , :1209 , :1210 , :1211 , :1212 , :1213 , :1214 , :1215 , :1216 , :1217 , :1218 , :1219 , :1220 , :1221 , :1222 , :1223 , :1224 , :1225 , :1226 , :1227 , :1228 , :1229 , :1230 , :1231 , :1232 , :1233 , :1234 , :1235 , :1236 , :1237 , :1238 , :1239 , :1240 , :1241 , :1242 , :1243 , :1244 , :1245 , :1246 , :1247 , :1248 , :1249 , :1250 , :1251 , :1252 , :1253 , :1254 , :1255 , :1256 , :1257 , :1258 , :1259 , :1260 , :1261 , :1262 , :1263 , :1264 , :1265 , :1266 , :1267 , :1268 , :1269 , :1270 , :1271 , :1272 , :1273 , :1274 , :1275 , :1276 , :1277 , :1278 , :1279 , :1280|1|2|2||0|0|5613|5613|5613|5613|
|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|12312|6156|2852|1426|
|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|2|7|3||0|0|729782|364891|2|1|
||select a.employee_id , ar.* from authorization_service.account_role2 ar join authorization_service.account a on ar.account_id = a.id left join tenant.employee_shop es on a.employee_id = es.employee_id and ar.shop_id = es.shop_id where ar.role_code in ( :1 , :2 ) and es.id is null|2|15|7||0|0|82649|41362|418|209|
|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|16|8||0|0|1810747|905387|2|1|
|payment|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|2|2|1||0|0|21468|10734|21468|10734|
|platform|select * from ( select b.title , a.*from `smssent` a left join `smstemplate` b on a.templateid = b.id ) as tv where vendorid = :1 order by senttime desc limit :2 , :3|2|4|2||0|0|103782|51900|40|20|
|tenant|select id , sales_no , member_erp_id , sales_date , sales_erp_id , is_sales 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 order by sales_date desc , id desc limit :6|2|8|6||0|0|188534|94267|32|16|
|account|/* applicationname = datagrip 2019.1.2 */ select *from qrcode_service.qrcode_scan_log where tenant_app_id = :1|2|3|2||0|0|2088815|1044752|7363|3684|
|platform|select * from ( select sl.id , sl.noteno as `no` , sl.empname as salername , sl.amounttotal as amount , sl.status , s.shopname , vm.username as customername , sl.salesdate from saleslog sl join shop s on s.id = sl.sid join member m on m.id = sl.uid join vendormember vm on vm.id = m.vendormemberid where sl.vendorid = :1 ) p where :2 = :3 and status != :4|2|8|4||0|0|355792|177900|87036|43519|
|platform|select * from ( select a.* , format ( ( ( countstaffattitude + countprofessionallevel + countappearance + countstoreimage + countproductdisplay ) / 5 / a.count ) , 2 ) as avgscore from ( select s.shopname , sl.eid , sl.empname , count ( sl.empid ) as count , avg ( sl.staffattitude ) as staffattitude , avg ( sl.professionallevel ) as professionallevel , avg ( sl.appearance ) as appearance , avg ( sl.storeimage ) as storeimage , avg ( sl.productdisplay ) as productdisplay , sum ( sl.staffattitude ) as countstaffattitude , sum ( sl.professionallevel ) as countprofessionallevel , sum ( sl.appearance ) as countappearance , sum ( sl.storeimage ) as countstoreimage , sum ( sl.productdisplay ) as countproductdisplay from saleslog sl left join shop s on sl.sid = s.id where sl.vendorid = :1 and sl.staffattitude > :2 group by sl.empid , sl.empname , s.shopname ) a ) as tv order by avgscore desc , count desc limit :3 , :4|2|4|2||0|0|96884|48443|40|20|
|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|2|2|1||0|0|46187|23874|4238|2976|
|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|3|12|7||0|0|1506249|502111|0|0|
|employee|update backlog set status = :1 where tenant_app_id = :2 and employee_id = :3 and status in ( :4 , :5 ) and shop_id = :6|3|9|3||0|0|221871|84216|0|0|
|user_service|select t1.user_id as userid , t2.head_img_url as headimgurl , t2.nick_name as nickname , t1.mobile_no as mobileno , t1.is_subscribe as subscribe , t1.sex , t1.tenant_union_id as tenantunionid , date_format ( t1.bind_time , '%y-%m-%d%h:%i:%s' ) as registertime , t1.id as tenantuserid from tenant_user t1 join `user` t2 on t1.user_id = t2.id left join user_employee t3 on t1.user_id = t3.user_id and t1.tenant_id = t3.tenant_id and t1.tenant_app_id = t3.tenant_wechatapp_id where t3.id is null and t1.mobile_no is not null and t1.mobile_no != :1 and t1.shop_id = :2 and t1.tenant_id = :3 and t1.tenant_app_id = :4 order by t1.bind_time asc|3|33|15||0|0|141365|72318|3|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|3|7|3||0|0|713348|314922|0|0|
|platform|select * from ( select c.* , cd.getamount , useamount from coupon c left join ( select couponid , sum ( if ( couponstate in ( 3 , 6 , 4 ) , 1 , 0 ) ) as getamount , sum ( if ( couponstate = 4 , 1 , 0 ) ) as useamount from coupondetail group by couponid ) cd on c.id = cd.couponid ) as tv where :1 = :2 and vendorid = :3 order by effectivedate desc limit :4 , :5|3|4|2||0|0|960102|320034|375|125|
|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|5|2||0|0|1917705|639235|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|7|2||0|0|1501950|375496|72|18|
|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|4|16|5||0|0|71359|19245|4022|1240|
|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 ) ) ) )|4|7|3||0|0|102095|62553|77|58|
|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|263968|52848|5|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|5|12|3||0|0|784455|156891|0|0|
|user_service|select t1.user_id as userid , t2.head_img_url as headimgurl , t2.nick_name as nickname , t1.mobile_no as mobileno , t1.is_subscribe as subscribe , t1.sex , t1.tenant_union_id as tenantunionid , date_format ( t1.bind_time , '%y-%m-%d%h:%i:%s' ) as registertime , t1.id as tenantuserid from tenant_user t1 join `user` t2 on t1.user_id = t2.id left join user_employee t3 on t1.user_id = t3.user_id and t1.tenant_id = t3.tenant_id and t1.tenant_app_id = t3.tenant_wechatapp_id where t3.id is null and t1.mobile_no is not null and t1.mobile_no != :1 and t1.shop_id = :2 and t1.tenant_id = :3 and t1.tenant_app_id = :4 order by t1.bind_time asc limit :5|5|22|15||0|0|150300|79568|23|8|
|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|5|12|5||0|0|76118|18046|100|20|
|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|19|6|0|0|
|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|5|6|2||0|0|70108|14022|0|0|
|user_service|select count ( * ) from user_service.user_employee ue join user_service.tenant_user tu on tu.user_id = ue.user_id and tu.tenant_app_id = ue.tenant_wechatapp_id where ue.employee_id = :1 and ue.tenant_wechatapp_id = :2 and tu.shop_id = :3|6|15|5||0|0|103236|18714|6|1|
|order|select tenant_wechatapp_id from order_info where status = :1 and child_status is null group by tenant_wechatapp_id|6|11|3||0|0|278020|46344|9|2|
|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|6|22|7||0|0|3013798|502560|0|0|
|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 ) )|7|17|4||0|0|1632511|236423|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|7|11|2||0|0|451621|64544|0|0|
|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|7|21|6||0|0|7306887|1043885|7|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 )|8|11|2||0|0|481057|102863|16|2|
|user_service|select count ( 0 ) from ( select t1.user_id as userid , t2.head_img_url as headimgurl , t2.nick_name as nickname , t1.mobile_no as mobileno , t1.is_subscribe as subscribe , t1.sex , t1.tenant_union_id as tenantunionid , date_format ( t1.bind_time , '%y-%m-%d%h:%i:%s' ) as registertime , t1.id as tenantuserid from tenant_user t1 join `user` t2 on t1.user_id = t2.id left join user_employee t3 on t1.user_id = t3.user_id and t1.tenant_id = t3.tenant_id and t1.tenant_app_id = t3.tenant_wechatapp_id where t3.id is null and t1.mobile_no is not null and t1.mobile_no != :1 and t1.shop_id = :2 and t1.tenant_id = :3 and t1.tenant_app_id = :4 ) table_count|8|56|15||0|0|268030|109073|6|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|9|18|5||0|0|1683|296|0|0|
|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|9|26|4||0|0|463464|52703|9|2|
|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 )|12|15|1||0|0|7591416|632618|22|10|
|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|14|27|4||0|0|2281950|201286|14|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 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|17|31|2||0|0|264701|16766|17|1|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|22|44|4||0|0|487387|38625|22|1|
|platform|select `typefullname` , `methodname` , `arguments` , `partition` , `offset` , `createtime` , `updatetime` , `retried` , `errormsg` , `id` from `pushlog` where `typefullname` = :1 and `methodname` = :2 and `arguments` = :3|23|35|2||0|0|5619267|244332|0|0|
|facepass_sync|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|24|31|1||0|0|52515|2211|52515|2211|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|25|62|4||0|0|7980025|319201|25|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 )|28|249|15||0|0|2584518|189081|28|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|29|66|5||0|0|431782|18106|660|100|
|employee|select * from backlog where tenant_app_id = :1 and employee_id = :2 and status in ( :3 , :4 ) and shop_id = :5 and scene = :6 and expire_time >= :7 order by create_time desc limit :8|29|128|15||0|0|3175214|125329|55|8|
|account|select original_task_id from job_status_trace_log where task_id = :1 and state = :2|30|38|2||0|0|65601|2210|65601|2210|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|39|102|8||0|0|1739060|109980|39|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|112|379|14||0|0|3016542|77270|107|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|203|1395|15||0|0|12077395|198220|161|1|
# 运行日志
# 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-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-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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论