package com.highdatas.mdm.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.highdatas.mdm.entity.*;
import com.highdatas.mdm.mapper.TableInfoMapper;
import com.highdatas.mdm.mapper.UserMapper;
import com.highdatas.mdm.pojo.CodeMsg;
import com.highdatas.mdm.pojo.Result;
import com.highdatas.mdm.pojo.ViewMapFieldItem;
import com.highdatas.mdm.service.*;
import com.highdatas.mdm.util.AESUtil;
import com.highdatas.mdm.util.Constant;
import com.highdatas.mdm.util.DbUtils;
import lombok.SneakyThrows;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.*;
import java.util.stream.Collectors;
/**
*
* 前端控制器
*
*
* @author kimi
* @since 2020-04-15
*/
@RestController
@RequestMapping("/sysView")
public class SysViewController {
@Autowired
ISysViewService viewService;
@Autowired
ISysViewJoinService sysViewJoinService;
@Autowired
IMaintainService maintainService;
@Autowired
ISysMenuService menuService;
@Autowired
UserMapper mapper;
@Autowired
IMasterAuthorService masterAuthorService;
@Autowired
MasterDataService masterDataService;
@Autowired
TableInfoMapper tableInfoMapper;
@Autowired
IMenuMappingService menuMappingService;
@Autowired
ISysViewLogicService logicService;
@Autowired
ISysViewLogicmapService logicmapService;
@SneakyThrows
@RequestMapping(value = "/test", method = RequestMethod.GET)
public Result test(HttpServletRequest request) throws Exception {
List