fix: 删除冗余字段

This commit is contained in:
shiziyuan9527 2021-10-25 11:04:45 +08:00 committed by shiziyuan9527
parent 22904097f6
commit e0a54709ed
3 changed files with 7 additions and 96 deletions

View File

@ -59,7 +59,5 @@ public class TestCase implements Serializable {
private Long order; private Long order;
private String demandPlatform;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

View File

@ -1933,76 +1933,6 @@ public class TestCaseExample {
addCriterion("`order` not between", value1, value2, "order"); addCriterion("`order` not between", value1, value2, "order");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andDemandPlatformIsNull() {
addCriterion("demand_platform is null");
return (Criteria) this;
}
public Criteria andDemandPlatformIsNotNull() {
addCriterion("demand_platform is not null");
return (Criteria) this;
}
public Criteria andDemandPlatformEqualTo(String value) {
addCriterion("demand_platform =", value, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformNotEqualTo(String value) {
addCriterion("demand_platform <>", value, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformGreaterThan(String value) {
addCriterion("demand_platform >", value, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformGreaterThanOrEqualTo(String value) {
addCriterion("demand_platform >=", value, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformLessThan(String value) {
addCriterion("demand_platform <", value, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformLessThanOrEqualTo(String value) {
addCriterion("demand_platform <=", value, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformLike(String value) {
addCriterion("demand_platform like", value, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformNotLike(String value) {
addCriterion("demand_platform not like", value, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformIn(List<String> values) {
addCriterion("demand_platform in", values, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformNotIn(List<String> values) {
addCriterion("demand_platform not in", values, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformBetween(String value1, String value2) {
addCriterion("demand_platform between", value1, value2, "demandPlatform");
return (Criteria) this;
}
public Criteria andDemandPlatformNotBetween(String value1, String value2) {
addCriterion("demand_platform not between", value1, value2, "demandPlatform");
return (Criteria) this;
}
} }
public static class Criteria extends GeneratedCriteria { public static class Criteria extends GeneratedCriteria {

View File

@ -29,7 +29,6 @@
<result column="delete_time" jdbcType="BIGINT" property="deleteTime" /> <result column="delete_time" jdbcType="BIGINT" property="deleteTime" />
<result column="delete_user_id" jdbcType="VARCHAR" property="deleteUserId" /> <result column="delete_user_id" jdbcType="VARCHAR" property="deleteUserId" />
<result column="order" jdbcType="BIGINT" property="order" /> <result column="order" jdbcType="BIGINT" property="order" />
<result column="demand_platform" jdbcType="VARCHAR" property="demandPlatform" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.base.domain.TestCaseWithBLOBs"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.base.domain.TestCaseWithBLOBs">
<result column="prerequisite" jdbcType="LONGVARCHAR" property="prerequisite" /> <result column="prerequisite" jdbcType="LONGVARCHAR" property="prerequisite" />
@ -101,7 +100,7 @@
id, node_id, node_path, project_id, `name`, `type`, maintainer, priority, `method`, id, node_id, node_path, project_id, `name`, `type`, maintainer, priority, `method`,
create_time, update_time, test_id, sort, num, other_test_name, review_status, tags, create_time, update_time, test_id, sort, num, other_test_name, review_status, tags,
demand_id, demand_name, `status`, custom_num, step_model, create_user, original_status, demand_id, demand_name, `status`, custom_num, step_model, create_user, original_status,
delete_time, delete_user_id, `order`, demand_platform delete_time, delete_user_id, `order`
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
prerequisite, remark, steps, step_description, expected_result, custom_fields prerequisite, remark, steps, step_description, expected_result, custom_fields
@ -164,8 +163,8 @@
demand_name, `status`, custom_num, demand_name, `status`, custom_num,
step_model, create_user, original_status, step_model, create_user, original_status,
delete_time, delete_user_id, `order`, delete_time, delete_user_id, `order`,
demand_platform, prerequisite, remark, prerequisite, remark, steps,
steps, step_description, expected_result, step_description, expected_result,
custom_fields) custom_fields)
values (#{id,jdbcType=VARCHAR}, #{nodeId,jdbcType=VARCHAR}, #{nodePath,jdbcType=VARCHAR}, values (#{id,jdbcType=VARCHAR}, #{nodeId,jdbcType=VARCHAR}, #{nodePath,jdbcType=VARCHAR},
#{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
@ -176,8 +175,8 @@
#{demandName,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{customNum,jdbcType=VARCHAR}, #{demandName,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{customNum,jdbcType=VARCHAR},
#{stepModel,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{originalStatus,jdbcType=VARCHAR}, #{stepModel,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{originalStatus,jdbcType=VARCHAR},
#{deleteTime,jdbcType=BIGINT}, #{deleteUserId,jdbcType=VARCHAR}, #{order,jdbcType=BIGINT}, #{deleteTime,jdbcType=BIGINT}, #{deleteUserId,jdbcType=VARCHAR}, #{order,jdbcType=BIGINT},
#{demandPlatform,jdbcType=VARCHAR}, #{prerequisite,jdbcType=LONGVARCHAR}, #{remark,jdbcType=LONGVARCHAR}, #{prerequisite,jdbcType=LONGVARCHAR}, #{remark,jdbcType=LONGVARCHAR}, #{steps,jdbcType=LONGVARCHAR},
#{steps,jdbcType=LONGVARCHAR}, #{stepDescription,jdbcType=LONGVARCHAR}, #{expectedResult,jdbcType=LONGVARCHAR}, #{stepDescription,jdbcType=LONGVARCHAR}, #{expectedResult,jdbcType=LONGVARCHAR},
#{customFields,jdbcType=LONGVARCHAR}) #{customFields,jdbcType=LONGVARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="io.metersphere.base.domain.TestCaseWithBLOBs"> <insert id="insertSelective" parameterType="io.metersphere.base.domain.TestCaseWithBLOBs">
@ -264,9 +263,6 @@
<if test="order != null"> <if test="order != null">
`order`, `order`,
</if> </if>
<if test="demandPlatform != null">
demand_platform,
</if>
<if test="prerequisite != null"> <if test="prerequisite != null">
prerequisite, prerequisite,
</if> </if>
@ -368,9 +364,6 @@
<if test="order != null"> <if test="order != null">
#{order,jdbcType=BIGINT}, #{order,jdbcType=BIGINT},
</if> </if>
<if test="demandPlatform != null">
#{demandPlatform,jdbcType=VARCHAR},
</if>
<if test="prerequisite != null"> <if test="prerequisite != null">
#{prerequisite,jdbcType=LONGVARCHAR}, #{prerequisite,jdbcType=LONGVARCHAR},
</if> </if>
@ -481,9 +474,6 @@
<if test="record.order != null"> <if test="record.order != null">
`order` = #{record.order,jdbcType=BIGINT}, `order` = #{record.order,jdbcType=BIGINT},
</if> </if>
<if test="record.demandPlatform != null">
demand_platform = #{record.demandPlatform,jdbcType=VARCHAR},
</if>
<if test="record.prerequisite != null"> <if test="record.prerequisite != null">
prerequisite = #{record.prerequisite,jdbcType=LONGVARCHAR}, prerequisite = #{record.prerequisite,jdbcType=LONGVARCHAR},
</if> </if>
@ -536,7 +526,6 @@
delete_time = #{record.deleteTime,jdbcType=BIGINT}, delete_time = #{record.deleteTime,jdbcType=BIGINT},
delete_user_id = #{record.deleteUserId,jdbcType=VARCHAR}, delete_user_id = #{record.deleteUserId,jdbcType=VARCHAR},
`order` = #{record.order,jdbcType=BIGINT}, `order` = #{record.order,jdbcType=BIGINT},
demand_platform = #{record.demandPlatform,jdbcType=VARCHAR},
prerequisite = #{record.prerequisite,jdbcType=LONGVARCHAR}, prerequisite = #{record.prerequisite,jdbcType=LONGVARCHAR},
remark = #{record.remark,jdbcType=LONGVARCHAR}, remark = #{record.remark,jdbcType=LONGVARCHAR},
steps = #{record.steps,jdbcType=LONGVARCHAR}, steps = #{record.steps,jdbcType=LONGVARCHAR},
@ -575,8 +564,7 @@
original_status = #{record.originalStatus,jdbcType=VARCHAR}, original_status = #{record.originalStatus,jdbcType=VARCHAR},
delete_time = #{record.deleteTime,jdbcType=BIGINT}, delete_time = #{record.deleteTime,jdbcType=BIGINT},
delete_user_id = #{record.deleteUserId,jdbcType=VARCHAR}, delete_user_id = #{record.deleteUserId,jdbcType=VARCHAR},
`order` = #{record.order,jdbcType=BIGINT}, `order` = #{record.order,jdbcType=BIGINT}
demand_platform = #{record.demandPlatform,jdbcType=VARCHAR}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
@ -662,9 +650,6 @@
<if test="order != null"> <if test="order != null">
`order` = #{order,jdbcType=BIGINT}, `order` = #{order,jdbcType=BIGINT},
</if> </if>
<if test="demandPlatform != null">
demand_platform = #{demandPlatform,jdbcType=VARCHAR},
</if>
<if test="prerequisite != null"> <if test="prerequisite != null">
prerequisite = #{prerequisite,jdbcType=LONGVARCHAR}, prerequisite = #{prerequisite,jdbcType=LONGVARCHAR},
</if> </if>
@ -714,7 +699,6 @@
delete_time = #{deleteTime,jdbcType=BIGINT}, delete_time = #{deleteTime,jdbcType=BIGINT},
delete_user_id = #{deleteUserId,jdbcType=VARCHAR}, delete_user_id = #{deleteUserId,jdbcType=VARCHAR},
`order` = #{order,jdbcType=BIGINT}, `order` = #{order,jdbcType=BIGINT},
demand_platform = #{demandPlatform,jdbcType=VARCHAR},
prerequisite = #{prerequisite,jdbcType=LONGVARCHAR}, prerequisite = #{prerequisite,jdbcType=LONGVARCHAR},
remark = #{remark,jdbcType=LONGVARCHAR}, remark = #{remark,jdbcType=LONGVARCHAR},
steps = #{steps,jdbcType=LONGVARCHAR}, steps = #{steps,jdbcType=LONGVARCHAR},
@ -750,8 +734,7 @@
original_status = #{originalStatus,jdbcType=VARCHAR}, original_status = #{originalStatus,jdbcType=VARCHAR},
delete_time = #{deleteTime,jdbcType=BIGINT}, delete_time = #{deleteTime,jdbcType=BIGINT},
delete_user_id = #{deleteUserId,jdbcType=VARCHAR}, delete_user_id = #{deleteUserId,jdbcType=VARCHAR},
`order` = #{order,jdbcType=BIGINT}, `order` = #{order,jdbcType=BIGINT}
demand_platform = #{demandPlatform,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</update> </update>
</mapper> </mapper>