#AI
Junjie
6 天以前 5aa5ba79b8f09f87217b9f1eb7267a40c598e63c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.zy.asrs.service.impl;
 
import com.zy.asrs.mapper.DeviceDataLogMapper;
import com.zy.asrs.entity.DeviceDataLog;
import com.zy.asrs.service.DeviceDataLogService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
 
@Service("deviceDataLogService")
public class DeviceDataLogServiceImpl extends ServiceImpl<DeviceDataLogMapper, DeviceDataLog> implements DeviceDataLogService {
 
    @Override
    public int clearLog(int expireDays) {
        return this.baseMapper.clearLog(expireDays);
    }
 
    @Override
    public boolean saveBatch(java.util.List<DeviceDataLog> list) {
        if (list == null || list.isEmpty()) {
            return true;
        }
        return this.baseMapper.insertBatch(list) > 0;
    }
}