查询优化升级
This commit is contained in:
parent
92e0f136bf
commit
9da7fc3052
|
|
@ -47,7 +47,7 @@ public class TopQueryController extends BaseController {
|
||||||
|
|
||||||
@GetMapping("/online/{id}")
|
@GetMapping("/online/{id}")
|
||||||
public Result<String> online(@PathVariable("id") Long id) {
|
public Result<String> online(@PathVariable("id") Long id) {
|
||||||
// ServerResult ServerResult = queryService.updateQueryInfo(uniQuery);
|
// ServerResult ServerResult = queryService.updateQueryInfo(uniQuery);
|
||||||
// if (ServerResult.isStart()) {
|
// if (ServerResult.isStart()) {
|
||||||
// return AjaxResult.success(ServerResult.getData());
|
// return AjaxResult.success(ServerResult.getData());
|
||||||
// } else {
|
// } else {
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ public class TopQueryServiceImpl implements TopQueryService {
|
||||||
}
|
}
|
||||||
if (columns.getJSONObject(i).getInteger("isUse")==1){
|
if (columns.getJSONObject(i).getInteger("isUse")==1){
|
||||||
// infoList.add(new UniColumnInfo(uniQuery.getId(),node.getRelTable()+"."+column.getString("columnName"),column.getString("columnComment")));
|
// infoList.add(new UniColumnInfo(uniQuery.getId(),node.getRelTable()+"."+column.getString("columnName"),column.getString("columnComment")));
|
||||||
infoList.add(new UniColumnInfo(uniQuery.getId(),column.getString("columnName"),column.getString("columnComment")));
|
infoList.add(new UniColumnInfo(uniQuery.getId(),column.getString("columnName"),column.getString("columnComment"),column.getString("dictType")));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -139,13 +139,6 @@ public class TopSearchTableServiceImpl implements TopSearchTableService {
|
||||||
topSearchTableDao.updateTopSearchTable(topSearchTable);
|
topSearchTableDao.updateTopSearchTable(topSearchTable);
|
||||||
return Result.ok();
|
return Result.ok();
|
||||||
}
|
}
|
||||||
// void deleteSearchTableRoleById(Long id){
|
|
||||||
// try {
|
|
||||||
//
|
|
||||||
// }catch (RuntimeException e){
|
|
||||||
// log.error("无数据");
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@
|
||||||
<mapper namespace="com.ebts.generator.dao.UniColumnInfoDao">
|
<mapper namespace="com.ebts.generator.dao.UniColumnInfoDao">
|
||||||
|
|
||||||
<insert id="insertUniColumnInfo" parameterType="java.util.List">
|
<insert id="insertUniColumnInfo" parameterType="java.util.List">
|
||||||
insert into gen_uni_column_info (query_id,prop,label) values
|
insert into gen_uni_column_info (query_id,prop,label,dict_type) values
|
||||||
<foreach collection="list" item="item" index="index" separator=",">
|
<foreach collection="list" item="item" index="index" separator=",">
|
||||||
(#{item.queryId},#{item.prop},#{item.label})
|
(#{item.queryId},#{item.prop},#{item.label},#{item.dictType})
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
<delete id="deleteUniColumnInfo">
|
<delete id="deleteUniColumnInfo">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue