Ejemplo n.º 1
0
  /**
   * 查询客户已关联的车辆
   *
   * @param wechatno
   * @return
   */
  public static List<CarBO> queryCarsByWechatno(String wechatno) {
    // 根据微信号查询到客户,然后根据客户查询到Car的列表
    CustomerAS customerAS = new CustomerASImpl();
    CustomerBO customer = customerAS.queryCustomerByWechatno(wechatno);
    List<CarBO> cars = Collections.emptyList();
    if (customer != null) {
      CarAS caras = new CarASImpl();
      cars = caras.queryCarByCustId(customer.getCustId());
    }

    return cars;
  }