解决日志分页问题,修改查询条件为tracecode

This commit is contained in:
RenKaiGe-Office
2018-08-07 15:50:12 +08:00
parent 8190e85cc1
commit 8b47d39ae7
3 changed files with 5 additions and 4 deletions

View File

@@ -73,9 +73,7 @@ public class Page<T> {
* @param response 用于设置 Cookie记住页码 * @param response 用于设置 Cookie记住页码
*/ */
public Page(HttpServletRequest request, HttpServletResponse response){ public Page(HttpServletRequest request, HttpServletResponse response){
this(request, response,Integer.valueOf(Configurations.getIntProperty("page.pageSize", 30)));
//this(request, response,Integer.valueOf(Configurations.getIntProperty("page.pageSize", 30)));
} }
/** /**
* 构造方法 * 构造方法

View File

@@ -15,6 +15,9 @@
<if test="dbName == 'mssql'">'%'+#{requestContent}+'%'</if> <if test="dbName == 'mssql'">'%'+#{requestContent}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{requestContent}, '%')</if> <if test="dbName == 'mysql'">CONCAT('%', #{requestContent}, '%')</if>
</if> </if>
<if test="traceCode != null and traceCode != ''">
AND a.trace_Code=#{traceCode}
</if>
<if test="exceptionInfo != null and exceptionInfo != ''"> <if test="exceptionInfo != null and exceptionInfo != ''">
AND a.exception_Info LIKE AND a.exception_Info LIKE

View File

@@ -23,7 +23,7 @@
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/> <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/> <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<div> <div>
<label>请求内容</label><input id="requestContent" name="requestContent" type="text" maxlength="500" class="input-mini" value="${swaggerLog.requestContent}"/> <label>traceCode</label><input id="traceCode" name="traceCode" type="text" maxlength="30" class="input-mini" value="${swaggerLog.traceCode}"/>
<label>异常信息:</label><input id="exceptionInfo" name="exceptionInfo" type="text" maxlength="500" class="input-mini" value="${swaggerLog.exceptionInfo}"/> <label>异常信息:</label><input id="exceptionInfo" name="exceptionInfo" type="text" maxlength="500" class="input-mini" value="${swaggerLog.exceptionInfo}"/>
<label>请求ip</label><input id="requestIp" name="requestIp" type="text" maxlength="50" class="input-mini" value="${swaggerLog.requestIp}"/> <label>请求ip</label><input id="requestIp" name="requestIp" type="text" maxlength="50" class="input-mini" value="${swaggerLog.requestIp}"/>
<label>服务端ip</label><input id="serverIp" name="serverIp" type="text" maxlength="50" class="input-mini" value="${swaggerLog.serverIp}"/> <label>服务端ip</label><input id="serverIp" name="serverIp" type="text" maxlength="50" class="input-mini" value="${swaggerLog.serverIp}"/>