|
@@ -3,7 +3,6 @@ package com.uas.erp.database.api.v1;
|
|
|
import com.uas.erp.database.entity.DBA;
|
|
import com.uas.erp.database.entity.DBA;
|
|
|
import com.uas.erp.database.service.DBAService;
|
|
import com.uas.erp.database.service.DBAService;
|
|
|
import com.uas.erp.database.service.MasterService;
|
|
import com.uas.erp.database.service.MasterService;
|
|
|
-import com.uas.erp.database.support.BackupDBFileUtils;
|
|
|
|
|
import com.uas.erp.database.web.ResponseWrap;
|
|
import com.uas.erp.database.web.ResponseWrap;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.http.ResponseEntity;
|
|
@@ -30,7 +29,6 @@ public class DBAController {
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
public ResponseEntity save(DBA dba) {
|
|
public ResponseEntity save(DBA dba) {
|
|
|
dbaService.save(dba);
|
|
dbaService.save(dba);
|
|
|
- BackupDBFileUtils.createFile();
|
|
|
|
|
masterService.scanAll();
|
|
masterService.scanAll();
|
|
|
return ResponseWrap.ok();
|
|
return ResponseWrap.ok();
|
|
|
}
|
|
}
|
|
@@ -38,7 +36,6 @@ public class DBAController {
|
|
|
@DeleteMapping(path = "/{id}")
|
|
@DeleteMapping(path = "/{id}")
|
|
|
public ResponseEntity delete(@PathVariable("id") long id) {
|
|
public ResponseEntity delete(@PathVariable("id") long id) {
|
|
|
dbaService.delete(id);
|
|
dbaService.delete(id);
|
|
|
- BackupDBFileUtils.createFile();
|
|
|
|
|
masterService.scanAll();
|
|
masterService.scanAll();
|
|
|
return ResponseWrap.ok();
|
|
return ResponseWrap.ok();
|
|
|
}
|
|
}
|