调整获取所有库表不分页
This commit is contained in:
parent
d59c9de38a
commit
088fffe836
|
|
@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*;
|
|||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
|
|
@ -47,14 +48,12 @@ public class GenController {
|
|||
* 所有库表
|
||||
*
|
||||
* @author fzr
|
||||
* @param pageParam 分页参数
|
||||
* @param params 搜索参数
|
||||
* @return Object
|
||||
*/
|
||||
@GetMapping("/dbAll")
|
||||
public Object dbAll(@Validated PageParam pageParam,
|
||||
@RequestParam Map<String, String> params) {
|
||||
PageResult<DbTableVo> list = iGenerateService.dbAll(pageParam, params);
|
||||
public Object dbAll(@RequestParam Map<String, String> params) {
|
||||
List<DbTableVo> list = iGenerateService.dbAll(params);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,11 +28,10 @@ public interface IGenerateService {
|
|||
* 所有库表
|
||||
*
|
||||
* @author fzr
|
||||
* @param pageParam 分页参数
|
||||
* @param params 搜索参数
|
||||
* @return PageResult<Map<String, String>>
|
||||
*/
|
||||
PageResult<DbTableVo> dbAll(PageParam pageParam, Map<String, String> params);
|
||||
List<DbTableVo> dbAll(Map<String, String> params);
|
||||
|
||||
/**
|
||||
* 生成列表
|
||||
|
|
|
|||
|
|
@ -89,25 +89,19 @@ public class GenerateServiceImpl implements IGenerateService {
|
|||
* 库列表
|
||||
*
|
||||
* @author fzr
|
||||
* @param pageParam 分页参数
|
||||
* @param params 搜索参数
|
||||
* @return PageResult<Map<String, String>>
|
||||
*/
|
||||
@Override
|
||||
public PageResult<DbTableVo> dbAll(PageParam pageParam, Map<String, String> params) {
|
||||
Integer page = pageParam.getPageNo();
|
||||
Integer limit = pageParam.getPageSize();
|
||||
|
||||
PageHelper.startPage(page, limit);
|
||||
public List<DbTableVo> dbAll(Map<String, String> params) {
|
||||
List<DbTableVo> tables = genTableMapper.selectDbTableAllList(params);
|
||||
|
||||
for (DbTableVo vo : tables) {
|
||||
if (vo.getUpdateTime() == null) {
|
||||
vo.setUpdateTime("");
|
||||
}
|
||||
}
|
||||
|
||||
return PageResult.pageHelper(tables);
|
||||
return tables;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue