1:删除无用的数据库连接
2:修改pom中使用的hive版本为2.1.1 3:添加IP地址日志查询服务
This commit is contained in:
24
src/main/java/com/nis/web/dao/DfLogSearchDao.java
Normal file
24
src/main/java/com/nis/web/dao/DfLogSearchDao.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.nis.web.dao;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.nis.domain.LogEntity;
|
||||
import com.nis.domain.restful.NtcIpLog;
|
||||
|
||||
/**
|
||||
*
|
||||
* <p>Title: DfLogSearchDao</p>
|
||||
* <p>Description: 日志查询dao</p>
|
||||
* <p>Company: IIE</p>
|
||||
* @author rkg
|
||||
* @date 2018年7月2日
|
||||
*
|
||||
*/
|
||||
@MyBatisDao
|
||||
public interface DfLogSearchDao extends CrudDao<LogEntity> {
|
||||
|
||||
// List<NtcIpLog> findNtcIpLog(NtcIpLog log);
|
||||
|
||||
|
||||
|
||||
}
|
||||
49
src/main/java/com/nis/web/dao/DfLogSearchDao.xml
Normal file
49
src/main/java/com/nis/web/dao/DfLogSearchDao.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?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.DfLogSearchDao">
|
||||
<!-- 所有日志表的公共属性 -->
|
||||
<sql id="commonPorperty">
|
||||
cfg_id ,
|
||||
found_time ,
|
||||
recv_time ,
|
||||
trans_proto ,
|
||||
addr_type ,
|
||||
d_ip ,
|
||||
s_ip ,
|
||||
d_port ,
|
||||
s_port ,
|
||||
service ,
|
||||
entrance_id ,
|
||||
device_id ,
|
||||
direction ,
|
||||
stream_dir ,
|
||||
cap_ip ,
|
||||
addr_list ,
|
||||
user_region
|
||||
</sql>
|
||||
<resultMap id="NtcIpLogMap" type="com.nis.domain.restful.NtcIpLog">
|
||||
<result column="cfg_id" jdbcType="BIGINT" property="cfgId" />
|
||||
<result column="found_Time" jdbcType="TIMESTAMP" property="foundTime" />
|
||||
<result column="recv_Time" jdbcType="TIMESTAMP" property="recvTime" />
|
||||
<result column="trans_proto" jdbcType="VARCHAR" property="transProto" />
|
||||
<result column="addr_type" jdbcType="INTEGER" property="addrType" />
|
||||
<result column="d_ip" jdbcType="VARCHAR" property="dIp" />
|
||||
<result column="s_ip" jdbcType="VARCHAR" property="sIp" />
|
||||
<result column="d_port" jdbcType="VARCHAR" property="dPort" />
|
||||
<result column="s_port" jdbcType="VARCHAR" property="sPort" />
|
||||
<result column="service" jdbcType="INTEGER" property="service" />
|
||||
<result column="entrance_id" jdbcType="BIGINT" property="entranceId" />
|
||||
<result column="device_id" jdbcType="INTEGER" property="deviceId" />
|
||||
<result column="direction" jdbcType="INTEGER" property="direction" />
|
||||
<result column="stream_dir" jdbcType="INTEGER" property="streamDir" />
|
||||
<result column="cap_ip" jdbcType="VARCHAR" property="capIp" />
|
||||
<result column="addr_list" jdbcType="VARCHAR" property="addrList" />
|
||||
<result column="user_region" jdbcType="VARCHAR" property="userRegion" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user