find:()增加查询数据方法 查询数据条数
parent
22aec6a24c
commit
c86d94c18b
|
@ -3,9 +3,7 @@ package com.muyu.server.controller;
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.muyu.common.core.domain.Result;
|
||||||
import com.muyu.server.service.DataLinkService;
|
import com.muyu.server.service.DataLinkService;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*@Author:yang
|
*@Author:yang
|
||||||
|
@ -16,6 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
|
@RequestMapping("/dataLink")
|
||||||
public class DataLinkController {
|
public class DataLinkController {
|
||||||
|
|
||||||
private final DataLinkService dataLinkService;
|
private final DataLinkService dataLinkService;
|
||||||
|
@ -27,7 +26,7 @@ public class DataLinkController {
|
||||||
* @return 反护试图
|
* @return 反护试图
|
||||||
*/
|
*/
|
||||||
@PostMapping("/findCount")
|
@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);
|
Long longs = dataLinkService.findCount(dataName,sql);
|
||||||
return Result.success(longs);
|
return Result.success(longs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,7 +142,6 @@ public class DataRunNameServiceImpl implements DataRunNameService {
|
||||||
//在取数据数据遍历里获取表名称查询方法
|
//在取数据数据遍历里获取表名称查询方法
|
||||||
tableIdAndBasicIdByUserId.forEach(tableIdAndBasicId -> {
|
tableIdAndBasicIdByUserId.forEach(tableIdAndBasicId -> {
|
||||||
|
|
||||||
|
|
||||||
List<TableNames> tableNames = this.dataDeptShow(tableIdAndBasicId, dataName);
|
List<TableNames> tableNames = this.dataDeptShow(tableIdAndBasicId, dataName);
|
||||||
|
|
||||||
set.addAll(tableNames);
|
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
Loading…
Reference in New Issue