zenghuaxun 发表于 2014-6-22 23:34:18

qbc 查询的问题

CriteriaQuery cq = new CriteriaQuery(ApplyorderGrantEntity.class, dataGrid);
      cq.eq("status", "2");
      cq.eq("status", "3");
      cq.add( cq.or(cq, 0, 1));
请教以上代码
为什么得到的查询条件是
where
            (
                this_.STATUS=?
                or this_.STATUS=?
            )
            and this_.STATUS=?
            and this_.STATUS=? )

我只想得到查询条件为this_.STATUS=?
                or this_.STATUS=?
这么写???

zenghuaxun 发表于 2014-6-23 11:45:04

没有人知道吗?
页: [1]
查看完整版本: qbc 查询的问题