Commit 0aa94876 authored by Administrator's avatar Administrator

添加模块失效时间字段

parent 5e934a5d
...@@ -43,6 +43,8 @@ public class Func { ...@@ -43,6 +43,8 @@ public class Func {
private String icon; private String icon;
// 小程序路径,图片路径,文档路径,短连接路径,页面路径 // 小程序路径,图片路径,文档路径,短连接路径,页面路径
private String path; private String path;
// 模块失效时间
private String deadTime;
} }
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
update_date AS "updateDate", update_date AS "updateDate",
del_flag AS "delFlag", del_flag AS "delFlag",
icon, icon,
dead_time AS deadTime,
open_type AS openType open_type AS openType
FROM gk_cmptsetting a FROM gk_cmptsetting a
WHERE a.id = #{id} WHERE a.id = #{id}
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
update_date AS "updateDate", update_date AS "updateDate",
del_flag AS "delFlag", del_flag AS "delFlag",
icon, icon,
dead_time AS deadTime,
open_type AS openType open_type AS openType
FROM `gk_cmptsetting` FROM `gk_cmptsetting`
WHERE cmptid = #{cmptId} order by seq WHERE cmptid = #{cmptId} order by seq
...@@ -71,7 +73,8 @@ ...@@ -71,7 +73,8 @@
create_date, create_date,
del_flag, del_flag,
icon, icon,
open_type open_type,
dead_time
) VALUES ( ) VALUES (
#{id}, #{id},
#{cmptId}, #{cmptId},
...@@ -85,7 +88,8 @@ ...@@ -85,7 +88,8 @@
now(), now(),
0, 0,
#{icon}, #{icon},
#{openType} #{openType},
#{deadTime}
) )
</insert> </insert>
...@@ -117,12 +121,14 @@ ...@@ -117,12 +121,14 @@
<if test="func.icon != null"> <if test="func.icon != null">
icon = #{func.icon} icon = #{func.icon}
</if> </if>
<if test="func.deadTime != null">
dead_time = #{func.deadTime}
</if>
</set> </set>
WHERE id = #{func.id} WHERE id = #{func.id}
</update> </update>
<insert id="save"> <insert id="save">
INSERT INTO gk_cmptsetting( INSERT INTO gk_cmptsetting(id,
id,
cmptid, cmptid,
name, name,
name_web, name_web,
...@@ -136,9 +142,9 @@ ...@@ -136,9 +142,9 @@
app_id, app_id,
url, url,
open_type, open_type,
icon icon,
) VALUES ( dead_time)
#{func.id}, VALUES (#{func.id},
#{func.cmptId}, #{func.cmptId},
#{func.nameWeb}, #{func.nameWeb},
#{func.nameWeb}, #{func.nameWeb},
...@@ -152,8 +158,8 @@ ...@@ -152,8 +158,8 @@
#{func.appId}, #{func.appId},
#{func.url}, #{func.url},
#{func.openType}, #{func.openType},
#{func.icon} #{func.icon},
) #{func.deadTime})
</insert> </insert>
<update id="updateById"> <update id="updateById">
...@@ -170,6 +176,9 @@ ...@@ -170,6 +176,9 @@
<if test="openType != null"> <if test="openType != null">
open_type = #{openType}, open_type = #{openType},
</if> </if>
<if test="deadTime != null">
dead_time = #{deadTime}
</if>
create_by = #{createBy}, create_by = #{createBy},
create_date = #{createDate}, create_date = #{createDate},
update_by = #{updateBy}, update_by = #{updateBy},
...@@ -192,12 +201,15 @@ ...@@ -192,12 +201,15 @@
<if test="openType != null"> <if test="openType != null">
open_type = #{openType}, open_type = #{openType},
</if> </if>
<if test="deadTime != null">
dead_time = #{deadTime}
</if>
update_date = now() update_date = now()
WHERE cmptId=#{setting.cmptId} and type = #{setting.type} and del_flag = 0 WHERE cmptId=#{setting.cmptId} and type = #{setting.type} and del_flag = 0
</update> </update>
<select id="queryFuncs" resultType="com.dlbridge.jadp.plugins.cmpt.bean.Func"> <select id="queryFuncs" resultType="com.dlbridge.jadp.plugins.cmpt.bean.Func">
select id,cmptid cmptId,name,type,visibility,seq,app_id appId,url,name_web nameWeb,`status`,icon,open_type openType select id,cmptid cmptId,name,type,visibility,seq,app_id appId,url,name_web nameWeb,`status`,icon,open_type openType,dead_time deadTime
from gk_cmptsetting from gk_cmptsetting
where cmptid = #{cmptId} and visibility=1 and del_flag=0 and status>0 where cmptid = #{cmptId} and visibility=1 and del_flag=0 and status>0
order by seq order by seq
...@@ -205,7 +217,7 @@ ...@@ -205,7 +217,7 @@
</select> </select>
<select id="queryAllFuncs" resultType="com.dlbridge.jadp.plugins.cmpt.bean.Func"> <select id="queryAllFuncs" resultType="com.dlbridge.jadp.plugins.cmpt.bean.Func">
select id,cmptid cmptId,name,type,visibility,seq,app_id appId,url,name_web nameWeb,`status`,icon,open_type openType select id,cmptid cmptId,name,type,visibility,seq,app_id appId,url,name_web nameWeb,`status`,icon,open_type openType,dead_time deadTime
from gk_cmptsetting from gk_cmptsetting
where cmptid = #{cmptId} and visibility=1 and del_flag=0 and status=1 where cmptid = #{cmptId} and visibility=1 and del_flag=0 and status=1
order by seq order by seq
...@@ -259,7 +271,7 @@ ...@@ -259,7 +271,7 @@
</select> </select>
<select id="queryAllThirdMicros" resultType="com.dlbridge.jadp.plugins.cmpt.bean.Func"> <select id="queryAllThirdMicros" resultType="com.dlbridge.jadp.plugins.cmpt.bean.Func">
select id,cmptid cmptId,name,type,visibility,seq,app_id appId,url,name_web nameWeb,icon,open_type openType select id,cmptid cmptId,name,type,visibility,seq,app_id appId,url,name_web nameWeb,icon,open_type openType,dead_time deadTime
from gk_cmptsetting from gk_cmptsetting
where cmptid = #{cmptId} and type=19 where cmptid = #{cmptId} and type=19
</select> </select>
...@@ -268,7 +280,7 @@ ...@@ -268,7 +280,7 @@
delete from gk_cmptsetting where id = #{id} delete from gk_cmptsetting where id = #{id}
</delete> </delete>
<select id="getFuncById" resultType="com.dlbridge.jadp.plugins.cmpt.bean.Func"> <select id="getFuncById" resultType="com.dlbridge.jadp.plugins.cmpt.bean.Func">
select id,cmptid cmptId,name,type,visibility,seq,app_id appId,url,name_web nameWeb,icon,open_type openType select id,cmptid cmptId,name,type,visibility,seq,app_id appId,url,name_web nameWeb,icon,open_type openType,dead_time deadTime
from gk_cmptsetting from gk_cmptsetting
where id=#{id} where id=#{id}
</select> </select>
......
...@@ -21,7 +21,16 @@ public class CmptSetting extends JaapRecord<CmptSetting> { ...@@ -21,7 +21,16 @@ public class CmptSetting extends JaapRecord<CmptSetting> {
private Integer openType; private Integer openType;
// 图标 // 图标
private String icon; private String icon;
// 模块失效时间
private String deadTime;
public String getDeadTime() {
return deadTime;
}
public void setDeadTime(String deadTime) {
this.deadTime = deadTime;
}
public Integer getOpenType() { public Integer getOpenType() {
return openType; return openType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment