- 后端:增加异常日志的记录

This commit is contained in:
YunaiV 2019-05-11 02:48:51 +08:00
parent 6697f4f723
commit 5e23c138e1
2 changed files with 0 additions and 23 deletions

View File

@ -32,9 +32,6 @@ public class DataDictServiceImpl implements DataDictService {
@Override
public CommonResult<List<DataDictBO>> selectDataDictList() {
if (true) {
throw new NullPointerException("阿拉啦啦啦");
}
List<DataDictDO> dataDicts = dataDictMapper.selectList();
return CommonResult.success(DataDictConvert.INSTANCE.convert(dataDicts));
}

View File

@ -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>