| | |
| | | */ |
| | | package com.java110.api.controller; |
| | | |
| | | import com.java110.api.smo.privilege.IPrivilegeSMO; |
| | | import com.java110.core.base.controller.BaseController; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.utils.constant.CommonConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | |
| | | @Autowired |
| | | private RestTemplate restTemplate; |
| | | |
| | | @Autowired |
| | | private IPrivilegeSMO privilegeSMOImpl; |
| | | |
| | | /** |
| | | * 流程处理方法 |
| | | * |
| | |
| | | IPageData pd = (IPageData) request.getAttribute(CommonConstant.CONTEXT_PAGE_DATA); |
| | | System.out.println("数据获取成功"); |
| | | //权限校验 |
| | | hasPrivilege(restTemplate, pd, "/" + flowCode); |
| | | privilegeSMOImpl.hasPrivilege(restTemplate, pd, "/" + flowCode); |
| | | validateFlowData(flowCode, pd); |
| | | |
| | | } catch (Throwable e) { |