public List<SystemUser> searchSystemUser(String simpleSearch, Page page) {
   Map<String, Object> map = new HashMap<String, Object>();
   map.put("simpleSearch", simpleSearch);
   map.put("page", page);
   List<SystemUser> list = systemUserDao.searchSystemUser(map);
   if (null != page) {
     if (null != page.getStart() && null != page.getLimit()) {
       Integer total = systemUserDao.searchSystemUserTotal(map);
       page.setTotal(total);
     } else {
       page.setTotal(list.size());
     }
   }
   return list;
 }
 public void updateSystemUser(SystemUser systemUser) {
   Assert.notNull(systemUser.getId(), "id数据不能为空");
   Assert.hasText(systemUser.getEmpId(), "empId不能为空!");
   Assert.hasText(systemUser.getLastName(), "lastName不能为空!");
   Assert.hasText(systemUser.getNickName(), "nickName不能为空!");
   systemUserDao.updateSystemUser(systemUser);
 }
 @Transactional
 public void addSystemUser(SystemUser systemUser) {
   Assert.hasText(systemUser.getEmpId(), "empId不能为空!");
   Assert.hasText(systemUser.getLastName(), "lastName不能为空!");
   Assert.hasText(systemUser.getNickName(), "nickName不能为空!");
   systemUserDao.addSystemUser(systemUser);
 }
 public void deleteSystemUserByEmpId(String empId) {
   Assert.hasText(empId, "empId不能为空!");
   Map<String, Object> map = new HashMap<String, Object>();
   map.put("empId", empId);
   systemUserDao.deleteSystemUserByEmpId(map);
 }
 public SystemUser getSystemUserByEmpId(String empId) {
   Assert.hasText(empId, "empId不能为空!");
   Map<String, Object> map = new HashMap<String, Object>();
   map.put("empId", empId);
   return systemUserDao.getSystemUserByEmpId(map);
 }
 public SystemUser getSystemUserById(Integer id) {
   Assert.notNull(id, "id不能为空");
   return systemUserDao.getSystemUserById(id);
 }
 public void deleteSystemUserById(Integer id) {
   Assert.notNull(id, "id不能为空");
   systemUserDao.deleteSystemUserById(id);
 }