|
@@ -3,7 +3,6 @@ package com.km.db.controller;
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
import com.km.common.core.core.domain.CommonResult;
|
|
|
import com.km.common.core.core.page.PageResult;
|
|
|
-import com.km.common.excel.utils.ExcelUtil;
|
|
|
import com.km.common.log.annotation.Log;
|
|
|
import com.km.common.log.enums.BusinessType;
|
|
|
import com.km.common.web.annotation.RepeatSubmit;
|
|
@@ -12,7 +11,6 @@ import com.km.db.domain.bo.DatabaseConnectionBo;
|
|
|
import com.km.db.domain.vo.DatabaseConnectionVo;
|
|
|
import com.km.db.service.IDatabaseConnectionService;
|
|
|
import jakarta.annotation.Resource;
|
|
|
-import jakarta.servlet.http.HttpServletResponse;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
@@ -24,8 +22,6 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
/**
|
|
|
* 数据库链接Controller
|
|
|
*
|
|
@@ -49,17 +45,6 @@ public class DatabaseConnectionController extends BaseController {
|
|
|
return CommonResult.success(databaseConnectionService.selectPage(databaseConnectionBo));
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 导出数据库链接列表
|
|
|
- */
|
|
|
- @SaCheckPermission("db:connection:export")
|
|
|
- @Log(title = "数据库链接", businessType = BusinessType.EXPORT)
|
|
|
- @PostMapping("/export")
|
|
|
- public void export(HttpServletResponse response, DatabaseConnectionBo databaseConnectionBo) {
|
|
|
- List<DatabaseConnectionVo> list = databaseConnectionService.selectList(databaseConnectionBo);
|
|
|
- ExcelUtil.exportExcel(list, "数据库链接", DatabaseConnectionVo.class, response);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 获取数据库链接详细信息
|
|
|
*/
|