org.sdn.api.service.business.request.ship.BusinessShipBatchOperationReqDTO Maven / Gradle / Ivy
package org.sdn.api.service.business.request.ship;
import java.util.ArrayList;
import java.util.List;
/**
* 业务订购单个批量请求DTO
*
* @author:fulong
* @create:2018/11/26 18:09.
*/
public class BusinessShipBatchOperationReqDTO {
/**
* 业务订购关系列表
*/
private List shipList;
/**
* 添加订购关系信息
*
* @param ship
* @return
*/
public BusinessShipBatchOperationReqDTO addShip(BusinessShipReqDTO ship) {
if (this.shipList == null) {
this.shipList = new ArrayList<>();
}
this.shipList.add(ship);
return this;
}
public List getShipList() {
return shipList;
}
public void setShipList(List shipList) {
this.shipList = shipList;
}
@Override
public String toString() {
return "BusinessShipBatchOrderReqDTO{" +
"shipList=" + shipList +
'}';
}
}