| | |
| | | ProductStatusDto newRow = null; |
| | | if (sameNum > 1) { |
| | | newRow = item.clone(); |
| | | } |
| | | else |
| | | } else |
| | | newRow = item; |
| | | if ("5".equals(newRow.getProductType())){ |
| | | if ("5".equals(newRow.getProductType())) { |
| | | newRow.setDeviceNo(i); |
| | | newRow.setDataId(item.getId().toString() + "-" + i); |
| | | if (i>1){ |
| | | if (i > 1) { |
| | | newRow.setName(item.getName() + "-" + i); |
| | | } |
| | | } |
| | | else{ |
| | | } else { |
| | | newRow.setDeviceNo(0); |
| | | newRow.setDataId(item.getId().toString()); |
| | | } |
| | |
| | | |
| | | public SimulaDataDto getResultXML(SimulatAssess simulatAssess) { |
| | | if (simulatAssess.getDataType() != null && simulatAssess.getDataType().equals("fz")) { |
| | | Integer num = this.getNumById(simulatAssess.getProductId(), simulatAssess.getTaskModelId()); |
| | | simulatAssess.setName("仿真记录" + (num + 1)); |
| | | simulatAssess.setName(simulatAssess.getName()); |
| | | this.update(simulatAssess); |
| | | } |
| | | String filePath = path + "/" + simulatAssess.getId() + "/" + "result.xml"; |
| | |
| | | String[] arr = availability.split(" "); |
| | | // 遍历子字符串数组,将每个元素转换为double并存储到double数组中 |
| | | Double j = 0.0; |
| | | for (int a = 0; a < arr.length; a++) { |
| | | Double b = 100.0; |
| | | for (int a = 0; a < arr.length - 1; a++) { |
| | | if (Convert.toDouble(arr[a]) < Convert.toDouble(arr[a+1])) { |
| | | System.out.println(arr[a]); |
| | | } |
| | | j = samplPeriod + j; |
| | | doubleArray.add(Double.parseDouble(arr[a])); |
| | | xList.add(j); |
| | |
| | | |
| | | SchemeComparCurve curve = new SchemeComparCurve(); |
| | | curve.setName(task.getTaskName()); |
| | | curve.setSymbol("none"); |
| | | curve.setSmooth(true); |
| | | curve.setType("line"); |
| | | curve.setData(resultData.getCurveParam().getYData()); |