|
|
|
@ -39,7 +39,7 @@ public class TcDataSourceController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 查询数据来源列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:source:list')")
|
|
|
|
|
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public TableDataInfo list(TcDataSource tcDataSource)
|
|
|
|
|
{
|
|
|
|
@ -51,7 +51,7 @@ public class TcDataSourceController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 导出数据来源列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:source:export')")
|
|
|
|
|
|
|
|
|
|
@Log(title = "数据来源", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, TcDataSource tcDataSource)
|
|
|
|
@ -64,7 +64,7 @@ public class TcDataSourceController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 获取数据来源详细信息
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:source:query')")
|
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
|
|
{
|
|
|
|
@ -74,8 +74,6 @@ public class TcDataSourceController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 新增数据来源
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:source:add')")
|
|
|
|
|
@Log(title = "数据来源", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@RequestBody TcDataSource tcDataSource)
|
|
|
|
|
{
|
|
|
|
@ -85,8 +83,7 @@ public class TcDataSourceController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 修改数据来源
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:source:edit')")
|
|
|
|
|
@Log(title = "数据来源", businessType = BusinessType.UPDATE)
|
|
|
|
|
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody TcDataSource tcDataSource)
|
|
|
|
|
{
|
|
|
|
@ -96,8 +93,8 @@ public class TcDataSourceController extends BaseController
|
|
|
|
|
/**
|
|
|
|
|
* 删除数据来源
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:source:remove')")
|
|
|
|
|
@Log(title = "数据来源", businessType = BusinessType.DELETE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
|
|
{
|
|
|
|
|