All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dahuatech.icc.brm.model.v202010.car.BrmCarPageRequest Maven / Gradle / Ivy

There is a newer version: 1.0.13.7
Show newest version
package com.dahuatech.icc.brm.model.v202010.car;

import com.dahuatech.hutool.http.Method;
import com.dahuatech.icc.brm.constant.BrmConstant;
import com.dahuatech.icc.brm.constant.ParamConstant;
import com.dahuatech.icc.brm.exception.BusinessException;
import com.dahuatech.icc.exception.ClientException;
import com.dahuatech.icc.oauth.http.AbstractIccRequest;
import com.dahuatech.icc.util.StringUtils;

import java.util.List;

/**
 * 车辆分页查询
 *
 * @author 232676
 * @since 1.0.0 2020/11/5 11:27
 */
public class BrmCarPageRequest extends AbstractIccRequest {

  private int pageNum;
  private int pageSize;
  private String sort;
  /** . 车牌列表 列表最大支持500 */
  private List carNumList;
  /** 车牌颜色列表 列表最大支持500 */
  private List carNumColorList;
  /** 车辆编号列表 列表最大支持500 */
  private List carCodeList;
  /** 车辆归属车主ID列表 列表最大支持500 */
  private List ownerIdList;
  /** 汽车颜色列表 列表最大支持500 */
  private List carColorList;
  /** 车辆类型列表 列表最大支持500 */
  private List carTypeList;
  /** 车辆品牌列表 列表最大支持500 */
  private List carBrandList;
  /** 车辆归属主部门id */
  private Long departmentId;
  /** includeSubDepartmentFlag */
  private boolean includeSubDepartmentFlag;

  public BrmCarPageRequest() {
    super(BrmConstant.url(BrmConstant.BRM_URL_CAR_PAGE_POST), Method.POST);
    putBodyParameter("pageNum", 1);
    putBodyParameter("pageSize", 10);
  }

  @Override
  public Class getResponseClass() {
    return BrmCarPageResponse.class;
  }

  public int getPageNum() {
    return pageNum;
  }

  public void setPageNum(int pageNum) {
    this.pageNum = pageNum;
    putBodyParameter("pageNum", pageNum);
  }

  public int getPageSize() {
    return pageSize;
  }

  public void setPageSize(int pageSize) {
    this.pageSize = pageSize;
    putBodyParameter("pageSize", pageSize);
  }

  public String getSort() {
    return sort;
  }

  public void setSort(String sort) {
    this.sort = sort;
    putBodyParameter("sort", sort);
  }

  public List getCarNumList() {
    return carNumList;
  }

  public void setCarNumList(List carNumList) {
    this.carNumList = carNumList;
    putBodyParameter("carNumList", carNumList);
  }

  public List getCarNumColorList() {
    return carNumColorList;
  }

  public void setCarNumColorList(List carNumColorList) {
    this.carNumColorList = carNumColorList;
    putBodyParameter("carNumColorList", carNumColorList);
  }

  public List getCarCodeList() {
    return carCodeList;
  }

  public void setCarCodeList(List carCodeList) {
    this.carCodeList = carCodeList;
    putBodyParameter("carCodeList", carCodeList);
  }

  public List getOwnerIdList() {
    return ownerIdList;
  }

  public void setOwnerIdList(List ownerIdList) {
    this.ownerIdList = ownerIdList;
    putBodyParameter("ownerIdList", ownerIdList);
  }

  public List getCarColorList() {
    return carColorList;
  }

  public void setCarColorList(List carColorList) {
    this.carColorList = carColorList;
    putBodyParameter("carColorList", carColorList);
  }

  public List getCarTypeList() {
    return carTypeList;
  }

  public void setCarTypeList(List carTypeList) {
    this.carTypeList = carTypeList;
    putBodyParameter("carTypeList", carTypeList);
  }

  public List getCarBrandList() {
    return carBrandList;
  }

  public void setCarBrandList(List carBrandList) {
    this.carBrandList = carBrandList;
    putBodyParameter("carBrandList", carBrandList);
  }

  public Long getDepartmentId() {
    return departmentId;
  }

  public void setDepartmentId(Long departmentId) {
    this.departmentId = departmentId;
    putBodyParameter("departmentId", departmentId);
  }

  public boolean isIncludeSubDepartmentFlag() {
    return includeSubDepartmentFlag;
  }

  public void setIncludeSubDepartmentFlag(boolean includeSubDepartmentFlag) {
    this.includeSubDepartmentFlag = includeSubDepartmentFlag;
    putBodyParameter("includeSubDepartmentFlag", includeSubDepartmentFlag);
  }

    public void businessValid() {
      //所有参数非必填
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy