| | |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.web.service.OsBtmServiceI; |
| | | import com.vci.web.service.UIManagerServiceI; |
| | | import com.vci.web.util.Func; |
| | | import com.vci.starter.web.util.Lcm.Func; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | import java.io.IOException; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | * @param tabButtonVO |
| | | * @return 修改结果 |
| | | */ |
| | | @PutMapping("/updateTabbutton") |
| | | @PutMapping("/updateTabButton") |
| | | public BaseResult updateTabButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | try { |
| | | return uiManagerService.updateTabButton(tabButtonVO); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据角色主键获取已授权的信息 |
| | | * @param roleId |
| | | * @return |
| | | * @throws PLException |
| | | */ |
| | | @GetMapping( "/getRightListByRoleId") |
| | | @VciBusinessLog(operateName = "根据角色主键获取已授权的UI主键集合") |
| | | public BaseResult getRightListByRoleId(String roleId){ |
| | | try { |
| | | return BaseResult.dataList(uiManagerService.getRightListByRoleId(roleId)); |
| | | }catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "获取已授权信息时错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /*** |
| | | * @param uiAuthorDTO 勾选的需要保存的数据对象 |
| | | * @return |
| | | */ |