fix(测试计划): 报告计划名称展示有误

--bug=1042776 --user=宋昌昌 【测试计划】计划组-删除子计划-集合报告-报告明细-子计划被删除了 https://www.tapd.cn/55049933/s/1533333
This commit is contained in:
song-cc-rock 2024-06-21 11:09:15 +08:00 committed by Craftsman
parent 3ddcdaa450
commit 24d6a0069f
10 changed files with 133 additions and 34 deletions

View File

@ -82,6 +82,11 @@ public class TestPlanReport implements Serializable {
@Schema(description = "独立报告的父级ID")
private String parentId;
@Schema(description = "测试计划名称", requiredMode = Schema.RequiredMode.REQUIRED)
@NotBlank(message = "{test_plan_report.test_plan_name.not_blank}", groups = {Created.class})
@Size(min = 1, max = 255, message = "{test_plan_report.test_plan_name.length_range}", groups = {Created.class, Updated.class})
private String testPlanName;
private static final long serialVersionUID = 1L;
public enum Column {
@ -101,7 +106,8 @@ public class TestPlanReport implements Serializable {
integrated("integrated", "integrated", "BIT", false),
deleted("deleted", "deleted", "BIT", false),
executeRate("execute_rate", "executeRate", "DECIMAL", false),
parentId("parent_id", "parentId", "VARCHAR", false);
parentId("parent_id", "parentId", "VARCHAR", false),
testPlanName("test_plan_name", "testPlanName", "VARCHAR", false);
private static final String BEGINNING_DELIMITER = "`";

View File

@ -1214,6 +1214,76 @@ public class TestPlanReportExample {
addCriterion("parent_id not between", value1, value2, "parentId");
return (Criteria) this;
}
public Criteria andTestPlanNameIsNull() {
addCriterion("test_plan_name is null");
return (Criteria) this;
}
public Criteria andTestPlanNameIsNotNull() {
addCriterion("test_plan_name is not null");
return (Criteria) this;
}
public Criteria andTestPlanNameEqualTo(String value) {
addCriterion("test_plan_name =", value, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameNotEqualTo(String value) {
addCriterion("test_plan_name <>", value, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameGreaterThan(String value) {
addCriterion("test_plan_name >", value, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameGreaterThanOrEqualTo(String value) {
addCriterion("test_plan_name >=", value, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameLessThan(String value) {
addCriterion("test_plan_name <", value, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameLessThanOrEqualTo(String value) {
addCriterion("test_plan_name <=", value, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameLike(String value) {
addCriterion("test_plan_name like", value, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameNotLike(String value) {
addCriterion("test_plan_name not like", value, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameIn(List<String> values) {
addCriterion("test_plan_name in", values, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameNotIn(List<String> values) {
addCriterion("test_plan_name not in", values, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameBetween(String value1, String value2) {
addCriterion("test_plan_name between", value1, value2, "testPlanName");
return (Criteria) this;
}
public Criteria andTestPlanNameNotBetween(String value1, String value2) {
addCriterion("test_plan_name not between", value1, value2, "testPlanName");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

View File

@ -19,6 +19,7 @@
<result column="deleted" jdbcType="BIT" property="deleted" />
<result column="execute_rate" jdbcType="DECIMAL" property="executeRate" />
<result column="parent_id" jdbcType="VARCHAR" property="parentId" />
<result column="test_plan_name" jdbcType="VARCHAR" property="testPlanName" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -81,7 +82,7 @@
<sql id="Base_Column_List">
id, test_plan_id, `name`, create_user, create_time, start_time, end_time, exec_status,
result_status, pass_rate, trigger_mode, pass_threshold, project_id, integrated, deleted,
execute_rate, parent_id
execute_rate, parent_id, test_plan_name
</sql>
<select id="selectByExample" parameterType="io.metersphere.plan.domain.TestPlanReportExample" resultMap="BaseResultMap">
select
@ -119,13 +120,15 @@
end_time, exec_status, result_status,
pass_rate, trigger_mode, pass_threshold,
project_id, integrated, deleted,
execute_rate, parent_id)
execute_rate, parent_id, test_plan_name
)
values (#{id,jdbcType=VARCHAR}, #{testPlanId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, #{startTime,jdbcType=BIGINT},
#{endTime,jdbcType=BIGINT}, #{execStatus,jdbcType=VARCHAR}, #{resultStatus,jdbcType=VARCHAR},
#{passRate,jdbcType=DECIMAL}, #{triggerMode,jdbcType=VARCHAR}, #{passThreshold,jdbcType=DECIMAL},
#{projectId,jdbcType=VARCHAR}, #{integrated,jdbcType=BIT}, #{deleted,jdbcType=BIT},
#{executeRate,jdbcType=DECIMAL}, #{parentId,jdbcType=VARCHAR})
#{executeRate,jdbcType=DECIMAL}, #{parentId,jdbcType=VARCHAR}, #{testPlanName,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="io.metersphere.plan.domain.TestPlanReport">
insert into test_plan_report
@ -181,6 +184,9 @@
<if test="parentId != null">
parent_id,
</if>
<if test="testPlanName != null">
test_plan_name,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -234,6 +240,9 @@
<if test="parentId != null">
#{parentId,jdbcType=VARCHAR},
</if>
<if test="testPlanName != null">
#{testPlanName,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="io.metersphere.plan.domain.TestPlanReportExample" resultType="java.lang.Long">
@ -296,6 +305,9 @@
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=VARCHAR},
</if>
<if test="record.testPlanName != null">
test_plan_name = #{record.testPlanName,jdbcType=VARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -319,7 +331,8 @@
integrated = #{record.integrated,jdbcType=BIT},
deleted = #{record.deleted,jdbcType=BIT},
execute_rate = #{record.executeRate,jdbcType=DECIMAL},
parent_id = #{record.parentId,jdbcType=VARCHAR}
parent_id = #{record.parentId,jdbcType=VARCHAR},
test_plan_name = #{record.testPlanName,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -375,6 +388,9 @@
<if test="parentId != null">
parent_id = #{parentId,jdbcType=VARCHAR},
</if>
<if test="testPlanName != null">
test_plan_name = #{testPlanName,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
@ -395,14 +411,15 @@
integrated = #{integrated,jdbcType=BIT},
deleted = #{deleted,jdbcType=BIT},
execute_rate = #{executeRate,jdbcType=DECIMAL},
parent_id = #{parentId,jdbcType=VARCHAR}
parent_id = #{parentId,jdbcType=VARCHAR},
test_plan_name = #{testPlanName,jdbcType=VARCHAR}
where id = #{id,jdbcType=VARCHAR}
</update>
<insert id="batchInsert" parameterType="map">
insert into test_plan_report
(id, test_plan_id, `name`, create_user, create_time, start_time, end_time, exec_status,
result_status, pass_rate, trigger_mode, pass_threshold, project_id, integrated,
deleted, execute_rate, parent_id)
deleted, execute_rate, parent_id, test_plan_name)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.testPlanId,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR},
@ -410,7 +427,8 @@
#{item.endTime,jdbcType=BIGINT}, #{item.execStatus,jdbcType=VARCHAR}, #{item.resultStatus,jdbcType=VARCHAR},
#{item.passRate,jdbcType=DECIMAL}, #{item.triggerMode,jdbcType=VARCHAR}, #{item.passThreshold,jdbcType=DECIMAL},
#{item.projectId,jdbcType=VARCHAR}, #{item.integrated,jdbcType=BIT}, #{item.deleted,jdbcType=BIT},
#{item.executeRate,jdbcType=DECIMAL}, #{item.parentId,jdbcType=VARCHAR})
#{item.executeRate,jdbcType=DECIMAL}, #{item.parentId,jdbcType=VARCHAR}, #{item.testPlanName,jdbcType=VARCHAR}
)
</foreach>
</insert>
<insert id="batchInsertSelective" parameterType="map">
@ -474,6 +492,9 @@
<if test="'parent_id'.toString() == column.value">
#{item.parentId,jdbcType=VARCHAR}
</if>
<if test="'test_plan_name'.toString() == column.value">
#{item.testPlanName,jdbcType=VARCHAR}
</if>
</foreach>
)
</foreach>

View File

@ -222,6 +222,7 @@ CREATE INDEX idx_pos ON test_plan_report_api_scenario(pos);
ALTER TABLE test_plan_report ADD `execute_rate` DECIMAL(10, 4) COMMENT '执行率';
ALTER TABLE test_plan_report ADD `parent_id` VARCHAR(50) COMMENT '独立报告的父级ID';
ALTER TABLE test_plan_report DROP `execute_time`;
ALTER TABLE test_plan_report ADD `test_plan_name` VARCHAR(255) NOT NULL COMMENT '测试计划名称';
-- 计划报告功能用例明细表
ALTER TABLE test_plan_report_function_case ADD `test_plan_collection_id` VARCHAR(50) NOT NULL COMMENT '测试集ID';

View File

@ -16,6 +16,8 @@ public class TestPlanReportDetailResponse {
private String id;
@Schema(description = "报告名称")
private String name;
@Schema(description = "计划名称")
private String testPlanName;
@Schema(description = "报告创建时间")
private Long createTime;
@Schema(description = "报告开始(执行)时间")

View File

@ -99,19 +99,17 @@
<select id="getPlanReportListById"
resultType="io.metersphere.plan.dto.response.TestPlanReportDetailResponse">
SELECT tpr.id,
tp.name,
tpr.result_status,
tpr.pass_rate,
tpc.pass_threshold,
SELECT tpr.id,
tpr.test_plan_name,
tpr.result_status,
tpr.pass_rate,
tpr.pass_threshold,
(tprs.functional_case_count + tprs.api_case_count + tprs.api_scenario_count + tprs.bug_count) as caseTotal,
tpr.create_time,
tpr.deleted
from test_plan_report tpr
INNER JOIN test_plan tp on tpr.test_plan_id = tp.id
INNER JOIN test_plan_report_summary tprs on tpr.id = tprs.test_plan_report_id
INNER JOIN test_plan_config tpc on tp.id = tpc.test_plan_id
INNER JOIN test_plan_report_summary tprs on tpr.id = tprs.test_plan_report_id
<include refid="queryWhereConditionByParentId"/>
</select>

View File

@ -290,7 +290,7 @@ public class TestPlanReportService {
* 预生成报告内容(汇总前调用)
* @return 报告
*/
public TestPlanReport preGenReport(String prepareId,TestPlanReportGenPreParam genParam, String currentUser, String logPath, TestPlanReportModuleParam moduleParam, List<String> childPlanIds) {
public TestPlanReport preGenReport(String prepareId, TestPlanReportGenPreParam genParam, String currentUser, String logPath, TestPlanReportModuleParam moduleParam, List<String> childPlanIds) {
// 计划配置
TestPlanConfig config = testPlanConfigMapper.selectByPrimaryKey(genParam.getTestPlanId());

View File

@ -599,6 +599,7 @@ public class TestPlanTests extends BaseTest {
testPlanReport.setProjectId(project.getId());
testPlanReport.setIntegrated(false);
testPlanReport.setDeleted(false);
testPlanReport.setTestPlanName("test");
batchInsert.insert(testPlanReport);
}
sqlSession.flushStatements();

View File

@ -2,13 +2,13 @@ replace INTO `test_plan`(`id`, `num`, `project_id`, `group_id`, `module_id`, `na
VALUES ('test_plan_id_1', 5000, '100001100001', 'NONE', '1', '测试一下计划', 'PREPARED', 'TEST_PLAN', NULL,
1714980158000, 'WX', 1714980158000, 'WX', 1714980158000, 1714980158000, 1714980158000, 1714980158000, '11');
replace INTO `test_plan_report`(`id`, `test_plan_id`, `name`, `create_user`, `create_time`, `start_time`, `end_time`, `trigger_mode`, `exec_status`, `result_status`, `pass_threshold`, `pass_rate`, `project_id`, `integrated`, `deleted`, `parent_id`)
replace INTO `test_plan_report`(`id`, `test_plan_id`, `name`, `create_user`, `create_time`, `start_time`, `end_time`, `trigger_mode`, `exec_status`, `result_status`, `pass_threshold`, `pass_rate`, `project_id`, `integrated`, `deleted`, `parent_id`, `test_plan_name`)
VALUES
('test-plan-report-id-1', 'test_plan_id_1', '测试一下计划报告1', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', 'SUCCESS', '99.99', 100.00, '100001100001', 1, 0, null),
('test-plan-report-id-2', 'test_plan_id_1', '测试一下计划报告1', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001', 0, 0, null),
('test-plan-report-id-3', 'test_plan_id_1', '测试一下计划报告3', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001',1, 0, null),
('test-plan-report-id-4', 'test_plan_id_1', '测试一下计划报告4', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001', 1, 0, null),
('test-plan-report-id-1-1', 'test_plan_id_1', '测试一下计划报告1-1', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001', 1, 0, 'test-plan-report-id-1'),
('test-plan-report-id-1-2', 'test_plan_id_1', '测试一下计划报告1-2', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001', 1, 0, 'test-plan-report-id-1');
('test-plan-report-id-1', 'test_plan_id_1', '测试一下计划报告1', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', 'SUCCESS', '99.99', 100.00, '100001100001', 1, 0, null, '测试一下计划'),
('test-plan-report-id-2', 'test_plan_id_1', '测试一下计划报告1', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001', 0, 0, null, '测试一下计划'),
('test-plan-report-id-3', 'test_plan_id_1', '测试一下计划报告3', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001',1, 0, null, '测试一下计划'),
('test-plan-report-id-4', 'test_plan_id_1', '测试一下计划报告4', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001', 1, 0, null, '测试一下计划'),
('test-plan-report-id-1-1', 'test_plan_id_1', '测试一下计划报告1-1', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001', 1, 0, 'test-plan-report-id-1', '测试一下计划'),
('test-plan-report-id-1-2', 'test_plan_id_1', '测试一下计划报告1-2', 'admin', UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, UNIX_TIMESTAMP()*1000, 'MANUAL', 'RUNNING', '-', '99.99', 100.00, '100001100001', 1, 0, 'test-plan-report-id-1', '测试一下计划');

View File

@ -7,16 +7,16 @@ INSERT INTO `test_plan`(`id`, `num`, `project_id`, `group_id`, `module_id`, `nam
VALUES ('test-plan-id-for992', 100003, '100001100001', 'NONE', '1', '测试一下计划-992', 'PREPARED', 'TEST_PLAN', NULL, CURRENT_TIMESTAMP, 'admin', CURRENT_TIMESTAMP, 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, '11');
-- 计划报告测试数据
INSERT INTO `test_plan_report`(`id`, `test_plan_id`, `name`, `create_user`, `create_time`, `start_time`, `end_time`, `trigger_mode`, `exec_status`, `result_status`, `pass_threshold`, `pass_rate`, `project_id`, `integrated`, `deleted`, `parent_id`) VALUES
('test-plan-report-id-1', 'test-plan-id-for991', '测试一下计划报告1', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', 'SUCCESS', '99.99', 100.00, '100001100001', 0, 0, null),
('test-plan-report-id-2', 'test-plan-id-for991', '测试一下计划报告1', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 0, 0, null),
('test-plan-report-id-3', 'test-plan-id-for992', '测试一下计划报告3', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001',1, 0, null),
('test-plan-report-id-4', 'test-plan-id-for992', '测试一下计划报告4', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 1, 0, null),
('test-plan-report-id-5', 'test-plan-id-for992', '测试一下计划报告5', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 1, 0, null),
('test-plan-report-id-6', 'test-plan-id-for992', '测试一下计划报告6', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 0, 0, 'test-plan-report-id-5'),
('test-plan-report-id-7', 'test-plan-id-for992', '测试一下计划报告7', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 1, 0, null),
('test-plan-report-id-8', 'test-plan-id-for992', '测试一下计划报告8', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 0, 0, 'test-plan-report-id-7'),
('test-plan-report-id-9', 'test-plan-id-for992', '测试一下计划报告9', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 0, 1, null);
INSERT INTO `test_plan_report`(`id`, `test_plan_id`, `name`, `create_user`, `create_time`, `start_time`, `end_time`, `trigger_mode`, `exec_status`, `result_status`, `pass_threshold`, `pass_rate`, `project_id`, `integrated`, `deleted`, `parent_id`, `test_plan_name`) VALUES
('test-plan-report-id-1', 'test-plan-id-for991', '测试一下计划报告1', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', 'SUCCESS', '99.99', 100.00, '100001100001', 0, 0, null, '测试一下计划-991'),
('test-plan-report-id-2', 'test-plan-id-for991', '测试一下计划报告1', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 0, 0, null, '测试一下计划-991'),
('test-plan-report-id-3', 'test-plan-id-for992', '测试一下计划报告3', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001',1, 0, null, '测试一下计划-992'),
('test-plan-report-id-4', 'test-plan-id-for992', '测试一下计划报告4', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 1, 0, null, '测试一下计划-992'),
('test-plan-report-id-5', 'test-plan-id-for992', '测试一下计划报告5', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 1, 0, null, '测试一下计划-992'),
('test-plan-report-id-6', 'test-plan-id-for992', '测试一下计划报告6', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 0, 0, 'test-plan-report-id-5', '测试一下计划-992'),
('test-plan-report-id-7', 'test-plan-id-for992', '测试一下计划报告7', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 1, 0, null, '测试一下计划-992'),
('test-plan-report-id-8', 'test-plan-id-for992', '测试一下计划报告8', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 0, 0, 'test-plan-report-id-7', '测试一下计划-992'),
('test-plan-report-id-9', 'test-plan-id-for992', '测试一下计划报告9', 'admin', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'MANUAL', 'PENDING', '-', '99.99', 100.00, '100001100001', 0, 1, null, '测试一下计划-992');
INSERT INTO `test_plan_report_summary` (`id`, `functional_case_count`, `api_case_count`, `api_scenario_count`, `bug_count`, `test_plan_report_id`, `summary`, `plan_count`) VALUES
('test-plan-report-summary-1', 0, 0, 0, 0, 'test-plan-report-id-5', '', 0),