| | |
| | | .le(NcNodeHis::getCreateTime,programPkgNode.getCreateTime()) //时间小于等于当前节点 |
| | | .count(); |
| | | } |
| | | |
| | | /** |
| | | * 查询节点的历史列表(节点的上级节点”程序包名“因为存在多个版本,所以历史记录也需要根据不同版本程序包名进行查询) |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Transactional(readOnly = true) |
| | | public List<NcNodeVO> historyByNodeId(Long id) { |
| | | NcNodeHis node = this.getById(id); |
| | | /* |
| | | List<NcNodeHis> nodes = lambdaQuery().eq(NcNodeHis::getNodeType,NcNode.TYPE_PROGRAM_PACKAGE) |
| | | .eq(NcNodeHis::getHisSerial, node.getHisSerial()).orderByDesc(NcNodeHis::getCreateTime).list(); |
| | | List<NcNodeVO> voList = new ArrayList<>(); |
| | | nodes.forEach(ncNode -> { |
| | | NcNodeVO vo = new NcNodeVO(); |
| | | BeanUtils.copyProperties(ncNode, vo); |
| | | vo.setCreateUserName(); |
| | | voList.add(vo); |
| | | });*/ |
| | | return this.baseMapper.packageHistoryBySerial(node.getHisSerial()); |
| | | //return voList; |
| | | } |
| | | } |