private void Autoquery() {

    Vector<Vehicle> vehicles;
    Vector<Vector> datas;
    String departmentName = this.comboBox_query_choosebusiness.getSelectedItem().toString();

    if (departmentName.equals("所有")) {

      vehicles = vehicleblservice.getAll();
      datas = changeDatas(vehicles);
      setDatas(datas);
      refreshTable();
    } else {
      Vector<Department> departments = vehicleblservice.getBusiness();
      for (Department department : departments) {
        if (department.getDepartment_name().equals(departmentName)) {

          vehicles = vehicleblservice.getByCondition("department_id_fk", department.getId());
          datas = changeDatas(vehicles);
          setDatas(datas);
          refreshTable();
        }
      }
    }
  }
  private void addDepartment() {
    // 加入的部门为营业厅

    Vector<Department> departments = vehicleblservice.getBusiness();

    this.comboBox_query_choosebusiness.addItem("所有");
    for (Department department : departments) {

      Department itemDepartment = makeDepartment(department);
      this.comboBox_query_choosebusiness.addItem(itemDepartment);
      this.comboBox_showBusiness.addItem(itemDepartment);
    }
  }