diff --git a/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java b/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java index 7b5a88d1f8939ac8891df430c9a655205a272380..d5b8a9476b2aca6f9f99b5ec2d39b41202acba2a 100644 --- a/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java +++ b/backend/src/main/java/io/metersphere/api/jmeter/APIBackendListenerClient.java @@ -12,10 +12,7 @@ import org.apache.jmeter.visualizers.backend.AbstractBackendListenerClient; import org.apache.jmeter.visualizers.backend.BackendListenerContext; import java.io.Serializable; -import java.util.ArrayList; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; +import java.util.*; import java.util.concurrent.ConcurrentHashMap; /** @@ -72,6 +69,7 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl sampleResults.forEach(result -> { String thread = StringUtils.substringBeforeLast(result.getThreadName(), " "); + String order = StringUtils.substringAfterLast(result.getThreadName(), " "); String scenarioName = StringUtils.substringBefore(thread, SPLIT); String scenarioId = StringUtils.substringAfter(thread, SPLIT); ScenarioResult scenarioResult; @@ -79,6 +77,7 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl scenarioResult = new ScenarioResult(); scenarioResult.setId(scenarioId); scenarioResult.setName(scenarioName); + scenarioResult.setOrder(StringUtils.substringBefore(order, "-")); scenarios.put(scenarioId, scenarioResult); } else { scenarioResult = scenarios.get(scenarioId); @@ -103,6 +102,7 @@ public class APIBackendListenerClient extends AbstractBackendListenerClient impl scenarioResult.addTotalAssertions(requestResult.getTotalAssertions()); }); testResult.getScenarios().addAll(scenarios.values()); + testResult.getScenarios().sort(Comparator.comparing(ScenarioResult::getOrder)); apiTestService.changeStatus(id, APITestStatus.Completed); apiReportService.save(testResult); }); diff --git a/backend/src/main/java/io/metersphere/api/jmeter/ScenarioResult.java b/backend/src/main/java/io/metersphere/api/jmeter/ScenarioResult.java index 331b9b8ab17bc7c138a30e91726ea05f4ac8f957..d9f2b7d4ca2c5cd0fa29cdf1560f6410b7f7eea9 100644 --- a/backend/src/main/java/io/metersphere/api/jmeter/ScenarioResult.java +++ b/backend/src/main/java/io/metersphere/api/jmeter/ScenarioResult.java @@ -12,6 +12,8 @@ public class ScenarioResult { private String name; + private String order; + private long responseTime; private int error = 0; diff --git a/backend/src/main/java/io/metersphere/base/domain/LoadTestReport.java b/backend/src/main/java/io/metersphere/base/domain/LoadTestReport.java index c0d76f67ce359e895ffed705d95c4e15e9637fb7..2a60c2d0116cfd71b028016cdf639d8d68caa318 100644 --- a/backend/src/main/java/io/metersphere/base/domain/LoadTestReport.java +++ b/backend/src/main/java/io/metersphere/base/domain/LoadTestReport.java @@ -18,5 +18,7 @@ public class LoadTestReport implements Serializable { private String status; + private String description; + private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetail.java b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetail.java index 442ce74b061d24b808655f2e8aa87c20a735de28..2167109815658f055216b8838b70d26abfd37e22 100644 --- a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetail.java +++ b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetail.java @@ -1,13 +1,15 @@ package io.metersphere.base.domain; import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; import java.io.Serializable; @Data -public class LoadTestReportDetail implements Serializable { - private String reportId; - +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +public class LoadTestReportDetail extends LoadTestReportDetailKey implements Serializable { private String content; private static final long serialVersionUID = 1L; diff --git a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetailExample.java b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetailExample.java index af84db6d79864b91e8c9febdca43b063d692c5da..e87f61a8e76102926b22135b48e2fedd15ca6d8a 100644 --- a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetailExample.java +++ b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetailExample.java @@ -173,6 +173,66 @@ public class LoadTestReportDetailExample { addCriterion("report_id not between", value1, value2, "reportId"); return (Criteria) this; } + + public Criteria andPartIsNull() { + addCriterion("part is null"); + return (Criteria) this; + } + + public Criteria andPartIsNotNull() { + addCriterion("part is not null"); + return (Criteria) this; + } + + public Criteria andPartEqualTo(Long value) { + addCriterion("part =", value, "part"); + return (Criteria) this; + } + + public Criteria andPartNotEqualTo(Long value) { + addCriterion("part <>", value, "part"); + return (Criteria) this; + } + + public Criteria andPartGreaterThan(Long value) { + addCriterion("part >", value, "part"); + return (Criteria) this; + } + + public Criteria andPartGreaterThanOrEqualTo(Long value) { + addCriterion("part >=", value, "part"); + return (Criteria) this; + } + + public Criteria andPartLessThan(Long value) { + addCriterion("part <", value, "part"); + return (Criteria) this; + } + + public Criteria andPartLessThanOrEqualTo(Long value) { + addCriterion("part <=", value, "part"); + return (Criteria) this; + } + + public Criteria andPartIn(List values) { + addCriterion("part in", values, "part"); + return (Criteria) this; + } + + public Criteria andPartNotIn(List values) { + addCriterion("part not in", values, "part"); + return (Criteria) this; + } + + public Criteria andPartBetween(Long value1, Long value2) { + addCriterion("part between", value1, value2, "part"); + return (Criteria) this; + } + + public Criteria andPartNotBetween(Long value1, Long value2) { + addCriterion("part not between", value1, value2, "part"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetailKey.java b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetailKey.java new file mode 100644 index 0000000000000000000000000000000000000000..a2a603e2560358f758757eab6bce977a4f304b45 --- /dev/null +++ b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportDetailKey.java @@ -0,0 +1,14 @@ +package io.metersphere.base.domain; + +import lombok.Data; + +import java.io.Serializable; + +@Data +public class LoadTestReportDetailKey implements Serializable { + private String reportId; + + private Long part; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportLog.java b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportLog.java index 466470aad23ae986abbefc664137dfeb46f445ca..db97afa8b5304c0baaa91381919419182caa88de 100644 --- a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportLog.java +++ b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportLog.java @@ -12,6 +12,8 @@ public class LoadTestReportLog implements Serializable { private String resourceId; + private Long part; + private String content; private static final long serialVersionUID = 1L; diff --git a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportLogExample.java b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportLogExample.java index 2112d515a4daf72742eab3f0fa79124e746d7dff..ebdff35213ca7b04c023c02add692a73e1230956 100644 --- a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportLogExample.java +++ b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportLogExample.java @@ -313,6 +313,66 @@ public class LoadTestReportLogExample { addCriterion("resource_id not between", value1, value2, "resourceId"); return (Criteria) this; } + + public Criteria andPartIsNull() { + addCriterion("part is null"); + return (Criteria) this; + } + + public Criteria andPartIsNotNull() { + addCriterion("part is not null"); + return (Criteria) this; + } + + public Criteria andPartEqualTo(Long value) { + addCriterion("part =", value, "part"); + return (Criteria) this; + } + + public Criteria andPartNotEqualTo(Long value) { + addCriterion("part <>", value, "part"); + return (Criteria) this; + } + + public Criteria andPartGreaterThan(Long value) { + addCriterion("part >", value, "part"); + return (Criteria) this; + } + + public Criteria andPartGreaterThanOrEqualTo(Long value) { + addCriterion("part >=", value, "part"); + return (Criteria) this; + } + + public Criteria andPartLessThan(Long value) { + addCriterion("part <", value, "part"); + return (Criteria) this; + } + + public Criteria andPartLessThanOrEqualTo(Long value) { + addCriterion("part <=", value, "part"); + return (Criteria) this; + } + + public Criteria andPartIn(List values) { + addCriterion("part in", values, "part"); + return (Criteria) this; + } + + public Criteria andPartNotIn(List values) { + addCriterion("part not in", values, "part"); + return (Criteria) this; + } + + public Criteria andPartBetween(Long value1, Long value2) { + addCriterion("part between", value1, value2, "part"); + return (Criteria) this; + } + + public Criteria andPartNotBetween(Long value1, Long value2) { + addCriterion("part not between", value1, value2, "part"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportWithBLOBs.java b/backend/src/main/java/io/metersphere/base/domain/LoadTestReportWithBLOBs.java deleted file mode 100644 index 3e8d33d570f8523b7e6bebaa50b5080dbc22c59d..0000000000000000000000000000000000000000 --- a/backend/src/main/java/io/metersphere/base/domain/LoadTestReportWithBLOBs.java +++ /dev/null @@ -1,18 +0,0 @@ -package io.metersphere.base.domain; - -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.ToString; - -import java.io.Serializable; - -@Data -@EqualsAndHashCode(callSuper = true) -@ToString(callSuper = true) -public class LoadTestReportWithBLOBs extends LoadTestReport implements Serializable { - private String description; - - private String content; - - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportDetailMapper.java b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportDetailMapper.java index d19c9961edbed87b7de34d6355e2f8137497f860..85bac87235c97538d9bd6d8b3d2ea0223272dbe1 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportDetailMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportDetailMapper.java @@ -2,6 +2,7 @@ package io.metersphere.base.mapper; import io.metersphere.base.domain.LoadTestReportDetail; import io.metersphere.base.domain.LoadTestReportDetailExample; +import io.metersphere.base.domain.LoadTestReportDetailKey; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -11,7 +12,7 @@ public interface LoadTestReportDetailMapper { int deleteByExample(LoadTestReportDetailExample example); - int deleteByPrimaryKey(String reportId); + int deleteByPrimaryKey(LoadTestReportDetailKey key); int insert(LoadTestReportDetail record); @@ -21,7 +22,7 @@ public interface LoadTestReportDetailMapper { List selectByExample(LoadTestReportDetailExample example); - LoadTestReportDetail selectByPrimaryKey(String reportId); + LoadTestReportDetail selectByPrimaryKey(LoadTestReportDetailKey key); int updateByExampleSelective(@Param("record") LoadTestReportDetail record, @Param("example") LoadTestReportDetailExample example); diff --git a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportDetailMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportDetailMapper.xml index 8a19ff8977b8b872eb6bf18f737564e75195c92e..ba7d53c95ae967a2f9a5c9c542b7f9540ef0705d 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportDetailMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportDetailMapper.xml @@ -3,6 +3,7 @@ + @@ -66,7 +67,8 @@ - report_id + report_id, + part content @@ -101,18 +103,20 @@ order by ${orderByClause} - - - delete from load_test_report_detail - where report_id = #{reportId,jdbcType=VARCHAR} - + + + DELETE FROM load_test_report_detail + WHERE report_id = #{reportId,jdbcType=VARCHAR} + AND part = #{part,jdbcType=BIGINT} + delete from load_test_report_detail @@ -120,27 +124,35 @@ - insert into load_test_report_detail (report_id, content) - values (#{reportId,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR}) + insert into load_test_report_detail (report_id, part, content + ) + values (#{reportId,jdbcType=VARCHAR}, #{part,jdbcType=BIGINT}, #{content,jdbcType=LONGVARCHAR} + ) insert into load_test_report_detail - - - report_id, - - - content, - - - - - #{reportId,jdbcType=VARCHAR}, - - - #{content,jdbcType=LONGVARCHAR}, - - + + + report_id, + + + part, + + + content, + + + + + #{reportId,jdbcType=VARCHAR}, + + + #{part,jdbcType=BIGINT}, + + + #{content,jdbcType=LONGVARCHAR}, + + update load_test_report_detail - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - content = #{record.content,jdbcType=LONGVARCHAR}, - - + + + report_id = #{record.reportId,jdbcType=VARCHAR}, + + + part = #{record.part,jdbcType=BIGINT}, + + + content = #{record.content,jdbcType=LONGVARCHAR}, + + - update load_test_report_detail - set report_id = #{record.reportId,jdbcType=VARCHAR}, + update load_test_report_detail + set report_id = #{record.reportId,jdbcType=VARCHAR}, + part = #{record.part,jdbcType=BIGINT}, content = #{record.content,jdbcType=LONGVARCHAR} - + - update load_test_report_detail - set report_id = #{record.reportId,jdbcType=VARCHAR} - + update load_test_report_detail + set report_id = #{record.reportId,jdbcType=VARCHAR}, + part = #{record.part,jdbcType=BIGINT} + @@ -184,11 +201,13 @@ content = #{content,jdbcType=LONGVARCHAR}, - where report_id = #{reportId,jdbcType=VARCHAR} + where report_id = #{reportId,jdbcType=VARCHAR} + and part = #{part,jdbcType=BIGINT} - update load_test_report_detail - set content = #{content,jdbcType=LONGVARCHAR} - where report_id = #{reportId,jdbcType=VARCHAR} + update load_test_report_detail + set content = #{content,jdbcType=LONGVARCHAR} + where report_id = #{reportId,jdbcType=VARCHAR} + and part = #{part,jdbcType=BIGINT} \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.xml index 42d98045f86bd6ffe6bc75a09f00b439a8f60377..258ae94b56c371e4bb58adaea495d59bf029a26e 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportLogMapper.xml @@ -5,6 +5,7 @@ + @@ -68,7 +69,10 @@ - id, report_id, resource_id + id, + report_id, + resource_id, + part content @@ -122,41 +126,47 @@ - insert into load_test_report_log (id, report_id, resource_id, - content) - values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR}, - #{content,jdbcType=LONGVARCHAR}) + insert into load_test_report_log (id, report_id, resource_id, + part, content) + values (#{id,jdbcType=VARCHAR}, #{reportId,jdbcType=VARCHAR}, #{resourceId,jdbcType=VARCHAR}, + #{part,jdbcType=BIGINT}, #{content,jdbcType=LONGVARCHAR}) insert into load_test_report_log - - - id, - - - report_id, - - - resource_id, - - - content, - - - - - #{id,jdbcType=VARCHAR}, - - - #{reportId,jdbcType=VARCHAR}, - - - #{resourceId,jdbcType=VARCHAR}, - - - #{content,jdbcType=LONGVARCHAR}, - - + + + id, + + + report_id, + + + resource_id, + + + part, + + + content, + + + + + #{id,jdbcType=VARCHAR}, + + + #{reportId,jdbcType=VARCHAR}, + + + #{resourceId,jdbcType=VARCHAR}, + + + #{part,jdbcType=BIGINT}, + + + #{content,jdbcType=LONGVARCHAR}, + + update load_test_report_log - - - id = #{record.id,jdbcType=VARCHAR}, - - - report_id = #{record.reportId,jdbcType=VARCHAR}, - - - resource_id = #{record.resourceId,jdbcType=VARCHAR}, - - - content = #{record.content,jdbcType=LONGVARCHAR}, - - + + + id = #{record.id,jdbcType=VARCHAR}, + + + report_id = #{record.reportId,jdbcType=VARCHAR}, + + + resource_id = #{record.resourceId,jdbcType=VARCHAR}, + + + part = #{record.part,jdbcType=BIGINT}, + + + content = #{record.content,jdbcType=LONGVARCHAR}, + + - update load_test_report_log - set id = #{record.id,jdbcType=VARCHAR}, + update load_test_report_log + set id = #{record.id,jdbcType=VARCHAR}, report_id = #{record.reportId,jdbcType=VARCHAR}, resource_id = #{record.resourceId,jdbcType=VARCHAR}, + part = #{record.part,jdbcType=BIGINT}, content = #{record.content,jdbcType=LONGVARCHAR} - + - update load_test_report_log - set id = #{record.id,jdbcType=VARCHAR}, + update load_test_report_log + set id = #{record.id,jdbcType=VARCHAR}, report_id = #{record.reportId,jdbcType=VARCHAR}, - resource_id = #{record.resourceId,jdbcType=VARCHAR} - + resource_id = #{record.resourceId,jdbcType=VARCHAR}, + part = #{record.part,jdbcType=BIGINT} + update load_test_report_log - - - report_id = #{reportId,jdbcType=VARCHAR}, - - - resource_id = #{resourceId,jdbcType=VARCHAR}, - - - content = #{content,jdbcType=LONGVARCHAR}, - - + + + report_id = #{reportId,jdbcType=VARCHAR}, + + + resource_id = #{resourceId,jdbcType=VARCHAR}, + + + part = #{part,jdbcType=BIGINT}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + where id = #{id,jdbcType=VARCHAR} - update load_test_report_log - set report_id = #{reportId,jdbcType=VARCHAR}, + update load_test_report_log + set report_id = #{reportId,jdbcType=VARCHAR}, resource_id = #{resourceId,jdbcType=VARCHAR}, + part = #{part,jdbcType=BIGINT}, content = #{content,jdbcType=LONGVARCHAR} - where id = #{id,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} - update load_test_report_log - set report_id = #{reportId,jdbcType=VARCHAR}, - resource_id = #{resourceId,jdbcType=VARCHAR} - where id = #{id,jdbcType=VARCHAR} + update load_test_report_log + set report_id = #{reportId,jdbcType=VARCHAR}, + resource_id = #{resourceId,jdbcType=VARCHAR}, + part = #{part,jdbcType=BIGINT} + where id = #{id,jdbcType=VARCHAR} \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.java b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.java index 018fc00eaa28a88ec1943ac2d7ecb80760762b34..8bddc4ec16d8f5f1a139dbffe5bd0e0fc4090711 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.java @@ -2,7 +2,6 @@ package io.metersphere.base.mapper; import io.metersphere.base.domain.LoadTestReport; import io.metersphere.base.domain.LoadTestReportExample; -import io.metersphere.base.domain.LoadTestReportWithBLOBs; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -14,25 +13,25 @@ public interface LoadTestReportMapper { int deleteByPrimaryKey(String id); - int insert(LoadTestReportWithBLOBs record); + int insert(LoadTestReport record); - int insertSelective(LoadTestReportWithBLOBs record); + int insertSelective(LoadTestReport record); - List selectByExampleWithBLOBs(LoadTestReportExample example); + List selectByExampleWithBLOBs(LoadTestReportExample example); List selectByExample(LoadTestReportExample example); - LoadTestReportWithBLOBs selectByPrimaryKey(String id); + LoadTestReport selectByPrimaryKey(String id); - int updateByExampleSelective(@Param("record") LoadTestReportWithBLOBs record, @Param("example") LoadTestReportExample example); + int updateByExampleSelective(@Param("record") LoadTestReport record, @Param("example") LoadTestReportExample example); - int updateByExampleWithBLOBs(@Param("record") LoadTestReportWithBLOBs record, @Param("example") LoadTestReportExample example); + int updateByExampleWithBLOBs(@Param("record") LoadTestReport record, @Param("example") LoadTestReportExample example); int updateByExample(@Param("record") LoadTestReport record, @Param("example") LoadTestReportExample example); - int updateByPrimaryKeySelective(LoadTestReportWithBLOBs record); + int updateByPrimaryKeySelective(LoadTestReport record); - int updateByPrimaryKeyWithBLOBs(LoadTestReportWithBLOBs record); + int updateByPrimaryKeyWithBLOBs(LoadTestReport record); int updateByPrimaryKey(LoadTestReport record); } \ No newline at end of file diff --git a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.xml index 5027029ccf59ca68a42424896b191984ba4b03e5..eae844a677d0ec11c8df35754ee2a11984189608 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/LoadTestReportMapper.xml @@ -9,9 +9,8 @@ - - - + + @@ -75,7 +74,7 @@ id, test_id, name, create_time, update_time, status - description, content + description @@ -218,25 +211,21 @@ description = #{record.description,jdbcType=LONGVARCHAR}, - - content = #{record.content,jdbcType=LONGVARCHAR}, - - update load_test_report - set id = #{record.id,jdbcType=VARCHAR}, + update load_test_report + set id = #{record.id,jdbcType=VARCHAR}, test_id = #{record.testId,jdbcType=VARCHAR}, name = #{record.name,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=BIGINT}, update_time = #{record.updateTime,jdbcType=BIGINT}, status = #{record.status,jdbcType=VARCHAR}, - description = #{record.description,jdbcType=LONGVARCHAR}, - content = #{record.content,jdbcType=LONGVARCHAR} - + description = #{record.description,jdbcType=LONGVARCHAR} + @@ -252,17 +241,17 @@ - - update load_test_report - - - test_id = #{testId,jdbcType=VARCHAR}, - - - name = #{name,jdbcType=VARCHAR}, - - - create_time = #{createTime,jdbcType=BIGINT}, + + update load_test_report + + + test_id = #{testId,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=BIGINT}, update_time = #{updateTime,jdbcType=BIGINT}, @@ -273,23 +262,19 @@ description = #{description,jdbcType=LONGVARCHAR}, - - content = #{content,jdbcType=LONGVARCHAR}, - where id = #{id,jdbcType=VARCHAR} - - update load_test_report - set test_id = #{testId,jdbcType=VARCHAR}, - name = #{name,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=BIGINT}, - update_time = #{updateTime,jdbcType=BIGINT}, - status = #{status,jdbcType=VARCHAR}, - description = #{description,jdbcType=LONGVARCHAR}, - content = #{content,jdbcType=LONGVARCHAR} - where id = #{id,jdbcType=VARCHAR} - + + UPDATE load_test_report + SET test_id = #{testId,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=BIGINT}, + update_time = #{updateTime,jdbcType=BIGINT}, + status = #{status,jdbcType=VARCHAR}, + description = #{description,jdbcType=LONGVARCHAR} + WHERE id = #{id,jdbcType=VARCHAR} + update load_test_report set test_id = #{testId,jdbcType=VARCHAR}, diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestReportMapper.java b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestReportMapper.java index 79e6c73667e370ae19fc36eb2b3783c28f331d8f..1171c0ec3e13af4ca76638eed74ab5a51ae247f1 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestReportMapper.java +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestReportMapper.java @@ -14,8 +14,6 @@ public interface ExtLoadTestReportMapper { ReportDTO getReportTestAndProInfo(@Param("id") String id); - int appendLine(@Param("testId") String id, @Param("line") String line); - LoadTestReport selectByPrimaryKey(String id); List selectDashboardTests(@Param("workspaceId") String workspaceId, @Param("startTimestamp") long startTimestamp); diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestReportMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestReportMapper.xml index 37d15a0676122ed981244b353f19eecb84fd9458..703e4561929ff2c473a87ce4bb2d745c6ba34ee3 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestReportMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtLoadTestReportMapper.xml @@ -41,12 +41,6 @@ where ltr.id = #{id} - - UPDATE load_test_report - SET content = concat(content, #{line}) - WHERE id = #{testId} - -