模板管理生成HTML 完成

yun-zuoyi
wei.peng 6 years ago
parent 4769c6bc29
commit c61d0882c5

@ -427,9 +427,9 @@ public class BlockReportEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TEMPLATE_STYLE { public enum TEMPLATE_STYLE {
TABLE_LEFT(1, TEMPLATE_TYPE.TABLE, "left", "表单左对齐"), TABLE_LEFT(1, TEMPLATE_TYPE.TABLE, "text-left", "表单左对齐"),
TABLE_RIGHT(2, TEMPLATE_TYPE.TABLE, "right", "表单右对齐"), TABLE_RIGHT(2, TEMPLATE_TYPE.TABLE, "text-center", "表单右对齐"),
TABLE_CENTER(3, TEMPLATE_TYPE.TABLE, "center", "表单居中"); TABLE_CENTER(3, TEMPLATE_TYPE.TABLE, "text-right", "表单居中");
private int value; private int value;
private TEMPLATE_TYPE group; private TEMPLATE_TYPE group;
@ -471,14 +471,13 @@ public class BlockReportEnumUtil {
return name; return name;
} }
public static String valueOf(int val) { public static TEMPLATE_STYLE valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) { if (values()[i].value == val) {
tmp = values()[i].getName(); return values()[i];
} }
} }
return tmp; return null;
} }
public static int descOf(String desc) { public static int descOf(String desc) {

@ -1,5 +1,7 @@
package cn.estsh.i3plus.pojo.model.report; package cn.estsh.i3plus.pojo.model.report;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import lombok.Data; import lombok.Data;
@ -13,6 +15,10 @@ import lombok.Data;
@Data @Data
public class TemplateModel { public class TemplateModel {
@ApiParam("模板ID")
@JsonSerialize(using = ToStringSerializer.class)
private Long templateId;
@ApiParam("执行 HQL ") @ApiParam("执行 HQL ")
private String hql; private String hql;

@ -57,11 +57,11 @@ public class BrPojoAttr extends BaseBean {
private String pojoNameAlias; private String pojoNameAlias;
@Column(name="ATTR_NAME") @Column(name="ATTR_NAME")
@ApiParam(value ="对象别名") @ApiParam(value ="属性别名")
private String attrName; private String attrName;
@Column(name="ATTR_NAME_ALIAS") @Column(name="ATTR_NAME_ALIAS")
@ApiParam(value ="对象别名") @ApiParam(value ="属性别名")
private String attrNameAlias; private String attrNameAlias;
@Column(name="ATTR_TYPE") @Column(name="ATTR_TYPE")
@ -97,6 +97,10 @@ public class BrPojoAttr extends BaseBean {
@ApiParam(value ="字段样式") @ApiParam(value ="字段样式")
private Integer attrStyle; private Integer attrStyle;
@Column(name="ATTR_STYLE_RDD")
@ApiParam(value ="字段样式")
private String attrStyleRdd;
@Column(name="ATTR_DEFAULT_VALUE") @Column(name="ATTR_DEFAULT_VALUE")
@ApiParam(value ="属性默认值") @ApiParam(value ="属性默认值")
private String attrDefaultValue; private String attrDefaultValue;

@ -87,9 +87,9 @@ public class BrTemplate extends BaseBean {
@ApiParam(value ="模板显示属性" , access ="模板显示属性") @ApiParam(value ="模板显示属性" , access ="模板显示属性")
private String templateAttrShowList; private String templateAttrShowList;
@Column(name="NUM_TEMPLATE_AGGREGATION_SHOW") @Column(name="NUM_TEMPLATE_AGGREGATION")
@ApiParam(value ="对象聚集数量" , example ="0" , access ="对象聚集数量") @ApiParam(value ="对象聚集数量" , example ="0" , access ="对象聚集数量")
private Integer numTemplateAggregationShow; private Integer numTemplateAggregation;
@Column(name="TEMPLATE_ATTR_AGGREGATION_LIST",columnDefinition = "TEXT") @Column(name="TEMPLATE_ATTR_AGGREGATION_LIST",columnDefinition = "TEXT")
@ApiParam(value ="模板聚集属性" , access ="模板聚集属性") @ApiParam(value ="模板聚集属性" , access ="模板聚集属性")

Loading…
Cancel
Save