fix(工作台): 修复工作台仪表板本周创建数量不对的问题

--bug=1025473 --user=宋天阳
【工作台】github#23653,工作台->我的仪表盘->我创建的用例中,本周新增用例数量统计错误
https://www.tapd.cn/55049933/s/1363235
This commit is contained in:
建国 2023-04-17 11:13:08 +08:00 committed by 建国
parent 5f09ae7577
commit c7863d2db3
2 changed files with 15 additions and 8 deletions

View File

@ -290,7 +290,8 @@
and (ac.status is null or ac.status != 'Trash');
</select>
<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')
<if test="statusList !=null and statusList.size() > 0">
and ( ac.to_be_updated = 'true' or ac.status
@ -400,6 +401,9 @@
<if test="request.filters == null || request.filters.size() == 0 ">
and (api_test_case.status is null or api_test_case.status != 'Trash')
</if>
<if test="request.createTime >0 ">
AND api_test_case.create_time >= #{request.createTime}
</if>
</where>
</sql>

View File

@ -154,6 +154,9 @@
<if test="request.workspaceId != null">
AND project.workspace_id = #{request.workspaceId}
</if>
<if test="request.createTime >0 ">
AND load_test.create_time >= #{request.createTime}
</if>
</where>
</select>
<select id="getCountFollow" resultType="java.lang.Integer">