| | |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.map.CaseInsensitiveMap; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | |
| | | */ |
| | | @Autowired(required = false) |
| | | private IDockingPreMetaAttrService dockingPreMetaAttrService; |
| | | |
| | | /** |
| | | * 集团属性池映射服务 |
| | | */ |
| | | @Autowired(required = false) |
| | | private IGroupAttrPoolMappingService groupAttrPoolMappingService; |
| | | |
| | | @Autowired(required = false) |
| | | private IMdmEngineClient mdmEngineClient; |
| | |
| | | writeValueAsString = mp.writeValueAsString(dataObject); |
| | | dockingPreApplyForm.setContent(writeValueAsString); |
| | | } catch (JsonProcessingException e) { |
| | | throw new ServiceException("修改申请单数据时转换出错,原因"+e.getMessage()); |
| | | } |
| | | Date date = new Date(); |
| | | dockingPreApplyForm.setLastModifyTime(date); |
| | |
| | | writeValueAsString = mp.writeValueAsString(dataObject); |
| | | dockingPreApplyForm.setContent(writeValueAsString); |
| | | } catch (JsonProcessingException e) { |
| | | throw new ServiceException("新增申请单数据时数据转换出错,原因"+e.getMessage()); |
| | | } |
| | | Date date = new Date(); |
| | | dockingPreApplyForm.setCreateTime(date); |
| | |
| | | } |
| | | }); |
| | | } else { |
| | | Date date = new Date(); |
| | | editDockingPreApplyFormMap.forEach((key, dockingPreApplyForm) -> { |
| | | dockingPreApplyForm.setCode("2"); |
| | | dockingPreApplyForm.setMsg("修改:" + msg); |
| | | dockingPreApplyForm.setContent(""); |
| | | dockingPreApplyForm.setGroupCode(""); |
| | | Date date = new Date(); |
| | | dockingPreApplyForm.setLastModifyTime(date); |
| | | dockingPreApplyForm.setTs(date); |
| | | dockingPreApplyForm.setLastModifier(Func.isBlank(AuthUtil.getUserAccount()) ? applyCodeUserAccount:AuthUtil.getUserAccount()); |
| | |
| | | dockingPreApplyForm.setMsg("修改:" + msg); |
| | | dockingPreApplyForm.setContent(""); |
| | | dockingPreApplyForm.setGroupCode(""); |
| | | Date date = new Date(); |
| | | dockingPreApplyForm.setCreateTime(date); |
| | | dockingPreApplyForm.setLastModifyTime(date); |
| | | dockingPreApplyForm.setTs(date); |
| | |
| | | return R.fail("同步集团模型信息开关已关闭"); |
| | | } |
| | | VciBaseUtil.alertNotNull(operationType,"集成操作类型"); |
| | | try { |
| | | try{ |
| | | if(operationType.equals("all")){ |
| | | return queryMdmModel(); |
| | | }else{ |
| | | VciBaseUtil.alertNotNull(classifyId,"集团分类主键"); |
| | | return queryClassModel(classifyId); |
| | | } |
| | | } catch (Throwable e) { |
| | | throw new VciBaseException(e.getMessage()); |
| | | }catch(Throwable e) { |
| | | throw new VciBaseException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | |
| | | * @param jclassObject |
| | | * @throws Throwable |
| | | */ |
| | | private void getVilewMode(DockingClassifyVO jclassObject, List<DockingClassifyViewVO> list) |
| | | throws Throwable { |
| | | private void getVilewMode(DockingClassifyVO jclassObject, List<DockingClassifyViewVO> list) throws Throwable { |
| | | String nodeLinkName = jclassObject.getNodeLinkName(); |
| | | try { |
| | | String jclassId = com.alibaba.cloud.commons.lang.StringUtils.isBlank(jclassObject.getId())?"":jclassObject.getId(); |
| | |
| | | } |
| | | // 获取模型视图下的属性集 |
| | | // String oid = jviewModelObject.getOid(); |
| | | List<DockingPreMetaAttr>allDockingPreMetaAttrList=new ArrayList<>(); |
| | | List<DockingPreMetaAttr> allDockingPreMetaAttrList = new ArrayList<>(); |
| | | getMetaAttrObject(metaList, jclassId, jviewModelObject, "root",allDockingPreMetaAttrList); |
| | | //保存集团属性到集团属性池映射表中 |
| | | groupAttrPoolMappingService.saveDistinctGroupAttr(allDockingPreMetaAttrList); |
| | | //保存模型视图属性 |
| | | dockingPreMetaAttrService.saveOrUpdateBatch(allDockingPreMetaAttrList); |
| | | //保存模型视图 |
| | |
| | | }else{ |
| | | allDockingPreMetaAttrList.add(dockingPreMetaAttr); |
| | | } |
| | | |
| | | } |
| | | |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | log.error("组织模型视图"+ jviewModelObject.getViewName() |