find:()增加查询数据方法 查询数据条数

master
Yueng 2024-09-07 20:58:53 +08:00
parent 22aec6a24c
commit c86d94c18b
6 changed files with 6664 additions and 6551 deletions

View File

@ -3,9 +3,7 @@ package com.muyu.server.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.server.service.DataLinkService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
*@Authoryang
@ -16,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@RestController
@AllArgsConstructor
@RequestMapping("/dataLink")
public class DataLinkController {
private final DataLinkService dataLinkService;
@ -27,7 +26,7 @@ public class DataLinkController {
* @return
*/
@PostMapping("/findCount")
public Result<Long> findCount(String dataName,String sql){
public Result<Long> findCount(@RequestParam("dataName") String dataName,@RequestParam("sql") String sql){
Long longs = dataLinkService.findCount(dataName,sql);
return Result.success(longs);
}

View File

@ -142,7 +142,6 @@ public class DataRunNameServiceImpl implements DataRunNameService {
//在取数据数据遍历里获取表名称查询方法
tableIdAndBasicIdByUserId.forEach(tableIdAndBasicId -> {
List<TableNames> tableNames = this.dataDeptShow(tableIdAndBasicId, dataName);
set.addAll(tableNames);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long