fix(工作台): 修复工作台仪表板本周创建数量不对的问题
--bug=1025473 --user=宋天阳 【工作台】github#23653,工作台->我的仪表盘->我创建的用例中,本周新增用例数量统计错误 https://www.tapd.cn/55049933/s/1363235
This commit is contained in:
parent
5f09ae7577
commit
c7863d2db3
|
@ -290,7 +290,8 @@
|
||||||
and (ac.status is null or ac.status != 'Trash');
|
and (ac.status is null or ac.status != 'Trash');
|
||||||
</select>
|
</select>
|
||||||
<select id="getUpdateCount" resultType="java.lang.Integer">
|
<select id="getUpdateCount" resultType="java.lang.Integer">
|
||||||
select count(*) from api_test_case ac where ac.project_id = #{projectId,jdbcType=VARCHAR} and ac.create_user_id = #{userId,jdbcType=VARCHAR}
|
select count(*) from api_test_case ac where ac.project_id = #{projectId,jdbcType=VARCHAR} and ac.create_user_id
|
||||||
|
= #{userId,jdbcType=VARCHAR}
|
||||||
and case_status in ('Prepare', 'Underway', 'Completed')
|
and case_status in ('Prepare', 'Underway', 'Completed')
|
||||||
<if test="statusList !=null and statusList.size() > 0">
|
<if test="statusList !=null and statusList.size() > 0">
|
||||||
and ( ac.to_be_updated = 'true' or ac.status
|
and ( ac.to_be_updated = 'true' or ac.status
|
||||||
|
@ -400,6 +401,9 @@
|
||||||
<if test="request.filters == null || request.filters.size() == 0 ">
|
<if test="request.filters == null || request.filters.size() == 0 ">
|
||||||
and (api_test_case.status is null or api_test_case.status != 'Trash')
|
and (api_test_case.status is null or api_test_case.status != 'Trash')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="request.createTime >0 ">
|
||||||
|
AND api_test_case.create_time >= #{request.createTime}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,9 @@
|
||||||
<if test="request.workspaceId != null">
|
<if test="request.workspaceId != null">
|
||||||
AND project.workspace_id = #{request.workspaceId}
|
AND project.workspace_id = #{request.workspaceId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="request.createTime >0 ">
|
||||||
|
AND load_test.create_time >= #{request.createTime}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="getCountFollow" resultType="java.lang.Integer">
|
<select id="getCountFollow" resultType="java.lang.Integer">
|
||||||
|
|
Loading…
Reference in New Issue