fix(环境管理): 删除多余字段
This commit is contained in:
parent
7d70c8efd8
commit
bfd47a0d95
|
@ -1,8 +1,7 @@
|
||||||
package io.metersphere.base.domain;
|
package io.metersphere.base.domain;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class ApiTestEnvironment implements Serializable {
|
public class ApiTestEnvironment implements Serializable {
|
||||||
|
|
|
@ -18,7 +18,5 @@ public class ApiTestEnvironmentWithBLOBs extends ApiTestEnvironment implements S
|
||||||
|
|
||||||
private String hosts;
|
private String hosts;
|
||||||
|
|
||||||
private String customData;
|
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
}
|
}
|
|
@ -16,7 +16,6 @@
|
||||||
<result column="headers" jdbcType="LONGVARCHAR" property="headers" />
|
<result column="headers" jdbcType="LONGVARCHAR" property="headers" />
|
||||||
<result column="config" jdbcType="LONGVARCHAR" property="config" />
|
<result column="config" jdbcType="LONGVARCHAR" property="config" />
|
||||||
<result column="hosts" jdbcType="LONGVARCHAR" property="hosts" />
|
<result column="hosts" jdbcType="LONGVARCHAR" property="hosts" />
|
||||||
<result column="custom_data" jdbcType="LONGVARCHAR" property="customData" />
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Example_Where_Clause">
|
<sql id="Example_Where_Clause">
|
||||||
<where>
|
<where>
|
||||||
|
@ -80,7 +79,7 @@
|
||||||
id, `name`, project_id, protocol, socket, `domain`, port, create_user
|
id, `name`, project_id, protocol, socket, `domain`, port, create_user
|
||||||
</sql>
|
</sql>
|
||||||
<sql id="Blob_Column_List">
|
<sql id="Blob_Column_List">
|
||||||
`variables`, headers, config, `hosts`, custom_data
|
`variables`, headers, config, `hosts`
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByExampleWithBLOBs" parameterType="io.metersphere.base.domain.ApiTestEnvironmentExample" resultMap="ResultMapWithBLOBs">
|
<select id="selectByExampleWithBLOBs" parameterType="io.metersphere.base.domain.ApiTestEnvironmentExample" resultMap="ResultMapWithBLOBs">
|
||||||
select
|
select
|
||||||
|
@ -134,13 +133,13 @@
|
||||||
insert into api_test_environment (id, `name`, project_id,
|
insert into api_test_environment (id, `name`, project_id,
|
||||||
protocol, socket, `domain`,
|
protocol, socket, `domain`,
|
||||||
port, create_user, `variables`,
|
port, create_user, `variables`,
|
||||||
headers, config, `hosts`,
|
headers, config, `hosts`
|
||||||
custom_data)
|
)
|
||||||
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
|
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
|
||||||
#{protocol,jdbcType=VARCHAR}, #{socket,jdbcType=VARCHAR}, #{domain,jdbcType=VARCHAR},
|
#{protocol,jdbcType=VARCHAR}, #{socket,jdbcType=VARCHAR}, #{domain,jdbcType=VARCHAR},
|
||||||
#{port,jdbcType=INTEGER}, #{createUser,jdbcType=VARCHAR}, #{variables,jdbcType=LONGVARCHAR},
|
#{port,jdbcType=INTEGER}, #{createUser,jdbcType=VARCHAR}, #{variables,jdbcType=LONGVARCHAR},
|
||||||
#{headers,jdbcType=LONGVARCHAR}, #{config,jdbcType=LONGVARCHAR}, #{hosts,jdbcType=LONGVARCHAR},
|
#{headers,jdbcType=LONGVARCHAR}, #{config,jdbcType=LONGVARCHAR}, #{hosts,jdbcType=LONGVARCHAR}
|
||||||
#{customData,jdbcType=LONGVARCHAR})
|
)
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="io.metersphere.base.domain.ApiTestEnvironmentWithBLOBs">
|
<insert id="insertSelective" parameterType="io.metersphere.base.domain.ApiTestEnvironmentWithBLOBs">
|
||||||
insert into api_test_environment
|
insert into api_test_environment
|
||||||
|
@ -181,9 +180,6 @@
|
||||||
<if test="hosts != null">
|
<if test="hosts != null">
|
||||||
`hosts`,
|
`hosts`,
|
||||||
</if>
|
</if>
|
||||||
<if test="customData != null">
|
|
||||||
custom_data,
|
|
||||||
</if>
|
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
|
@ -222,9 +218,6 @@
|
||||||
<if test="hosts != null">
|
<if test="hosts != null">
|
||||||
#{hosts,jdbcType=LONGVARCHAR},
|
#{hosts,jdbcType=LONGVARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="customData != null">
|
|
||||||
#{customData,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<select id="countByExample" parameterType="io.metersphere.base.domain.ApiTestEnvironmentExample" resultType="java.lang.Long">
|
<select id="countByExample" parameterType="io.metersphere.base.domain.ApiTestEnvironmentExample" resultType="java.lang.Long">
|
||||||
|
@ -272,9 +265,6 @@
|
||||||
<if test="record.hosts != null">
|
<if test="record.hosts != null">
|
||||||
`hosts` = #{record.hosts,jdbcType=LONGVARCHAR},
|
`hosts` = #{record.hosts,jdbcType=LONGVARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="record.customData != null">
|
|
||||||
custom_data = #{record.customData,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
</set>
|
</set>
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
|
@ -293,8 +283,7 @@
|
||||||
`variables` = #{record.variables,jdbcType=LONGVARCHAR},
|
`variables` = #{record.variables,jdbcType=LONGVARCHAR},
|
||||||
headers = #{record.headers,jdbcType=LONGVARCHAR},
|
headers = #{record.headers,jdbcType=LONGVARCHAR},
|
||||||
config = #{record.config,jdbcType=LONGVARCHAR},
|
config = #{record.config,jdbcType=LONGVARCHAR},
|
||||||
`hosts` = #{record.hosts,jdbcType=LONGVARCHAR},
|
`hosts` = #{record.hosts,jdbcType=LONGVARCHAR}
|
||||||
custom_data = #{record.customData,jdbcType=LONGVARCHAR}
|
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
</if>
|
</if>
|
||||||
|
@ -349,9 +338,6 @@
|
||||||
<if test="hosts != null">
|
<if test="hosts != null">
|
||||||
`hosts` = #{hosts,jdbcType=LONGVARCHAR},
|
`hosts` = #{hosts,jdbcType=LONGVARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="customData != null">
|
|
||||||
custom_data = #{customData,jdbcType=LONGVARCHAR},
|
|
||||||
</if>
|
|
||||||
</set>
|
</set>
|
||||||
where id = #{id,jdbcType=VARCHAR}
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
</update>
|
</update>
|
||||||
|
@ -367,8 +353,7 @@
|
||||||
`variables` = #{variables,jdbcType=LONGVARCHAR},
|
`variables` = #{variables,jdbcType=LONGVARCHAR},
|
||||||
headers = #{headers,jdbcType=LONGVARCHAR},
|
headers = #{headers,jdbcType=LONGVARCHAR},
|
||||||
config = #{config,jdbcType=LONGVARCHAR},
|
config = #{config,jdbcType=LONGVARCHAR},
|
||||||
`hosts` = #{hosts,jdbcType=LONGVARCHAR},
|
`hosts` = #{hosts,jdbcType=LONGVARCHAR}
|
||||||
custom_data = #{customData,jdbcType=LONGVARCHAR}
|
|
||||||
where id = #{id,jdbcType=VARCHAR}
|
where id = #{id,jdbcType=VARCHAR}
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByPrimaryKey" parameterType="io.metersphere.base.domain.ApiTestEnvironment">
|
<update id="updateByPrimaryKey" parameterType="io.metersphere.base.domain.ApiTestEnvironment">
|
||||||
|
|
Loading…
Reference in New Issue