资产授权
parent
4332e4d363
commit
806ce82ccc
|
@ -1,7 +1,6 @@
|
|||
package com.muyu.source.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.dtflys.forest.springboot.annotation.ForestScannerRegister;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
|
@ -9,24 +8,18 @@ import com.muyu.common.core.web.controller.BaseController;
|
|||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.common.security.utils.SecurityUtils;
|
||||
import com.muyu.source.domain.AssetDataSource;
|
||||
import com.muyu.source.domain.Children;
|
||||
import com.muyu.source.domain.Structure;
|
||||
import com.muyu.source.domain.TableData;
|
||||
import com.muyu.source.domain.rep.TableInfoRep;
|
||||
import com.muyu.source.domain.rep.TableInfoResp;
|
||||
import com.muyu.source.domain.rep.TableInfoTreeRep;
|
||||
import com.muyu.source.service.*;
|
||||
import com.muyu.source.service.TableDataService;
|
||||
import com.muyu.source.service.TableInfoService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.amqp.rabbit.listener.ListenerFailedRuleBasedTransactionAttribute;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package com.muyu.source.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import com.muyu.source.domain.TableInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
|
|
@ -2,17 +2,14 @@ package com.muyu.source.service.Impl;
|
|||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
import com.muyu.source.domain.Structure;
|
||||
import com.muyu.source.domain.TableInfo;
|
||||
import com.muyu.source.domain.rep.TableInfoRep;
|
||||
import com.muyu.source.mapper.StructureMapper;
|
||||
import com.muyu.source.mapper.TableInfoMapper;
|
||||
import com.muyu.source.service.TableInfoService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
|
|
|
@ -8,20 +8,22 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Lenovo
|
||||
* @ Tool:IntelliJ IDEA
|
||||
* @ Author:CHX
|
||||
* @ Date:2024-09-02-15:32
|
||||
* @ Version:1.0
|
||||
* @ Description:用户业务实现层
|
||||
* @author Lenovo
|
||||
*/
|
||||
@Service
|
||||
public class UserServiceImpl extends ServiceImpl<UserMapper, SysUser> implements UserService {
|
||||
|
||||
@Autowired
|
||||
private UserMapper userMapper;
|
||||
|
||||
/**
|
||||
* 根据ID获取用户信息
|
||||
*
|
||||
* @param userId 用户参数
|
||||
* @return 返回结果
|
||||
*/
|
||||
|
|
|
@ -4,12 +4,12 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||
import com.muyu.source.domain.SysUser;
|
||||
|
||||
/**
|
||||
* @author Lenovo
|
||||
* @ Tool:IntelliJ IDEA
|
||||
* @ Author:CHX
|
||||
* @ Date:2024-09-02-15:31
|
||||
* @ Version:1.0
|
||||
* @ Description:用户业务层
|
||||
* @author Lenovo
|
||||
*/
|
||||
public interface UserService extends IService<SysUser> {
|
||||
SysUser findUserById(Long userId);
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
<select id="findTableIdByParentId" resultType="java.lang.Long">
|
||||
SELECT
|
||||
id
|
||||
id
|
||||
FROM
|
||||
table_info
|
||||
table_info
|
||||
<where>
|
||||
<if test="basicId!=null">
|
||||
and parent_id = #{basicId}
|
||||
and parent_id = #{basicId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
|
Loading…
Reference in New Issue