ludc
2024-05-08 80b725c050e4e4537cc5b7892e5969e537a9b38e
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/MdmEngineServiceImpl.java
@@ -4729,7 +4729,13 @@
      */
      Map<String, Object> nextRevision = commonsMapper.getCurrentRevision(listR.getData().get(0).getTableName(), fromBo.getNameOid());
      R<RevisionRuleVO> revisionRuleVOR = revisionRuleClient.selectById(listR.getData().get(0).getRevisionRuleId());
      String revisionval = nextRevision.get("REVISIONVAL").toString();
      String revisionval = "";
      try{
         revisionval = nextRevision.get("REVISIONVAL").toString();
      }catch (Exception e){
         throw new ServiceException("业务数据版次值获取出错,原因:" + e.getMessage());
      }
      // 未查询到版本规则,默认直接给大版本加一
      if (!revisionRuleVOR.isSuccess() || Func.isEmpty(revisionRuleVOR.getData())) {
         revisionval = String.valueOf((Integer.parseInt(revisionval) + 1));