支持ams分阵地数据库查询(初版)
parent
3590df533c
commit
6ec0a3741e
|
@ -157,7 +157,7 @@ public class ModuleRelationRepository extends BasicGenericDao<ModuleRelation, Lo
|
||||||
return this.list(ModuleRelation.class, sql, MapTools.simpleMap("categoryId", categoryId));
|
return this.list(ModuleRelation.class, sql, MapTools.simpleMap("categoryId", categoryId));
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ModuleRelation> queryModuleList(Long categoryI, String positionKey) throws Exception {
|
public List<ModuleRelation> queryModuleList(Long categoryId, String positionKey) throws Exception {
|
||||||
String sql;
|
String sql;
|
||||||
if (StringUtils.isNotEmpty(positionKey)) {
|
if (StringUtils.isNotEmpty(positionKey)) {
|
||||||
sql = "select a.* from " + positionKey + ".ci_module_relation a where a.is_deleted=0 and a.relation_category_id = :categoryId";
|
sql = "select a.* from " + positionKey + ".ci_module_relation a where a.is_deleted=0 and a.relation_category_id = :categoryId";
|
||||||
|
|
Loading…
Reference in New Issue