fix: 接口用例列表展示了删除的用例
This commit is contained in:
parent
db157c8b8a
commit
3f2ef4100c
|
@ -157,6 +157,14 @@ public class ApiTestCaseService {
|
||||||
i.setPrefix("t1");
|
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);
|
request.setOrders(orders);
|
||||||
}
|
}
|
||||||
if (checkThisWeekData) {
|
if (checkThisWeekData) {
|
||||||
|
|
|
@ -621,7 +621,7 @@
|
||||||
update api_test_case
|
update api_test_case
|
||||||
set original_status=status,
|
set original_status=status,
|
||||||
status = 'Trash',delete_time = #{deleteTime},delete_user_id = #{deleteUserId}
|
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=")">
|
<foreach collection="ids" item="v" separator="," open="(" close=")">
|
||||||
#{v}
|
#{v}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
|
Loading…
Reference in New Issue