public List<SysDepartmentBean> getSysDepartBeans(SysDepartmentBean sysDepartmentBean) {
   String hql = "from SysDepartmentBean where 1=1";
   if (sysDepartmentBean != null) {
     if (!StringEmpty.checkEmpty(sysDepartmentBean.getDepartCode())) {
       hql += " and departCode = '" + sysDepartmentBean.getDepartCode() + "'";
     }
     if (sysDepartmentBean.getDepartParentId() != null) {
       hql += " and departParentId = '" + sysDepartmentBean.getDepartParentId() + "'";
     }
   }
   return this.baseSysDepartMgDAOImpl.getListByHqlAndParas(hql, null);
 }
 public List<SysDepartUserBean> getSysDepartUserBeans(SysDepartmentBean sysDepartmentBean) {
   String hql =
       "from SysDepartUserBean where departId in (select departId from SysDepartmentBean where departCode like '"
           + sysDepartmentBean.getDepartCode()
           + "%')";
   return this.baseSysRoleMenuMgDAOImpl.getListSysDepartUserBean(hql);
 }
 public void deleteSysDepartBean(SysDepartmentBean sysDepartmentBean) {
   String hql =
       "delete from SysDepartmentBean where departCode like '"
           + sysDepartmentBean.getDepartCode()
           + "%'";
   this.baseSysRoleMenuMgDAOImpl.delete(hql);
 }