关键字日志转url配置bug更改
批量失效时http关键字配置失效,同时失效相关的httpurl配置 刘梦严要求行为只保留pptp openvpn ipsec l2tp
This commit is contained in:
@@ -31,8 +31,12 @@ public interface CommonPolicyDao {
|
||||
public void deleteComplexStringCfg(CfgIndexInfo entity);
|
||||
public void updateCfgValid(BaseCfg entity);
|
||||
public void auditCfg(BaseCfg entity);
|
||||
public List<CfgIndexInfo> getHttpUrlCfgBySourceCompileId(@Param("compileIds")List compileIds);
|
||||
public void auditCfgBatch(@Param("tableName")String tableName,
|
||||
@Param("entity")BaseCfg baseCfg,
|
||||
@Param("compileIds")List compileIds,
|
||||
@Param("requestId")Integer requestId);
|
||||
public void deleteHttpUrlCfg(@Param("tableName")String tableName,
|
||||
@Param("entity")BaseCfg baseCfg,
|
||||
@Param("compileIds")List compileIds);
|
||||
}
|
||||
|
||||
@@ -784,4 +784,27 @@
|
||||
</where>
|
||||
</if>
|
||||
</update>
|
||||
<update id="deleteHttpUrlCfg">
|
||||
update ${tableName} set is_valid =-1,is_audit = 0,
|
||||
editor_id = #{entity.auditorId,jdbcType=INTEGER},
|
||||
edit_time = #{entity.auditTime,jdbcType=TIMESTAMP}
|
||||
<where>
|
||||
and compile_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</where>
|
||||
</update>
|
||||
|
||||
<select id="getHttpUrlCfgBySourceCompileId" resultMap="CfgIndexInfoMap">
|
||||
SELECT
|
||||
<include refid="ConfigIndex_Column" />
|
||||
FROM cfg_index_info a
|
||||
<where>
|
||||
and source_compile_id in
|
||||
<foreach collection="compileIds" index="index" item="compileId" open="(" separator="," close=")">
|
||||
#{compileId}
|
||||
</foreach>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user