mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
🐛 Fixing a bug. 列表查询条件不起作用
This commit is contained in:
1 parent
a01dc04b2a
commit
e76bfd4b6f
2 files changed
+8
-11
No files matched your search
+5
-9
@@ -18,6 +18,7 @@
|
||||
package com.pig4cloud.pigx.codegen.mapper;
|
||||
|
||||
import com.pig4cloud.pigx.common.core.util.Query;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -34,20 +35,14 @@ public interface SysGeneratorMapper {
|
||||
* 分页查询表格
|
||||
*
|
||||
* @param params
|
||||
* @param tableName
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> queryList(Query params);
|
||||
|
||||
/**
|
||||
* 查询表数量
|
||||
*
|
||||
* @param query
|
||||
* @return
|
||||
*/
|
||||
int queryTotal(Map query);
|
||||
List<Map<String, Object>> queryList(Query params, @Param("tableName") Object tableName);
|
||||
|
||||
/**
|
||||
* 查询表信息
|
||||
*
|
||||
* @param tableName 表名称
|
||||
* @return
|
||||
*/
|
||||
@@ -55,6 +50,7 @@ public interface SysGeneratorMapper {
|
||||
|
||||
/**
|
||||
* 查询表列信息
|
||||
*
|
||||
* @param tableName 表名称
|
||||
* @return
|
||||
*/
|
||||
|
||||
+3
-2
@@ -50,8 +50,9 @@ public class SysGeneratorServiceImpl implements SysGeneratorService {
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<Map<String,Object>> queryPage(Query query) {
|
||||
return sysGeneratorMapper.queryList(query);
|
||||
public List<Map<String, Object>> queryPage(Query query) {
|
||||
Object tableName = query.getCondition().get("tableName");
|
||||
return sysGeneratorMapper.queryList(query, tableName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user