Commit bd921820 by 田超

Merge branch 'fixbug/1032250' into 'master'

bug: [1032250] 【生产环境】【平台端】【小睿管理】小睿搜索管理-用户实搜记录接口500

See merge request rays/pcloud-book!1493
parents 08ed8686 29c6a471
...@@ -46,14 +46,13 @@ ...@@ -46,14 +46,13 @@
content, content,
book_id bookId, book_id bookId,
agent_id agentId, agent_id agentId,
count(1) searchCount search_count searchCount
from search_record from search_record_dis
where 1=1 where 1=1
<if test="content!=null"> <if test="content!=null">
and content like CONCAT('%', #{content}, '%') and content like CONCAT('%', #{content}, '%')
</if> </if>
group by order by update_time desc
content,book_id,agent_id
</select> </select>
<select id="getSearchRecordList" parameterType="map" resultMap="BaseResultMap"> <select id="getSearchRecordList" parameterType="map" resultMap="BaseResultMap">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment