zq-erp/src/main/java/com/matrix/system/common/actions/ProjExceptionAction.java | ●●●●● patch | view | raw | blame | history | |
zq-erp/src/main/resources/config/system.properties | ●●●●● patch | view | raw | blame | history | |
zq-erp/src/main/resources/config/test/system.properties | ●●●●● patch | view | raw | blame | history | |
zq-erp/src/main/resources/templates/views/common/showprojException.html | ●●●●● patch | view | raw | blame | history |
zq-erp/src/main/java/com/matrix/system/common/actions/ProjExceptionAction.java
@@ -1,22 +1,16 @@ package com.matrix.system.common.actions; import com.matrix.core.constance.MatrixConstance; import com.matrix.core.pojo.AjaxResult; import com.matrix.core.pojo.PaginationVO; import com.matrix.core.tools.WebUtil; import com.matrix.system.common.bean.ProjException; import com.matrix.system.common.bean.SysUsers; import com.matrix.system.common.constance.AppConstance; import com.matrix.system.common.dao.ProjExceptionDao; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.ModelAndView; import java.util.Arrays; import java.util.List; /** * @author 姜友瑶 @@ -31,12 +25,19 @@ ProjExceptionDao projExceptionDao; @RequestMapping(value = "/showException") public @ResponseBody AjaxResult showException(Long id) { public ModelAndView showException(Long id) { ProjException projException = projExceptionDao.selectById(id); return AjaxResult.buildSuccessInstance(Arrays.asList(projException)); ModelAndView mv = new ModelAndView("common/showprojException"); mv.addObject("obj", projException); return mv; } @RequestMapping(value = "/projException/del") public @ResponseBody AjaxResult del(@RequestBody ProjException projException) { zq-erp/src/main/resources/config/system.properties
@@ -100,9 +100,9 @@ #是否启用异常上报 is_open_exception_report=false showExcptionUrl=http://erp.hive.jyymatrix.cc/showException showExcptionUrl=http://test.hive.jyymatrix.cc/showException #异常信息查询接口 showExcptionUrl=http://erp.hive.jyymatrix.cc/showException showExcptionUrl=http://test.hive.jyymatrix.cc/showException zq-erp/src/main/resources/config/test/system.properties
@@ -93,9 +93,9 @@ #是否启用异常上报 is_open_exception_report=true showExcptionUrl=http://erp.hive.jyymatrix.cc/showException showExcptionUrl=http://test.hive.jyymatrix.cc/showException #异常信息查询接口 showExcptionUrl=http://erp.hive.jyymatrix.cc/showException showExcptionUrl=http://test.hive.jyymatrix.cc/showException zq-erp/src/main/resources/templates/views/common/showprojException.html
New file @@ -0,0 +1,51 @@ <!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org" xmlns:matrix="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <meta name="renderer" content="webkit|ie-comp|ie-stand"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> <meta http-equiv="Cache-Control" content="no-siteapp"/> <LINK rel="Bookmark" href="../images/favicon.ico"> <!-- 本框架基本脚本和样式 --> <link rel="stylesheet" th:href="@{/plugin/bootstrap-3.3.5/css/bootstrap.min.css}"> <link th:href="@{/css/styleOne/style.min.css}" rel="stylesheet" type="text/css"/> </head> <body> <div class="ibox-content" id="app"> <table class="table table-striped table-bordered" style="width: 800px;"> <tr> <td>ID</td> <td th:text="${obj.id}" ></td> <td >姓名</td> <td th:text="${obj.owner}" ></td> </tr> <tr> <td >异常类型</td> <td th:text="${obj.simpleMsg}" ></td> <td >发生时间</td> <td th:text="${#dates.format(obj.createTime, 'yyyy-MM-dd HH:mm:sss')}" > </tr> <tr> <td >访问地址</td> <td th:text="${obj.cause}" ></td> <td >mdc</td> <td th:text="${obj.mdc}" ></td> </tr> </table> <pre th:text="${obj.errorMsg}" ></pre> </div> <script type="text/javascript" th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script> <script type="text/javascript" th:src="@{/js/plugin/jquery.query.js}"></script> <script type="text/javascript" th:src="@{/plugin/bootstrap-3.3.5/js/bootstrap.min.js}"></script> <script type="text/javascript"> </script> </body> </html>