| | |
| | | } |
| | | return BaseResult.success("修改成功!"); |
| | | } |
| | | /** |
| | | * 删除卷 |
| | | * @param ids 主键集合 |
| | | * @return 删除结果 |
| | | */ |
| | | @Override |
| | | public BaseResult deletePvolume(String[] ids) throws PLException { |
| | | if ( ids.length == 0){ |
| | | throw new PLException("500", new String[]{"请选择相关数据!!"}); |
| | | } |
| | | for (String id : ids) { |
| | | boolean isvalid = platformClientUtil.getFrameworkService().checkIsvalid(id); |
| | | if(isvalid) { |
| | | throw new PLException("500", new String[]{"选择数据为首选路径,不能删除!"}); |
| | | } |
| | | } |
| | | UserEntityInfo userInfo = new UserEntityInfo(); |
| | | userInfo.setUserName(WebUtil.getCurrentUserId()); |
| | | userInfo.setModules("com.vci.client.framework.systemConfig.volumn.PvolumePanel"); |
| | | boolean rs = platformClientUtil.getFrameworkService().deletePvolume(ids, userInfo); |
| | | if(!rs){ |
| | | return BaseResult.fail("删除失败!"); |
| | | } |
| | | return BaseResult.success("删除成功!"); |
| | | } |
| | | |
| | | /** |
| | | * 卷 从Corba端转到Hibernate对象端 |