发表于: 2017-07-15 01:01:32
1 1091
今天完成的事情:
这个Bug的现象:传个tid过去uids统计的数据错误,没传tid,uids正常
total是页面上显示的共计人数,
解决方案,把拼接的sql打印出来,看看问题所在
打出的sql为:
select count(user.id) from user_task_relation,user
where 1 = 1 and user.branch = 10
and user.id = user_task_relation.uid
and user_task_relation.tid = 51
and user.type = 'offline' and user.oid = 5 limit 0 , 2147483647
有两条数据
评论