提交 98342f7d authored 作者: 林业通's avatar 林业通

帮助中心修改

上级 2bea1e0a
......@@ -64,7 +64,8 @@ public class HelpCenterController {
for (HelpCenterContentForm content : form.getContents()) {
HelpCenterContentEntity contentEntity = new HelpCenterContentEntity();
contentEntity.setHelpId(helpCenter.getId());
contentEntity.setContent(JSON.toJSONString(content));
contentEntity.setType(content.getType());
contentEntity.setContent(content.getContent());
helpCenterContentService.save(contentEntity);
}
return R.ok();
......
......@@ -28,6 +28,10 @@ public class HelpCenterContentEntity implements Serializable {
* 帮助中心ID
*/
private Integer helpId;
/**
* 类型
*/
private String type;
/**
* 内容
*/
......
......@@ -7,6 +7,7 @@
<resultMap type="tech.glinfo.enbao.modules.sys.entity.HelpCenterContentEntity" id="helpCenterContentMap">
<result property="id" column="id"/>
<result property="helpId" column="help_id"/>
<result property="type" column="type"/>
<result property="content" column="content"/>
</resultMap>
......
......@@ -276,6 +276,7 @@ CREATE TABLE `help_center` (
CREATE TABLE `help_center_content` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
`help_id` int(11) DEFAULT NULL COMMENT '帮助中心ID',
`type` varchar(50) DEFAULT NULL COMMENT '类型'
`content` text COMMENT '内容',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='帮助中心内容';
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论