build: load domain
This commit is contained in:
parent
7109e6ddc8
commit
d45f036769
|
@ -51,7 +51,7 @@ public class LoadTest implements Serializable {
|
|||
|
||||
@Schema(title = "创建人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test.create_user.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 100, message = "{load_test.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "自定义排序,间隔5000", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
|
|
@ -11,9 +11,9 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LoadTestBlob implements Serializable {
|
||||
@Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_blob.test_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_blob.test_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String testId;
|
||||
@NotBlank(message = "{load_test_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "压力配置")
|
||||
private byte[] loadConfiguration;
|
||||
|
|
|
@ -104,73 +104,73 @@ public class LoadTestBlobExample {
|
|||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andTestIdIsNull() {
|
||||
addCriterion("test_id is null");
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdIsNotNull() {
|
||||
addCriterion("test_id is not null");
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdEqualTo(String value) {
|
||||
addCriterion("test_id =", value, "testId");
|
||||
public Criteria andIdEqualTo(String value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdNotEqualTo(String value) {
|
||||
addCriterion("test_id <>", value, "testId");
|
||||
public Criteria andIdNotEqualTo(String value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdGreaterThan(String value) {
|
||||
addCriterion("test_id >", value, "testId");
|
||||
public Criteria andIdGreaterThan(String value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("test_id >=", value, "testId");
|
||||
public Criteria andIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdLessThan(String value) {
|
||||
addCriterion("test_id <", value, "testId");
|
||||
public Criteria andIdLessThan(String value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("test_id <=", value, "testId");
|
||||
public Criteria andIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdLike(String value) {
|
||||
addCriterion("test_id like", value, "testId");
|
||||
public Criteria andIdLike(String value) {
|
||||
addCriterion("id like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdNotLike(String value) {
|
||||
addCriterion("test_id not like", value, "testId");
|
||||
public Criteria andIdNotLike(String value) {
|
||||
addCriterion("id not like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdIn(List<String> values) {
|
||||
addCriterion("test_id in", values, "testId");
|
||||
public Criteria andIdIn(List<String> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdNotIn(List<String> values) {
|
||||
addCriterion("test_id not in", values, "testId");
|
||||
public Criteria andIdNotIn(List<String> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdBetween(String value1, String value2) {
|
||||
addCriterion("test_id between", value1, value2, "testId");
|
||||
public Criteria andIdBetween(String value1, String value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTestIdNotBetween(String value1, String value2) {
|
||||
addCriterion("test_id not between", value1, value2, "testId");
|
||||
public Criteria andIdNotBetween(String value1, String value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,12 +12,12 @@ import lombok.Data;
|
|||
public class LoadTestFile implements Serializable {
|
||||
@Schema(title = "测试ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_file.test_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{load_test_file.test_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_file.test_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String testId;
|
||||
|
||||
@Schema(title = "文件ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_file.file_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{load_test_file.file_id.length_range}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_file.file_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String fileId;
|
||||
|
||||
@Schema(title = "文件排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
|
|
@ -22,7 +22,7 @@ public class LoadTestReport implements Serializable {
|
|||
|
||||
@Schema(title = "报告名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_report.name.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{load_test_report.name.length_range}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 255, message = "{load_test_report.name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String name;
|
||||
|
||||
@Schema(title = "报告描述")
|
||||
|
@ -41,7 +41,7 @@ public class LoadTestReport implements Serializable {
|
|||
|
||||
@Schema(title = "创建人(执行人)ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_report.create_user.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{load_test_report.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_report.create_user.length_range}", groups = {Created.class, Updated.class})
|
||||
private String createUser;
|
||||
|
||||
@Schema(title = "触发方式", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
@ -65,7 +65,7 @@ public class LoadTestReport implements Serializable {
|
|||
|
||||
@Schema(title = "测试名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_report.test_name.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 64, message = "{load_test_report.test_name.length_range}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 255, message = "{load_test_report.test_name.length_range}", groups = {Created.class, Updated.class})
|
||||
private String testName;
|
||||
|
||||
@Schema(title = "资源池ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
|
|
@ -11,9 +11,9 @@ import lombok.Data;
|
|||
@Data
|
||||
public class LoadTestReportBlob implements Serializable {
|
||||
@Schema(title = "报告ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{load_test_report_blob.report_id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_report_blob.report_id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String reportId;
|
||||
@NotBlank(message = "{load_test_report_blob.id.not_blank}", groups = {Created.class, Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{load_test_report_blob.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(title = "压力配置")
|
||||
private byte[] loadConfiguration;
|
||||
|
|
|
@ -104,73 +104,73 @@ public class LoadTestReportBlobExample {
|
|||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andReportIdIsNull() {
|
||||
addCriterion("report_id is null");
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdIsNotNull() {
|
||||
addCriterion("report_id is not null");
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdEqualTo(String value) {
|
||||
addCriterion("report_id =", value, "reportId");
|
||||
public Criteria andIdEqualTo(String value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdNotEqualTo(String value) {
|
||||
addCriterion("report_id <>", value, "reportId");
|
||||
public Criteria andIdNotEqualTo(String value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdGreaterThan(String value) {
|
||||
addCriterion("report_id >", value, "reportId");
|
||||
public Criteria andIdGreaterThan(String value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("report_id >=", value, "reportId");
|
||||
public Criteria andIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdLessThan(String value) {
|
||||
addCriterion("report_id <", value, "reportId");
|
||||
public Criteria andIdLessThan(String value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("report_id <=", value, "reportId");
|
||||
public Criteria andIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdLike(String value) {
|
||||
addCriterion("report_id like", value, "reportId");
|
||||
public Criteria andIdLike(String value) {
|
||||
addCriterion("id like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdNotLike(String value) {
|
||||
addCriterion("report_id not like", value, "reportId");
|
||||
public Criteria andIdNotLike(String value) {
|
||||
addCriterion("id not like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdIn(List<String> values) {
|
||||
addCriterion("report_id in", values, "reportId");
|
||||
public Criteria andIdIn(List<String> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdNotIn(List<String> values) {
|
||||
addCriterion("report_id not in", values, "reportId");
|
||||
public Criteria andIdNotIn(List<String> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdBetween(String value1, String value2) {
|
||||
addCriterion("report_id between", value1, value2, "reportId");
|
||||
public Criteria andIdBetween(String value1, String value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportIdNotBetween(String value1, String value2) {
|
||||
addCriterion("report_id not between", value1, value2, "reportId");
|
||||
public Criteria andIdNotBetween(String value1, String value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ public interface LoadTestBlobMapper {
|
|||
|
||||
int deleteByExample(LoadTestBlobExample example);
|
||||
|
||||
int deleteByPrimaryKey(String testId);
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(LoadTestBlob record);
|
||||
|
||||
|
@ -20,7 +20,7 @@ public interface LoadTestBlobMapper {
|
|||
|
||||
List<LoadTestBlob> selectByExample(LoadTestBlobExample example);
|
||||
|
||||
LoadTestBlob selectByPrimaryKey(String testId);
|
||||
LoadTestBlob selectByPrimaryKey(String id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") LoadTestBlob record, @Param("example") LoadTestBlobExample example);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="io.metersphere.load.mapper.LoadTestBlobMapper">
|
||||
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestBlob">
|
||||
<id column="test_id" jdbcType="VARCHAR" property="testId" />
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.load.domain.LoadTestBlob">
|
||||
<result column="load_configuration" jdbcType="LONGVARBINARY" property="loadConfiguration" />
|
||||
|
@ -68,7 +68,7 @@
|
|||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
test_id
|
||||
id
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
load_configuration, advanced_configuration, env_info
|
||||
|
@ -109,11 +109,11 @@
|
|||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from load_test_blob
|
||||
where test_id = #{testId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from load_test_blob
|
||||
where test_id = #{testId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestBlobExample">
|
||||
delete from load_test_blob
|
||||
|
@ -122,18 +122,16 @@
|
|||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestBlob">
|
||||
insert into load_test_blob (test_id, load_configuration,
|
||||
advanced_configuration, env_info
|
||||
)
|
||||
values (#{testId,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONGVARBINARY},
|
||||
#{advancedConfiguration,jdbcType=LONGVARBINARY}, #{envInfo,jdbcType=LONGVARBINARY}
|
||||
)
|
||||
insert into load_test_blob (id, load_configuration, advanced_configuration,
|
||||
env_info)
|
||||
values (#{id,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONGVARBINARY}, #{advancedConfiguration,jdbcType=LONGVARBINARY},
|
||||
#{envInfo,jdbcType=LONGVARBINARY})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestBlob">
|
||||
insert into load_test_blob
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="testId != null">
|
||||
test_id,
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="loadConfiguration != null">
|
||||
load_configuration,
|
||||
|
@ -146,8 +144,8 @@
|
|||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="testId != null">
|
||||
#{testId,jdbcType=VARCHAR},
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="loadConfiguration != null">
|
||||
#{loadConfiguration,jdbcType=LONGVARBINARY},
|
||||
|
@ -169,8 +167,8 @@
|
|||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update load_test_blob
|
||||
<set>
|
||||
<if test="record.testId != null">
|
||||
test_id = #{record.testId,jdbcType=VARCHAR},
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.loadConfiguration != null">
|
||||
load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
|
||||
|
@ -188,7 +186,7 @@
|
|||
</update>
|
||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||
update load_test_blob
|
||||
set test_id = #{record.testId,jdbcType=VARCHAR},
|
||||
set id = #{record.id,jdbcType=VARCHAR},
|
||||
load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
|
||||
advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY},
|
||||
env_info = #{record.envInfo,jdbcType=LONGVARBINARY}
|
||||
|
@ -198,7 +196,7 @@
|
|||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update load_test_blob
|
||||
set test_id = #{record.testId,jdbcType=VARCHAR}
|
||||
set id = #{record.id,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
|
@ -216,13 +214,13 @@
|
|||
env_info = #{envInfo,jdbcType=LONGVARBINARY},
|
||||
</if>
|
||||
</set>
|
||||
where test_id = #{testId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestBlob">
|
||||
update load_test_blob
|
||||
set load_configuration = #{loadConfiguration,jdbcType=LONGVARBINARY},
|
||||
advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY},
|
||||
env_info = #{envInfo,jdbcType=LONGVARBINARY}
|
||||
where test_id = #{testId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
|
@ -10,7 +10,7 @@ public interface LoadTestReportBlobMapper {
|
|||
|
||||
int deleteByExample(LoadTestReportBlobExample example);
|
||||
|
||||
int deleteByPrimaryKey(String reportId);
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(LoadTestReportBlob record);
|
||||
|
||||
|
@ -20,7 +20,7 @@ public interface LoadTestReportBlobMapper {
|
|||
|
||||
List<LoadTestReportBlob> selectByExample(LoadTestReportBlobExample example);
|
||||
|
||||
LoadTestReportBlob selectByPrimaryKey(String reportId);
|
||||
LoadTestReportBlob selectByPrimaryKey(String id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") LoadTestReportBlob record, @Param("example") LoadTestReportBlobExample example);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="io.metersphere.load.mapper.LoadTestReportBlobMapper">
|
||||
<resultMap id="BaseResultMap" type="io.metersphere.load.domain.LoadTestReportBlob">
|
||||
<id column="report_id" jdbcType="VARCHAR" property="reportId" />
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="io.metersphere.load.domain.LoadTestReportBlob">
|
||||
<result column="load_configuration" jdbcType="LONGVARBINARY" property="loadConfiguration" />
|
||||
|
@ -69,7 +69,7 @@
|
|||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
report_id
|
||||
id
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
load_configuration, jmx_content, advanced_configuration, env_info
|
||||
|
@ -110,11 +110,11 @@
|
|||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from load_test_report_blob
|
||||
where report_id = #{reportId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from load_test_report_blob
|
||||
where report_id = #{reportId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="io.metersphere.load.domain.LoadTestReportBlobExample">
|
||||
delete from load_test_report_blob
|
||||
|
@ -123,18 +123,18 @@
|
|||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="io.metersphere.load.domain.LoadTestReportBlob">
|
||||
insert into load_test_report_blob (report_id, load_configuration,
|
||||
jmx_content, advanced_configuration,
|
||||
env_info)
|
||||
values (#{reportId,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONGVARBINARY},
|
||||
#{jmxContent,jdbcType=LONGVARBINARY}, #{advancedConfiguration,jdbcType=LONGVARBINARY},
|
||||
#{envInfo,jdbcType=LONGVARBINARY})
|
||||
insert into load_test_report_blob (id, load_configuration, jmx_content,
|
||||
advanced_configuration, env_info
|
||||
)
|
||||
values (#{id,jdbcType=VARCHAR}, #{loadConfiguration,jdbcType=LONGVARBINARY}, #{jmxContent,jdbcType=LONGVARBINARY},
|
||||
#{advancedConfiguration,jdbcType=LONGVARBINARY}, #{envInfo,jdbcType=LONGVARBINARY}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="io.metersphere.load.domain.LoadTestReportBlob">
|
||||
insert into load_test_report_blob
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="reportId != null">
|
||||
report_id,
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="loadConfiguration != null">
|
||||
load_configuration,
|
||||
|
@ -150,8 +150,8 @@
|
|||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="reportId != null">
|
||||
#{reportId,jdbcType=VARCHAR},
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="loadConfiguration != null">
|
||||
#{loadConfiguration,jdbcType=LONGVARBINARY},
|
||||
|
@ -176,8 +176,8 @@
|
|||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update load_test_report_blob
|
||||
<set>
|
||||
<if test="record.reportId != null">
|
||||
report_id = #{record.reportId,jdbcType=VARCHAR},
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.loadConfiguration != null">
|
||||
load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
|
||||
|
@ -198,7 +198,7 @@
|
|||
</update>
|
||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||
update load_test_report_blob
|
||||
set report_id = #{record.reportId,jdbcType=VARCHAR},
|
||||
set id = #{record.id,jdbcType=VARCHAR},
|
||||
load_configuration = #{record.loadConfiguration,jdbcType=LONGVARBINARY},
|
||||
jmx_content = #{record.jmxContent,jdbcType=LONGVARBINARY},
|
||||
advanced_configuration = #{record.advancedConfiguration,jdbcType=LONGVARBINARY},
|
||||
|
@ -209,7 +209,7 @@
|
|||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update load_test_report_blob
|
||||
set report_id = #{record.reportId,jdbcType=VARCHAR}
|
||||
set id = #{record.id,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
|
@ -230,7 +230,7 @@
|
|||
env_info = #{envInfo,jdbcType=LONGVARBINARY},
|
||||
</if>
|
||||
</set>
|
||||
where report_id = #{reportId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="io.metersphere.load.domain.LoadTestReportBlob">
|
||||
update load_test_report_blob
|
||||
|
@ -238,6 +238,6 @@
|
|||
jmx_content = #{jmxContent,jdbcType=LONGVARBINARY},
|
||||
advanced_configuration = #{advancedConfiguration,jdbcType=LONGVARBINARY},
|
||||
env_info = #{envInfo,jdbcType=LONGVARBINARY}
|
||||
where report_id = #{reportId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
|
@ -53,40 +53,33 @@
|
|||
<property name="forceBigDecimals" value="false"/>
|
||||
</javaTypeResolver>
|
||||
<!-- 模型对象 -->
|
||||
<javaModelGenerator targetPackage="io.metersphere.project.domain" targetProject="src/main/java">
|
||||
<javaModelGenerator targetPackage="io.metersphere.load.domain" targetProject="src/main/java">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
<property name="trimStrings" value="true"/>
|
||||
</javaModelGenerator>
|
||||
<!-- XML映射文件 -->
|
||||
<sqlMapGenerator targetPackage="io.metersphere.project.mapper" targetProject="src/main/java">
|
||||
<sqlMapGenerator targetPackage="io.metersphere.load.mapper" targetProject="src/main/java">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
</sqlMapGenerator>
|
||||
<!-- 接口 -->
|
||||
<javaClientGenerator type="XMLMAPPER" targetPackage="io.metersphere.project.mapper"
|
||||
<javaClientGenerator type="XMLMAPPER" targetPackage="io.metersphere.load.mapper"
|
||||
targetProject="src/main/java">
|
||||
<property name="enableSubPackages" value="true"/>
|
||||
</javaClientGenerator>
|
||||
|
||||
<!--要生成的数据库表 -->
|
||||
<table tableName="custom_field"/>
|
||||
<table tableName="custom_field_template"/>
|
||||
<table tableName="custom_function"/>
|
||||
<table tableName="fake_error"/>
|
||||
<table tableName="file_metadata"/>
|
||||
<table tableName="file_module"/>
|
||||
<table tableName="project"/>
|
||||
<table tableName="project_application"/>
|
||||
<table tableName="project_version"/>
|
||||
<table tableName="file_module_blob"/>
|
||||
<table tableName="custom_function_blob"/>
|
||||
<table tableName="fake_error_blob"/>
|
||||
<table tableName="file_metadata_blob"/>
|
||||
<table tableName="project_extend"/>
|
||||
<table tableName="functional_case_template"/>
|
||||
<table tableName="functional_case_template_extend"/>
|
||||
<table tableName="issue_template_extend"/>
|
||||
<table tableName="issue_template"/>
|
||||
<table tableName="api_template"/>
|
||||
<table tableName="load_test_api"/>
|
||||
<table tableName="load_test"/>
|
||||
<table tableName="load_test_file"/>
|
||||
<table tableName="load_test_follow"/>
|
||||
<table tableName="load_test_report"/>
|
||||
<table tableName="load_test_report_file"/>
|
||||
<table tableName="load_test_report_log"/>
|
||||
<table tableName="load_test_report_result"/>
|
||||
<table tableName="load_test_report_result_part"/>
|
||||
<table tableName="load_test_report_result_realtime"/>
|
||||
<table tableName="load_test_blob"/>
|
||||
<table tableName="load_test_report_blob"/>
|
||||
|
||||
<!-- 要忽略的字段-->
|
||||
<!-- <table tableName="test_case">
|
||||
|
|
Loading…
Reference in New Issue