软适配添加适配发送报文

yun-zuoyi
汪云昊 5 years ago
parent a4ba058ee3
commit 4fc8c2a80d

@ -876,7 +876,8 @@ public class BlockSoftSwitchEnumUtil {
SUIT_MESSAGE(10, "适配信息"),
REQUEST_ORGIN_PARAM(20, "请求原始参数"),
ORIGINAL_MESSAGE(30, "原始报文"),
CONVERTED_MESSAGE(40, "转换报文");
CONVERTED_MESSAGE(40, "转换报文"),
SUIT_SEND_MESSAGE(50, "适配发送报文");
private int value;
private String description;

@ -56,6 +56,12 @@ public class SuitClientModel implements Serializable {
private String suitMessage;
/**
*
*/
@XStreamCDATA
private String suitSendMessage;
/**
*
*/
private Integer requestSource;

@ -1,6 +1,8 @@
package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.BlockSoftSwitchEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
@ -9,6 +11,7 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
@ -41,15 +44,21 @@ public class BsSuitCaseDataSourceTable extends BaseBean {
@Column(name = "OPERATE_TYPE_ID")
@ApiParam(value = "操作类型")
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.DATABASE_OPERATE_TYPE.class)
private Integer operateTypeId;
public int getOperateTypeIdVal(){
if(operateTypeId == null){
public int getOperateTypeIdVal() {
if (operateTypeId == null) {
return -1;
}
return operateTypeId.intValue();
}
public String getOperateTypeIdTxt() {
return operateTypeId == null ? "无" : BlockSoftSwitchEnumUtil.DATABASE_OPERATE_TYPE.valueOfDescription(operateTypeId);
}
@Column(name = "EXECUTE_SQL")
@ApiParam(value = "执行sql")
private String executeSql;
@ -62,8 +71,8 @@ public class BsSuitCaseDataSourceTable extends BaseBean {
@ApiParam(value = "是否有返回")
private Integer isReturn;
public int getIsReturnVal(){
if(isReturn == null){
public int getIsReturnVal() {
if (isReturn == null) {
return -1;
}
return isReturn.intValue();

@ -46,12 +46,20 @@ public class BsSuitCaseREST extends BaseBean {
@AnnoOutputColumn(refClass = CommonEnumUtil.HTTP_METHOD_TYPE.class)
private Integer requestMethodId;
public String getRequestMethodIdTxt(){
return requestMethodId == null ? "无" : CommonEnumUtil.HTTP_METHOD_TYPE.valueOfDescription(requestMethodId);
}
//CommonEnumUtil.TRUE_OR_FALSE
@Column(name = "IS_REQUEST_BODY")
@ApiParam(value = "是否使用requestBody")
@AnnoOutputColumn(refClass = CommonEnumUtil.TRUE_OR_FALSE.class)
private Integer isRequestBody;
public int getIsRequestBodyVal() {
return isRequestBody == null ? CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue() : isRequestBody;
}
@Transient
@ApiParam(value = "请求头转换")
private List<BsSuitCaseParam> requestHeaderList;

@ -120,6 +120,11 @@ public class BsSuitRecord extends BaseBean {
@ApiParam(value = "适配信息 longDataId")
private String suitMessage;
// 移动至记录数据表
@Column(name = "SUIT_SEND_MESSAGE")
@ApiParam(value = "适配发送报文")
private String suitSendMessage;
@Column(name = "PROCESS_STATE")
@ApiParam(value = "处理状态")
private Integer processState;

Loading…
Cancel
Save