自定义表单 数据操作接口 DAO 层优化

yun-zuoyi
wei.peng 6 years ago
parent 9d047fa3e5
commit f810e35873

@ -221,7 +221,7 @@ public class DynamicEntity extends BaseBean implements Serializable {
*/ */
public Object getDynProperty(String propName){ public Object getDynProperty(String propName){
//初始化set方法 //初始化set方法
String setMethodName = "get" + propName.substring(0,1).toUpperCase() + propName.substring(1); String setMethodName = "get" + CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, propName);
try { try {
//获取方法 //获取方法

@ -521,6 +521,10 @@ public class CommonEnumUtil {
return value; return value;
} }
public String getValueStr() {
return value + "";
}
public String getDescription() { public String getDescription() {
return description; return description;
} }

@ -38,6 +38,10 @@ public class BfElementPropertyVirtual extends BaseBean {
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private Long elementId; private Long elementId;
@Column(name="PROPERTY_CODE")
@ApiParam(value ="类属性名称")
private String propertyCode;
@Column(name="PROPERTY_NAME") @Column(name="PROPERTY_NAME")
@ApiParam(value ="元素名称") @ApiParam(value ="元素名称")
private String propertyName; private String propertyName;
@ -71,6 +75,10 @@ public class BfElementPropertyVirtual extends BaseBean {
private List<BfElementProperty> propertyList; private List<BfElementProperty> propertyList;
@Transient @Transient
@ApiParam(value = "虚拟属性列表")
private List<BfRefElementPropertyVirtualDetail> detailList;
@Transient
@ApiParam(value = "虚拟属性ID列表") @ApiParam(value = "虚拟属性ID列表")
@JsonSerialize(using = ToStringSerializer.class) @JsonSerialize(using = ToStringSerializer.class)
private List<Long> propertyIdList; private List<Long> propertyIdList;

Loading…
Cancel
Save