|
|
@@ -5,6 +5,7 @@ import com.uas.erp.database.domain.Master;
|
|
|
import com.uas.erp.database.entity.DBA;
|
|
|
import com.uas.erp.database.repository.BaseRepository;
|
|
|
import com.uas.erp.database.repository.DBARepository;
|
|
|
+import com.uas.erp.database.support.BackupDBFileUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
@@ -34,7 +35,8 @@ public class DBAService {
|
|
|
if (null != oldOne) {
|
|
|
dba.setId(oldOne.getId());
|
|
|
}
|
|
|
- dbaRepository.save(dba);
|
|
|
+ DBA save = dbaRepository.save(dba);
|
|
|
+ BackupDBFileUtils.createFile();
|
|
|
}
|
|
|
|
|
|
public void save(List<DBA> dbas) {
|
|
|
@@ -49,6 +51,7 @@ public class DBAService {
|
|
|
|
|
|
public void delete(long id) {
|
|
|
dbaRepository.delete(id);
|
|
|
+ BackupDBFileUtils.createFile();
|
|
|
}
|
|
|
|
|
|
/**
|