You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
189 lines
7.5 KiB
XML
189 lines
7.5 KiB
XML
<?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.shxy.xymanager_dao.dao.TerminalParamsDao">
|
|
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalParams">
|
|
<id column="term_id" jdbcType="INTEGER" property="termId" />
|
|
<result column="main_time" jdbcType="INTEGER" property="mainTime" />
|
|
<result column="sample_count" jdbcType="INTEGER" property="sampleCount" />
|
|
<result column="sample_frequency" jdbcType="INTEGER" property="sampleFrequency" />
|
|
<result column="heartbeat_time" jdbcType="INTEGER" property="heartbeatTime" />
|
|
<result column="cma_ip_address" jdbcType="INTEGER" property="cmaIpAddress" />
|
|
<result column="cma_port" jdbcType="SMALLINT" property="cmaPort" />
|
|
<result column="cma_domain_name" jdbcType="VARCHAR" property="cmaDomainName" />
|
|
<result column="ref_tevival_time" jdbcType="TIMESTAMP" property="refTevivalTime" />
|
|
<result column="revival_cycle" jdbcType="SMALLINT" property="revivalCycle" />
|
|
<result column="revival_duration" jdbcType="SMALLINT" property="revivalDuration" />
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
term_id, main_time, sample_count, sample_frequency, heartbeat_time, cma_ip_address,
|
|
cma_port, cma_domain_name, ref_tevival_time, revival_cycle, revival_duration, create_time,
|
|
update_time
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from terminal_params
|
|
where term_id = #{termId,jdbcType=INTEGER}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
delete from terminal_params
|
|
where term_id = #{termId,jdbcType=INTEGER}
|
|
</delete>
|
|
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalParams">
|
|
insert into terminal_params (term_id, main_time, sample_count,
|
|
sample_frequency, heartbeat_time, cma_ip_address,
|
|
cma_port, cma_domain_name, ref_tevival_time,
|
|
revival_cycle, revival_duration, create_time,
|
|
update_time)
|
|
values (#{termId,jdbcType=INTEGER}, #{mainTime,jdbcType=INTEGER}, #{sampleCount,jdbcType=INTEGER},
|
|
#{sampleFrequency,jdbcType=INTEGER}, #{heartbeatTime,jdbcType=INTEGER}, #{cmaIpAddress,jdbcType=INTEGER},
|
|
#{cmaPort,jdbcType=SMALLINT}, #{cmaDomainName,jdbcType=VARCHAR}, #{refTevivalTime,jdbcType=TIMESTAMP},
|
|
#{revivalCycle,jdbcType=SMALLINT}, #{revivalDuration,jdbcType=SMALLINT}, #{createTime,jdbcType=TIMESTAMP},
|
|
#{updateTime,jdbcType=TIMESTAMP})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalParams">
|
|
insert into terminal_params
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="termId != null">
|
|
term_id,
|
|
</if>
|
|
<if test="mainTime != null">
|
|
main_time,
|
|
</if>
|
|
<if test="sampleCount != null">
|
|
sample_count,
|
|
</if>
|
|
<if test="sampleFrequency != null">
|
|
sample_frequency,
|
|
</if>
|
|
<if test="heartbeatTime != null">
|
|
heartbeat_time,
|
|
</if>
|
|
<if test="cmaIpAddress != null">
|
|
cma_ip_address,
|
|
</if>
|
|
<if test="cmaPort != null">
|
|
cma_port,
|
|
</if>
|
|
<if test="cmaDomainName != null">
|
|
cma_domain_name,
|
|
</if>
|
|
<if test="refTevivalTime != null">
|
|
ref_tevival_time,
|
|
</if>
|
|
<if test="revivalCycle != null">
|
|
revival_cycle,
|
|
</if>
|
|
<if test="revivalDuration != null">
|
|
revival_duration,
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time,
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="termId != null">
|
|
#{termId,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="mainTime != null">
|
|
#{mainTime,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="sampleCount != null">
|
|
#{sampleCount,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="sampleFrequency != null">
|
|
#{sampleFrequency,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="heartbeatTime != null">
|
|
#{heartbeatTime,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="cmaIpAddress != null">
|
|
#{cmaIpAddress,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="cmaPort != null">
|
|
#{cmaPort,jdbcType=SMALLINT},
|
|
</if>
|
|
<if test="cmaDomainName != null">
|
|
#{cmaDomainName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="refTevivalTime != null">
|
|
#{refTevivalTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="revivalCycle != null">
|
|
#{revivalCycle,jdbcType=SMALLINT},
|
|
</if>
|
|
<if test="revivalDuration != null">
|
|
#{revivalDuration,jdbcType=SMALLINT},
|
|
</if>
|
|
<if test="createTime != null">
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.TerminalParams">
|
|
update terminal_params
|
|
<set>
|
|
<if test="mainTime != null">
|
|
main_time = #{mainTime,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="sampleCount != null">
|
|
sample_count = #{sampleCount,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="sampleFrequency != null">
|
|
sample_frequency = #{sampleFrequency,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="heartbeatTime != null">
|
|
heartbeat_time = #{heartbeatTime,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="cmaIpAddress != null">
|
|
cma_ip_address = #{cmaIpAddress,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="cmaPort != null">
|
|
cma_port = #{cmaPort,jdbcType=SMALLINT},
|
|
</if>
|
|
<if test="cmaDomainName != null">
|
|
cma_domain_name = #{cmaDomainName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="refTevivalTime != null">
|
|
ref_tevival_time = #{refTevivalTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="revivalCycle != null">
|
|
revival_cycle = #{revivalCycle,jdbcType=SMALLINT},
|
|
</if>
|
|
<if test="revivalDuration != null">
|
|
revival_duration = #{revivalDuration,jdbcType=SMALLINT},
|
|
</if>
|
|
<if test="createTime != null">
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
<if test="updateTime != null">
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</set>
|
|
where term_id = #{termId,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.TerminalParams">
|
|
update terminal_params
|
|
set main_time = #{mainTime,jdbcType=INTEGER},
|
|
sample_count = #{sampleCount,jdbcType=INTEGER},
|
|
sample_frequency = #{sampleFrequency,jdbcType=INTEGER},
|
|
heartbeat_time = #{heartbeatTime,jdbcType=INTEGER},
|
|
cma_ip_address = #{cmaIpAddress,jdbcType=INTEGER},
|
|
cma_port = #{cmaPort,jdbcType=SMALLINT},
|
|
cma_domain_name = #{cmaDomainName,jdbcType=VARCHAR},
|
|
ref_tevival_time = #{refTevivalTime,jdbcType=TIMESTAMP},
|
|
revival_cycle = #{revivalCycle,jdbcType=SMALLINT},
|
|
revival_duration = #{revivalDuration,jdbcType=SMALLINT},
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
|
where term_id = #{termId,jdbcType=INTEGER}
|
|
</update>
|
|
</mapper> |