|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <resultMap type="ArdEquipRadar" id="ArdEquipRadarResult"> | 
|---|
|  |  |  | <result property="id"    column="id"    /> | 
|---|
|  |  |  | <result property="name"    column="name"    /> | 
|---|
|  |  |  | <result property="createBy"    column="create_by"    /> | 
|---|
|  |  |  | <result property="port"    column="port"    /> | 
|---|
|  |  |  | <result property="operate"    column="operate"    /> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <sql id="selectArdEquipRadarVo"> | 
|---|
|  |  |  | select c.id, | 
|---|
|  |  |  | c.name, | 
|---|
|  |  |  | c.create_by, | 
|---|
|  |  |  | c.port, | 
|---|
|  |  |  | c.operate, | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectArdEquipRadarList" parameterType="ArdEquipRadar" resultMap="ArdEquipRadarResult"> | 
|---|
|  |  |  | select c.id, | 
|---|
|  |  |  | c.name, | 
|---|
|  |  |  | c.create_by, | 
|---|
|  |  |  | c.port, | 
|---|
|  |  |  | c.operate, | 
|---|
|  |  |  | 
|---|
|  |  |  | insert into ard_equip_radar | 
|---|
|  |  |  | <trim prefix="(" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null">id,</if> | 
|---|
|  |  |  | <if test="name != null">name,</if> | 
|---|
|  |  |  | <if test="createBy != null">create_by,</if> | 
|---|
|  |  |  | <if test="port != null">port,</if> | 
|---|
|  |  |  | <if test="operate != null">operate,</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null">#{id},</if> | 
|---|
|  |  |  | <if test="name != null">#{name},</if> | 
|---|
|  |  |  | <if test="createBy != null">#{createBy},</if> | 
|---|
|  |  |  | <if test="port != null">#{port},</if> | 
|---|
|  |  |  | <if test="operate != null">#{operate},</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <update id="updateArdEquipRadar" parameterType="ArdEquipRadar"> | 
|---|
|  |  |  | update ard_equip_radar | 
|---|
|  |  |  | <trim prefix="SET" suffixOverrides=","> | 
|---|
|  |  |  | <if test="name != null">name = #{name},</if> | 
|---|
|  |  |  | <if test="createBy != null">create_by = #{createBy},</if> | 
|---|
|  |  |  | <if test="port != null">port = #{port},</if> | 
|---|
|  |  |  | <if test="operate != null">operate = #{operate},</if> | 
|---|