| | |
| | | */ |
| | | 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)); |