ard-work/src/main/resources/mapper/ArdServerInfoMapper.xml
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ard.work.mapper.ArdServerInfoMapper">
    
    <resultMap type="ArdServerInfo" id="ArdServerManagementResult">
    <resultMap type="ArdServerInfo" id="ArdServerInfoResult">
        <result property="id"    column="id"    />
        <result property="serverName"    column="server_name"    />
        <result property="host"    column="host"    />
@@ -43,7 +43,7 @@
        <include refid="selectArdServerInfoVo"/>
        <where>
            <if test="id != null and id != ''"> and c.id = #{id}</if>
            <if test="serverName != null and serverName != ''"> and server_name like c.concat('%', #{serverName}, '%')</if>
            <if test="serverName != null and serverName != ''"> and c.server_name like c.concat('%', #{serverName}, '%')</if>
            <if test="accessKeyId != null and accessKeyId != ''"> and c.access_key_id = #{accessKeyId}</if>
            <if test="accessKeySecret != null and accessKeySecret != ''"> and c.access_key_secret = #{accessKeySecret}</if>
            <if test="serverStatus != null and serverStatus != ''"> and c.server_status = #{serverStatus}</if>
@@ -113,6 +113,14 @@
        where id = #{id}
    </update>
    <update id="updateServerStatus">
        update ard_server_info
        <trim prefix="SET" suffixOverrides=",">
            <if test="status != null">server_status = #{status},</if>
        </trim>
        where id = #{id}
    </update>
    <delete id="deleteArdServerInfoById" parameterType="String">
        delete from ard_server_info where id = #{id}
    </delete>