|
|
|
@ -9,7 +9,6 @@ import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.zongzhi.domain.TcDataSourceTj;
|
|
|
|
|
import com.ruoyi.zongzhi.service.ITcDataSourceTjService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
@ -39,7 +38,6 @@ public class TcDataSourceTjController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 查询数据来源统计列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:sourceTj:list')")
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public TableDataInfo list(TcDataSourceTj tcDataSourceTj) {
|
|
|
|
|
startPage();
|
|
|
|
@ -50,7 +48,6 @@ public class TcDataSourceTjController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 导出数据来源统计列表
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:sourceTj:export')")
|
|
|
|
|
@Log(title = "数据来源统计", businessType = BusinessType.EXPORT)
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, TcDataSourceTj tcDataSourceTj) {
|
|
|
|
@ -62,7 +59,6 @@ public class TcDataSourceTjController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 获取数据来源统计详细信息
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:sourceTj:query')")
|
|
|
|
|
@GetMapping(value = "/{id}")
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
|
|
return success(tcDataSourceTjService.selectTcDataSourceTjById(id));
|
|
|
|
@ -71,7 +67,6 @@ public class TcDataSourceTjController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 新增数据来源统计
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:sourceTj:add')")
|
|
|
|
|
@Log(title = "数据来源统计", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping
|
|
|
|
|
public AjaxResult add(@RequestBody TcDataSourceTj tcDataSourceTj) {
|
|
|
|
@ -81,7 +76,6 @@ public class TcDataSourceTjController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 修改数据来源统计
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:sourceTj:edit')")
|
|
|
|
|
@Log(title = "数据来源统计", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody TcDataSourceTj tcDataSourceTj) {
|
|
|
|
@ -91,7 +85,6 @@ public class TcDataSourceTjController extends BaseController {
|
|
|
|
|
/**
|
|
|
|
|
* 删除数据来源统计
|
|
|
|
|
*/
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('zongzhi:sourceTj:remove')")
|
|
|
|
|
@Log(title = "数据来源统计", businessType = BusinessType.DELETE)
|
|
|
|
|
@DeleteMapping("/{ids}")
|
|
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
|
|