| | |
| | | <?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.wgcloud.mapper.HostInfoMapper"> |
| | | <resultMap id="resultMap" type="com.wgcloud.entity.HostInfo"> |
| | | <mapper namespace="se.wgcloud.mapper.HostInfoMapper"> |
| | | <resultMap id="resultMap" type="se.wgcloud.entity.HostInfo"> |
| | | <id column="ID" property="id" jdbcType="CHAR" /> |
| | | <result column="IP" property="ip" jdbcType="CHAR" /> |
| | | <result column="PORT" property="port" jdbcType="CHAR" /> |
| | |
| | | |
| | | |
| | | |
| | | <insert id="save" parameterType="com.wgcloud.entity.HostInfo"> |
| | | <insert id="save" parameterType="se.wgcloud.entity.HostInfo"> |
| | | INSERT INTO HOST_INFO |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" >ID,</if> |
| | |
| | | </insert> |
| | | |
| | | |
| | | <update id="updateById" parameterType="com.wgcloud.entity.HostInfo"> |
| | | <update id="updateById" parameterType="se.wgcloud.entity.HostInfo"> |
| | | UPDATE HOST_INFO |
| | | <set> |
| | | <if test="ip != null"> |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByParams" parameterType="com.wgcloud.entity.HostInfo" resultMap="resultMap"> |
| | | <select id="selectByParams" parameterType="se.wgcloud.entity.HostInfo" resultMap="resultMap"> |
| | | SELECT |
| | | <include refid="tableColumnList" /> |
| | | FROM HOST_INFO |