Sql sql = Sqls.create("SELECT count(*) as count,$flag FROM alarm_merge WHERE ((start_time >= @startTime and start_time <=@endTime) or (end_time >= @startTime and end_time <=@endTime) or (start_time <= @startTime and end_time >=@endTime)) group by $flag order by count desc limit 10");
sql.params().set("startTime", startTime).set("endTime", endTime);
sql.vars().set("flag", flag);
是不是加了括号,导致nutz底层识别出现了差异