refactor(测试跟踪): 优化串行测试计划队列的储存方法

This commit is contained in:
Jianguo-Genius 2024-05-22 10:40:19 +08:00 committed by 刘瑞斌
parent d591fc433a
commit 3b81f70c87
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import java.util.List;
public class ExtTestPlanExecutionQueueProvider {
public String insertListSql(List<TestPlanExecutionQueue> list) {
StringBuffer sqlList = new StringBuffer();
sqlList.append("insert into test_plan_execution_queue (id,report_id, run_mode, create_time, test_plan_id, resource_id, num, execute_user) values ");
sqlList.append("insert into test_plan_execution_queue (id,report_id, run_mode, create_time, test_plan_id, resource_id, execute_user, num) values ");
for (int i = 0; i < list.size(); i++) {
TestPlanExecutionQueue result = list.get(i);
sqlList.append(" (")
@ -23,10 +23,10 @@ public class ExtTestPlanExecutionQueueProvider {
.append(result.getTestPlanId())
.append("','")
.append(result.getResourceId())
.append("','")
.append(result.getExecuteUser())
.append("',")
.append(result.getNum())
.append("',")
.append(result.getExecuteUser())
.append(")");
if (i < list.size() - 1) {
sqlList.append(",");