|
@@ -1,11 +1,12 @@
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?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">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
-<mapper namespace="com.jay.monitor.data.server.daos.JayMonitorUrlMapper">
|
|
|
|
|
|
+<mapper namespace="com.jay.monitor.data.server.daos.JayMonitorUrlDao">
|
|
<resultMap id="BaseResultMap" type="com.jay.monitor.data.server.models.entity.JayMonitorUrl">
|
|
<resultMap id="BaseResultMap" type="com.jay.monitor.data.server.models.entity.JayMonitorUrl">
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="application_name" jdbcType="VARCHAR" property="applicationName" />
|
|
<result column="application_name" jdbcType="VARCHAR" property="applicationName" />
|
|
<result column="application_ip" jdbcType="VARCHAR" property="applicationIp" />
|
|
<result column="application_ip" jdbcType="VARCHAR" property="applicationIp" />
|
|
<result column="monitor_type" jdbcType="VARCHAR" property="monitorType" />
|
|
<result column="monitor_type" jdbcType="VARCHAR" property="monitorType" />
|
|
|
|
+ <result column="url" jdbcType="VARCHAR" property="url" />
|
|
<result column="data_group_name" jdbcType="VARCHAR" property="dataGroupName" />
|
|
<result column="data_group_name" jdbcType="VARCHAR" property="dataGroupName" />
|
|
<result column="data_group_key" jdbcType="VARCHAR" property="dataGroupKey" />
|
|
<result column="data_group_key" jdbcType="VARCHAR" property="dataGroupKey" />
|
|
<result column="data_id" jdbcType="VARCHAR" property="dataId" />
|
|
<result column="data_id" jdbcType="VARCHAR" property="dataId" />
|
|
@@ -73,7 +74,7 @@
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
- id, application_name, application_ip, monitor_type, data_group_name, data_group_key,
|
|
|
|
|
|
+ id, application_name, application_ip, monitor_type, url, data_group_name, data_group_key,
|
|
data_id, `status`, request_time, created_time, created_day
|
|
data_id, `status`, request_time, created_time, created_day
|
|
</sql>
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.jay.monitor.data.server.models.entity.JayMonitorUrlExample" resultMap="BaseResultMap">
|
|
<select id="selectByExample" parameterType="com.jay.monitor.data.server.models.entity.JayMonitorUrlExample" resultMap="BaseResultMap">
|
|
@@ -108,13 +109,13 @@
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jay.monitor.data.server.models.entity.JayMonitorUrl" useGeneratedKeys="true">
|
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jay.monitor.data.server.models.entity.JayMonitorUrl" useGeneratedKeys="true">
|
|
insert into jay_monitor_url (application_name, application_ip, monitor_type,
|
|
insert into jay_monitor_url (application_name, application_ip, monitor_type,
|
|
- data_group_name, data_group_key, data_id,
|
|
|
|
- `status`, request_time, created_time,
|
|
|
|
- created_day)
|
|
|
|
|
|
+ url, data_group_name, data_group_key,
|
|
|
|
+ data_id, `status`, request_time,
|
|
|
|
+ created_time, created_day)
|
|
values (#{applicationName,jdbcType=VARCHAR}, #{applicationIp,jdbcType=VARCHAR}, #{monitorType,jdbcType=VARCHAR},
|
|
values (#{applicationName,jdbcType=VARCHAR}, #{applicationIp,jdbcType=VARCHAR}, #{monitorType,jdbcType=VARCHAR},
|
|
- #{dataGroupName,jdbcType=VARCHAR}, #{dataGroupKey,jdbcType=VARCHAR}, #{dataId,jdbcType=VARCHAR},
|
|
|
|
- #{status,jdbcType=INTEGER}, #{requestTime,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP},
|
|
|
|
- #{createdDay,jdbcType=DATE})
|
|
|
|
|
|
+ #{url,jdbcType=VARCHAR}, #{dataGroupName,jdbcType=VARCHAR}, #{dataGroupKey,jdbcType=VARCHAR},
|
|
|
|
+ #{dataId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{requestTime,jdbcType=INTEGER},
|
|
|
|
+ #{createdTime,jdbcType=TIMESTAMP}, #{createdDay,jdbcType=DATE})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jay.monitor.data.server.models.entity.JayMonitorUrl" useGeneratedKeys="true">
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jay.monitor.data.server.models.entity.JayMonitorUrl" useGeneratedKeys="true">
|
|
insert into jay_monitor_url
|
|
insert into jay_monitor_url
|
|
@@ -128,6 +129,9 @@
|
|
<if test="monitorType != null">
|
|
<if test="monitorType != null">
|
|
monitor_type,
|
|
monitor_type,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="url != null">
|
|
|
|
+ url,
|
|
|
|
+ </if>
|
|
<if test="dataGroupName != null">
|
|
<if test="dataGroupName != null">
|
|
data_group_name,
|
|
data_group_name,
|
|
</if>
|
|
</if>
|
|
@@ -160,6 +164,9 @@
|
|
<if test="monitorType != null">
|
|
<if test="monitorType != null">
|
|
#{monitorType,jdbcType=VARCHAR},
|
|
#{monitorType,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="url != null">
|
|
|
|
+ #{url,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="dataGroupName != null">
|
|
<if test="dataGroupName != null">
|
|
#{dataGroupName,jdbcType=VARCHAR},
|
|
#{dataGroupName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -204,6 +211,9 @@
|
|
<if test="record.monitorType != null">
|
|
<if test="record.monitorType != null">
|
|
monitor_type = #{record.monitorType,jdbcType=VARCHAR},
|
|
monitor_type = #{record.monitorType,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="record.url != null">
|
|
|
|
+ url = #{record.url,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="record.dataGroupName != null">
|
|
<if test="record.dataGroupName != null">
|
|
data_group_name = #{record.dataGroupName,jdbcType=VARCHAR},
|
|
data_group_name = #{record.dataGroupName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -236,6 +246,7 @@
|
|
application_name = #{record.applicationName,jdbcType=VARCHAR},
|
|
application_name = #{record.applicationName,jdbcType=VARCHAR},
|
|
application_ip = #{record.applicationIp,jdbcType=VARCHAR},
|
|
application_ip = #{record.applicationIp,jdbcType=VARCHAR},
|
|
monitor_type = #{record.monitorType,jdbcType=VARCHAR},
|
|
monitor_type = #{record.monitorType,jdbcType=VARCHAR},
|
|
|
|
+ url = #{record.url,jdbcType=VARCHAR},
|
|
data_group_name = #{record.dataGroupName,jdbcType=VARCHAR},
|
|
data_group_name = #{record.dataGroupName,jdbcType=VARCHAR},
|
|
data_group_key = #{record.dataGroupKey,jdbcType=VARCHAR},
|
|
data_group_key = #{record.dataGroupKey,jdbcType=VARCHAR},
|
|
data_id = #{record.dataId,jdbcType=VARCHAR},
|
|
data_id = #{record.dataId,jdbcType=VARCHAR},
|
|
@@ -259,6 +270,9 @@
|
|
<if test="monitorType != null">
|
|
<if test="monitorType != null">
|
|
monitor_type = #{monitorType,jdbcType=VARCHAR},
|
|
monitor_type = #{monitorType,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="url != null">
|
|
|
|
+ url = #{url,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="dataGroupName != null">
|
|
<if test="dataGroupName != null">
|
|
data_group_name = #{dataGroupName,jdbcType=VARCHAR},
|
|
data_group_name = #{dataGroupName,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -288,6 +302,7 @@
|
|
set application_name = #{applicationName,jdbcType=VARCHAR},
|
|
set application_name = #{applicationName,jdbcType=VARCHAR},
|
|
application_ip = #{applicationIp,jdbcType=VARCHAR},
|
|
application_ip = #{applicationIp,jdbcType=VARCHAR},
|
|
monitor_type = #{monitorType,jdbcType=VARCHAR},
|
|
monitor_type = #{monitorType,jdbcType=VARCHAR},
|
|
|
|
+ url = #{url,jdbcType=VARCHAR},
|
|
data_group_name = #{dataGroupName,jdbcType=VARCHAR},
|
|
data_group_name = #{dataGroupName,jdbcType=VARCHAR},
|
|
data_group_key = #{dataGroupKey,jdbcType=VARCHAR},
|
|
data_group_key = #{dataGroupKey,jdbcType=VARCHAR},
|
|
data_id = #{dataId,jdbcType=VARCHAR},
|
|
data_id = #{dataId,jdbcType=VARCHAR},
|