参数名设置
This commit is contained in:
@@ -2,6 +2,7 @@ package com.zyplayer.doc.data.repository.manage.mapper;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.zyplayer.doc.data.repository.manage.entity.UserGroupAuth;
|
import com.zyplayer.doc.data.repository.manage.entity.UserGroupAuth;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -16,5 +17,5 @@ public interface UserGroupAuthMapper extends BaseMapper<UserGroupAuth> {
|
|||||||
|
|
||||||
@Select("select a.id from user_group_auth a join user_group_relation b on a.group_id=b.group_id and b.user_id=#{userId} " +
|
@Select("select a.id from user_group_auth a join user_group_relation b on a.group_id=b.group_id and b.user_id=#{userId} " +
|
||||||
"where a.project_type=#{projectType} and a.auth_type=#{authType} and a.data_id=#{spaceId} and b.del_flag=0")
|
"where a.project_type=#{projectType} and a.auth_type=#{authType} and a.data_id=#{spaceId} and b.del_flag=0")
|
||||||
Long haveAuth(Long spaceId, Integer projectType, Integer authType, Long userId);
|
Long haveAuth(@Param("spaceId") Long spaceId, @Param("projectType") Integer projectType, @Param("authType") Integer authType, @Param("userId") Long userId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user