package com.fzzy.io.request;
|
|
import com.fzzy.api.utils.ContextUtil;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
/**
|
*
|
*/
|
@Data
|
public class BaseRequest {
|
|
private String orderId;//自定义命令ID
|
|
private String deptId;
|
|
private String companyId;//组织编码
|
|
private String depotId;//仓库编号
|
|
private String serId = "0";//分机编号
|
|
private String ip; //分机IP
|
|
private Integer port;//分机端口号
|
|
private String bizType;//业务类型
|
|
private String serName;
|
|
private String depotName;
|
|
private String protocol;
|
|
private Date exeTime = new Date();//执行时间
|
|
|
public BaseRequest() {
|
super();
|
this.orderId = ContextUtil.buildExeOrderId(null, null, null);
|
}
|
|
public BaseRequest(String companyId, String serId, String bizType) {
|
this.orderId = ContextUtil.buildExeOrderId(companyId, serId, bizType);
|
this.companyId = companyId;
|
this.serId = serId;
|
this.bizType = bizType;
|
}
|
}
|