【数据资产】
1、根据证照类型删除
Showing
1 changed file
with
13 additions
and
3 deletions
... | @@ -138,7 +138,17 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -138,7 +138,17 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
138 | if (entity == null) { | 138 | if (entity == null) { |
139 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(String.format("获取%s详情数据", FUNCTION_NAME))); | 139 | throw new CsbrSystemException(SystemError.DATA_NOT_EXISTS, messageSourceUtil.notExistsToSelectMessage(String.format("获取%s详情数据", FUNCTION_NAME))); |
140 | } | 140 | } |
141 | return convertToVO(entity, getStateMap(Collections.singletonList(StringUtils.isNotEmpty(entity.getDataProductGuid()) ? entity.getDataProductGuid() : guid))); | 141 | DemandRSVO demandRSVO = convertToVO(entity, getStateMap(Collections.singletonList(guid))); |
142 | |||
143 | // 补充业务产品名称 | ||
144 | String bizGuid = StringUtils.isNotEmpty(entity.getDataProductGuid()) ? entity.getDataProductGuid() : guid; | ||
145 | Map<String, DemandUpdateStateVO> data = dataProcessBasicFeign.getOrderStateAndBizName(Collections.singletonList(bizGuid)).getData(); | ||
146 | if (ObjectUtils.isNotEmpty(data)) { | ||
147 | DemandUpdateStateVO demandUpdateStateVO = data.get(bizGuid); | ||
148 | demandRSVO.setBizName(demandUpdateStateVO.getBizName()); | ||
149 | } | ||
150 | |||
151 | return demandRSVO; | ||
142 | } | 152 | } |
143 | 153 | ||
144 | private Map<String, DemandUpdateStateVO> getStateMap(List<String> guids){ | 154 | private Map<String, DemandUpdateStateVO> getStateMap(List<String> guids){ |
... | @@ -150,7 +160,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -150,7 +160,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
150 | return null; | 160 | return null; |
151 | } | 161 | } |
152 | try{ | 162 | try{ |
153 | Map<String, DemandUpdateStateVO> map = dataProcessBasicFeign.getOrderStateAndBizName(guids).getData(); | 163 | Map<String, DemandUpdateStateVO> map = dataProcessBasicFeign.getOrderState(guids).getData(); |
154 | return map; | 164 | return map; |
155 | }catch (Exception e){ | 165 | }catch (Exception e){ |
156 | e.printStackTrace(); | 166 | e.printStackTrace(); |
... | @@ -690,7 +700,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService | ... | @@ -690,7 +700,7 @@ public class DemandServiceImpl extends FlowAbstractImpl implements DemandService |
690 | //流程数据处理 | 700 | //流程数据处理 |
691 | vo.setApproveVO(approvalFlowUtil.getApprovalInfo(entity.getGuid())); | 701 | vo.setApproveVO(approvalFlowUtil.getApprovalInfo(entity.getGuid())); |
692 | if(map != null){ | 702 | if(map != null){ |
693 | DemandUpdateStateVO voState = map.get(StringUtils.isNotEmpty(entity.getDataProductGuid()) ? entity.getDataProductGuid() : entity.getGuid()); | 703 | DemandUpdateStateVO voState = map.get(entity.getGuid()); |
694 | if(voState != null){ | 704 | if(voState != null){ |
695 | vo.setResourceAcquisitionState(voState.getResourceAcquisitionState()); | 705 | vo.setResourceAcquisitionState(voState.getResourceAcquisitionState()); |
696 | vo.setProductProcessingState(voState.getProductProcessingState()); | 706 | vo.setProductProcessingState(voState.getProductProcessingState()); | ... | ... |
-
Please register or sign in to post a comment