|
@@ -591,11 +591,15 @@ public class FormulaController {
|
|
List<Map<String,Object>> listMap= this.jdbcTemplate.queryForList("select content from m_formula_panel a join m_wbs_tree_private b on a.id=b.init_table_id where b.p_key_id="+pkeyId);
|
|
List<Map<String,Object>> listMap= this.jdbcTemplate.queryForList("select content from m_formula_panel a join m_wbs_tree_private b on a.id=b.init_table_id where b.p_key_id="+pkeyId);
|
|
if(Func.isNotEmpty(listMap)){
|
|
if(Func.isNotEmpty(listMap)){
|
|
JSONObject job = JSON.parseObject(listMap.get(0).get("content").toString());
|
|
JSONObject job = JSON.parseObject(listMap.get(0).get("content").toString());
|
|
- JSONArray jsonArray= createSeries(wtp,id);
|
|
|
|
- if(!jsonArray.isEmpty()){
|
|
|
|
- JSONObject chartData= job.getJSONArray("series").getJSONObject(0);
|
|
|
|
- chartData.put("data",jsonArray);
|
|
|
|
- return R.data(job);
|
|
|
|
|
|
+ try {
|
|
|
|
+ JSONArray jsonArray= createSeries(wtp,id);
|
|
|
|
+ if(!jsonArray.isEmpty()){
|
|
|
|
+ JSONObject chartData= job.getJSONArray("series").getJSONObject(0);
|
|
|
|
+ chartData.put("data",jsonArray);
|
|
|
|
+ return R.data(job);
|
|
|
|
+ }
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|