package com.engine.htsc.payment.pojo;


import org.apache.commons.lang3.StringUtils;

import java.util.List;
import java.util.Map;

public class SettlePayAutoRequestParam {
  private String relateStaffRid;
  private String creatorUid;
  private String workflowId;
  private String requestName;
  private String isNextFlow;
  Map<String, String> main;
  List<Map<String, String>> dt4;
  List<Map<String, String>> dt8;
  List<Map<String, String>> dt9;
  List<Map<String, String>> dt10;
  List<Map<String, String>> dt11;
  List<Map<String, String>> dt12;

  public String getRelateStaffRid() {
    return relateStaffRid;
  }

  public void setRelateStaffRid(String relateStaffRid) {
    this.relateStaffRid = relateStaffRid;
  }

  public String getCreatorUid() {
    return creatorUid;
  }

  public void setCreatorUid(String creatorUid) {
    this.creatorUid = creatorUid;
  }

  public String getWorkflowId() {
    return workflowId;
  }

  public void setWorkflowId(String workflowId) {
    this.workflowId = workflowId;
  }

  public String getRequestName() {
    return requestName;
  }

  public void setRequestName(String requestName) {
    this.requestName = requestName;
  }

  public String getIsNextFlow() {
    return isNextFlow;
  }

  public void setIsNextFlow(String isNextFlow) {
    this.isNextFlow = isNextFlow;
  }

  public Map<String, String> getMain() {
    return main;
  }

  public void setMain(Map<String, String> main) {
    this.main = main;
  }

  public List<Map<String, String>> getDt4() {
    return dt4;
  }

  public void setDt4(List<Map<String, String>> dt4) {
    this.dt4 = dt4;
  }

  public List<Map<String, String>> getDt8() {
    return dt8;
  }

  public void setDt8(List<Map<String, String>> dt8) {
    this.dt8 = dt8;
  }

  public List<Map<String, String>> getDt9() {
    return dt9;
  }

  public void setDt9(List<Map<String, String>> dt9) {
    this.dt9 = dt9;
  }

  public List<Map<String, String>> getDt10() {
    return dt10;
  }

  public void setDt10(List<Map<String, String>> dt10) {
    this.dt10 = dt10;
  }

  public List<Map<String, String>> getDt11() {
    return dt11;
  }

  public void setDt11(List<Map<String, String>> dt11) {
    this.dt11 = dt11;
  }

  public List<Map<String, String>> getDt12() {
    return dt12;
  }

  public void setDt12(List<Map<String, String>> dt12) {
    this.dt12 = dt12;
  }

  @Override
  public String toString() {
    return "SettlePayAutoRequestParam{" +
            "relateStaffRid='" + relateStaffRid + '\'' +
            ", creatorUid='" + creatorUid + '\'' +
            ", workflowId='" + workflowId + '\'' +
            ", requestName='" + requestName + '\'' +
            ", isNextFlow='" + isNextFlow + '\'' +
            ", main=" + main +
            ", dt4=" + dt4 +
            ", dt8=" + dt8 +
            ", dt9=" + dt9 +
            ", dt10=" + dt10 +
            ", dt11=" + dt11 +
            ", dt12=" + dt12 +
            '}';
  }

  /**
   * 任一为空返回false
   */
  public boolean isValid() {
    return StringUtils.isNotBlank(creatorUid) && StringUtils.isNotBlank(workflowId)
            && StringUtils.isNotBlank(requestName) && StringUtils.isNotBlank(isNextFlow);
  }
}