|  |  | 
 |  |  |         JSONObject jsonObject = new JSONObject(templetStr); | 
 |  |  |         JSONArray jsonArray = jsonObject.getJSONArray("cells"); | 
 |  |  |  | 
 |  |  |         JSONObject jsonObject3 = new JSONObject(templetStr); | 
 |  |  |         JSONArray jsonArray3 = jsonObject3.getJSONArray("cells"); | 
 |  |  |  | 
 |  |  |         this.getPetsInfo(); | 
 |  |  |         double x1 = 0; | 
 |  |  |         double x2 = 0; | 
 |  |  | 
 |  |  |                 jsonArray.add(lineJson); | 
 |  |  |             } | 
 |  |  |             lineArray.add(statusDtoList); | 
 |  |  |  | 
 |  |  |             JSONObject textJson = new JSONObject(templetsStrMap.get("text")); | 
 |  |  |             JsonUtils2.setJsonValueByPath(textJson, "id".split("/"), UUIDUtil.generateId().toString()); | 
 |  |  |             JsonUtils2.setJsonValueByPath(textJson, "attrs/label/textWrap/text".split("/"), dto.getName()); | 
 |  |  |             JsonUtils2.setJsonValueByPath(textJson, "position/x".split("/"), 20); | 
 |  |  |             JsonUtils2.setJsonValueByPath(textJson, "position/y".split("/"), y - 15); | 
 |  |  |             jsonArray.add(textJson); | 
 |  |  |             jsonArray3.add(textJson); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         //阶段模型及刻度 | 
 |  |  | 
 |  |  |         } | 
 |  |  |         timeDiagramDto.setDiagramJson(jsonObject.toString()); | 
 |  |  |         timeDiagramDto.setSmallDiagramJson(jsonObject2.toString()); | 
 |  |  |         timeDiagramDto.setTextDiagramJson(jsonObject3.toString()); | 
 |  |  |  | 
 |  |  |         return timeDiagramDto; | 
 |  |  |     } |