mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-12 18:15:07 +08:00
初始化访问日志、异常日志的插入
This commit is contained in:
@ -32,10 +32,9 @@ public class InfApiAccessLogServiceImpl implements InfApiAccessLogService {
|
||||
@Override
|
||||
@Async
|
||||
public Future<Boolean> createApiAccessLogAsync(ApiAccessLogCreateDTO createDTO) {
|
||||
// 插入
|
||||
InfApiAccessLogDO apiAccessLog = InfApiAccessLogConvert.INSTANCE.convert(createDTO);
|
||||
int insert = apiAccessLogMapper.insert(apiAccessLog);
|
||||
return new AsyncResult<>(insert == 1);
|
||||
return new AsyncResult<>(insert > 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user