¶Ô±ÈÐÂÎļþ |
| | |
| | | [ |
| | | { |
| | | "tenantId": "986926", |
| | | "createTime": "2023-12-07 19:01:55", |
| | | "ts": "2023-12-07 19:01:55.674", |
| | | "revisionValue": "1", |
| | | "nameOid": "1732717066655502337", |
| | | "data": {}, |
| | | "firstV": "1", |
| | | "codeClassifySecOid": "1732710379856990208", |
| | | "lastV": "1", |
| | | "firstR": "1", |
| | | "revisionOid": "1732717066655502339", |
| | | "creator": "admin", |
| | | "id": "æµè¯22", |
| | | "versionValue": "1", |
| | | "revisionSeq": 1, |
| | | "revisionRule": "1", |
| | | "description": "", |
| | | "oid": "1732717066655502336", |
| | | "versionSeq": 1, |
| | | "name": "æµè¯22", |
| | | "secretGrade": 0, |
| | | "lastModifier": "admin", |
| | | "lctid": "", |
| | | "secretGradeText": "", |
| | | "copyFromVersion": "", |
| | | "orderNum": 1, |
| | | "lcStatusText": "", |
| | | "versionRule": "0", |
| | | "parentClassifyValueOid": "1732711444266487808", |
| | | "lcStatus": "", |
| | | "owner": "1707221494012690433", |
| | | "codeClassifySecOidName": "", |
| | | "btmname": "codeclassifyvalue", |
| | | "lastR": "1", |
| | | "lastModifyTime": "2023-12-07 19:01:55" |
| | | }, |
| | | { |
| | | "tenantId": "986926", |
| | | "createTime": "2023-12-07 19:02:00", |
| | | "ts": "2023-12-07 19:02:00.592", |
| | | "revisionValue": "1", |
| | | "nameOid": "1732717087283089409", |
| | | "data": {}, |
| | | "firstV": "1", |
| | | "codeClassifySecOid": "1732710379856990208", |
| | | "lastV": "1", |
| | | "firstR": "1", |
| | | "revisionOid": "1732717087283089411", |
| | | "creator": "admin", |
| | | "id": "æµè¯33", |
| | | "versionValue": "1", |
| | | "revisionSeq": 1, |
| | | "revisionRule": "1", |
| | | "description": "", |
| | | "oid": "1732717087283089408", |
| | | "versionSeq": 1, |
| | | "name": "æµè¯33", |
| | | "secretGrade": 0, |
| | | "lastModifier": "admin", |
| | | "lctid": "", |
| | | "secretGradeText": "", |
| | | "copyFromVersion": "", |
| | | "orderNum": 1, |
| | | "lcStatusText": "", |
| | | "versionRule": "0", |
| | | "parentClassifyValueOid": "1732711473274294272", |
| | | "lcStatus": "", |
| | | "owner": "1707221494012690433", |
| | | "codeClassifySecOidName": "", |
| | | "btmname": "codeclassifyvalue", |
| | | "lastR": "1", |
| | | "lastModifyTime": "2023-12-07 19:02:00" |
| | | }, |
| | | { |
| | | "tenantId": "986926", |
| | | "createTime": "2023-12-07 19:01:49", |
| | | "ts": "2023-12-07 19:01:49.984", |
| | | "revisionValue": "1", |
| | | "nameOid": "1732717042789912577", |
| | | "data": {}, |
| | | "firstV": "1", |
| | | "codeClassifySecOid": "1732710379856990208", |
| | | "lastV": "1", |
| | | "firstR": "1", |
| | | "revisionOid": "1732717042789912579", |
| | | "creator": "admin", |
| | | "id": "æµè¯11", |
| | | "versionValue": "1", |
| | | "revisionSeq": 1, |
| | | "revisionRule": "1", |
| | | "description": "", |
| | | "oid": "1732717042789912576", |
| | | "versionSeq": 1, |
| | | "name": "æµè¯111", |
| | | "secretGrade": 0, |
| | | "lastModifier": "admin", |
| | | "lctid": "", |
| | | "secretGradeText": "", |
| | | "copyFromVersion": "", |
| | | "orderNum": 1, |
| | | "lcStatusText": "", |
| | | "versionRule": "0", |
| | | "parentClassifyValueOid": "1732711414591787008", |
| | | "lcStatus": "", |
| | | "owner": "1707221494012690433", |
| | | "codeClassifySecOidName": "", |
| | | "btmname": "codeclassifyvalue", |
| | | "lastR": "1", |
| | | "lastModifyTime": "2023-12-07 19:01:49" |
| | | } |
| | | ] |
| | |
| | | //object.setCode(masterData.getOrDefault(currentClassifyConfig.get().getSourceCodeKey(),"").toString());//ç¼ç |
| | | if(!CollectionUtils.isEmpty(sourceCodeKeyList)) { |
| | | sourceCodeKeyList.stream().forEach(codekey -> { |
| | | if (StringUtils.isNotBlank(masterData.getOrDefault(currentClassifyConfig.get().getSourceCodeKey(), "").toString())) { |
| | | object.setCode(masterData.getOrDefault(currentClassifyConfig.get().getSourceCodeKey(), "").toString());//ç¼ç |
| | | if (StringUtils.isNotBlank(masterData.getOrDefault(codekey, "").toString())) { |
| | | object.setCode(masterData.getOrDefault(codekey, "").toString());//ç¼ç |
| | | } |
| | | }); |
| | | } |
| | |
| | | ApplyDatasVO editDatasVO = new ApplyDatasVO(); |
| | | if (!CollectionUtils.isEmpty(cboList)) { |
| | | //æ ¹æ®MDMç¼ç å»å¤ææ°æ®æ¯å¦éå¤. |
| | | Map<String, ClientBusinessObject> oldpplyDataVOMap = cboList.stream().filter(data -> data != null && StringUtils.isNotBlank(data.getAttributeValue(targetCodeKey))).collect(Collectors.toList()).stream().collect(Collectors.toMap(s -> s.getAttributeValue(targetCodeKey).toLowerCase(Locale.ROOT), t -> t)); |
| | | Map<String, ClientBusinessObject> oldpplyDataVOMap = cboList.stream().filter(data -> data != null && StringUtils.isNotBlank(data.getAttributeValue(targetCodeKey))).collect(Collectors.toList()).stream().collect(Collectors.toMap(s -> s.getAttributeValue(targetCodeKey), t -> t)); |
| | | //æ°æ®åºä¸åå¨ç |
| | | List<ApplyDataVO> applyApplyDataVOList = applyDataVOList.stream().filter(cbo -> { |
| | | String code = cbo.getCode(); |
| | |
| | | List<ApplyDataVO> editApplyDataVOList = applyDataVOList.stream().filter(cbo -> { |
| | | String code = cbo.getCode(); |
| | | if (oldpplyDataVOMap.containsKey(code)) { |
| | | ClientBusinessObject object= oldpplyDataVOMap.get(code); |
| | | cbo.setCode(object.getId()); |
| | | cbo.setOperate("update"); |
| | | } |
| | | return oldpplyDataVOMap.containsKey(code); |
| | |
| | | mesg="éæç³»ç»ï¼ã"+systemCode+"ãç³è¯·ç¼ç 失败:" + e.getMessage(); |
| | | mesg = e.getMessage(); |
| | | e.printStackTrace(); |
| | | throw new ServiceException(e.getMessage()); |
| | | // throw new ServiceException(e.getMessage()); |
| | | } finally { |
| | | XMLResultDataObjectDetailDO x = new XMLResultDataObjectDetailDO(); |
| | | x.setId(rowData.getOid()); |
| | |
| | | String dataValue = sourceKeyValueMap.get(sourceKey); |
| | | if (attrMapConfigMap.containsKey(sourceKey)) { |
| | | String targetKey = attrMapConfigMap.get(sourceKey); |
| | | log.info("xxxxx屿§æ å°å¼:sourceKeyã"+sourceKey+"ãââã+targetKey---ã"+targetKey+":"+dataValue); |
| | | keyValueMap.put(targetKey, StringUtils.isBlank(dataValue)?"":dataValue); |
| | | } |
| | | }); |
| | |
| | | private void getCodeOrderDTOs(CodeClassifyVO codeClassifyVO, CodeClassifyTemplateVO templateVO, Map<String, RowDatas> codeDataMap, Map<String, ClientBusinessObject> codeSystemObjectMap, List<CodeOrderDTO> codeOrderDTOList, Map<String, String> errorMap, boolean isCodeOrGroupCode) { |
| | | codeSystemObjectMap.keySet().forEach(code -> { |
| | | ClientBusinessObject sysDataObject = codeSystemObjectMap.get(code); |
| | | if (isCodeOrGroupCode) { |
| | | /*if (isCodeOrGroupCode) { |
| | | // code = sysDataObject.getAttributeValue("GROUPCODE"); |
| | | if (StringUtils.isBlank(code)) { |
| | | code = sysDataObject.getId(); |
| | | } |
| | | }*/ |
| | | if(isCodeOrGroupCode){ |
| | | String groupCode=sysDataObject.getAttributeValue("GROUPCODE"); |
| | | if(codeDataMap.containsKey(groupCode)){ |
| | | code=groupCode; |
| | | } |
| | | } |
| | | CodeOrderDTO orderDTO = new CodeOrderDTO(); |
| | | if (codeDataMap.containsKey(code)) { |
| | |
| | | log.error("æ°æ®ä¿å失败:",e); |
| | | mesg=e.getMessage(); |
| | | e.printStackTrace(); |
| | | throw new ServiceException(e.getMessage()); |
| | | // throw new ServiceException(e.getMessage()); |
| | | }finally { |
| | | XMLResultDataObjectDetailDO x=new XMLResultDataObjectDetailDO(); |
| | | x.setId(rowData.getOid()); |
| | |
| | | } |
| | | List<XMLResultDataObjectDetailDO> xDOs=new CopyOnWriteArrayList<>(); |
| | | //éå¶çº¿ç¨å¹¶è¡æ°é |
| | | customForkJoinPool.submit(()->{ |
| | | dataObjectVO.getRowData().parallelStream().forEach(rowData->{ |
| | | //customForkJoinPool.submit(()->{ |
| | | // dataObjectVO.getRowData().parallelStream().forEach(rowData->{ |
| | | dataObjectVO.getRowData().forEach(rowData->{ |
| | | String mesg=""; |
| | | try { |
| | | CodeOrderDTO orderDTO = new CodeOrderDTO(); |
| | |
| | | log.error( "é¨é¨æ°æ®æ¥æ¶å¤±è´¥:",e); |
| | | mesg=e.getMessage(); |
| | | e.printStackTrace(); |
| | | throw new ServiceException(e.getMessage()); |
| | | // throw new ServiceException(e.getMessage()); |
| | | }finally { |
| | | XMLResultDataObjectDetailDO x=new XMLResultDataObjectDetailDO(); |
| | | x.setId(rowData.getOid()); |
| | |
| | | xDOs.add(x); |
| | | } |
| | | }); |
| | | }).join(); |
| | | //}).join(); |
| | | resultDataObjectDetailDOs.addAll(xDOs); |
| | | boolean finalSuccess1 = success.get(); |
| | | String finalMessage1 = message; |
| | |
| | | String dataValue = sourceKeyValueMap.get(sourceKey); |
| | | if (attrMapConfigMap.containsKey(sourceKey)) { |
| | | String targetKey = attrMapConfigMap.get(sourceKey); |
| | | log.info("xxxxx屿§æ å°å¼:sourceKeyã"+sourceKey+"ãââã+targetKey"+targetKey+":"+dataValue); |
| | | log.info("xxxxx屿§æ å°å¼:sourceKeyã"+sourceKey+"ãââã+targetKey---ã"+targetKey+":"+dataValue); |
| | | keyValueMap.put(targetKey, StringUtils.isBlank(dataValue)?"":dataValue); |
| | | } |
| | | }); |
| | |
| | | String dataValue = sourceKeyValueMap.get(sourceKey); |
| | | if (attrMapConfigMap.containsKey(sourceKey)) { |
| | | String targetKey = attrMapConfigMap.get(sourceKey); |
| | | log.info("xxxxx屿§æ å°å¼:sourceKeyã"+sourceKey+"ãââã+targetKey---ã"+targetKey+":"+dataValue); |
| | | keyValueMap.put(targetKey, StringUtils.isBlank(dataValue)?"":dataValue); |
| | | } |
| | | }); |