资源模块数据

模板软删除
软适配list传参
yun-zuoyi
汪云昊 6 years ago
parent c51de088d6
commit d5c1f7a7a3

@ -615,7 +615,8 @@ public class BlockSoftSwitchEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DATABASE_OPERATE_TYPE{ public enum DATABASE_OPERATE_TYPE{
READ(1,"读取"), READ(1,"读取"),
WRITE(2,"写入"); WRITE(2,"写入"),
BATCH_WRITE(3,"批量写入");
private int value; private int value;
private String description; private String description;

@ -70,6 +70,12 @@ public class SysLocaleResource extends BaseBean {
@ApiParam(value ="产品类型", example = "0",access = "softTyp DOC: http://doc.estsh.com/docs/i3plus_api/i3plus_api-impp") @ApiParam(value ="产品类型", example = "0",access = "softTyp DOC: http://doc.estsh.com/docs/i3plus_api/i3plus_api-impp")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class, refForeignKey = "value", value = "description",required = false) @AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class, refForeignKey = "value", value = "description",required = false)
private Integer softType; private Integer softType;
public int getSoftTypeVal(){
if(softType==null){
return CommonEnumUtil.SOFT_TYPE.IMPP.getValue();
}
return softType.intValue();
}
//系统自带需要有初始化表只能修改value无法删除。 //系统自带需要有初始化表只能修改value无法删除。
@Column(name="is_system") @Column(name="is_system")

@ -13,10 +13,12 @@ import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.math.NumberUtils; import org.apache.commons.lang3.math.NumberUtils;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient; import javax.persistence.Transient;
import java.util.List;
/** /**
* @Description : * @Description :
@ -53,6 +55,10 @@ public class BsSuitCaseParam extends BaseBean {
@ApiParam(value = "参数名称)") @ApiParam(value = "参数名称)")
private String paramName; private String paramName;
@Column(name = "PARENT_PARAM_Id")
@ApiParam(value = "上级参数id")
private String parentParamId;
@Column(name = "PARENT_PARAM_NAME") @Column(name = "PARENT_PARAM_NAME")
@ApiParam(value = "上级参数名称)") @ApiParam(value = "上级参数名称)")
private String parentParamName; private String parentParamName;
@ -80,7 +86,18 @@ public class BsSuitCaseParam extends BaseBean {
@Transient @Transient
@ApiParam(value = "参数值") @ApiParam(value = "参数值")
private String paramValue; private Object paramValue;
public String getParamValueStr() {
if (paramValue == null) {
return null;
}
return paramValue.toString();
}
@Transient
@ApiParam(value = "子级参数")
private List<BsSuitCaseParam> bsSuitCaseParamList;
} }

@ -7,10 +7,8 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.*;
import javax.persistence.Index;
import javax.persistence.Table;
/** /**
* @Description : * @Description :
@ -38,6 +36,7 @@ public class BsSuitRecordParam extends BaseBean {
@ApiParam(value = "参数名称") @ApiParam(value = "参数名称")
private String paramName; private String paramName;
@Lob
@Column(name = "PARAM_VAL") @Column(name = "PARAM_VAL")
@ApiParam(value = "参数值") @ApiParam(value = "参数值")
private String paramVal; private String paramVal;

@ -338,6 +338,7 @@ public class SoftSwitchHqlPack {
DdlPreparedPack.getNumEqualPack(bsSuitRecord.getSuitCaseId(),"suitCaseId",ddlPackBean); DdlPreparedPack.getNumEqualPack(bsSuitRecord.getSuitCaseId(),"suitCaseId",ddlPackBean);
DdlPreparedPack.getNumEqualPack(bsSuitRecord.getCaseTypeId(),"caseTypeId",ddlPackBean); DdlPreparedPack.getNumEqualPack(bsSuitRecord.getCaseTypeId(),"caseTypeId",ddlPackBean);
DdlPreparedPack.timeBuilder(bsSuitRecord.getCreateDatetime(), "createDatetime", ddlPackBean, false, true); DdlPreparedPack.timeBuilder(bsSuitRecord.getCreateDatetime(), "createDatetime", ddlPackBean, false, true);
DdlPreparedPack.timeBuilder(bsSuitRecord.getSuitStartTime(), "suitStartTime", ddlPackBean, false, true);
ddlPackBean.setOrderByStr(bsSuitRecord.orderBy()); ddlPackBean.setOrderByStr(bsSuitRecord.orderBy());

Loading…
Cancel
Save