|
@@ -4688,6 +4688,12 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
|
|
|
@Override
|
|
|
public R moveNode(MoveNodeDTO dto) {
|
|
|
+ if(dto.getLeftPkeyIds().isEmpty()){
|
|
|
+ throw new ServiceException("请选择需要移动的节点");
|
|
|
+ }
|
|
|
+ if(dto.getRightPkeyId()==null){
|
|
|
+ throw new ServiceException("请选择要移动到哪个节点");
|
|
|
+ }
|
|
|
List<WbsTreeContract> list= wbsTreeContractMapper.getWbsTreeContractsByPKeyIds(dto.getLeftPkeyIds());
|
|
|
WbsTreeContract fatherContract = this.getById(dto.getRightPkeyId());
|
|
|
for (WbsTreeContract contract : list) {
|