|
@@ -5914,7 +5914,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public R<Object> evaluate(Long pkeyId) {
|
|
|
+ public R evaluate(Long pkeyId) {
|
|
|
if (StringUtils.isNumber(pkeyId)) {
|
|
|
/*节点信息*/
|
|
|
WtcEva wtcEva = this.getSqlOne(
|
|
@@ -5968,7 +5968,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
xm.setName(name);
|
|
|
xm.setSubItem(info.getTitle());
|
|
|
|
|
|
- if(name.contains("△")){
|
|
|
+ if(name.contains("△")||name.contains("Δ")){
|
|
|
xm.setWeight(2);
|
|
|
}else{
|
|
|
xm.setWeight(1);
|
|
@@ -6178,7 +6178,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
- return R.data("暂无数据");
|
|
|
+ return R.fail("暂无数据");
|
|
|
}
|
|
|
}
|
|
|
return R.fail("无数据");
|
|
@@ -6250,6 +6250,7 @@ public class FormulaServiceImpl extends BaseServiceImpl<FormulaMapper, Formula>
|
|
|
}
|
|
|
return remap;
|
|
|
}
|
|
|
+
|
|
|
public Map<String, String> getWtpParent(String meterType, String 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<>();
|