Commit e9b2e3c6 authored by 宋源硕's avatar 宋源硕

Merge branch 'songyuanshuo' into 'dev'

1.科恩快速创建检测任务接口 将80:8089 改成77:8090 2.定时任务获取测试用例完成情况时,若科恩平台将用例恢复测试,子任务完成进度不会变。加条where语句

See merge request !451
parents 46f8b964 f4d17bcc
......@@ -820,7 +820,7 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
RequestBody body = RequestBody.create(mediaType, "{\"query\":\"mutation quickCreateProjct($name:String$description:String$useCaseList:[ID!]$duplicatedUseCaseList:[UseCaseWithDuplicateDimension!]){project{quickCreateProject(input:{name:$name description:$description useCaseIDList:$useCaseList duplicatedUseCases:$duplicatedUseCaseList}){id name status description createTime}}}\",\"variables\":"+ request +"}");
Request requestKE = new Request.Builder()
.url("http://10.12.48.80:8089/api/query")
.url("http://10.12.48.77:8090/api/query")
.method("POST", body)
.addHeader("Content-Type", "application/json")
// TODO 连接
......
......@@ -28,7 +28,7 @@
</select>
<select id="countResult" resultType="java.lang.Long">
SELECT COUNT(*) FROM t_test_records
WHERE project_id = #{projectId} and test_result != 'IGNORED'
WHERE project_id = #{projectId} and test_result != 'IGNORED' and test_result != 'UNPROCESSED'
GROUP BY project_id
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment