- 后端:增加异常日志的记录
This commit is contained in:
parent
6697f4f723
commit
5e23c138e1
@ -32,9 +32,6 @@ public class DataDictServiceImpl implements DataDictService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CommonResult<List<DataDictBO>> selectDataDictList() {
|
public CommonResult<List<DataDictBO>> selectDataDictList() {
|
||||||
if (true) {
|
|
||||||
throw new NullPointerException("阿拉啦啦啦");
|
|
||||||
}
|
|
||||||
List<DataDictDO> dataDicts = dataDictMapper.selectList();
|
List<DataDictDO> dataDicts = dataDictMapper.selectList();
|
||||||
return CommonResult.success(DataDictConvert.INSTANCE.convert(dataDicts));
|
return CommonResult.success(DataDictConvert.INSTANCE.convert(dataDicts));
|
||||||
}
|
}
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="cn.iocoder.mall.admin.dao.AccessLogMapper">
|
|
||||||
|
|
||||||
<!--<sql id="FIELDS">-->
|
|
||||||
<!--id, username, nickname, password, status,-->
|
|
||||||
<!--create_time-->
|
|
||||||
<!--</sql>-->
|
|
||||||
|
|
||||||
<!-- <insert id="insert" parameterType="AccessLogDO" useGeneratedKeys="true" keyColumn="id" keyProperty="id">-->
|
|
||||||
<!-- INSERT INTO access_log (-->
|
|
||||||
<!-- trace_id, user_id, user_type, uri, query_string, method, user_agent,-->
|
|
||||||
<!-- ip, start_time, response_time, error_code, error_message, create_time-->
|
|
||||||
<!-- ) VALUES (-->
|
|
||||||
<!-- #{traceId}, #{userId}, #{userType}, #{uri}, #{queryString}, #{method}, #{userAgent},-->
|
|
||||||
<!-- #{ip}, #{startTime}, #{responseTime}, #{errorCode}, #{errorMessage}, #{createTime}-->
|
|
||||||
<!-- )-->
|
|
||||||
<!-- </insert>-->
|
|
||||||
|
|
||||||
</mapper>
|
|
Loading…
Reference in New Issue
Block a user