| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/savePvolumeUser") |
| | | public BaseResult savePvolumeUser(String pvolumId ,String[] userIds){ |
| | | public BaseResult savePvolumeUser(String pvolumId ,String userIds){ |
| | | try { |
| | | return osPvolumesServiceI.savePvolumeUser(pvolumId,userIds) ? BaseResult.success("文件柜分配成员成功!"):BaseResult.fail("文件柜分配成员失败!"); |
| | | return osPvolumesServiceI.savePvolumeUser(pvolumId,Func.toStrList(userIds)) ? BaseResult.success("文件柜分配成员成功!"):BaseResult.fail("文件柜分配成员失败!"); |
| | | } catch (PLException e) { |
| | | BaseResult objectBaseResult = new BaseResult<>(); |
| | | objectBaseResult.setCode(Integer.parseInt(e.code)); |
| | |
| | | package com.vci.web.service; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.framework.data.PvolumeInfo; |
| | | import com.vci.dto.*; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * @param ids 主键集合 |
| | | * @return 删除结果 |
| | | */ |
| | | BaseResult deletePvolume(String[] ids) throws PLException; |
| | | BaseResult deletePvolume(String ids) throws PLException; |
| | | /** |
| | | * 文件柜导出 |
| | | * @param exportFileName 导出的文件名 |
| | |
| | | * @param userIds |
| | | * @return |
| | | */ |
| | | boolean savePvolumeUser(String pvolumId ,String[] userIds) throws PLException; |
| | | BaseResult deletePvolume(String ids) throws PLException; |
| | | boolean savePvolumeUser(String pvolumId ,List<String> userIds) throws PLException; |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean savePvolumeUser(String pvolumId, String[] userIds) throws PLException { |
| | | public boolean savePvolumeUser(String pvolumId ,List<String> userIds) throws PLException { |
| | | VciBaseUtil.alertNotNull(pvolumId,"文件柜主键",userIds,"用户主键集合"); |
| | | UserEntityInfo userEntityInfo = new UserEntityInfo(); |
| | | userEntityInfo.setUserName(WebThreadLocalUtil.getCurrentUserSessionInfoInThread().getUserId()); |
| | | boolean resBoolean = platformClientUtil.getFrameworkService().savePvolumeUser(pvolumId, userIds, userEntityInfo); |
| | | boolean resBoolean = platformClientUtil.getFrameworkService().savePvolumeUser(pvolumId, userIds.toArray(new String[userIds.size()]), userEntityInfo); |
| | | return resBoolean; |
| | | } |
| | | |