日期:2014-05-19 浏览次数:20614 次
//创建查询对象detachedCriteria DetachedCriteria detachedCriteria = DetachedCriteria.forClass(CmNetPlan.class); detachedCriteria.add(Restrictions.or(Restrictions.or(Restrictions.or(Restrictions.or(Restrictions.or(Restrictions.or( Restrictions.eq("monAm", monAm), Restrictions.eq("monPm", monPm)), Restrictions.or( Restrictions.eq("tuesAm", tuesAm), Restrictions.eq("tuesPm", tuesPm))), Restrictions.or(Restrictions.or( Restrictions.eq("wedAm", wedAm), Restrictions.eq("wedPm", wedPm)), Restrictions.or( Restrictions.eq("thursAm", thursAm), Restrictions.eq("thursPm", thursPm)))), Restrictions.or(Restrictions.or( Restrictions.eq("friAm", friAm), Restrictions.eq("friPm", friPm)), Restrictions.or( Restrictions.eq("satAm", satAm), Restrictions.eq("satPm", satPm)))), Restrictions.or( Restrictions.eq("sunAm", sunAm), Restrictions.eq("sunPm", sunPm))), null));