提交article
This commit is contained in:
parent
cb35f53414
commit
1a7c7f2225
@ -59,7 +59,7 @@ public class ArticleTag implements IParse {
|
|||||||
}
|
}
|
||||||
cc.iteachyou.cms.entity.System system = systemService.getSystem();
|
cc.iteachyou.cms.entity.System system = systemService.getSystem();
|
||||||
String newHtml = html;
|
String newHtml = html;
|
||||||
|
Archives archives = archivesService.selectByPrimaryKey(id);
|
||||||
Attribute[] attributes = annotations.attributes();
|
Attribute[] attributes = annotations.attributes();
|
||||||
for (String string : all) {
|
for (String string : all) {
|
||||||
Map<String, Object> entity = new HashMap<String, Object>();
|
Map<String, Object> entity = new HashMap<String, Object>();
|
||||||
@ -75,7 +75,7 @@ public class ArticleTag implements IParse {
|
|||||||
entity.put(key, value);
|
entity.put(key, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
Archives archives = archivesService.selectByPrimaryKey(id);
|
|
||||||
String formId = formService.queryDefaultForm().getId();
|
String formId = formService.queryDefaultForm().getId();
|
||||||
Category category = null;
|
Category category = null;
|
||||||
if (!"-1".equals(archives.getCategoryId())) {
|
if (!"-1".equals(archives.getCategoryId())) {
|
||||||
@ -146,7 +146,9 @@ public class ArticleTag implements IParse {
|
|||||||
newHtml = newHtml.replace(string, StringUtil.isBlank(archivesVo.get("createUserName")) ? "" : archivesVo.get("createUserName").toString());
|
newHtml = newHtml.replace(string, StringUtil.isBlank(archivesVo.get("createUserName")) ? "" : archivesVo.get("createUserName").toString());
|
||||||
} else if (FieldEnum.FIELD_CREATEREALNAME.getField().equalsIgnoreCase(name)) {
|
} else if (FieldEnum.FIELD_CREATEREALNAME.getField().equalsIgnoreCase(name)) {
|
||||||
newHtml = newHtml.replace(string, StringUtil.isBlank(archivesVo.get("createRealName")) ? "" : archivesVo.get("createRealName").toString());
|
newHtml = newHtml.replace(string, StringUtil.isBlank(archivesVo.get("createRealName")) ? "" : archivesVo.get("createRealName").toString());
|
||||||
} else if (FieldEnum.FIELD_CREATETIME.getField().equalsIgnoreCase(name)) {
|
} else {
|
||||||
|
String field = FieldEnum.FIELD_CREATETIME.getField();
|
||||||
|
if (field.equalsIgnoreCase(name)) {
|
||||||
if (StringUtil.isNotBlank(function)) {
|
if (StringUtil.isNotBlank(function)) {
|
||||||
newHtml = newHtml.replace(string, FunctionUtil.replaceByFunction(function, archivesVo.get("createTime")));
|
newHtml = newHtml.replace(string, FunctionUtil.replaceByFunction(function, archivesVo.get("createTime")));
|
||||||
} else {
|
} else {
|
||||||
@ -173,6 +175,7 @@ public class ArticleTag implements IParse {
|
|||||||
if (archivesVo.containsKey(name))
|
if (archivesVo.containsKey(name))
|
||||||
newHtml = newHtml.replace(string, StringUtil.isBlank(archivesVo.get(name)) ? "" : archivesVo.get(name).toString());
|
newHtml = newHtml.replace(string, StringUtil.isBlank(archivesVo.get(name)) ? "" : archivesVo.get(name).toString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user