自定义表单 数据操作接口 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){
//初始化set方法
String setMethodName = "get" + propName.substring(0,1).toUpperCase() + propName.substring(1);
String setMethodName = "get" + CaseFormat.UPPER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL, propName);
try {
//获取方法

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

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

Loading…
Cancel
Save