作者 朱兆平

查询搜索优化

... ... @@ -10,7 +10,7 @@
</parent>
<groupId>com.sunyo.wlpt.message.bus.service</groupId>
<artifactId>message_bus_service</artifactId>
<version>1.1.2-kafka</version>
<version>1.1.3-kafka</version>
<name>message_bus_service</name>
<description>消息总线服务</description>
... ...
... ... @@ -261,7 +261,7 @@ public class ElasticSearchInfoServiceImpl implements ElasticSearchInfoService {
//返回分页实体
Page<T> ResponsePage =new PageImpl<T>(res,page,total);
log.info("查询到{}条记录,分别是s:{}",hits.length,s);
//log.info("查询到{}条记录,分别是s:{}",hits.length,s);
return ResponsePage;
} catch (Exception e) {
throw new RuntimeException(e);
... ...
... ... @@ -33,7 +33,7 @@
from message_router_reciver_filter
<where>
<if test="filter!=null and filter!=''">
AND filter = #{filter,jdbcType=VARCHAR}
AND filter like concat('%',#{filter,jdbcType=VARCHAR},'%')
</if>
</where>
</select>
... ...
... ... @@ -44,7 +44,6 @@
<include refid="Base_Column_List" />
from message_type
<where>
parent_id = 0
<if test="id != null and id != ''">
and ID = #{id,jdbcType=VARCHAR}
</if>
... ... @@ -54,6 +53,9 @@
<if test="type !=null and type > 0">
and type = #{type,jdbcType=INTEGER}
</if>
<if test="des != null and des != ''">
and des like concat('%',#{des,jdbcType=VARCHAR},'%')
</if>
</where>
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
... ...