增加动态表单自动排版配置界面的保存回显逻辑

This commit is contained in:
cuibaocheng 2021-08-13 19:26:24 +08:00
parent 60c6caafee
commit 98c051c1de
2 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ public class CardTemplateUseAreaDTO {
@ApiModelProperty(name = "templateAreaFontCenter", value = "文字位置(快照)") @ApiModelProperty(name = "templateAreaFontCenter", value = "文字位置(快照)")
private String templateAreaFontCenter; private String templateAreaFontCenter;
@ApiModelProperty(name = "templateAreaFontSize", value = "字体大小(快照)") @ApiModelProperty(name = "templateAreaFontSize", value = "字体大小(快照)")
private String templateAreaFontSize; private Integer templateAreaFontSize;
@ApiModelProperty(name = "templateAreaFontBold", value = "文字加粗(快照)") @ApiModelProperty(name = "templateAreaFontBold", value = "文字加粗(快照)")
private String templateAreaFontBold; private String templateAreaFontBold;
@ApiModelProperty(name = "templateAreaFontFamily", value = "文字字体(快照)") @ApiModelProperty(name = "templateAreaFontFamily", value = "文字字体(快照)")
@ -215,11 +215,11 @@ public class CardTemplateUseAreaDTO {
this.templateAreaFontCenter = templateAreaFontCenter; this.templateAreaFontCenter = templateAreaFontCenter;
} }
public String getTemplateAreaFontSize() { public Integer getTemplateAreaFontSize() {
return templateAreaFontSize == null ? "" : templateAreaFontSize.trim(); return templateAreaFontSize == null ? 0: templateAreaFontSize;
} }
public void setTemplateAreaFontSize(String templateAreaFontSize) { public void setTemplateAreaFontSize(Integer templateAreaFontSize) {
this.templateAreaFontSize = templateAreaFontSize; this.templateAreaFontSize = templateAreaFontSize;
} }