/// <summary> /// 按检查号进行查询 /// ADD BY CHENKUN 2017-04-09 /// </summary> /// <param name="checkNumber"></param> /// <returns></returns> public ClinicarCheck FindByCheckNumberBar(string checkNumber) { IList <ClinicarCheck> list = ClinicarCheckDao.FindByHql(" and deleted = 0 and check_number = ?", new Object[] { checkNumber }, "check_date,check_number desc limit 1"); ClinicarCheck clinicarCheck = null; if (list.Count() > 0) { clinicarCheck = list[0]; } return(clinicarCheck); }
/// <summary> /// 按id查询 /// </summary> /// <param name="Id"></param> /// <returns></returns> public ClinicarCheck FindById(string Id) { IList <ClinicarCheck> list = ClinicarCheckDao.FindByHql(" and deleted = 0 and id = ?", new Object[] { Id }, ""); ClinicarCheck clinicarCheck = null; if (list.Count() > 0) { clinicarCheck = list[0]; } return(clinicarCheck); }