提交 d02fb08b 编写于 作者: Skyeye云's avatar Skyeye云

编辑器模板新增logo属性

上级 122502f0
...@@ -274,7 +274,8 @@ public class Constants { ...@@ -274,7 +274,8 @@ public class Constants {
SCHOOLBANK(new int[]{16}, "/schoolBank", "/schoolBank/", "考试题库文件"), SCHOOLBANK(new int[]{16}, "/schoolBank", "/schoolBank/", "考试题库文件"),
ACT_MODEL(new int[]{17}, "/actmodel", "/actmodel/", "流程配置图片"), ACT_MODEL(new int[]{17}, "/actmodel", "/actmodel/", "流程配置图片"),
REPORT_BG_IMAGE(new int[]{18}, "/reportBgImage", "/reportBgImage/", "报表基础设置背景图"), REPORT_BG_IMAGE(new int[]{18}, "/reportBgImage", "/reportBgImage/", "报表基础设置背景图"),
REPORT_WORD_MODEL_IMAGE(new int[]{19}, "/reportWordModel", "/reportWordModel/", "报表文字模型logo"); REPORT_WORD_MODEL_IMAGE(new int[]{19}, "/reportWordModel", "/reportWordModel/", "报表文字模型logo"),
SYS_MODEL(new int[]{20}, "/sysmodel", "/sysmodel/", "编辑器素材logo图片"),;
private int[] type; private int[] type;
// 保存地址 // 保存地址
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
a.id, a.id,
a.title title, a.title title,
CASE a.type WHEN '1' THEN '系统模板' WHEN '2' THEN '个人模板' ELSE a.type END type, CASE a.type WHEN '1' THEN '系统模板' WHEN '2' THEN '个人模板' ELSE a.type END type,
a.logo,
a.content content, a.content content,
b.type_name firstTypeName, b.type_name firstTypeName,
c.type_name secondTypeName c.type_name secondTypeName
...@@ -51,8 +52,8 @@ ...@@ -51,8 +52,8 @@
<insert id="insertSysEveModelMation" parameterType="java.util.Map"> <insert id="insertSysEveModelMation" parameterType="java.util.Map">
INSERT INTO sys_eve_model INSERT INTO sys_eve_model
(id, title, content, type, create_id, create_time, first_type_id, second_type_id, last_update_id, last_update_time) (id, title, content, type, create_id, create_time, first_type_id, second_type_id, last_update_id, last_update_time, logo)
VALUES(#{id}, #{title}, #{content}, #{type}, #{userId}, #{createTime}, #{firstTypeId}, #{secondTypeId}, #{userId}, #{createTime}) VALUES(#{id}, #{title}, #{content}, #{type}, #{userId}, #{createTime}, #{firstTypeId}, #{secondTypeId}, #{userId}, #{createTime}, #{logo})
</insert> </insert>
<delete id="deleteSysEveModelById" parameterType="java.util.Map"> <delete id="deleteSysEveModelById" parameterType="java.util.Map">
...@@ -69,6 +70,7 @@ ...@@ -69,6 +70,7 @@
a.title title, a.title title,
a.content content, a.content content,
a.type type, a.type type,
a.logo,
a.first_type_id firstTypeId, a.first_type_id firstTypeId,
a.second_type_id secondTypeId a.second_type_id secondTypeId
FROM FROM
...@@ -82,6 +84,7 @@ ...@@ -82,6 +84,7 @@
a.id, a.id,
a.title title, a.title title,
a.content content, a.content content,
a.logo,
CASE a.type WHEN '1' THEN '系统模板' WHEN '2' THEN '个人模板' ELSE a.type END type, CASE a.type WHEN '1' THEN '系统模板' WHEN '2' THEN '个人模板' ELSE a.type END type,
b.type_name firstTypeName, b.type_name firstTypeName,
c.type_name secondTypeName c.type_name secondTypeName
...@@ -98,6 +101,7 @@ ...@@ -98,6 +101,7 @@
<set> <set>
title = #{title}, title = #{title},
content = #{content}, content = #{content},
logo = #{logo},
type = #{type}, type = #{type},
first_type_id = #{firstTypeId}, first_type_id = #{firstTypeId},
second_type_id = #{secondTypeId}, second_type_id = #{secondTypeId},
......
...@@ -105,6 +105,7 @@ ...@@ -105,6 +105,7 @@
<url id="sysevemodel002" path="/post/SysEveModelController/insertSysEveModelMation" val="新增系统编辑器模板" method="POST" allUse="1" groupName="系统编辑器模板"> <url id="sysevemodel002" path="/post/SysEveModelController/insertSysEveModelMation" val="新增系统编辑器模板" method="POST" allUse="1" groupName="系统编辑器模板">
<property id="title" name="title" ref="required" var="标题" /> <property id="title" name="title" ref="required" var="标题" />
<property id="content" name="content" ref="required" var="模板内容"/> <property id="content" name="content" ref="required" var="模板内容"/>
<property id="logo" name="logo" ref="required" var="logo路径"/>
<property id="type" name="type" ref="required,num" var="模板类型"/> <property id="type" name="type" ref="required,num" var="模板类型"/>
<property id="firstTypeId" name="firstTypeId" ref="required" var="所属一级分类" /> <property id="firstTypeId" name="firstTypeId" ref="required" var="所属一级分类" />
<property id="secondTypeId" name="secondTypeId" ref="required" var="所属二级分类" /> <property id="secondTypeId" name="secondTypeId" ref="required" var="所属二级分类" />
...@@ -119,11 +120,12 @@ ...@@ -119,11 +120,12 @@
<property id="id" name="id" ref="required" var="模板id" /> <property id="id" name="id" ref="required" var="模板id" />
<property id="title" name="title" ref="required" var="标题" /> <property id="title" name="title" ref="required" var="标题" />
<property id="content" name="content" ref="required" var="模板内容" /> <property id="content" name="content" ref="required" var="模板内容" />
<property id="logo" name="logo" ref="required" var="logo路径"/>
<property id="type" name="type" ref="required,num" var="模板类型"/> <property id="type" name="type" ref="required,num" var="模板类型"/>
<property id="firstTypeId" name="firstTypeId" ref="required" var="所属一级分类" /> <property id="firstTypeId" name="firstTypeId" ref="required" var="所属一级分类" />
<property id="secondTypeId" name="secondTypeId" ref="required" var="所属二级分类" /> <property id="secondTypeId" name="secondTypeId" ref="required" var="所属二级分类" />
</url> </url>
<url id="sysevemodel006" path="/post/SysEveModelController/selectSysEveModelMationById" val="通过id查找对应的系统编辑器模板详情" method="GET" allUse="1" groupName="系统编辑器模板"> <url id="sysevemodel006" path="/post/SysEveModelController/selectSysEveModelMationById" val="通过id查找对应的系统编辑器模板详情" method="GET" allUse="2" groupName="系统编辑器模板">
<property id="id" name="id" ref="required" var="模板id" /> <property id="id" name="id" ref="required" var="模板id" />
</url> </url>
<!-- 系统编辑器模板结束 --> <!-- 系统编辑器模板结束 -->
......
...@@ -271,7 +271,6 @@ public class CommonServiceImpl implements CommonService{ ...@@ -271,7 +271,6 @@ public class CommonServiceImpl implements CommonService{
* @return void 返回类型 * @return void 返回类型
* @throws * @throws
*/ */
@SuppressWarnings("unchecked")
@Override @Override
public void querySysWinMationById(InputObject inputObject, OutputObject outputObject) throws Exception { public void querySysWinMationById(InputObject inputObject, OutputObject outputObject) throws Exception {
Map<String, Object> map = inputObject.getParams(); Map<String, Object> map = inputObject.getParams();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册