Commit a61fd045 by 墨竹

fix:模糊搜索

parent d1f1b919
......@@ -18,7 +18,8 @@
id, wx_enterprise_id,corpid,qywx_interface,scenario, error_content, wework_error_url, trace_id, qywx_error_type, create_time </sql>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true" parameterType="com.gic.haoban.manage.service.entity.TabQywxErrorLog">
<insert id="insert" keyProperty="id" useGeneratedKeys="true"
parameterType="com.gic.haoban.manage.service.entity.TabQywxErrorLog">
INSERT INTO tab_qywx_error_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
......@@ -137,7 +138,8 @@
</select>
<!--通过实体作为筛选条件查询-->
<select id="queryListByPage" parameterType="com.gic.haoban.manage.api.dto.qdto.QywxErrorLogListQDTO" resultMap="TabQywxErrorLogMap">
<select id="queryListByPage" parameterType="com.gic.haoban.manage.api.dto.qdto.QywxErrorLogListQDTO"
resultMap="TabQywxErrorLogMap">
select
<include refid="Base_Column_List"/>
from tab_qywx_error_log
......@@ -146,7 +148,7 @@
and wx_enterprise_id = #{wxEnterpriseId}
</if>
<if test="scenario != null and scenario != ''">
and scenario = #{scenario}
and scenario like CONCAT('%',#{scenario},'%')
</if>
<if test="qywxErrorType != null">
and qywx_error_type = #{qywxErrorType}
......
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