Commit ceecfbd3 authored by wangyangyang's avatar wangyangyang

基线:历史计划id保存到动态属性baseLineRefId 基线关联id中

parent b6062144
...@@ -62,6 +62,7 @@ public class ExtPlanBaseLineServiceImpl<V extends ExtPlanBaseLineVO> implements ...@@ -62,6 +62,7 @@ public class ExtPlanBaseLineServiceImpl<V extends ExtPlanBaseLineVO> implements
List<IdOnlyVO> result = recursion.getContent(); List<IdOnlyVO> result = recursion.getContent();
List<ExtPlanBaseLineLinkVO> lineLinkVOS = new ArrayList<>(); List<ExtPlanBaseLineLinkVO> lineLinkVOS = new ArrayList<>();
result.forEach(idVO -> { result.forEach(idVO -> {
Long oldId = idVO.getId();
idVO.setOperator(OperatorType.ADD); idVO.setOperator(OperatorType.ADD);
idVO.setId(null); idVO.setId(null);
ReflectUtil.setFieldValue(idVO, "dxContextEmbeddable", null); ReflectUtil.setFieldValue(idVO, "dxContextEmbeddable", null);
...@@ -73,6 +74,7 @@ public class ExtPlanBaseLineServiceImpl<V extends ExtPlanBaseLineVO> implements ...@@ -73,6 +74,7 @@ public class ExtPlanBaseLineServiceImpl<V extends ExtPlanBaseLineVO> implements
dynamicAttrs = idVO.getDynamicAttrs(); dynamicAttrs = idVO.getDynamicAttrs();
} }
dynamicAttrs.put("baselineState", ReflectUtil.getFieldValue(idVO, state)); dynamicAttrs.put("baselineState", ReflectUtil.getFieldValue(idVO, state));
dynamicAttrs.put("baseLineRefId", oldId);
ExtPlanBaseLineLinkVO lineLinkVO = new ExtPlanBaseLineLinkVO(); ExtPlanBaseLineLinkVO lineLinkVO = new ExtPlanBaseLineLinkVO();
lineLinkVO.setOperator(OperatorType.ADD); lineLinkVO.setOperator(OperatorType.ADD);
lineLinkVO.setTarget(idVO); lineLinkVO.setTarget(idVO);
......
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