| | |
| | | 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 com.baomidou.mybatisplus.extension.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; |
| | | } |
| | | } |