| | |
| | | Long dataId = node.getDataId(); |
| | | XhProductModel xhProductModel = xhProductModelDao.getById(dataId); |
| | | if (xhProductModel == null) return; |
| | | if ("1".equals(xhProductModel.getProductType())) { |
| | | if ("5".equals(xhProductModel.getProductType())) { |
| | | // 设备 |
| | | ParamData paramData = paramDataDao.getParamData(dataId, "expect"); |
| | | if (paramData == null) return; |
| | |
| | | value = 1.0/value; |
| | | argsTag.addAttribute("value", value.toString()); |
| | | Element repairTimeLimitTag = element.addElement("RepairTimeLimit"); |
| | | repairTimeLimitTag.setText(paramData.getRepairMttcr()); |
| | | repairTimeLimitTag.setText(String.valueOf(paramData.getRepairMttcr())); |
| | | } |
| | | } else if ("10".equals(xhProductModel.getProductType())) { |
| | | // 虚单位 |