fix: 删除冗余字段

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

View File

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

View File

@ -1933,76 +1933,6 @@ public class TestCaseExample {
addCriterion("`order` not between", value1, value2, "order");
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 {

View File

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