多域的日志增加可查看配置详情,隐藏日志中的查看详情,提供可以复制日志过长title功能
This commit is contained in:
@@ -37,7 +37,7 @@ import com.nis.web.dao.MyBatisDao;
|
||||
public interface AppCfgDao {
|
||||
//app策略配置增删改查
|
||||
public List<AppPolicyCfg> findAppPolicyList(AppPolicyCfg entity) ;
|
||||
public AppPolicyCfg getAppPolicyCfg(Long cfgId) ;
|
||||
public AppPolicyCfg getAppPolicyCfg(@Param("cfgId")Long cfgId,@Param("compileId")Integer compileId) ;
|
||||
public IpPortCfg getAppPolicyIpCfg(AppPolicyCfg entity) ;
|
||||
public List<IpPortCfg> getAppPolicyIpList(AppPolicyCfg entity);
|
||||
public int insertAppPolicyCfg(AppPolicyCfg entity);
|
||||
|
||||
@@ -514,11 +514,18 @@
|
||||
#{classify,jdbcType=VARCHAR},#{attribute,jdbcType=VARCHAR},#{lable,jdbcType=VARCHAR},
|
||||
#{areaEffectiveIds,jdbcType=VARCHAR}
|
||||
</sql> -->
|
||||
<select id="getAppPolicyCfg" resultMap="AppPolicyCfgMap" parameterType="java.lang.Long" >
|
||||
<select id="getAppPolicyCfg" resultMap="AppPolicyCfgMap">
|
||||
SELECT
|
||||
<include refid="AppPolicyCfg_Column" />
|
||||
FROM app_policy_cfg r
|
||||
WHERE CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
<where>
|
||||
<if test="cfgId !=null">
|
||||
CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
AND COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getAppIpCfg" resultMap="AppIpCfgMap" parameterType="java.lang.Long" >
|
||||
SELECT
|
||||
|
||||
@@ -591,7 +591,7 @@
|
||||
FROM cfg_index_info a
|
||||
<where>
|
||||
<if test="cfgId != null">
|
||||
and a.CFG_ID=#{cfgId,jdbcType=INTEGER}
|
||||
a.CFG_ID=#{cfgId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
and a.compile_Id=#{compileId,jdbcType=INTEGER}
|
||||
|
||||
@@ -2,6 +2,8 @@ package com.nis.web.dao.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.nis.domain.configuration.AvFileSampleCfg;
|
||||
import com.nis.domain.configuration.AvSignSampleCfg;
|
||||
import com.nis.domain.configuration.BaseCfg;
|
||||
@@ -30,7 +32,7 @@ import com.nis.web.dao.MyBatisDao;
|
||||
@MyBatisDao
|
||||
public interface BgpCfgDao extends CrudDao<CfgIndexInfo>{
|
||||
|
||||
public CfgIndexInfo getCfgIndexInfo(Long id);
|
||||
public CfgIndexInfo getCfgIndexInfo(@Param("cfgId")Long id,@Param("compileId") Integer compileId);
|
||||
public List<CfgIndexInfo> getBgpList(CfgIndexInfo entity);
|
||||
public List<IpPortCfg> getIpPortList(CfgIndexInfo entity);
|
||||
public List<HttpUrlCfg> getHttpUrlList(CfgIndexInfo entity);
|
||||
|
||||
@@ -292,10 +292,18 @@
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap" parameterType="java.lang.Long">
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap">
|
||||
SELECT
|
||||
<include refid="ConfigIndex_Column" />
|
||||
FROM cfg_index_info a where cfg_id=#{cfgId}
|
||||
FROM cfg_index_info a
|
||||
<where>
|
||||
<if test="cfgId !=null">
|
||||
CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
AND COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getIpPortList" resultMap="ipPortMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
||||
SELECT
|
||||
|
||||
@@ -2,6 +2,8 @@ package com.nis.web.dao.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.nis.domain.configuration.BaseCfg;
|
||||
import com.nis.domain.configuration.BaseStringCfg;
|
||||
import com.nis.domain.configuration.CfgIndexInfo;
|
||||
@@ -22,7 +24,7 @@ import com.nis.web.dao.MyBatisDao;
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface FileTransferCfgDao extends CrudDao<CfgIndexInfo> {
|
||||
public CfgIndexInfo getCfgIndexInfo(Long id);
|
||||
public CfgIndexInfo getCfgIndexInfo(@Param("cfgId")Long id,@Param("compileId")Integer compileId);
|
||||
public List<CfgIndexInfo> getFtpList(CfgIndexInfo entity);
|
||||
public List<IpPortCfg> getIpPortList(CfgIndexInfo entity);
|
||||
public List<BaseStringCfg> getFtpKeywordList(CfgIndexInfo entity);
|
||||
@@ -36,7 +38,7 @@ public interface FileTransferCfgDao extends CrudDao<CfgIndexInfo> {
|
||||
public void updateCfgIndex(CfgIndexInfo entity);
|
||||
public void updateCfgValid(BaseCfg entity);
|
||||
public void auditCfg(BaseCfg entity);
|
||||
public FileDigestCfg getFileDigest(Long id);
|
||||
public FileDigestCfg getFileDigest(@Param("cfgId")Long id,@Param("compileId")Integer compileId);
|
||||
public void updateFileDigestCfg(FileDigestCfg entity);
|
||||
public void deleteFileDigestSubscribeIdCfg(FileDigestCfg entity);
|
||||
public List<NtcSubscribeIdCfg> getFileDigestSubscribeidList(FileDigestCfg entity);
|
||||
|
||||
@@ -317,10 +317,18 @@
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap" parameterType="java.lang.Long">
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap">
|
||||
SELECT
|
||||
<include refid="ConfigIndex_Column" />
|
||||
FROM cfg_index_info a where cfg_id=#{cfgId}
|
||||
FROM cfg_index_info a
|
||||
<where>
|
||||
<if test="cfgId !=null">
|
||||
CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
AND COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getIpPortList" resultMap="ipPortMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
||||
SELECT
|
||||
@@ -1146,10 +1154,18 @@
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<select id="getFileDigest" resultMap="digestCfgMap" parameterType="java.lang.Long">
|
||||
<select id="getFileDigest" resultMap="digestCfgMap">
|
||||
SELECT
|
||||
<include refid="DigestCfg_Column" />
|
||||
FROM file_digest_cfg a where cfg_id=#{cfgId}
|
||||
FROM file_digest_cfg a
|
||||
<where>
|
||||
<if test="cfgId != null">
|
||||
a.CFG_ID=#{cfgId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
and a.compile_Id=#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getFileDigestSubscribeidList" resultMap="stringCfgMap" parameterType="com.nis.domain.configuration.FileDigestCfg">
|
||||
|
||||
@@ -36,7 +36,7 @@ public interface IpCfgDao extends CrudDao<BaseIpCfg>{
|
||||
public int deleteByCompileIds(@Param("user")long user,@Param("tableName")String tableName,@Param("compileIds")String compileIds);
|
||||
/******************************new ***********************************/
|
||||
|
||||
public CfgIndexInfo getCfgIndexInfo(Long id);
|
||||
public CfgIndexInfo getCfgIndexInfo(@Param("cfgId")Long id,@Param("compileId")Integer compileId);
|
||||
public List<IpPortCfg> getIpPortList(CfgIndexInfo entity);
|
||||
public void saveCfgIndex(CfgIndexInfo entity);
|
||||
public void saveCfgIndexForBatch(CfgIndexInfo entity);
|
||||
|
||||
@@ -760,10 +760,18 @@
|
||||
WHERE r.CFG_ID in (${ids}) AND r.FUNCTION_ID=#{functionId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<!-- new -->
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap" parameterType="java.lang.Long">
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap">
|
||||
SELECT
|
||||
<include refid="ConfigIndex_Column" />
|
||||
FROM cfg_index_info a where cfg_id=#{cfgId}
|
||||
FROM cfg_index_info a
|
||||
<where>
|
||||
<if test="cfgId !=null">
|
||||
CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
AND COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getIpPortList" resultMap="ipPortMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
||||
SELECT
|
||||
|
||||
@@ -2,6 +2,8 @@ package com.nis.web.dao.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.nis.domain.configuration.BaseCfg;
|
||||
import com.nis.domain.configuration.CfgIndexInfo;
|
||||
import com.nis.domain.configuration.ComplexkeywordCfg;
|
||||
@@ -18,7 +20,7 @@ import com.nis.web.dao.MyBatisDao;
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface MailCfgDao extends CrudDao<CfgIndexInfo>{
|
||||
public CfgIndexInfo getCfgIndexInfo(Long id);
|
||||
public CfgIndexInfo getCfgIndexInfo(@Param("cfgId")Long id,@Param("compileId")Integer compileId);
|
||||
public List<CfgIndexInfo> getMailList(CfgIndexInfo entity);
|
||||
public List<IpPortCfg> getIpPortList(CfgIndexInfo entity);
|
||||
public List<ComplexkeywordCfg> getMailKeywordList(CfgIndexInfo entity);
|
||||
|
||||
@@ -250,10 +250,18 @@
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap" parameterType="java.lang.Long">
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap">
|
||||
SELECT
|
||||
<include refid="ConfigIndex_Column" />
|
||||
FROM cfg_index_info a where cfg_id=#{cfgId}
|
||||
FROM cfg_index_info a
|
||||
<where>
|
||||
<if test="cfgId !=null">
|
||||
CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
AND COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getIpPortList" resultMap="ipPortMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
||||
SELECT
|
||||
|
||||
@@ -2,20 +2,17 @@ package com.nis.web.dao.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.configuration.AvFileSampleCfg;
|
||||
import com.nis.domain.configuration.AvSignSampleCfg;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.nis.domain.configuration.BaseCfg;
|
||||
import com.nis.domain.configuration.BaseStringCfg;
|
||||
import com.nis.domain.configuration.CfgIndexInfo;
|
||||
import com.nis.domain.configuration.ComplexkeywordCfg;
|
||||
import com.nis.domain.configuration.DnsDomainCfg;
|
||||
import com.nis.domain.configuration.DnsIpCfg;
|
||||
import com.nis.domain.configuration.HttpBodyCfg;
|
||||
import com.nis.domain.configuration.HttpReqHeadCfg;
|
||||
import com.nis.domain.configuration.HttpResHeadCfg;
|
||||
import com.nis.domain.configuration.HttpUrlCfg;
|
||||
import com.nis.domain.configuration.IpPortCfg;
|
||||
import com.nis.domain.configuration.SslKeywordCfg;
|
||||
import com.nis.web.dao.CrudDao;
|
||||
import com.nis.web.dao.MyBatisDao;
|
||||
|
||||
@@ -29,7 +26,7 @@ import com.nis.web.dao.MyBatisDao;
|
||||
public interface WebsiteCfgDao extends CrudDao<CfgIndexInfo>{
|
||||
|
||||
public List<CfgIndexInfo> getCfgIndexInfos(CfgIndexInfo entity);
|
||||
public CfgIndexInfo getCfgIndexInfo(Long id);
|
||||
public CfgIndexInfo getCfgIndexInfo(@Param("cfgId")Long id,@Param("compileId")Integer compileId);
|
||||
public List<CfgIndexInfo> getWebsiteList(CfgIndexInfo entity);
|
||||
public List<IpPortCfg> getIpPortList(CfgIndexInfo entity);
|
||||
public List<HttpUrlCfg> getHttpUrlList(CfgIndexInfo entity);
|
||||
|
||||
@@ -339,10 +339,18 @@
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap" parameterType="java.lang.Long">
|
||||
<select id="getCfgIndexInfo" resultMap="CfgIndexInfoMap">
|
||||
SELECT
|
||||
<include refid="ConfigIndex_Column" />
|
||||
FROM cfg_index_info a where cfg_id=#{cfgId}
|
||||
FROM cfg_index_info a
|
||||
<where>
|
||||
<if test="cfgId !=null">
|
||||
CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
AND COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getCfgIndexInfos" resultMap="CfgIndexInfoMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user