|
|
|
@ -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();
|
|
|
|
|