|
@@ -11,6 +11,17 @@
|
|
|
#{policyValue}, #{configurationName}, now())
|
|
|
</insert>
|
|
|
|
|
|
+ <update id="addConfigByName">
|
|
|
+ update t_channel_setting
|
|
|
+ set configuration_name=#{configName}
|
|
|
+ where server_id = #{serverId}
|
|
|
+ and channel_name in (
|
|
|
+ <foreach collection="channelNameList" item="channelName" index="index" separator=",">
|
|
|
+ #{channelName}
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </update>
|
|
|
+
|
|
|
<update id="updateChannelSetting">
|
|
|
update t_channel_setting
|
|
|
set channel_map_name=#{channelMapName},
|
|
@@ -21,6 +32,13 @@
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="clearConfigByName">
|
|
|
+ update t_channel_setting
|
|
|
+ set configuration_name=null
|
|
|
+ where server_id = #{serverId}
|
|
|
+ and configuration_name = #{configName}
|
|
|
+ </update>
|
|
|
+
|
|
|
<select id="getChannelBySeChName" resultType="com.judong.chuanyiserver.entity.ChannelSetting">
|
|
|
select id,
|
|
|
server_id,
|