提交 61070fb9 authored 作者: zengzhi's avatar zengzhi

auto commit

上级 af86a240
# 2020年05月22日运行日报:https://git.sjfx.com.cn/report/daily/blob/master/2020-05-22/daily.md
## 服务器情况
|服务器 |CPU使用率 |内存使用率 |主硬盘使用率 |查看详情 |
| :- | :-: | :-: | :-: | :- |
|v3nginx |- |- |- |http://47.98.156.252:17123/|
|v3-publish |4.73% |50.4% |50.6% |http://47.110.9.96:17123/|
|v3-base-mq001 |2.81% |65.4% |37.5% |http://114.55.171.242:17123/|
|v3-base-mq002 |3.68% |67.5% |26.5% |http://47.110.226.218:17123/|
|proxy-local |5.07% |30.2% |30.1% |http://47.96.14.81:17123/|
|v3eureka001 |14.4% |50.5% |28.9% |http://47.110.137.241:17123/|
|v3eureka002 |16.7% |62.7% |51.5% |http://114.55.171.107:17123/|
|v3-gateway001 |4.75% |36.6% |37.6% |http://47.111.11.230:17123/|
|v3-gateway002 |4.43% |38.2% |39.2% |http://47.110.14.10:17123/|
|v3-gateway003 |4.77% |40.4% |32.4% |http://47.110.12.94:17123/|
|v3-gateway004 |5.42% |39.2% |32.3% |http://114.55.169.175:17123/|
|v3-BS-F001 |14.6% |44.5% |32.1% |http://47.98.220.95:17123/|
|v3-BS-F002 |16.7% |51.6% |22.3% |http://47.111.105.30:17123/|
|v3-BS-H001 |13.8% |40.2% |29.7% |http://47.111.169.175:17123/|
|v3-BS-H002 |17.1% |50.6% |22.3% |http://114.55.171.6:17123/|
|v3-BS-G001 |17.2% |53.1% |36.1% |http://114.55.243.46:17123/|
|v3-BS-G002 |18.7% |54% |22% |http://47.98.158.5:17123/|
|v3-BS-I001 |12.8% |43.2% |29.1% |http://114.55.243.77:17123/|
|v3-BS-I002 |19.3% |53.3% |22% |http://114.55.242.246:17123/|
## 数据库情况
### rm-bp1qn4bl8d8p9mnm4
内存使用率: 最小值 49.22% 最大值 50.14% 平均值 0.0348436414176511%
CPU使用率: 最小值 1.54% 最大值 100% 平均值 12.6168589298124%
每秒IO请求次数: 最小值 6.8 最大值 2544.75 平均值 83.6537317581654
连接数: 最小值 434 最大值 454.05 平均值 439.175170257124
活跃连接数: 最小值 0 最大值 5.78 平均值 0.283154968728281
空间使用量: 总使用量;96006.79MB 数据使用量;91920.72MB 日志使用量;951.07MB 临时使用量;0.08MB 系统使用量:3134.92MB
### rr-bp13k3q7292ce5t6k
内存使用率: 最小值 34.38% 最大值 34.38% 平均值 34.38%
CPU使用率: 最小值 100% 最大值 100% 平均值 100%
每秒IO请求次数: 最小值 126.26 最大值 126.26 平均值 126.26
连接数: 最小值 60 最大值 60 平均值 60
活跃连接数: 最小值 5.44 最大值 5.44 平均值 5.44
空间使用量: 总使用量;96081.06MB 数据使用量;91511.34MB 日志使用量;1402.65MB 临时使用量;0.01MB 系统使用量:3167.07MB
### rm-bp1piz35u161jjc92
内存使用率: 最小值 48.37% 最大值 48.38% 平均值 5.37555555555556%
CPU使用率: 最小值 17.92% 最大值 49.49% 平均值 31.5855555555556%
每秒IO请求次数: 最小值 602.92 最大值 1693.9 平均值 999.94
连接数: 最小值 83 最大值 83 平均值 83
活跃连接数: 最小值 1.03 最大值 2.9 平均值 1.66444444444444
空间使用量: 总使用量;52472.89MB 数据使用量;42802.88MB 日志使用量;3524.41MB 临时使用量;2.62MB 系统使用量:6142.99MB
慢日志:[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 30
zk_min_latency 0
zk_packets_received 1567004
zk_packets_sent 1571885
zk_num_alive_connections 25
zk_outstanding_requests 0
zk_server_state leader
zk_znode_count 3366
zk_watch_count 1015
zk_ephemerals_count 1913
zk_approximate_data_size 1066799
zk_open_file_descriptor_count 59
zk_max_file_descriptor_count 1048576
zk_followers 3
zk_synced_followers 3
zk_pending_syncs 0
## Redis情况
Cpu使用率:0.80%
已用内存:139502800.00Byte
每秒总访问量:129.83
已用连接数:1429.92
键总数:15220.00
设置过期时间的key数量:15212.00
每秒请求次数:68.25 最大每秒请求次数:734.08
每秒回复次数:1349.31 最大每秒回复次数:10512.29
## 昨日注册情况
![register2020](register2020.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/30d95f90-881e-11ea-979a-f14794b858f7?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2020-05-21T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-05-22T15%3A59%3A59.999Z')))
## 7日注册情况
![7register2020](7register2020.jpg)
[url](http://kibana.sjfx.com.cn/app/kibana#/visualize/edit/9915a370-881e-11ea-979a-f14794b858f7?embed=true&_g=(refreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2020-05-14T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-05-22T15%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'2020-05-21T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-05-22T15%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'2020-05-21T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-05-22T15%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'2020-05-21T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-05-22T15%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'2020-05-14T16%3A00%3A00.000Z'%2Cmode%3Aabsolute%2Cto%3A'2020-05-22T15%3A59%3A59.999Z')))
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|数据库名称|SQL语句|总执行次数|总执行时间(秒)|最大执行时长|平均执行时间|锁定总时长|最大锁定时长|解析总行数|解析最大行数|返回总行数|返回最大行数|
| - | - | - | - | - | - | - | - | - | - | - | - |
|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 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 and p.product_type = :5 )|53|89|2||0|0|1056700|19974|53|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 )|52|86|3||0|0|39691952|763316|36|16|
|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_idfrom product pinner join category c on c.id = p.category_idleft outer join self_product sp on p.id = sp.product_idleft outer join partner_product pp on p.id = pp.product_idleft outer join partner pt on pt.id = pp.partner_idleft outer join ( select product_id , sum ( quantity ) quantity from gift_mail.inventorygroup by product_id ) t on p.id = t.product_idwhere ( ( p.is_disable is null or p.is_disable = :3 ) ) ) as pwhere ( p.tenant_id = :4 and p.product_type = :5 ) order by p.id desc limit :6|49|82|3||0|0|977814|19994|758|20|
|platform|select count ( 1 ) from `salesdetaillog` where `vendorid` = :1 and `noteid` = :2|37|73|3||0|0|1141584|37368|37|1|
|user_service|select ue.employee_id as employeeid , count ( * ) as quantity from user_service.user_employee ue join user_service.tenant_member_info tmi on ue.tenant_id = tmi.tenant_id and ue.tenant_wechatapp_id = tmi.tenant_app_id and ue.user_id = tmi.user_id where employee_id in ( :1 ) and ue.tenant_id = :2 and ue.tenant_wechatapp_id = :3 and tmi.shop_id = :4 group by ue.employee_id|29|34|1||0|0|8465716|372496|28|1|
|authorization_service|select id , platform_user_id , user_id , wx_user_id , employee_id , shop_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 , wx_app_user_id from user_login_token where ( tenant_id = :1 and account_id = :2 and status = :3 )|23|74|5||0|0|4644703|290340|48|3|
|platform|select count ( 1 ) from coupondetail cd where getuid = :1 and ( couponstate = :2 or couponstate = :3 ) and date_format ( expirytime , :4 ) >= curdate ( )|22|57|4||0|0|7089148|322234|22|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 , platform_user_id , wx_user_id , wx_app_user_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|20|55|9||0|0|1038017|114198|19|1|
|platform|select count ( 1 ) from `integrallog` where `vendorid` = :1 and `changefrom` = :2 and `changeid` = :3|19|32|2||0|0|494010|33798|19|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|25|2||0|0|4358931|256421|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|15|21|2||0|0|1005386|81020|15|1|
|user_service|select count ( 0 ) from user_service.user_employee ue join user_service.tenant_member tm on tm.tenant_id = ue.tenant_id and tm.tenant_app_id = ue.tenant_wechatapp_id and tm.user_id = ue.user_id join user_service.tenant_member_info tmi on tmi.tenant_id = tm.tenant_id and tmi.id = tm.id where ue.employee_id = :1 and ue.tenant_id = :2 and ue.tenant_wechatapp_id = :3 and tmi.shop_id = :4|15|18|1||0|0|7369646|601654|15|1|
|warranty_service|select *from warranty_service.warranty where tenant_wechatapp_id = :1 and upload_frequency <= :2 and version = :3 and warranty_img_url is null|14|39|7||0|0|467672|90682|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|12|22|3||0|0|655296|58658|0|0|
|erp_sync|select * from erp_sync.retry_data where ( need_erp_member_id = :1 or ( need_erp_member_id = :2 and erp_member_id is not null ) ) and retry_times > :3 order by id asc|10|22|3||0|0|1171762|117178|20|2|
|tenant|select id , sales_no , sales_date , member_erp_id , sales_erp_id , is_sales from erp_sales where sales_no like concat ( :1 , :2 , :3 ) and sales_status = :4 and tenant_id = :5 and tenant_wechatapp_id = :6 order by sales_date desc limit :7|10|17|3||0|0|1526654|289367|6|1|
|gift_mail|select count ( 0 ) from gift_mail.trade t left outer join gift_mail.product p on p.id = t.product_id left outer join gift_mail.trade_take tt on tt.trade_id = t.id where ( t.tenant_wechatapp_id = :1 and t.trade_type = :2 and t.order_status = :3 )|9|27|3||0|0|356173|40117|9|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|9|29|4||0|0|277094|37353|26|5|
|user_service|select tu.user_id , tm.shop_id , mb.erp_member_id membererpid , tu.mobile_no , tu.user_name , ue.employee_id , tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id inner join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :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 ,|7|12|2||0|0|2708441|594803|1375|410|
|authorization_service|update user_login_token set status = :1 , update_time = now ( ) where employee_id = :2 and tenant_id = :3 and tenant_wx_app_id = :4 and shop_id = :5 and login_way = :6 and status = :7|7|8|2||0|0|664373|114199|0|0|
|user_service|select count ( * ) from user_service.wx_user wx where wx_app_id = :1 and is_subscribe = :2 and not exists ( select null from user_service.tenant_member_bind mb where mb.tenant_id = :3 and mb.tenant_app_id = :4 and mb.wx_user_id = wx.id )|7|40|10||0|0|371270|171010|7|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|7|21|3||0|0|1435014|205002|17|6|
|user_service|select count ( * ) from user_service.user_employee ue join user_service.tenant_member_info tu on ue.tenant_wechatapp_id = tu.tenant_app_id and ue.user_id = tu.user_id where ue.tenant_id = :1 and ue.tenant_wechatapp_id = :2 and ue.employee_id = :3 and tu.shop_id = :4|6|66|13||0|0|36877432|6149702|6|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 , a.source_type 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|5|44|10||0|0|1323236|264676|5|1|
|user_service|select count ( 0 ) from user_service.tenant_member tm join user_service.tenant_member_info tmi on tm.tenant_id = tmi.tenant_id and tm.id = tmi.id left join user_service.tenant_member_bind tmb on tm.tenant_id = tmb.tenant_id and tm.id = tmb.id left join user_service.wx_user wu on tmb.wx_user_id = wu.id where tm.tenant_id = :1 and tm.tenant_app_id = :2 and tm.user_id not in ( :3 )|5|13|3||0|0|772698|194512|5|1|
|order|select od.id from order_info od left join order_detail dt on od.id = dt.order_id where od.status = :1 and dt.sku_id = :2 and od.user_id = :3|5|6|1||0|0|401243|80276|0|0|
|user_service|select count ( 0 ) from user_service.tenant_member tm join user_service.tenant_member_info tmi on tm.tenant_id = tmi.tenant_id and tm.id = tmi.id left join user_service.tenant_member_bind tmb on tm.tenant_id = tmb.tenant_id and tm.id = tmb.id left join user_service.wx_user wu on tmb.wx_user_id = wu.id where tm.tenant_id = :1 and tm.tenant_app_id = :2 and tm.user_id not in ( :3 , :4 )|4|10|3||0|0|793669|420609|4|1|
|gift_mail|select t.id , t.trade_no , t.create_time , t.order_status as tradestatus , p.product_name , p.default_image_url as productimage , t.specification , t.pricefrom gift_mail.trade tleft outer join gift_mail.product p on p.id = t.product_idleft outer join gift_mail.trade_take tt on tt.trade_id = t.idwhere ( t.tenant_wechatapp_id = :1 and t.trade_type = :2 and t.order_status = :3 ) limit :4 , :5|4|19|5||0|0|114304|28610|24|6|
|platform|update vendormember vm inner join ( select sum ( integral ) as integral , sum ( if ( integral > 0 , integral , 0 ) ) as hisintegral from integrallog where vendorid = :1 and memberid = :2 and isdeleted = :3 ) s on :4 = :5 set vm.integral = ifnull ( s.integral , :6 ) , vm.hisintegral = ifnull ( s.hisintegral , :7 ) , vm.updatetime = now ( ) where vendorid = :8 and memberid = :9|4|5|1||0|0|62|32|0|0|
|employee|select * from user_service.tenant_member_info where birthday like :1|4|25|10||0|0|24565276|6141336|289|289|
|gift_mail|select t.id , t.trade_no , t.create_time , t.order_status as tradestatus , p.product_name , p.default_image_url as productimage , t.specification , t.pricefrom gift_mail.trade tleft outer join gift_mail.product p on p.id = t.product_idleft outer join gift_mail.trade_take tt on tt.trade_id = t.idwhere ( t.tenant_wechatapp_id = :1 and t.trade_type = :2 and t.order_status = :3 ) limit :4|4|15|5||0|0|106086|28577|24|6|
|employee|select count ( 0 ) 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|3|3|1||0|0|13997|5024|3|1|
|user_service|select count ( 0 ) from ( select ue.user_id as id , tm.user_name as username , tm.head_img_url as headimgurl , tm.user_name as nickname , tm.mobile_no as mobile , tm.sex , if ( ifnull ( wu.is_subscribe , 0 ) = 0 , false , true ) as hassubscribe from user_service.user_employee ue join user_service.tenant_member tm on tm.tenant_id = ue.tenant_id and tm.tenant_app_id = ue.tenant_wechatapp_id and tm.user_id = ue.user_id join user_service.tenant_member_info tmi on tmi.tenant_id = tm.tenant_id and tmi.id = tm.id join user_service.tenant_member_bind tmb on tmb.tenant_id = ue.tenant_id and tmb.tenant_app_id = ue.tenant_wechatapp_id and tmb.user_id = ue.user_id left join user_service.wx_user wu on wu.id = tmb.wx_user_id where ue.employee_id = :1 and ue.tenant_id = :2 and ue.tenant_wechatapp_id = :3 and tmi.shop_id = :4 order by tm.id desc ) tmp_count|3|3|1||0|0|364807|136459|3|1|
|platform|select vm.* from vendormember vm join member m on vm.id = m.vendormemberid and vm.vendorid = m.vendorid where m.employeeid = :1 and vm.vendorid = :2 and ( ( birthdaytype = :3 and month ( birthday ) = month ( date_sub ( curdate ( ) , interval :4 day ) ) and day ( birthday ) = day ( date_sub ( curdate ( ) , interval :5 day ) ) ) or ( birthdaytype = :6 and month ( birthday ) = month ( date_sub ( :7 , interval :8 day ) ) and day ( birthday ) = day ( date_sub ( :9 , interval :10 day ) ) ) )|3|8|4||0|0|99186|62517|25|22|
|tenant|select count ( 0 ) from tenant.erp_sales es left join tenant.tenant_wechatapp_shop shop on shop.tenant_wechatapp_id = es.tenant_wechatapp_id and shop.dept_erp_id = es.dept_erp_id join tenant.employee e on e.tenant_id = es.tenant_id and e.employee_erp_id = es.employee_erp_id join tenant.employee_shop esh on esh.tenant_app_id = es.tenant_wechatapp_id and esh.employee_id = e.id and esh.dept_erp_id = es.dept_erp_id where es.tenant_wechatapp_id = :1 and es.dept_erp_id = :2 and es.comment_id is not null and es.comment_id != :3 and esh.status in ( :4 , :5 )|2|5|3||0|0|133745|102711|2|1|
|coupon_service|select count ( 0 ) from ( select cu.id , cu.coupon_name , cu.coupon_type , cu.coupon_no , cu.source as couponchannel , cu.coupon_state , ce.user_name , ce.creator_user_name as creatorname , round ( cu.face_value/100 , 2 ) as facevalue , cu.begin_time , cu.end_time , ce.remark , ce.mobile_no , ce.creator_mobile_no , cu.create_time , wol.create_time as writeofftime , r.create_time as reservationdate , r.shop_name as reservationshopname , if ( wol.employee_id is null , wol.user_name , wol.employee_name ) writeoffusername , wol.shop_id as shopid , wol.dept_erp_id as erpdeptid , cu.user_id , ce.source_user_id , ce.source_user_type from coupon_service.coupon cu join coupon_service.coupon_extend ce on ce.id = cu.id left join coupon_service.coupon_write_off_log wol on wol.tenant_app_id = cu.tenant_app_id and wol.coupon_id = cu.id and wol.state = :1 left join coupon_service.reservation r on r.coupon_user_id = cu.id and r.state = :2 where cu.tenant_app_id = :3 and cu.template_id = :4 ) tmp_count|2|2|1||0|0|19485|9756|2|1|
|user_service|select ue.user_id as id , tm.user_name as username , tm.head_img_url as headimgurl , tm.user_name as nickname , tm.mobile_no as mobile , tm.sex from user_service.user_employee ue join user_service.tenant_member tm on tm.tenant_id = ue.tenant_id and tm.tenant_app_id = ue.tenant_wechatapp_id and tm.user_id = ue.user_id join user_service.tenant_member_info tmi on tmi.tenant_id = tm.tenant_id and tmi.id = tm.id where ue.employee_id = :1 and ue.tenant_id = :2 and ue.tenant_wechatapp_id = :3 and tmi.shop_id = :4 and ( tm.user_name like concat ( :5 , :6 , :7 ) or tm.mobile_no = :8 ) order by tm.id desc limit :9|2|2|1||0|0|594516|297261|2|1|
|corpwx|update external_user set un_assign_flag = :1 where ( tenant_id = :2 and corp_user_id = :3 and user_id = :4 )|2|2|1||0|0|182483|177072|0|0|
|account|select round ( ifnull ( sum ( total_amount ) , 0 ) /100 , 2 ) monthuseamount from account.wx_redpacket_send_order where tenant_id = :1 and tenant_wechatapp_id = :2 and order_status in ( :3 , :4 , :5 )|2|2|1||0|0|46952|23476|2|1|
|user_service|select tu.user_id , tm.shop_id , mb.erp_member_id membererpid , tu.mobile_no , tu.user_name , ue.employee_id , tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id inner join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :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|2|5|3||0|0|1167025|583517|179|94|
|user_service|select count ( * ) from user_service.tenant_member tm left join user_service.user_employee t3 on tm.tenant_id = t3.tenant_id and tm.user_id = t3.user_id and tm.tenant_app_id = t3.tenant_wechatapp_id join user_service.tenant_member_info tmi on tm.tenant_id = tmi.tenant_id and tm.id = tmi.id where t3.id is null and tmi.shop_id = :1 and tmi.tenant_app_id = :2 and tmi.tenant_id = :3|2|2|1||0|0|559046|309545|2|1|
|user_service|select count ( * ) from user_service.user_employee ue join user_service.tenant_member_info tu on tu.tenant_id = ue.tenant_id and tu.user_id = ue.user_id and tu.tenant_app_id = ue.tenant_wechatapp_idwhere ue.tenant_id = :1 and ue.employee_id = :2 and ue.tenant_wechatapp_id = :3 and tu.shop_id = :4|1|1|1||0|0|113160|113160|1|1|
|user_service|select count ( 1 ) from `tenant_member_info`|1|6|6||0|0|6141375|6141375|1|1|
|corpwx|update external_user set un_assign_flag = :1 where ( tenant_id = :2 and un_assign_flag = :3 )|1|1|1||0|0|177241|177241|0|0|
|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 , a.source_type 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 order by a.create_time desc limit :2|1|1|1||0|0|2392721|2392721|20|20|
|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 , a.source_type from sms_send a left join sms_template b on a.template_code = b.code left join sms_template_custom stc on a.tenant_app_id = stc.tenant_app_id and a.template_code = stc.code and stc.status = :1 ) table_count|1|25|25||0|0|8461844|8461844|1|1|
|message_push|insert into message_log ( id , tenant_id , tenant_app_id , user_id , scene_type , post_data , create_time , update_time ) values ( :1 , :2 , :3 , :4 , :5 , ... = 958558203837218816#/member/my_steward\",\"data\":{\"keyword1\":{\"value\":\"高冠宇 ( :6 ) \",\"color\":\"#000066\"},\"keyword2\":{\"value\":\"2020年05月22日\",\"color\":\"#000066\"},\"remark\":{\"value\":\"点击查看专属珠宝管家详情,天泰珠宝竭诚为您服务!\",\"color\":\"#ff3399\"},\"first\":{\"value\":\"尊敬的高冠宇会员,为您升级了专属珠宝管家:王云霞\",\"color\":\"#000000\"}},\"appid\":null,\"pagepath\":null}' , :7 , :8 )|1|1|1||0|0|0|0|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|13|13||0|0|792948|792948|97|97|
|user_service|select * from user_service.user_employee_back_20200522|1|61|61||0|0|2418917|2418917|2418917|2418917|
|warranty_service|select count ( 0 ) from warranty_service.warranty where tenant_wechatapp_id = :1 and is_disable = false and dept_erp_id = :2 and employee_erp_id = :3 and sales_date >= :4 and sales_date <= :5 and employee_erp_id in ( :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 )|1|1|1||0|0|3960|3960|1|1|
|user_service|select count ( * ) from user_service.user_employee ue join user_service.tenant_member_info tmi on ue.tenant_id = tmi.tenant_id and ue.tenant_wechatapp_id = tmi.tenant_app_id and ue.user_id = tmi.user_id left join tenant.employee_shop es on es.tenant_app_id = ue.tenant_wechatapp_id and es.employee_id = ue.employee_id and es.shop_id = tmi.shop_id where es.id is null|1|31|31||0|0|5024726|5024726|1|1|
|order|select max ( create_time ) from `order`.order_operator_log where tenant_wechatapp_id = :1 and order_id = :2|1|1|1||0|0|313138|313138|1|1|
|coupon_service|select id , tenant_id , tenant_app_id , template_id , coupon_push_id , coupon_no , coupon_state , user_id , coupon_name , coupon_type , face_value , discount , use_threshold , begin_time , end_time , wx_card_id , wx_card_no , source , source_id , business_id , create_time , update_time from coupon where ( tenant_id = :1 and tenant_app_id = :2 and wx_card_no = :3 )|1|1|1||0|0|9722|9722|1|1|
|user_service|select tu.user_id , tm.shop_id , mb.erp_member_id membererpid , tu.mobile_no , tu.user_name , ue.employee_id , tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id inner join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 )|1|1|1||0|0|481710|481710|6|6|
|user_service|select count ( * ) from user_service.user_employee ue join user_service.tenant_member_info tmi on ue.tenant_id = tmi.tenant_id and ue.tenant_wechatapp_id = tmi.tenant_app_id and ue.user_id = tmi.user_id left join tenant.employee_shop es on es.tenant_app_id = ue.tenant_wechatapp_id and es.employee_id = ue.employee_id and es.shop_id = tmi.shop_id and es.status != :1 where es.id is null|1|31|31||0|0|9896256|9896256|1|1|
|user_service|select count ( * ) from user_service.user_employee|1|3|3||0|0|2535829|2535829|1|1|
|warranty_service|select count ( * ) from warranty where user_id = :1 and tenant_wechatapp_id = :2 and is_disable = :3|1|1|1||0|0|1627|1627|1|1|
|mysql|insert into erp_sync.sync_record_20190924 select * from erp_sync.sync_record where create_time < date_sub ( now ( ) , interval :1 day )|1|24|24||0|0|1338900|1338900|0|0|
|mysql|delete from wx_gateway.wx_template_msg where create_time < date_sub ( now ( ) , interval :1 day )|1|31|31||0|0|1081119|1081119|0|0|
|user_service|select count ( * ) from tenant_member_info where ( tenant_id = :1 and tenant_app_id = :2 and shop_id = :3 )|1|1|1||0|0|429700|429700|1|1|
|user_service|insert into user_service.user_employee_back_20200522 select ue.* from user_service.user_employee ue join user_service.tenant_member_info tmi on ue.tenant_id = tmi.tenant_id and ue.tenant_wechatapp_id = tmi.tenant_app_id and ue.user_id = tmi.user_id left join tenant.employee_shop es on es.tenant_app_id = ue.tenant_wechatapp_id and es.employee_id = ue.employee_id and es.shop_id = tmi.shop_id and es.status != :1 where es.id is null|1|133|133||0|0|9896232|9896232|0|0|
|warranty_service|select count ( 0 ) from warranty_service.warranty where tenant_wechatapp_id = :1 and is_disable = false and dept_erp_id = :2 and sales_date >= :3 and sales_date <= :4 and employee_erp_id in ( :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 )|1|1|1||0|0|3954|3954|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|
|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|1|1||0|0|348756|348756|0|0|
|user_service|select count ( * ) from user_service.user_employee ue join user_service.tenant_member_info tmi on ue.tenant_id = tmi.tenant_id and ue.tenant_wechatapp_id = tmi.tenant_app_id and ue.user_id = tmi.user_id left join tenant.employee_shop es on es.tenant_app_id = ue.tenant_wechatapp_id and es.employee_id = ue.employee_id and es.shop_id = tmi.shop_id and es.status = :1 where es.id is null|1|23|23||0|0|5311688|5311688|1|1|
|value_added|select count ( 0 ) from ( select t.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 , t.is_disable as isdisable , effective_days as effectivedays , ifnull ( usenumber , 0 ) as usenumber , remark as remark , generator_method as generatormethod , history_added_percent_per_day as historyaddedpercentperday , history_devalue_percent_per_day as historydevaluepercentperday , extra.before_sale_time as beforesaletime from value_added.value_added_template t left join value_added.value_added_template_extra extra on t.id = extra.value_added_template_id and extra.is_disable = :1 left join ( select template_id , count ( * ) usenumber from value_added.value_added_user where tenant_wechatapp_id = :2 group by template_id ) value_added_user on t.id = value_added_user.template_id where t.tenant_wechatapp_id = :3 ) table_count|1|1|1||0|0|80965|80965|1|1|
|user_service|select count ( 0 ) from ( select ue.user_id as id , tm.user_name as username , tm.head_img_url as headimgurl , tm.user_name as nickname , tm.mobile_no as mobile , tm.sex , if ( ifnull ( wu.is_subscribe , 0 ) = 0 , false , true ) as hassubscribe from user_service.user_employee ue join user_service.tenant_member tm on tm.tenant_id = ue.tenant_id and tm.tenant_app_id = ue.tenant_wechatapp_id and tm.user_id = ue.user_id join user_service.tenant_member_info tmi on tmi.tenant_id = tm.tenant_id and tmi.id = tm.id join user_service.tenant_member_bind tmb on tmb.tenant_id = ue.tenant_id and tmb.tenant_app_id = ue.tenant_wechatapp_id and tmb.user_id = ue.user_id left join user_service.wx_user wu on wu.id = tmb.wx_user_id where ue.employee_id = :1 and ue.tenant_id = :2 and ue.tenant_wechatapp_id = :3 and tmi.shop_id = :4 and ue.user_id not in ( :5 ) order by tm.id desc ) tmp_count|1|1|1||0|0|127867|127867|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 , :14 , :15 , :16 , :17 , :18 , :19 , :20 )|1|1|1||0|0|3947|3947|1|1|
|user_service|select count ( 0 ) from ( select ue.user_id as id , tm.user_name as username , tm.head_img_url as headimgurl , tm.user_name as nickname , tm.mobile_no as mobile , tm.sex , if ( ifnull ( wu.is_subscribe , 0 ) = 0 , false , true ) as hassubscribe from user_service.user_employee ue join user_service.tenant_member tm on tm.tenant_id = ue.tenant_id and tm.tenant_app_id = ue.tenant_wechatapp_id and tm.user_id = ue.user_id join user_service.tenant_member_info tmi on tmi.tenant_id = tm.tenant_id and tmi.id = tm.id join user_service.tenant_member_bind tmb on tmb.tenant_id = ue.tenant_id and tmb.tenant_app_id = ue.tenant_wechatapp_id and tmb.user_id = ue.user_id left join user_service.wx_user wu on wu.id = tmb.wx_user_id where ue.employee_id = :1 and ue.tenant_id = :2 and ue.tenant_wechatapp_id = :3 and tmi.shop_id = :4 and ue.user_id not in ( :5 , :6 , :7 , :8 ) order by tm.id desc ) tmp_count|1|1|1||0|0|242407|242407|1|1|
|user_service|select * from user_service.user_employee ue join user_service.tenant_member_info tmi on ue.tenant_id = tmi.tenant_id and ue.tenant_wechatapp_id = tmi.tenant_app_id and ue.user_id = tmi.user_id left join tenant.employee_shop es on es.tenant_app_id = ue.tenant_wechatapp_id and es.employee_id = ue.employee_id and es.shop_id = tmi.shop_id where es.id is null|1|2|2||0|0|700039|700039|1001|1001|
|warranty_service|select count ( 0 ) from warranty_service.warranty where tenant_wechatapp_id = :1 and is_disable = false and dept_erp_id = :2 and employee_erp_id in ( :3 , :4 )|1|4|4||0|0|17833|17833|1|1|
|sms|insert into sms_report ( id , phone_number , success , biz_id , out_id , send_time , report_time , err_code , err_msg , sms_size , create_time ) values ( :1 , :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , null )|1|1|1||0|0|0|0|0|0|
|user_service|select tu.user_id , tm.shop_id , mb.erp_member_id membererpid , tu.mobile_no , tu.user_name , ue.employee_id , tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id inner join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 , :33 , :34 , :35 , :36 )|1|1|1||0|0|74741|74741|34|34|
|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|
|user_service|select * from `tenant_member_info`|1|295|295||0|0|6141375|6141375|6141375|6141375|
|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 status = :2 and date_sub ( curdate ( ) , interval :3 day ) = date_format ( salesdate , :4 )|1|3|3||0|0|120774|120774|0|0|
|user_service|select tu.user_id , tm.shop_id , mb.erp_member_id membererpid , tu.mobile_no , tu.user_name , ue.employee_id , tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id inner join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :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|1|1|1||0|0|180431|180431|97|97|
|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|
|employee|select count ( 0 ) from backlog where tenant_app_id = :1 and employee_id = :2 and status in ( :3 , :4 ) and shop_id = :5 and scene in ( :6 , :7 ) and expire_time >= :8|1|1|1||0|0|3574|3574|1|1|
|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|8420|8420|1890|1890|
|message_push|delete from message_log where create_time < :1|1|16|16||0|0|152944|152944|0|0|
|message_push|insert into message_log ( id , tenant_id , tenant_app_id , user_id , scene_type , post_data , create_time , update_time ) values ( :1 , :2 , :3 , :4 , :5 , ... = 958558203837218816#/member/my_steward\",\"data\":{\"keyword1\":{\"value\":\"杨振 ( :6 ) \",\"color\":\"#000066\"},\"keyword2\":{\"value\":\"2020年05月22日\",\"color\":\"#000066\"},\"remark\":{\"value\":\"点击查看专属珠宝管家详情,天泰珠宝竭诚为您服务!\",\"color\":\"#ff3399\"},\"first\":{\"value\":\"尊敬的杨振会员,为您升级了专属珠宝管家:王云霞\",\"color\":\"#000000\"}},\"appid\":null,\"pagepath\":null}' , :7 , :8 )|1|1|1||0|0|0|0|0|0|
|user_service|select tu.user_id , tm.shop_id , mb.erp_member_id membererpid , tu.mobile_no , tu.user_name , ue.employee_id , tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id inner join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 )|1|1|1||0|0|524114|524114|13|13|
|corpwx|update external_user set wx_user_id = :1 where ( tenant_id = :2 and user_id = :3 )|1|1|1||0|0|177242|177242|0|0|
|erp_sync|select * from retry_data where tenant_app_id = :1 and user_id = :2|1|2|2||0|0|10105|10105|0|0|
|mysql|delete from erp_sync.sync_record where create_time < date_sub ( now ( ) , interval :1 day )|1|4|4||0|0|1338900|1338900|0|0|
|user_service|insert into user_service.user_employee_back_20200522 select ue.* from user_service.user_employee ue join user_service.tenant_member_info tmi on ue.tenant_id = tmi.tenant_id and ue.tenant_wechatapp_id = tmi.tenant_app_id and ue.user_id = tmi.user_id left join tenant.employee_shop es on es.tenant_app_id = ue.tenant_wechatapp_id and es.employee_id = ue.employee_id and es.shop_id = tmi.shop_id and es.status = :1 where es.id is null|1|21|21||0|0|5311694|5311694|0|0|
|value_added|select id , tenant_wechatapp_id as tenantwechatappid , user_id as userid , template_id as templateid , sales_erp_id as saleserpid , product_name as productname , shop_name as shopname , product_barcode as productbarcode , amount_total as amounttotal , amount_pay as amountpay , amount_added as amountadded , state as state , add_days , added_percent_per_day as addedpercentperday , devalue_percent_per_day as devaluepercentperday , keeping_days as keepingdays , exchange_days as exchangedays , coupon_user_id as couponuserid , sales_index as salesindex , start_add_time as createtime , date_add ( start_add_time , interval add_days-1 day ) , date_add ( start_add_time , interval add_days + keeping_days-1 day ) from value_added_user where keeping_days > :1 and state = :2 and start_add_time = date_add ( curdate ( ) , interval :3 * ( add_days-1 ) day )|1|1|1||0|0|348764|348764|653|653|
|user_service|select tu.user_id , tm.shop_id , mb.erp_member_id membererpid , tu.mobile_no , tu.user_name , ue.employee_id , tm.grade_id from user_service.tenant_member tu inner join user_service.tenant_member_info tm on tu.tenant_id = tm.tenant_id and tu.id = tm.id inner join user_service.tenant_member_bind mb on tu.tenant_id = mb.tenant_id and tu.id = mb.id inner join user_service.user_employee ue on tu.tenant_app_id = ue.tenant_wechatapp_id and tu.user_id = ue.user_id where tu.tenant_id = :1 and tu.tenant_app_id = :2 and mb.erp_member_id in ( :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :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|1|1|1||0|0|328800|328800|46|46|
# 运行日志
# 2020-05
[2020-05-06](2020-05-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-07](2020-05-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-10](2020-05-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-11](2020-05-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-12](2020-05-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-13](2020-05-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-14](2020-05-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-17](2020-05-17/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-18](2020-05-18/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-19](2020-05-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-20](2020-05-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-21](2020-05-21/daily.md)&ensp;&ensp;&ensp;&ensp;
[2020-05-06](2020-05-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-07](2020-05-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-10](2020-05-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-11](2020-05-11/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-12](2020-05-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-13](2020-05-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-14](2020-05-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-17](2020-05-17/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-18](2020-05-18/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-19](2020-05-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-20](2020-05-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-21](2020-05-21/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-05-22](2020-05-22/daily.md)&ensp;&ensp;&ensp;&ensp;
# 2020-04
[2020-04-01](2020-04-01/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-02](2020-04-02/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-06](2020-04-06/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-07](2020-04-07/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-08](2020-04-08/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-09](2020-04-09/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-10](2020-04-10/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-12](2020-04-12/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-13](2020-04-13/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-14](2020-04-14/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-15](2020-04-15/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-16](2020-04-16/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-19](2020-04-19/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-20](2020-04-20/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-21](2020-04-21/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-22](2020-04-22/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-23](2020-04-23/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-24](2020-04-24/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-25](2020-04-25/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-26](2020-04-26/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-27](2020-04-27/daily.md)&ensp;&ensp;&ensp;&ensp;[2020-04-28](2020-04-28/daily.md)&ensp;&ensp;&ensp;&ensp;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论