package com.persagy.bdtp.adm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.persagy.bdtp.adm.dao.AdmUploadLogMapper;
import com.persagy.bdtp.adm.entity.db.AdmUploadLog;
import com.persagy.bdtp.adm.service.IAdmLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor
public class AdmLogServiceImpl extends ServiceImpl<AdmUploadLogMapper, AdmUploadLog> implements IAdmLogService {

	private final AdmUploadLogMapper uploadLogMapper;

	@Override
	public void saveUploadLog(List<AdmUploadLog> logs) {
		saveBatch(logs);
	}

	@Override
	public void saveUploadLog(AdmUploadLog log) {
		save(log);
	}

}
