刘帅
2026-09-21 3f45e8fdfa31d7b764d60a7c0cb5dd11944ed418
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);
    }
}