|
@@ -3,6 +3,7 @@ package com.usky.system.mapper;
|
|
|
|
|
|
import com.usky.common.mybatis.core.CrudMapper;
|
|
|
import com.usky.system.domain.SysPost;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -36,7 +37,7 @@ public interface SysPostMapper extends CrudMapper<SysPost>
|
|
|
* @param postId 岗位ID
|
|
|
* @return 角色对象信息
|
|
|
*/
|
|
|
- public SysPost selectPostById(Long postId);
|
|
|
+ public SysPost selectPostById(@Param("postId") Long postId);
|
|
|
|
|
|
/**
|
|
|
* 根据用户ID获取岗位选择框列表
|
|
@@ -44,7 +45,7 @@ public interface SysPostMapper extends CrudMapper<SysPost>
|
|
|
* @param userId 用户ID
|
|
|
* @return 选中岗位ID列表
|
|
|
*/
|
|
|
- public List<Integer> selectPostListByUserId(Long userId);
|
|
|
+ public List<Integer> selectPostListByUserId(@Param("userId") Long userId);
|
|
|
|
|
|
/**
|
|
|
* 查询用户所属岗位组
|
|
@@ -52,7 +53,7 @@ public interface SysPostMapper extends CrudMapper<SysPost>
|
|
|
* @param userName 用户名
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- public List<SysPost> selectPostsByUserName(String userName);
|
|
|
+ public List<SysPost> selectPostsByUserName(@Param("userName") String userName);
|
|
|
|
|
|
/**
|
|
|
* 删除岗位信息
|
|
@@ -60,7 +61,7 @@ public interface SysPostMapper extends CrudMapper<SysPost>
|
|
|
* @param postId 岗位ID
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- public int deletePostById(Long postId);
|
|
|
+ public int deletePostById(@Param("postId") Long postId);
|
|
|
|
|
|
/**
|
|
|
* 批量删除岗位信息
|
|
@@ -68,7 +69,7 @@ public interface SysPostMapper extends CrudMapper<SysPost>
|
|
|
* @param postIds 需要删除的岗位ID
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- public int deletePostByIds(Long[] postIds);
|
|
|
+ public int deletePostByIds(@Param("postIds") Long[] postIds);
|
|
|
|
|
|
/**
|
|
|
* 修改岗位信息
|
|
@@ -92,7 +93,8 @@ public interface SysPostMapper extends CrudMapper<SysPost>
|
|
|
* @param postName 岗位名称
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- public SysPost checkPostNameUnique(String postName,Integer tenantId);
|
|
|
+ public SysPost checkPostNameUnique(@Param("postName") String postName,
|
|
|
+ @Param("tenantId") Integer tenantId);
|
|
|
|
|
|
/**
|
|
|
* 校验岗位编码
|
|
@@ -100,5 +102,6 @@ public interface SysPostMapper extends CrudMapper<SysPost>
|
|
|
* @param postCode 岗位编码
|
|
|
* @return 结果
|
|
|
*/
|
|
|
- public SysPost checkPostCodeUnique(String postCode,Integer tenantId);
|
|
|
+ public SysPost checkPostCodeUnique(@Param("postCode") String postCode,
|
|
|
+ @Param("tenantId") Integer tenantId);
|
|
|
}
|