提交 3d85293d 编写于 作者: C Captain.B

去掉没用到的字段

上级 24be510b
...@@ -11,8 +11,6 @@ public class LoadTest implements Serializable { ...@@ -11,8 +11,6 @@ public class LoadTest implements Serializable {
private String description; private String description;
private String scenarioDefinition;
private Long createTime; private Long createTime;
private Long updateTime; private Long updateTime;
...@@ -55,14 +53,6 @@ public class LoadTest implements Serializable { ...@@ -55,14 +53,6 @@ public class LoadTest implements Serializable {
this.description = description == null ? null : description.trim(); this.description = description == null ? null : description.trim();
} }
public String getScenarioDefinition() {
return scenarioDefinition;
}
public void setScenarioDefinition(String scenarioDefinition) {
this.scenarioDefinition = scenarioDefinition == null ? null : scenarioDefinition.trim();
}
public Long getCreateTime() { public Long getCreateTime() {
return createTime; return createTime;
} }
......
...@@ -384,76 +384,6 @@ public class LoadTestExample { ...@@ -384,76 +384,6 @@ public class LoadTestExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andScenarioDefinitionIsNull() {
addCriterion("scenario_definition is null");
return (Criteria) this;
}
public Criteria andScenarioDefinitionIsNotNull() {
addCriterion("scenario_definition is not null");
return (Criteria) this;
}
public Criteria andScenarioDefinitionEqualTo(String value) {
addCriterion("scenario_definition =", value, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionNotEqualTo(String value) {
addCriterion("scenario_definition <>", value, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionGreaterThan(String value) {
addCriterion("scenario_definition >", value, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionGreaterThanOrEqualTo(String value) {
addCriterion("scenario_definition >=", value, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionLessThan(String value) {
addCriterion("scenario_definition <", value, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionLessThanOrEqualTo(String value) {
addCriterion("scenario_definition <=", value, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionLike(String value) {
addCriterion("scenario_definition like", value, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionNotLike(String value) {
addCriterion("scenario_definition not like", value, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionIn(List<String> values) {
addCriterion("scenario_definition in", values, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionNotIn(List<String> values) {
addCriterion("scenario_definition not in", values, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionBetween(String value1, String value2) {
addCriterion("scenario_definition between", value1, value2, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andScenarioDefinitionNotBetween(String value1, String value2) {
addCriterion("scenario_definition not between", value1, value2, "scenarioDefinition");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() { public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null"); addCriterion("create_time is null");
return (Criteria) this; return (Criteria) this;
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
<result column="project_id" jdbcType="VARCHAR" property="projectId" /> <result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="name" jdbcType="VARCHAR" property="name" /> <result column="name" jdbcType="VARCHAR" property="name" />
<result column="description" jdbcType="VARCHAR" property="description" /> <result column="description" jdbcType="VARCHAR" property="description" />
<result column="scenario_definition" jdbcType="VARCHAR" property="scenarioDefinition" />
<result column="create_time" jdbcType="BIGINT" property="createTime" /> <result column="create_time" jdbcType="BIGINT" property="createTime" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" /> <result column="update_time" jdbcType="BIGINT" property="updateTime" />
<result column="status" jdbcType="VARCHAR" property="status" /> <result column="status" jdbcType="VARCHAR" property="status" />
...@@ -76,8 +75,7 @@ ...@@ -76,8 +75,7 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, project_id, name, description, scenario_definition, create_time, update_time, id, project_id, name, description, create_time, update_time, status, test_resource_pool_id
status, test_resource_pool_id
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
load_configuration, advanced_configuration, schedule load_configuration, advanced_configuration, schedule
...@@ -132,15 +130,15 @@ ...@@ -132,15 +130,15 @@
</delete> </delete>
<insert id="insert" parameterType="io.metersphere.base.domain.LoadTestWithBLOBs"> <insert id="insert" parameterType="io.metersphere.base.domain.LoadTestWithBLOBs">
insert into load_test (id, project_id, name, insert into load_test (id, project_id, name,
description, scenario_definition, create_time, description, create_time, update_time,
update_time, status, test_resource_pool_id, status, test_resource_pool_id, load_configuration,
load_configuration, advanced_configuration, advanced_configuration, schedule
schedule) )
values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, values (#{id,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{description,jdbcType=VARCHAR}, #{scenarioDefinition,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{description,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{updateTime,jdbcType=BIGINT},
#{updateTime,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR}, #{testResourcePoolId,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{testResourcePoolId,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONGVARCHAR},
#{loadConfiguration,jdbcType=LONGVARCHAR}, #{advancedConfiguration,jdbcType=LONGVARCHAR}, #{advancedConfiguration,jdbcType=LONGVARCHAR}, #{schedule,jdbcType=LONGVARCHAR}
#{schedule,jdbcType=LONGVARCHAR}) )
</insert> </insert>
<insert id="insertSelective" parameterType="io.metersphere.base.domain.LoadTestWithBLOBs"> <insert id="insertSelective" parameterType="io.metersphere.base.domain.LoadTestWithBLOBs">
insert into load_test insert into load_test
...@@ -157,9 +155,6 @@ ...@@ -157,9 +155,6 @@
<if test="description != null"> <if test="description != null">
description, description,
</if> </if>
<if test="scenarioDefinition != null">
scenario_definition,
</if>
<if test="createTime != null"> <if test="createTime != null">
create_time, create_time,
</if> </if>
...@@ -195,9 +190,6 @@ ...@@ -195,9 +190,6 @@
<if test="description != null"> <if test="description != null">
#{description,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
</if> </if>
<if test="scenarioDefinition != null">
#{scenarioDefinition,jdbcType=VARCHAR},
</if>
<if test="createTime != null"> <if test="createTime != null">
#{createTime,jdbcType=BIGINT}, #{createTime,jdbcType=BIGINT},
</if> </if>
...@@ -242,9 +234,6 @@ ...@@ -242,9 +234,6 @@
<if test="record.description != null"> <if test="record.description != null">
description = #{record.description,jdbcType=VARCHAR}, description = #{record.description,jdbcType=VARCHAR},
</if> </if>
<if test="record.scenarioDefinition != null">
scenario_definition = #{record.scenarioDefinition,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null"> <if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=BIGINT}, create_time = #{record.createTime,jdbcType=BIGINT},
</if> </if>
...@@ -277,7 +266,6 @@ ...@@ -277,7 +266,6 @@
project_id = #{record.projectId,jdbcType=VARCHAR}, project_id = #{record.projectId,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR}, name = #{record.name,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR}, description = #{record.description,jdbcType=VARCHAR},
scenario_definition = #{record.scenarioDefinition,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT}, create_time = #{record.createTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT}, update_time = #{record.updateTime,jdbcType=BIGINT},
status = #{record.status,jdbcType=VARCHAR}, status = #{record.status,jdbcType=VARCHAR},
...@@ -295,7 +283,6 @@ ...@@ -295,7 +283,6 @@
project_id = #{record.projectId,jdbcType=VARCHAR}, project_id = #{record.projectId,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR}, name = #{record.name,jdbcType=VARCHAR},
description = #{record.description,jdbcType=VARCHAR}, description = #{record.description,jdbcType=VARCHAR},
scenario_definition = #{record.scenarioDefinition,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=BIGINT}, create_time = #{record.createTime,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=BIGINT}, update_time = #{record.updateTime,jdbcType=BIGINT},
status = #{record.status,jdbcType=VARCHAR}, status = #{record.status,jdbcType=VARCHAR},
...@@ -316,9 +303,6 @@ ...@@ -316,9 +303,6 @@
<if test="description != null"> <if test="description != null">
description = #{description,jdbcType=VARCHAR}, description = #{description,jdbcType=VARCHAR},
</if> </if>
<if test="scenarioDefinition != null">
scenario_definition = #{scenarioDefinition,jdbcType=VARCHAR},
</if>
<if test="createTime != null"> <if test="createTime != null">
create_time = #{createTime,jdbcType=BIGINT}, create_time = #{createTime,jdbcType=BIGINT},
</if> </if>
...@@ -348,7 +332,6 @@ ...@@ -348,7 +332,6 @@
set project_id = #{projectId,jdbcType=VARCHAR}, set project_id = #{projectId,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR}, description = #{description,jdbcType=VARCHAR},
scenario_definition = #{scenarioDefinition,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT}, create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=BIGINT},
status = #{status,jdbcType=VARCHAR}, status = #{status,jdbcType=VARCHAR},
...@@ -363,7 +346,6 @@ ...@@ -363,7 +346,6 @@
set project_id = #{projectId,jdbcType=VARCHAR}, set project_id = #{projectId,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR}, name = #{name,jdbcType=VARCHAR},
description = #{description,jdbcType=VARCHAR}, description = #{description,jdbcType=VARCHAR},
scenario_definition = #{scenarioDefinition,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=BIGINT}, create_time = #{createTime,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=BIGINT},
status = #{status,jdbcType=VARCHAR}, status = #{status,jdbcType=VARCHAR},
......
...@@ -25,7 +25,6 @@ CREATE TABLE IF NOT EXISTS `load_test` ( ...@@ -25,7 +25,6 @@ CREATE TABLE IF NOT EXISTS `load_test` (
`project_id` varchar(50) NOT NULL COMMENT 'Project ID this test belongs to', `project_id` varchar(50) NOT NULL COMMENT 'Project ID this test belongs to',
`name` varchar(64) NOT NULL COMMENT 'Test name', `name` varchar(64) NOT NULL COMMENT 'Test name',
`description` varchar(255) DEFAULT NULL COMMENT 'Test description', `description` varchar(255) DEFAULT NULL COMMENT 'Test description',
`scenario_definition` varchar(255) DEFAULT NULL COMMENT 'Scenario definition (JSON format)',
`load_configuration` longtext COMMENT 'Load configuration (JSON format)', `load_configuration` longtext COMMENT 'Load configuration (JSON format)',
`advanced_configuration` longtext COMMENT 'Load configuration (JSON format)', `advanced_configuration` longtext COMMENT 'Load configuration (JSON format)',
`schedule` longtext COMMENT 'Test schedule (cron list)', `schedule` longtext COMMENT 'Test schedule (cron list)',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册