代码修复
This commit is contained in:
@@ -41,42 +41,12 @@ public interface GeneratorService {
|
|||||||
@Async
|
@Async
|
||||||
void sync(JSONObject columnInfos, JSONArray columnInfoList);
|
void sync(JSONObject columnInfos, JSONArray columnInfoList);
|
||||||
|
|
||||||
/**
|
|
||||||
* 保持数据
|
|
||||||
* @param columnInfos /
|
|
||||||
*/
|
|
||||||
// void save(List<ColumnInfo> columnInfos);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取所有table
|
* 获取所有table
|
||||||
* @return /
|
* @return /
|
||||||
*/
|
*/
|
||||||
Object getTables();
|
Object getTables();
|
||||||
|
|
||||||
/**
|
|
||||||
* 代码生成
|
|
||||||
* @param genConfig 配置信息
|
|
||||||
* @param columns 字段信息
|
|
||||||
*/
|
|
||||||
// void generator(GenConfig genConfig, List<ColumnInfo> columns);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 预览
|
|
||||||
* @param genConfig 配置信息
|
|
||||||
* @param columns 字段信息
|
|
||||||
* @return /
|
|
||||||
*/
|
|
||||||
// ResponseEntity<Object> preview(GenConfig genConfig, List<ColumnInfo> columns);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 打包下载
|
|
||||||
* @param genConfig 配置信息
|
|
||||||
* @param columns 字段信息
|
|
||||||
* @param request /
|
|
||||||
* @param response /
|
|
||||||
*/
|
|
||||||
// void download(GenConfig genConfig, List<ColumnInfo> columns, HttpServletRequest request, HttpServletResponse response);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询数据库的表字段数据数据
|
* 查询数据库的表字段数据数据
|
||||||
* @param table /
|
* @param table /
|
||||||
|
|||||||
@@ -41,8 +41,6 @@ import java.io.IOException;
|
|||||||
public class GeneratorServiceImpl implements GeneratorService {
|
public class GeneratorServiceImpl implements GeneratorService {
|
||||||
private static final Logger log = LoggerFactory.getLogger(GeneratorServiceImpl.class);
|
private static final Logger log = LoggerFactory.getLogger(GeneratorServiceImpl.class);
|
||||||
|
|
||||||
@PersistenceContext
|
|
||||||
private EntityManager em;
|
|
||||||
/**
|
/**
|
||||||
* 查询数据库元数据
|
* 查询数据库元数据
|
||||||
*
|
*
|
||||||
@@ -54,6 +52,7 @@ public class GeneratorServiceImpl implements GeneratorService {
|
|||||||
public Object getTables(String name, Pageable pageable) {
|
public Object getTables(String name, Pageable pageable) {
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("flag", "1");
|
map.put("flag", "1");
|
||||||
|
if (ObjectUtil.isNotEmpty(name))
|
||||||
map.put("table_name", name);
|
map.put("table_name", name);
|
||||||
JSONObject json = WQL.getWO("Generator").addParamMap(map).pageQuery(WqlUtil.getHttpContext(pageable), "create_time desc");
|
JSONObject json = WQL.getWO("Generator").addParamMap(map).pageQuery(WqlUtil.getHttpContext(pageable), "create_time desc");
|
||||||
return json;
|
return json;
|
||||||
|
|||||||
@@ -27,6 +27,6 @@ public class DictDetailQueryCriteria {
|
|||||||
|
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
private String name;
|
private String dictName;
|
||||||
private String dict_id;
|
private String dict_id;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ public class DictDetailServiceImpl implements DictDetailService {
|
|||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("flag", "2");
|
map.put("flag", "2");
|
||||||
map.put("code", criteria.getCode());
|
map.put("code", criteria.getCode());
|
||||||
|
map.put("dictName", criteria.getDictName());
|
||||||
JSONObject json = WQL.getWO("SYS_DICT").addParamMap(map).pageQuery(WqlUtil.getHttpContext(pageable), "dict_sort asc");
|
JSONObject json = WQL.getWO("SYS_DICT").addParamMap(map).pageQuery(WqlUtil.getHttpContext(pageable), "dict_sort asc");
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
输入.flag TYPEAS s_string
|
输入.flag TYPEAS s_string
|
||||||
输入.blurry TYPEAS s_string
|
输入.blurry TYPEAS s_string
|
||||||
输入.code TYPEAS s_string
|
输入.code TYPEAS s_string
|
||||||
|
输入.dictName TYPEAS s_string
|
||||||
|
|
||||||
|
|
||||||
[临时表]
|
[临时表]
|
||||||
@@ -70,6 +71,9 @@
|
|||||||
OPTION 输入.code <> ""
|
OPTION 输入.code <> ""
|
||||||
dict.code = 输入.code
|
dict.code = 输入.code
|
||||||
ENDOPTION
|
ENDOPTION
|
||||||
|
OPTION 输入.dictName <> ""
|
||||||
|
dict.code = 输入.dictName
|
||||||
|
ENDOPTION
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDPAGEQUERY
|
ENDPAGEQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|||||||
Reference in New Issue
Block a user