overview统计
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user