Mapper icon indicating copy to clipboard operation
Mapper copied to clipboard

weekend和example在连接多个criteria的逻辑上不一致

Open gsoyond opened this issue 8 years ago • 1 comments

//example示例 Criteria criteria1=example.createCriteria(); Criteria criteria2=example.createCriteria();
// 使用or连接 example.or(criteria2); // 结果为(criteria1) or (criteria2),or连接成功

//weekend示例 WeekendCriteria<T,Object> criteria1= weekend.createCriteriaAddOn(); WeekendCriteria<T,Object> criteria2= weekend.createCriteriaAddOn(); // 使用or连接 weekend.or(criteria2); 结果只有criteria2,or连接失败

注:示例中criteria省略了具体条件

gsoyond avatar May 23 '18 15:05 gsoyond

已解决,应该使用weekend.weekendCriteria()来构造criteria

gsoyond avatar May 23 '18 15:05 gsoyond