From d9183aa80ae17d36b79dda48c6b1d7fa22a80ee3 Mon Sep 17 00:00:00 2001 From: xiejun <xiejun@vci-tech.com> Date: 星期三, 22 一月 2025 11:20:41 +0800 Subject: [PATCH] 现场型号代号/人员/组织接口调试 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java index fd06dee..1921a91 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/UniversalInterfaceImpl.java @@ -559,7 +559,7 @@ object.setOperate("create"); applyDataVOList.add(object); } - codeList.add(personMasterData.getLm_code()); + codeList.add(object.getCode()); }); R<BtmTypeVO> r = btmTypeClient.getAllAttributeByBtmId(templateVO.getBtmTypeId()); @@ -614,8 +614,8 @@ DataObjectVO dataObjectVO = new DataObjectVO(); this.getConfigDatas(systemCode, personLibrary, editDatasVO, attrVOS, dataObjectVO); log.info("start锛氫慨鏀规暟鎹墽琛屽畬姣�"); - boolean personApplyGroupCode =personAndDeptConfig.isPersonApplyGroupCode(); - mdmIOService.batchSyncEditDatas(codeClassifyVO,dataObjectVO, resultDataObjectDetailDOs,personApplyGroupCode); + // boolean personApplyGroupCode =personAndDeptConfig.isPersonApplyGroupCode(); + mdmIOService.batchSyncEditDatas(codeClassifyVO,dataObjectVO, resultDataObjectDetailDOs,isPersonApplyGroupCode); log.info("end锛氫慨鏀规暟鎹墽琛屽畬姣�"); } if(applyDatasVO.getObject()!=null&&applyDatasVO.getObject().size()>0) { @@ -680,7 +680,7 @@ 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()); @@ -806,10 +806,10 @@ List<ApplyDataVO> deleteDataVOList=new ArrayList<>(); orgMasterDataList.stream().forEach(orgMasterData -> { ApplyDataVO object=new ApplyDataVO(); - object.setCode(orgMasterData.getMdm_code());//缂栫爜 + object.setCode(orgMasterData.getDepartment_code());//缂栫爜 object.setCreator(orgMasterData.getCreator());//鍒涘缓鑰� object.setEditor(orgMasterData.getModifier());//淇敼鑰� - object.setId(orgMasterData.getDepartment_code());//涓婚敭 + object.setId(orgMasterData.getId());//涓婚敭 object.setStatus(CodeDefaultLC.RELEASED.getValue());//鐘舵�佸垯闇�瑕佸垽鏂� Map<String,String> dataMap= VciBaseUtil.objectToMapString(orgMasterData); List<ProppertyVO> proppertyVOList = new ArrayList<>(); @@ -844,7 +844,7 @@ object.setOperate("create"); applyDataVOList.add(object); } - codeList.add(orgMasterData.getMdm_code()); + codeList.add(object.getCode()); }); R<BtmTypeVO> r = btmTypeClient.getAllAttributeByBtmId(templateVO.getBtmTypeId()); @@ -899,7 +899,7 @@ DataObjectVO dataObjectVO = new DataObjectVO(); this.getConfigDatas(systemCode, deptLibrary, editDatasVO, attrVOS, dataObjectVO); log.info("start锛氫慨鏀规暟鎹墽琛屽畬姣�"); - boolean personApplyGroupCode = personAndDeptConfig.isPersonApplyGroupCode(); + boolean personApplyGroupCode = false;//personAndDeptConfig.isPersonApplyGroupCode(); mdmIOService.batchSyncEditDatas(codeClassifyVO,dataObjectVO, resultDataObjectDetailDOs,personApplyGroupCode); log.info("end锛氫慨鏀规暟鎹墽琛屽畬姣�"); } @@ -914,8 +914,9 @@ } 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(); @@ -931,7 +932,7 @@ //瑙勫垯涔嬪畾涔変负鍙彉鐮佹瀛樺偍涓绘暟鎹紶閫掕繃鏉ョ殑鏁版嵁 CodeOrderSecDTO CodeOrderSecDTO = new CodeOrderSecDTO(); CodeOrderSecDTO.setSecOid(codeBasicSecVO.getOid()); - CodeOrderSecDTO.setSecValue(rowData.getOid()); + CodeOrderSecDTO.setSecValue(rowData.getCode()); codeOrderSecDTOList.add(CodeOrderSecDTO); } }); @@ -967,7 +968,7 @@ 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()); @@ -977,7 +978,7 @@ xDOs.add(x); } }); - }).join(); + //}).join(); resultDataObjectDetailDOs.addAll(xDOs); boolean finalSuccess1 = success.get(); String finalMessage1 = message; @@ -2731,7 +2732,7 @@ 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); } }); @@ -2865,6 +2866,7 @@ 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); } }); -- Gitblit v1.9.3