overview统计

This commit is contained in:
2026-01-01 16:19:55 +08:00
parent eb15706ccc
commit b53faca120
17 changed files with 425 additions and 40 deletions

View File

@@ -158,6 +158,9 @@
<if test="filter.status != null and filter.status != ''">AND status = #{filter.status}</if>
<if test="filter.guestId != null and filter.guestId != ''">AND guest_id = #{filter.guestId}</if>
<if test="filter.guestName != null and filter.guestName != ''">AND guest_name LIKE CONCAT('%', #{filter.guestName}, '%')</if>
<if test="filter.startTime != null and filter.endTime != null">
AND create_time BETWEEN #{filter.startTime} AND #{filter.endTime}
</if>
AND deleted = false
</where>
</select>

View File

@@ -83,6 +83,9 @@
</if>
</where>
ORDER BY frequency DESC, create_time DESC
<if test="filter.limit != null and filter.limit > 0">
LIMIT #{filter.limit}
</if>
</select>
<select id="selectWordCloudPage" resultMap="BaseResultMap">

View File

@@ -207,4 +207,13 @@
</where>
</select>
<select id="countWorkcasesByType" resultType="org.xyzh.api.workcase.dto.TbWorkcaseDTO">
SELECT type, COUNT(*) as count
FROM workcase.tb_workcase
WHERE create_time BETWEEN #{filter.startTime} AND #{filter.endTime}
AND deleted = false
GROUP BY type
ORDER BY count DESC
</select>
</mapper>