Forráskód Böngészése

1.增加接口日志和接口异常日志的参数值模糊查找。

zjh 2 éve
szülő
commit
917d64a227

+ 3 - 0
cbkj_web_api/src/main/resources/mappers/sysMappers/SysLogInterfaceErrorMapper.xml

@@ -107,6 +107,9 @@
             <if test=" endTime!=null ">
                 and CREATE_TIME &lt;= #{endTime}
             </if>
+            <if test=" interfaceParams != null and interfaceParams!='' ">
+                and INTERFACE_PARAMS like CONCAT('%',trim(#{interfaceParams}),'%')
+            </if>
         </where>
         order by CREATE_TIME desc
     </select>

+ 3 - 0
cbkj_web_api/src/main/resources/mappers/sysMappers/SysLogInterfaceMapper.xml

@@ -115,6 +115,9 @@
             <if test=" endTime!=null ">
                 and CREATE_TIME &lt;= #{endTime}
             </if>
+            <if test=" interfaceParams!=null and interfaceParams!=''">
+                and INTERFACE_PARAMS like CONCAT('%',trim(#{interfaceParams}),'%')
+            </if>
         </where>
         order by CREATE_TIME desc
     </select>