Commit 0e9c6c4d authored by suhuiguang's avatar suhuiguang

feat(大编辑):管道增减功能开发

1.改造变更登记作废、使用登记作废调整
parent f7492288
......@@ -1606,6 +1606,12 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
// 压力管道
case YLGD:
// 编辑过则按照编辑的数据进行恢复管道信息
Boolean isRollBack = backupManager.restore(jgChangeRegistrationReform.getSequenceNbr() + "");
if(isRollBack){ // 进行过编辑逻辑
// 1.原装置、新装置重新计算管道长度
this.updateTotalPieLineLength(jgChangeRegistrationReform.getProjectContraptionId());
} else { //未编辑过,走原有逻辑
JSONObject jsonObject = JSONObject.parseObject(oldTechInfo);
JSONArray piePines = jsonObject.getJSONArray("equipmentLists");
// 装置和设备es中的安改维单位信息恢复
......@@ -1654,6 +1660,7 @@ public class JgChangeRegistrationReformServiceImpl extends BaseService<JgChangeR
inspectionDetectionInfoMapper.deleteBatchIds(ids);
}
}
}
break;
// 起重机械
case QZJX:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment