日志备份功能
This commit is contained in:
parent
9d567dea7a
commit
4c25f7d7fa
|
|
@ -56,4 +56,7 @@ public class SystemGlobal {
|
||||||
|
|
||||||
//
|
//
|
||||||
public final static String LOG_TYPE="1";
|
public final static String LOG_TYPE="1";
|
||||||
|
|
||||||
|
//身份证识别成功码
|
||||||
|
public final static String IDCARD_RECORD_SUCCESS="20000";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ public class ParamSecureHandler implements AsyncHandlerInterceptor {
|
||||||
|
|
||||||
private static String OPERLOG_URL = "/operlog/addLogs";
|
private static String OPERLOG_URL = "/operlog/addLogs";
|
||||||
private static final String REGISTER = "/user/register";
|
private static final String REGISTER = "/user/register";
|
||||||
|
private static final String RECOGNITION = "/ocr/recognition";
|
||||||
private String rnd = null;
|
private String rnd = null;
|
||||||
|
|
||||||
public static String ur = "/";
|
public static String ur = "/";
|
||||||
|
|
@ -71,6 +72,9 @@ public class ParamSecureHandler implements AsyncHandlerInterceptor {
|
||||||
if (REGISTER.equals(requestUrl)) {
|
if (REGISTER.equals(requestUrl)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (RECOGNITION.equals(requestUrl)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 白名单中不验证参数
|
* 白名单中不验证参数
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ public class SysLogServiceImpl implements ISysLogService {
|
||||||
int allNum= all.stream().mapToInt(SysLogsVo::getNum).sum();
|
int allNum= all.stream().mapToInt(SysLogsVo::getNum).sum();
|
||||||
map.put("allNum",allNum);
|
map.put("allNum",allNum);
|
||||||
all.forEach(vo->{
|
all.forEach(vo->{
|
||||||
if("1".equals(vo.getResult())){
|
if(vo.getResult().contains("成功")){
|
||||||
map.put("sNum",vo.getNum());
|
map.put("sNum",vo.getNum());
|
||||||
}else {
|
}else {
|
||||||
map.put("eNum",vo.getNum());
|
map.put("eNum",vo.getNum());
|
||||||
|
|
|
||||||
|
|
@ -183,10 +183,10 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getAllLogs" resultType="com.bonus.system.api.domain.SysLogsVo">
|
<select id="getAllLogs" resultType="com.bonus.system.api.domain.SysLogsVo">
|
||||||
select count(1) num
|
select count(1) num,result
|
||||||
from sys_logs
|
from sys_logs
|
||||||
where oper_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime},' 23:59:59')
|
where oper_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime},' 23:59:59')
|
||||||
GROUP BY log_type
|
GROUP BY result
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getModuleName" resultType="java.lang.String">
|
<select id="getModuleName" resultType="java.lang.String">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue