fix(all):清除历史无用日志处理类
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
package com.nis.web.dao;
|
||||
|
||||
import com.nis.domain.restful.DfIpPortUdp;
|
||||
import com.nis.domain.restful.JdjInfo;
|
||||
/**
|
||||
* @ClassName: JdjInfoDao.java
|
||||
* @Description: TODO
|
||||
* @author (dell)
|
||||
* @date 2016年9月9日 上午10:02:33
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface DfIpPortUdpDao extends CrudDao<DfIpPortUdp>{
|
||||
int delete(long id);
|
||||
|
||||
int insert(DfIpPortUdp record);
|
||||
|
||||
int update(DfIpPortUdp record);
|
||||
|
||||
}
|
||||
@@ -1,240 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nis.web.dao.DfIpPortUdpDao">
|
||||
<resultMap id="BaseResultMap" type="com.nis.domain.restful.DfIpPortUdp">
|
||||
<id column="CFG_ID" jdbcType="BIGINT" property="cfgId" />
|
||||
<result column="ADDR_TYPE" jdbcType="INTEGER" property="addrType" />
|
||||
<result column="SRC_IP" jdbcType="VARCHAR" property="srcIp" />
|
||||
<result column="MASK_SRC_IP" jdbcType="VARCHAR" property="maskSrcIp" />
|
||||
<result column="SRC_PORT" jdbcType="VARCHAR" property="srcPort" />
|
||||
<result column="MASK_SRC_PORT" jdbcType="VARCHAR" property="maskSrcPort" />
|
||||
<result column="DST_IP" jdbcType="VARCHAR" property="dstIp" />
|
||||
<result column="MASK_DST_IP" jdbcType="VARCHAR" property="maskDstIp" />
|
||||
<result column="DST_PORT" jdbcType="VARCHAR" property="dstPort" />
|
||||
<result column="MASK_DST_PORT" jdbcType="VARCHAR" property="maskDstPort" />
|
||||
<result column="PROTOCOL" jdbcType="INTEGER" property="protocol" />
|
||||
<result column="DIRECTION" jdbcType="INTEGER" property="direction" />
|
||||
<result column="IS_VALID" jdbcType="INTEGER" property="isValid" />
|
||||
<result column="OP_TIME" jdbcType="TIMESTAMP" property="opTime" />
|
||||
<result property="lastUpdate" column="LAST_UPDATE"/>
|
||||
<result property="effectiveRange" column="EFFECTIVE_RANGE"/>
|
||||
<result property="activeSys" column="ACTIVE_SYS"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
CFG_ID, ADDR_TYPE, SRC_IP, MASK_SRC_IP, SRC_PORT, MASK_SRC_PORT, DST_IP, MASK_DST_IP,
|
||||
DST_PORT, MASK_DST_PORT, PROTOCOL, DIRECTION, IS_VALID, OP_TIME,lastUpdate,effectiveRange,activeSys
|
||||
</sql>
|
||||
<!--
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from DF_IP_PORT_UDP
|
||||
where CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</select>
|
||||
-->
|
||||
<delete id="delete" parameterType="java.lang.Long">
|
||||
delete from DF_IP_PORT_UDP
|
||||
where CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</delete>
|
||||
<!--
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.DfIpPortUdp">
|
||||
<selectKey resultType="java.lang.Long" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_DF_IP_PORT_UDP.Nextval as ID from DUAL
|
||||
</selectKey>
|
||||
insert into DF_IP_PORT_UDP (CFG_ID, ADDR_TYPE, SRC_IP,
|
||||
MASK_SRC_IP, SRC_PORT, MASK_SRC_PORT,
|
||||
DST_IP, MASK_DST_IP, DST_PORT,
|
||||
MASK_DST_PORT, PROTOCOL, DIRECTION,
|
||||
IS_VALID, OP_TIME)
|
||||
values (#{id,jdbcType=BIGINT}, #{addrType,jdbcType=INTEGER}, #{srcIp,jdbcType=VARCHAR},
|
||||
#{maskSrcIp,jdbcType=VARCHAR}, #{srcPort,jdbcType=VARCHAR}, #{maskSrcPort,jdbcType=VARCHAR},
|
||||
#{dstIp,jdbcType=VARCHAR}, #{maskDstIp,jdbcType=VARCHAR}, #{dstPort,jdbcType=VARCHAR},
|
||||
#{maskDstPort,jdbcType=VARCHAR}, #{protocol,jdbcType=INTEGER}, #{direction,jdbcType=INTEGER},
|
||||
#{isValid,jdbcType=INTEGER}, #{opTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
-->
|
||||
<insert id="insert" parameterType="com.nis.domain.restful.DfIpPortUdp">
|
||||
<!--
|
||||
<selectKey resultType="java.lang.Long" order="BEFORE" keyProperty="cfgId">
|
||||
SELECT SEQ_DF_IP_PORT_UDP.Nextval as ID from DUAL
|
||||
</selectKey>
|
||||
-->
|
||||
insert into DF_IP_PORT_UDP
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
CFG_ID,
|
||||
<if test="addrType != null">
|
||||
ADDR_TYPE,
|
||||
</if>
|
||||
<if test="srcIp != null">
|
||||
SRC_IP,
|
||||
</if>
|
||||
<if test="maskSrcIp != null">
|
||||
MASK_SRC_IP,
|
||||
</if>
|
||||
<if test="srcPort != null">
|
||||
SRC_PORT,
|
||||
</if>
|
||||
<if test="maskSrcPort != null">
|
||||
MASK_SRC_PORT,
|
||||
</if>
|
||||
<if test="dstIp != null">
|
||||
DST_IP,
|
||||
</if>
|
||||
<if test="maskDstIp != null">
|
||||
MASK_DST_IP,
|
||||
</if>
|
||||
<if test="dstPort != null">
|
||||
DST_PORT,
|
||||
</if>
|
||||
<if test="maskDstPort != null">
|
||||
MASK_DST_PORT,
|
||||
</if>
|
||||
<if test="protocol != null">
|
||||
PROTOCOL,
|
||||
</if>
|
||||
<if test="direction != null">
|
||||
DIRECTION,
|
||||
</if>
|
||||
<if test="isValid != null">
|
||||
IS_VALID,
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
OP_TIME,
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
LAST_UPDATE,
|
||||
</if>
|
||||
<if test="effectiveRange != null">
|
||||
EFFECTIVE_RANGE,
|
||||
</if>
|
||||
<if test="activeSys != null">
|
||||
ACTIVE_SYS,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
#{cfgId,jdbcType=BIGINT},
|
||||
<if test="addrType != null">
|
||||
#{addrType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="srcIp != null">
|
||||
#{srcIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskSrcIp != null">
|
||||
#{maskSrcIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="srcPort != null">
|
||||
#{srcPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskSrcPort != null">
|
||||
#{maskSrcPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dstIp != null">
|
||||
#{dstIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskDstIp != null">
|
||||
#{maskDstIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dstPort != null">
|
||||
#{dstPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskDstPort != null">
|
||||
#{maskDstPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="protocol != null">
|
||||
#{protocol,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="direction != null">
|
||||
#{direction,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="isValid != null">
|
||||
#{isValid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
#{opTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="lastUpdate != null">
|
||||
#{lastUpdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="effectiveRange != null">
|
||||
#{effectiveRange,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="activeSys != null">
|
||||
#{activeSys,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="update" parameterType="com.nis.domain.restful.DfIpPortUdp">
|
||||
update DF_IP_PORT_UDP
|
||||
<set>
|
||||
<if test="addrType != null">
|
||||
ADDR_TYPE = #{addrType,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="srcIp != null">
|
||||
SRC_IP = #{srcIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskSrcIp != null">
|
||||
MASK_SRC_IP = #{maskSrcIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="srcPort != null">
|
||||
SRC_PORT = #{srcPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskSrcPort != null">
|
||||
MASK_SRC_PORT = #{maskSrcPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dstIp != null">
|
||||
DST_IP = #{dstIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskDstIp != null">
|
||||
MASK_DST_IP = #{maskDstIp,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="dstPort != null">
|
||||
DST_PORT = #{dstPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="maskDstPort != null">
|
||||
MASK_DST_PORT = #{maskDstPort,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="protocol != null">
|
||||
PROTOCOL = #{protocol,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="direction != null">
|
||||
DIRECTION = #{direction,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="isValid != null">
|
||||
IS_VALID = #{isValid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="opTime != null">
|
||||
OP_TIME = #{opTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="lastUpdate != null">
|
||||
LAST_UPDATE = #{lastUpdate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="effectiveRange != null">
|
||||
EFFECTIVE_RANGE=#{effectiveRange,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="activeSys != null">
|
||||
ACTIVE_SYS=#{activeSys,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</update>
|
||||
<!--
|
||||
<update id="updateByPrimaryKey" parameterType="com.nis.domain.restful.DfIpPortUdp">
|
||||
update DF_IP_PORT_UDP
|
||||
set ADDR_TYPE = #{addrType,jdbcType=INTEGER},
|
||||
SRC_IP = #{srcIp,jdbcType=VARCHAR},
|
||||
MASK_SRC_IP = #{maskSrcIp,jdbcType=VARCHAR},
|
||||
SRC_PORT = #{srcPort,jdbcType=VARCHAR},
|
||||
MASK_SRC_PORT = #{maskSrcPort,jdbcType=VARCHAR},
|
||||
DST_IP = #{dstIp,jdbcType=VARCHAR},
|
||||
MASK_DST_IP = #{maskDstIp,jdbcType=VARCHAR},
|
||||
DST_PORT = #{dstPort,jdbcType=VARCHAR},
|
||||
MASK_DST_PORT = #{maskDstPort,jdbcType=VARCHAR},
|
||||
PROTOCOL = #{protocol,jdbcType=INTEGER},
|
||||
DIRECTION = #{direction,jdbcType=INTEGER},
|
||||
IS_VALID = #{isValid,jdbcType=INTEGER},
|
||||
OP_TIME = #{opTime,jdbcType=TIMESTAMP}
|
||||
where CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</update>
|
||||
-->
|
||||
</mapper>
|
||||
@@ -1,28 +0,0 @@
|
||||
/**
|
||||
* @Title: DfKeyConvertUrlDao.java
|
||||
* @Package com.nis.web.dao
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (DDM)
|
||||
* @date 2016年9月27日下午9:59:58
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.restful.DfKeyConvertUrl;
|
||||
import com.nis.domain.restful.DjFlowControlStop;
|
||||
|
||||
/**
|
||||
* @ClassName: DfKeyConvertUrlDao
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (DDM)
|
||||
* @date 2016年9月27日下午9:59:58
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface DfKeyConvertUrlDao extends CrudDao<Serializable>{
|
||||
|
||||
List<DfKeyConvertUrl> findDfKeyConvertUrlPage(DfKeyConvertUrl entity);
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nis.web.dao.DfKeyConvertUrlDao">
|
||||
|
||||
<!-- DJ_FLOWCONTROL_STOP -->
|
||||
<sql id="dfKeyConvertUrlProperty">
|
||||
ID,KEY_ID,URL,OP_TIME
|
||||
</sql>
|
||||
<resultMap id="DfKeyConvertUrlMap" type="com.nis.domain.restful.DfKeyConvertUrl">
|
||||
<result column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="key_id" jdbcType="INTEGER" property="keyId" />
|
||||
<result column="url" jdbcType="VARCHAR" property="url" />
|
||||
<result column="op_time" jdbcType="TIMESTAMP" property="opTime" />
|
||||
</resultMap>
|
||||
<select id="findDfKeyConvertUrlPage" parameterType="com.nis.domain.restful.DfKeyConvertUrl" resultMap="DfKeyConvertUrlMap">
|
||||
SELECT
|
||||
<choose>
|
||||
<when test="page !=null and page.fields != null and page.fields != ''">
|
||||
${page.fields}
|
||||
</when>
|
||||
<otherwise>
|
||||
<include refid="dfKeyConvertUrlProperty"/>
|
||||
</otherwise>
|
||||
</choose>
|
||||
FROM DF_KEY_CONVERT_URL
|
||||
<where>
|
||||
<if test="optStartTime != null and optStartTime !=''">
|
||||
<![CDATA[AND OP_TIME >= to_date(#{optStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="optEndTime != null and optEndTime !=''">
|
||||
<![CDATA[AND OP_TIME < to_date(#{optEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="searchId != null and searchId !=''">
|
||||
AND id > ${searchId}
|
||||
</if>
|
||||
</where>
|
||||
<choose>
|
||||
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||
ORDER BY ${page.orderBy}
|
||||
</when>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -1,20 +0,0 @@
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.restful.DfKeyMailAdd;
|
||||
|
||||
/**
|
||||
* @ClassName: DfKeyMailAddDao
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (ZBC)
|
||||
* @date 2016年11月09日 下午02:25:00
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface DfKeyMailAddDao extends CrudDao<Serializable> {
|
||||
|
||||
List<DfKeyMailAdd> findDfKeyMailAddPage(DfKeyMailAdd entity);
|
||||
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nis.web.dao.DfKeyMailAddDao">
|
||||
<!-- DF_KEY_MAIL_ADDR -->
|
||||
<sql id="dfKeyMailAddProperty">
|
||||
ID,KEY_ID,MAIL_ADDR,OP_TIME
|
||||
</sql>
|
||||
|
||||
<resultMap id="DfKeyMailAddMap" type="com.nis.domain.restful.DfKeyMailAdd">
|
||||
<result column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="key_id" jdbcType="INTEGER" property="keyId" />
|
||||
<result column="mail_addr" jdbcType="VARCHAR" property="mailAddr" />
|
||||
<result column="op_time" jdbcType="TIMESTAMP" property="opTime" />
|
||||
</resultMap>
|
||||
|
||||
<select id="findDfKeyMailAddPage" parameterType="com.nis.domain.restful.DfKeyMailAdd"
|
||||
resultMap="DfKeyMailAddMap">
|
||||
SELECT
|
||||
<choose>
|
||||
<when test="page !=null and page.fields != null and page.fields != ''">
|
||||
${page.fields}
|
||||
</when>
|
||||
<otherwise>
|
||||
<include refid="dfKeyMailAddProperty"/>
|
||||
</otherwise>
|
||||
</choose>
|
||||
FROM DF_KEY_MAIL_ADDR
|
||||
<where>
|
||||
<if test="optStartTime != null and optStartTime !=''">
|
||||
<![CDATA[AND OP_TIME >= to_date(#{optStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="optEndTime != null and optEndTime !=''">
|
||||
<![CDATA[AND OP_TIME < to_date(#{optEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="searchId != null and searchId !=''">
|
||||
AND id > ${searchId}
|
||||
</if>
|
||||
</where>
|
||||
<choose>
|
||||
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||
ORDER BY ${page.orderBy}
|
||||
</when>
|
||||
</choose>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,64 +0,0 @@
|
||||
/**
|
||||
* @Title: DjLogSearchDao.java
|
||||
* @Package com.nis.web.dao
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午2:32:25
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.nis.domain.restful.DjDnsLog;
|
||||
import com.nis.domain.restful.DjFtpLog;
|
||||
import com.nis.domain.restful.DjHttpKeywordLog;
|
||||
import com.nis.domain.restful.DjHttpReqLog;
|
||||
import com.nis.domain.restful.DjHttpResLog;
|
||||
import com.nis.domain.restful.DjIpPortLog;
|
||||
import com.nis.domain.restful.DjIpsecLog;
|
||||
import com.nis.domain.restful.DjL2tpLog;
|
||||
import com.nis.domain.restful.DjMailLog;
|
||||
import com.nis.domain.restful.DjOpenvpnLog;
|
||||
import com.nis.domain.restful.DjPptpLog;
|
||||
import com.nis.domain.restful.DjSshLog;
|
||||
import com.nis.domain.restful.DjSslLog;
|
||||
|
||||
/**
|
||||
* @ClassName: DjLogSearchDao
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月7日 下午2:32:25
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
@SuppressWarnings("rawtypes")
|
||||
public interface DjLogSearchDao extends CrudDao<LogEntity>{
|
||||
|
||||
List<DjIpPortLog> findIpPortLogs(DjIpPortLog log);
|
||||
|
||||
List<DjHttpReqLog> findHttpReqLogs(DjHttpReqLog log);
|
||||
|
||||
List<DjHttpResLog> findHttpResLogs(DjHttpResLog log);
|
||||
|
||||
List<DjHttpKeywordLog> findHttpKeywordLogs(DjHttpKeywordLog log);
|
||||
|
||||
List<DjMailLog> findMailLogs(DjMailLog log);
|
||||
|
||||
List<DjDnsLog> findDnsLogs(DjDnsLog log);
|
||||
|
||||
List<DjFtpLog> findFtpLogs(DjFtpLog log);
|
||||
|
||||
List<DjPptpLog> findPptpLogs(DjPptpLog log);
|
||||
|
||||
List<DjL2tpLog> findL2tpLogs(DjL2tpLog log);
|
||||
|
||||
List<DjIpsecLog> findIpsecLogs(DjIpsecLog log);
|
||||
|
||||
List<DjOpenvpnLog> findOpenvpnLogs(DjOpenvpnLog log);
|
||||
|
||||
List<DjSshLog> findSshLogs(DjSshLog log);
|
||||
|
||||
List<DjSslLog> findSslLogs(DjSslLog log);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,27 +0,0 @@
|
||||
/**
|
||||
* @Title: IntervalTimeSearchDao.java
|
||||
* @Package com.nis.web.dao
|
||||
* @Description: TODO(用一句话描述该文件做什么)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月8日下午8:11:58
|
||||
* @version V1.0
|
||||
*/
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.restful.DjFlowControlStop;
|
||||
|
||||
/**
|
||||
* @ClassName: IntervalTimeSearchDao
|
||||
* @Description: TODO(这里用一句话描述这个类的作用)
|
||||
* @author (zbc)
|
||||
* @date 2016年9月8日下午8:11:58
|
||||
* @version V1.0
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface IntervalTimeSearchDao extends CrudDao<Serializable>{
|
||||
|
||||
List<DjFlowControlStop> findFlowControlStopPage(DjFlowControlStop entity);
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nis.web.dao.IntervalTimeSearchDao">
|
||||
|
||||
<!-- DJ_FLOWCONTROL_STOP -->
|
||||
<sql id="flowControlStopProperty">
|
||||
CFG_ID,SERVICE,ACTION,OP_TIME
|
||||
</sql>
|
||||
<resultMap id="DjFlowControlStopMap" type="com.nis.domain.restful.DjFlowControlStop">
|
||||
<result column="CFG_ID" jdbcType="BIGINT" property="cfgId" />
|
||||
<result column="service" jdbcType="INTEGER" property="service" />
|
||||
<result column="action" jdbcType="INTEGER" property="action" />
|
||||
<result column="op_time" jdbcType="TIMESTAMP" property="opTime" />
|
||||
</resultMap>
|
||||
<select id="findFlowControlStopPage" parameterType="com.nis.domain.restful.DjFlowControlStop" resultMap="DjFlowControlStopMap">
|
||||
SELECT
|
||||
<choose>
|
||||
<when test="page !=null and page.fields != null and page.fields != ''">
|
||||
${page.fields}
|
||||
</when>
|
||||
<otherwise>
|
||||
<include refid="flowControlStopProperty"/>
|
||||
</otherwise>
|
||||
</choose>
|
||||
FROM DJ_FLOWCONTROL_STOP
|
||||
<where>
|
||||
<if test="optStartTime != null and optStartTime !=''">
|
||||
<![CDATA[AND OP_TIME >= to_date(#{optStartTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<if test="optEndTime != null and optEndTime !=''">
|
||||
<![CDATA[AND OP_TIME < to_date(#{optEndTime},'yyyy-MM-dd HH24:mi:ss')]]>
|
||||
</if>
|
||||
<!-- <if test="searchCfgId != null and searchCfgId !=''">
|
||||
AND cfg_id =${searchCfgId}
|
||||
</if> -->
|
||||
</where>
|
||||
<choose>
|
||||
<when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
||||
ORDER BY ${page.orderBy}
|
||||
</when>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user