Commit b11fc032 by songyinghui

feat: 路径调整

parent 1d4d36e0
......@@ -3,6 +3,7 @@ package com.gic.haoban.manage.web.controller;
import com.alibaba.fastjson.JSON;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.haoban.common.anno.IgnoreLogin;
import com.gic.haoban.manage.web.qo.logrecord.ErrorLogReportQO;
import com.gic.log.record.bean.WebErrorLogReport;
import com.gic.log.record.util.LogWebErrorLogReportUtil;
import org.apache.logging.log4j.LogManager;
......@@ -27,9 +28,13 @@ public class TabHaobanAppLogController {
@ResponseBody
@IgnoreLogin
@com.gic.web.common.ano.IgnoreLogin
public RestResponse<Boolean> insertLog(@RequestBody WebErrorLogReport qo) {
public RestResponse<Boolean> insertLog(@RequestBody ErrorLogReportQO qo) {
logger.info("插入日志的参数:{}", JSON.toJSONString(qo));
qo.setCreateTime(new Date());
if (qo.getType() != null && qo.getType() == 1) {
logger.info("TabHaobanAppLogController 日志内容:{}", JSON.toJSONString(qo));
return RestResponse.successResult();
}
LogWebErrorLogReportUtil.pushWebErrorLogReport(qo);
return RestResponse.successResult();
}
......
package com.gic.haoban.manage.web.qo.logrecord;
import com.gic.log.record.bean.WebErrorLogReport;
/**
* @Author MUSI
* @Date 2023/8/15 2:27 PM
* @Description
* @Version
**/
public class ErrorLogReportQO extends WebErrorLogReport {
private static final long serialVersionUID = -2657084366633675726L;
/**
* 0 获取null 正常记录
* 1 只记录log日志,不记录到ES
*/
private Integer type;
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
}
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