|
@@ -6171,7 +6171,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
return remap;
|
|
return remap;
|
|
}
|
|
}
|
|
public Map<String, String> getWtpParent(String meterType, String projectId) {
|
|
public Map<String, String> getWtpParent(String meterType, String projectId) {
|
|
- Map<String, Object> map = this.jdbcTemplate.queryForMap("select id,wbs_id wbsId,CONCAT(ancestors,',',p_key_id) path from m_wbs_tree_private a where a.node_name=? and a.project_id=?", meterType, projectId);
|
|
|
|
|
|
+ Map<String, Object> map = this.jdbcTemplate.queryForMap("select id,wbs_id wbsId,CONCAT(ancestors_p_id,',',p_key_id) path from m_wbs_tree_private a where a.node_name=? and a.project_id=?", meterType, projectId);
|
|
Map<String, String> result = new HashMap<>();
|
|
Map<String, String> result = new HashMap<>();
|
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
|
for (Map.Entry<String, Object> entry : map.entrySet()) {
|
|
result.put(entry.getKey(), StringUtils.handleNull(entry.getValue()));
|
|
result.put(entry.getKey(), StringUtils.handleNull(entry.getValue()));
|
|
@@ -6284,7 +6284,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
}
|
|
}
|
|
|
|
|
|
public List<NodeTable> getTableListMeter(Map<String, String> parent) {
|
|
public List<NodeTable> getTableListMeter(Map<String, String> parent) {
|
|
- return this.getSqlList("select a.p_key_id as pkeyId,a.status, a.node_name as nodeName, a.init_table_name as initTableName, a.html_url as htmlUrl, a.excel_id as excelId from m_wbs_tree_private a join m_wbs_tree_private b on(a.parent_id=b.id and a.project_id=b.project_id) where a.ancestors like ? and LENGTH(a.html_url) > 0 and a.is_deleted = 0 and a.project_id = ? and a.wbs_id = ? ORDER BY b.sort,a.sort", NodeTable.class, parent.get("path") + "%", parent.get("projectId"), parent.get("wbsId"));
|
|
|
|
|
|
+ return this.getSqlList("select a.p_key_id as pkeyId,a.status, a.node_name as nodeName, a.init_table_name as initTableName, a.html_url as htmlUrl, a.excel_id as excelId from m_wbs_tree_private a join m_wbs_tree_private b on(a.parent_id=b.id and a.project_id=b.project_id) where a.ancestors_p_id like ? and LENGTH(a.html_url) > 0 and a.is_deleted = 0 and a.project_id = ? and a.wbs_id = ? ORDER BY b.sort,a.sort", NodeTable.class, parent.get("path") + "%", parent.get("projectId"), parent.get("wbsId"));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|