fix: 接口用例列表展示了删除的用例

This commit is contained in:
chenjianxing 2021-09-22 16:25:03 +08:00 committed by jianxing
parent db157c8b8a
commit 3f2ef4100c
2 changed files with 9 additions and 1 deletions

View File

@ -157,6 +157,14 @@ public class ApiTestCaseService {
i.setPrefix("t1");
}
});
if (request.getFilters() != null) {
Map<String, List<String>> filters = request.getFilters();
List<String> status = filters.get("status");
if (status == null) {
// sql 需要有这个字段
filters.put("status", new ArrayList<>());
}
}
request.setOrders(orders);
}
if (checkThisWeekData) {

View File

@ -621,7 +621,7 @@
update api_test_case
set original_status=status,
status = 'Trash',delete_time = #{deleteTime},delete_user_id = #{deleteUserId}
where status != 'Trash' AND id IN
where id IN
<foreach collection="ids" item="v" separator="," open="(" close=")">
#{v}
</foreach>