ludc
2025-01-16 5203081b68e3a8dc139d1807b2f8774e4a00a82a
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebUIController.java
@@ -6,7 +6,11 @@
import com.vci.pagemodel.UITableDefineVO;
import com.vci.starter.web.annotation.controller.VciUnCheckRight;
import com.vci.starter.web.annotation.log.VciBusinessLog;
import com.vci.starter.web.pagemodel.BaseResult;
import com.vci.starter.web.util.VciBaseUtil;
import com.vci.web.service.UIEngineServiceI;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -29,6 +33,11 @@
   private UIEngineServiceI uiService;
   /**
    * 日志
    */
   private Logger logger = LoggerFactory.getLogger(getClass());
   /**
    * 获取UI上下文的定义
    * @param btmType 业务类型
    * @param id 编号
@@ -36,8 +45,15 @@
    */
   @GetMapping("/getUIContentByBtmTypeAndId")
   @VciUnCheckRight
   public UIContentVO getUIContentByBtmTypeAndId(String btmType,String id){
      return uiService.getUIContentByBtmTypeAndId(btmType,id);
   public BaseResult getUIContentByBtmTypeAndId(String btmType,String id){
      try {
         return BaseResult.success(uiService.getUIContentByBtmTypeAndId(btmType,id));
      } catch (PLException e) {
         e.printStackTrace();
         String exceptionMessage = "获取UI上下文的定义时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e);
         logger.error(exceptionMessage);
         return BaseResult.fail(exceptionMessage);
      }
   }
   /**