软适配新增SuitRetryModel

yun-zuoyi
nies 3 years ago
parent 976369fa10
commit a43b17841f

@ -236,7 +236,8 @@ public class BlockSoftSwitchEnumUtil {
REST(6,"REST调用"),
WEB_SERVICE(7,"WebService"),
SOCKET(8,"socket"),
RETRY(9,"重试");
RETRY(9,"重试"),
TEST(10,"手动测试");
private int value;
private String description;

@ -0,0 +1,24 @@
package cn.estsh.i3plus.pojo.model.softswitch;
import cn.estsh.i3plus.pojo.softswitch.bean.BsSuitCase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.Data;
/**
* @author ns
* @create 2021/12/22 0022 13:39
*/
@Data
@ApiModel("重试类型model")
public class SuitRetryModel {
@ApiParam(value = "适配器代码")
private String suitCaseCode;
@ApiParam(value = "适配记录id")
private Long bsSuitRecordId;
@ApiParam(value = "适配器")
private BsSuitCase bsSuitCase;
}

@ -266,6 +266,14 @@ public class BsSuitCase extends BaseBean {
return retryInterval == null ? 10: retryInterval;
}
@Column(name = "RETRY_TIME")
@ApiParam(value = "重试次数s")
private Integer retryTime;
public int getRetryTimeVal() {
return (retryTime == null || retryTime < 0) ? 1 : retryTime;
}
@Transient
@ApiParam(value = "适配器套件明细")
private Object bsSuitCaseDetail;

@ -34,7 +34,7 @@ public class BsSuitCaseType extends BaseBean {
@Column(name = "SUIT_CASE_TYPE_ID")
@ApiParam(value = "适配器类型id")
@JsonSerialize(using = ToStringSerializer.class)
private Long suitCaseTypeId;
private Integer suitCaseTypeId;
@Column(name = "SUIT_CASE_TYPE_NAME")
@ApiParam(value = "适配器类型名称")
@ -48,6 +48,9 @@ public class BsSuitCaseType extends BaseBean {
@ApiParam(value = "适配器适配失败报警邮箱")
private String suitCaseTypeAlarmEmail;
@Column(name = "ENABLE_ALARM_EMAIL")
@ApiParam(value = "是否开启适配报警邮箱发送")
private Integer enableAlarmEmail;
}

Loading…
Cancel
Save