刘帅
2026-09-11 d19bf53133f245a16543f5fc80d072bf0401f0ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.dsh.other.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsh.other.entity.SysAccountAuditLog;
import com.dsh.other.mapper.SysAccountAuditLogMapper;
import com.dsh.other.service.SysAccountAuditLogService;
import org.springframework.stereotype.Service;
 
import java.util.Date;
 
@Service
public class SysAccountAuditLogServiceImpl extends ServiceImpl<SysAccountAuditLogMapper, SysAccountAuditLog>
        implements SysAccountAuditLogService {
    @Override
    public void append(SysAccountAuditLog auditLog) {
        auditLog.setId(null);
        if (auditLog.getCreatedAt() == null) {
            auditLog.setCreatedAt(new Date());
        }
        if (auditLog.getResult() == null) {
            auditLog.setResult("SUCCESS");
        }
        auditLog.setIsDeleted(0);
        save(auditLog);
    }
}