Commit df58fe44 by 王志超

feat: 变更行动工单详情

parent ed778b31
Pipeline #86522 passed with stages
in 1 minute 38 seconds
......@@ -604,8 +604,14 @@ public class ChangeSubFlowBiz {
Long changeRecordId = subFlowRecord.getChangeRecordId();
Long subFlowRecordId = subFlowRecord.getId();
// 调用主单的 detail 方法获取完整信息
ChangeFlowVO changeFlowVO = changeFlowBiz.detail(changeRecordId);
// 先根据 changeRecordId 查询主单,获取 flow_id
ChangeRecord mainRecord = changeRecordMapper.selectByPrimaryKey(changeRecordId);
if (mainRecord == null) {
throw ExceptionFactory.createBiz(ResponseCode.ERROR_FLOW_ID, "主工单不存在");
}
// 调用主单的 detail 方法获取完整信息(传入 flow_id)
ChangeFlowVO changeFlowVO = changeFlowBiz.detail(mainRecord.getFlowId());
// topoId:这是子单详情页面,需要设置为子单的 topoId
changeFlowVO.setTopoId(ChangeFlowEnum.CHANGE_SUB_FLOW.getTopoId());
......
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