日志备份功能

This commit is contained in:
lizhenhua 2024-07-24 16:07:12 +08:00
parent 9d567dea7a
commit 4c25f7d7fa
4 changed files with 10 additions and 3 deletions

View File

@ -56,4 +56,7 @@ public class SystemGlobal {
//
public final static String LOG_TYPE="1";
//身份证识别成功码
public final static String IDCARD_RECORD_SUCCESS="20000";
}

View File

@ -37,6 +37,7 @@ public class ParamSecureHandler implements AsyncHandlerInterceptor {
private static String OPERLOG_URL = "/operlog/addLogs";
private static final String REGISTER = "/user/register";
private static final String RECOGNITION = "/ocr/recognition";
private String rnd = null;
public static String ur = "/";
@ -71,6 +72,9 @@ public class ParamSecureHandler implements AsyncHandlerInterceptor {
if (REGISTER.equals(requestUrl)) {
return true;
}
if (RECOGNITION.equals(requestUrl)) {
return true;
}
/**
* 白名单中不验证参数
*/

View File

@ -190,7 +190,7 @@ public class SysLogServiceImpl implements ISysLogService {
int allNum= all.stream().mapToInt(SysLogsVo::getNum).sum();
map.put("allNum",allNum);
all.forEach(vo->{
if("1".equals(vo.getResult())){
if(vo.getResult().contains("成功")){
map.put("sNum",vo.getNum());
}else {
map.put("eNum",vo.getNum());

View File

@ -183,10 +183,10 @@
</select>
<select id="getAllLogs" resultType="com.bonus.system.api.domain.SysLogsVo">
select count(1) num
select count(1) num,result
from sys_logs
where oper_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime},' 23:59:59')
GROUP BY log_type
GROUP BY result
</select>
<select id="getModuleName" resultType="java.lang.String">