| | |
| | | package com.vci.web.controller; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.frameworkcore.compatibility.ISmFunctionQueryService; |
| | | import com.vci.frameworkcore.enumpck.ResourceControlTypeEnum; |
| | | import com.vci.web.service.ISmFunctionQueryService; |
| | | import com.vci.web.enumpck.ResourceControlTypeEnum; |
| | | import com.vci.pagemodel.MenuVO; |
| | | import com.vci.pagemodel.SmFunctionVO; |
| | | import com.vci.starter.web.annotation.controller.VciUnCheckRight; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.*; |
| | | import com.vci.pagemodel.UIContentVO; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取当前模块下的子模块 |
| | | * @param parentId |
| | | * 获取当前用户的所有按钮 |
| | | * @param treeQueryObject 树查询对象 |
| | | * @return |
| | | * @throws PLException |
| | | */ |
| | | @GetMapping("/getSysModelTreeMenuByPID") |
| | | @VciUnCheckRight |
| | | public List<MenuVO> getSysModelTreeMenuByPID(String parentId) { |
| | | try { |
| | | return functionQueryService.getSysModelTreeMenuByPID(parentId,true); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | String errorMsg = "查询子模块时出现错误,原因:"+VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(errorMsg); |
| | | throw new VciBaseException(errorMsg); |
| | | } |
| | | @GetMapping("/getAllButtons") |
| | | public BaseResult getAllButtons(TreeQueryObject treeQueryObject){ |
| | | return BaseResult.dataList(functionQueryService.buttons(treeQueryObject)); |
| | | } |
| | | |
| | | /** |