private Staff convertInfo(StaffInfo info) {
    Staff temp = new Staff();
    if (info.getId() != 0) {
      temp.setId(info.getId());
    }

    temp.setStaffid(info.getStaffid());
    temp.setPosition(info.getPosition());
    temp.setStaffname(info.getStaffname());
    temp.setPassword(info.getPassword());
    temp.setRemarks(info.getRemarks());
    return temp;
  }