| | |
| | | */ |
| | | public List<NcNode> getNodeHistory(NcNode pkgNode) { |
| | | return this.lambdaQuery().eq(NcNode::getParentId,pkgNode.getParentId()) |
| | | .eq(NcNode::getName,pkgNode.getName()).list(); |
| | | .eq(NcNode::getName,pkgNode.getName()).list();//.ne(NcNode::getId,pkgNode.getId()) |
| | | } |
| | | |
| | | /** |
| | |
| | | @Transactional |
| | | public void upgradeVersionNumber(Long nodeId) { |
| | | NcNode node = this.getById(nodeId); |
| | | node.upgradeVersionNUmber(); |
| | | node.upgradeVersionNumber(); |
| | | this.updateById(node); |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 锁定节点 |
| | | * @param id 程序包节点id |
| | | */ |
| | | @Transactional |
| | | public void lock(Long id) { |
| | | NcNode node = this.getById(id); |
| | | node.lock(); |
| | | this.updateById(node); |
| | | } |
| | | @Transactional |
| | | public void unlock(Long id) { |
| | | NcNode node = this.getById(id); |
| | | node.unlock(); |
| | | this.updateById(node); |
| | | } |
| | | } |