|
|
@@ -0,0 +1,196 @@
|
|
|
+<?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.fs.wxcid.mapper.CidIpadServerMapper">
|
|
|
+
|
|
|
+
|
|
|
+ <resultMap id="CidIpadServerResult" type="CidIpadServer">
|
|
|
+
|
|
|
+ <result column="id" property="id"/>
|
|
|
+
|
|
|
+ <result column="title" property="title"/>
|
|
|
+
|
|
|
+ <result column="address_id" property="addressId"/>
|
|
|
+
|
|
|
+ <result column="ip" property="ip"/>
|
|
|
+
|
|
|
+ <result column="port" property="port"/>
|
|
|
+
|
|
|
+ <result column="url" property="url"/>
|
|
|
+
|
|
|
+ <result column="total_count" property="totalCount"/>
|
|
|
+
|
|
|
+ <result column="count" property="count"/>
|
|
|
+
|
|
|
+ <result column="create_time" property="createTime"/>
|
|
|
+
|
|
|
+ <result column="update_time" property="updateTime"/>
|
|
|
+
|
|
|
+ <result column="group_no" property="groupNo"/>
|
|
|
+
|
|
|
+ <result column="create_by" property="createBy"/>
|
|
|
+
|
|
|
+ <result column="update_by" property="updateBy"/>
|
|
|
+
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectCidIpadServerVo">select id,
|
|
|
+ title,
|
|
|
+ address_id,
|
|
|
+ ip,
|
|
|
+ port,
|
|
|
+ url,
|
|
|
+ total_count,
|
|
|
+ count,
|
|
|
+ create_time,
|
|
|
+ update_time,
|
|
|
+ group_no,
|
|
|
+ create_by,
|
|
|
+ update_by
|
|
|
+ from cid_ipad_server </sql>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectCidIpadServerList" resultMap="CidIpadServerResult" parameterType="CidIpadServer">
|
|
|
+
|
|
|
+ <include refid="selectCidIpadServerVo"/>
|
|
|
+
|
|
|
+
|
|
|
+ <where>
|
|
|
+
|
|
|
+ <if test="title != null and title != ''">and title = #{title}</if>
|
|
|
+
|
|
|
+ <if test="addressId != null and addressId != ''">and address_id = #{addressId}</if>
|
|
|
+
|
|
|
+ <if test="ip != null and ip != ''">and ip = #{ip}</if>
|
|
|
+
|
|
|
+ <if test="port != null and port != ''">and port = #{port}</if>
|
|
|
+
|
|
|
+ <if test="url != null and url != ''">and url = #{url}</if>
|
|
|
+
|
|
|
+ <if test="totalCount != null ">and total_count = #{totalCount}</if>
|
|
|
+
|
|
|
+ <if test="count != null ">and count = #{count}</if>
|
|
|
+
|
|
|
+ <if test="groupNo != null ">and group_no = #{groupNo}</if>
|
|
|
+
|
|
|
+ </where>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectCidIpadServerById" resultMap="CidIpadServerResult" parameterType="Long">
|
|
|
+
|
|
|
+ <include refid="selectCidIpadServerVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <insert id="insertCidIpadServer" parameterType="CidIpadServer" keyProperty="id" useGeneratedKeys="true">
|
|
|
+ insert into cid_ipad_server
|
|
|
+
|
|
|
+ <trim suffixOverrides="," suffix=")" prefix="(">
|
|
|
+
|
|
|
+ <if test="title != null">title,</if>
|
|
|
+
|
|
|
+ <if test="addressId != null">address_id,</if>
|
|
|
+
|
|
|
+ <if test="ip != null">ip,</if>
|
|
|
+
|
|
|
+ <if test="port != null">port,</if>
|
|
|
+
|
|
|
+ <if test="url != null">url,</if>
|
|
|
+
|
|
|
+ <if test="totalCount != null">total_count,</if>
|
|
|
+
|
|
|
+ <if test="count != null">count,</if>
|
|
|
+
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+
|
|
|
+ <if test="groupNo != null">group_no,</if>
|
|
|
+
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+
|
|
|
+ </trim>
|
|
|
+
|
|
|
+
|
|
|
+ <trim suffixOverrides="," suffix=")" prefix="values (">
|
|
|
+
|
|
|
+ <if test="title != null">#{title},</if>
|
|
|
+
|
|
|
+ <if test="addressId != null">#{addressId},</if>
|
|
|
+
|
|
|
+ <if test="ip != null">#{ip},</if>
|
|
|
+
|
|
|
+ <if test="port != null">#{port},</if>
|
|
|
+
|
|
|
+ <if test="url != null">#{url},</if>
|
|
|
+
|
|
|
+ <if test="totalCount != null">#{totalCount},</if>
|
|
|
+
|
|
|
+ <if test="count != null">#{count},</if>
|
|
|
+
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+
|
|
|
+ <if test="groupNo != null">#{groupNo},</if>
|
|
|
+
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+
|
|
|
+ </trim>
|
|
|
+
|
|
|
+ </insert>
|
|
|
+
|
|
|
+
|
|
|
+ <update id="updateCidIpadServer" parameterType="CidIpadServer">
|
|
|
+ update cid_ipad_server
|
|
|
+
|
|
|
+ <trim suffixOverrides="," prefix="SET">
|
|
|
+
|
|
|
+ <if test="title != null">title = #{title},</if>
|
|
|
+
|
|
|
+ <if test="addressId != null">address_id = #{addressId},</if>
|
|
|
+
|
|
|
+ <if test="ip != null">ip = #{ip},</if>
|
|
|
+
|
|
|
+ <if test="port != null">port = #{port},</if>
|
|
|
+
|
|
|
+ <if test="url != null">url = #{url},</if>
|
|
|
+
|
|
|
+ <if test="totalCount != null">total_count = #{totalCount},</if>
|
|
|
+
|
|
|
+ <if test="count != null">count = #{count},</if>
|
|
|
+
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+
|
|
|
+ <if test="groupNo != null">group_no = #{groupNo},</if>
|
|
|
+
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteCidIpadServerById" parameterType="Long">delete
|
|
|
+ from cid_ipad_server
|
|
|
+ where id = #{id} </delete>
|
|
|
+
|
|
|
+
|
|
|
+ <delete id="deleteCidIpadServerByIds" parameterType="String">
|
|
|
+ delete from cid_ipad_server where id in
|
|
|
+ <foreach close=")" separator="," open="(" collection="array" item="id">#{id}</foreach>
|
|
|
+
|
|
|
+ </delete>
|
|
|
+
|
|
|
+</mapper>
|