refactor(测试跟踪): 优化串行测试计划队列的储存方法
This commit is contained in:
parent
d591fc433a
commit
3b81f70c87
|
@ -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(",");
|
||||
|
|
Loading…
Reference in New Issue