$m=D('Taobaoorder');
$map[0]['ordernum']='3022586802655907';
$map[0]['tindex']=2;
$count=$m->fetchsql(true)->where($map)->count();这样写两个条件是有效的
如果这样写
$m=D('Taobaoorder');
$map['ordernum']='3022586802655907';
$map['tindex']=2;
$count=$m->fetchsql(true)->where($map)->count();第二个tindex 是无效的