修改联调问题
This commit is contained in:
@@ -43,7 +43,13 @@ public class UserService {
|
|||||||
public List<SysUser> listAllUsers(LoginUser currentUser) {
|
public List<SysUser> listAllUsers(LoginUser currentUser) {
|
||||||
try {
|
try {
|
||||||
assertSystemAdmin(currentUser);
|
assertSystemAdmin(currentUser);
|
||||||
LambdaQueryWrapper wrapper = new LambdaQueryWrapper<SysUser>().orderByAsc(SysUser::getId);
|
// LambdaQueryWrapper wrapper = new LambdaQueryWrapper<SysUser>()
|
||||||
|
// .eq(SysUser::getPosition, UserPosition.ADMIN) // 添加岗位过滤
|
||||||
|
// .orderByAsc(SysUser::getId);
|
||||||
|
LambdaQueryWrapper wrapper = new LambdaQueryWrapper<SysUser>()
|
||||||
|
.ne(SysUser::getId, currentUser.userId())
|
||||||
|
.eq(SysUser::getPosition, UserPosition.ADMIN)
|
||||||
|
.orderByAsc(SysUser::getId);
|
||||||
return sysUserMapper.selectList(wrapper);
|
return sysUserMapper.selectList(wrapper);
|
||||||
} catch (ForbiddenException e) {
|
} catch (ForbiddenException e) {
|
||||||
throw e;
|
throw e;
|
||||||
|
|||||||
@@ -8,6 +8,8 @@
|
|||||||
<result column="creator_role" property="creatorRole"/>
|
<result column="creator_role" property="creatorRole"/>
|
||||||
<result column="task_id" property="taskId"/>
|
<result column="task_id" property="taskId"/>
|
||||||
<result column="resource_id" property="resourceId"/>
|
<result column="resource_id" property="resourceId"/>
|
||||||
|
<result column="task_name" property="taskName"/>
|
||||||
|
<result column="resource_name" property="resourceName"/>
|
||||||
<result column="qa_content_file_path" property="qaContentFilePath"/>
|
<result column="qa_content_file_path" property="qaContentFilePath"/>
|
||||||
<result column="diff_summary_file_path" property="diffSummaryFilePath"/>
|
<result column="diff_summary_file_path" property="diffSummaryFilePath"/>
|
||||||
<result column="requires_manual_review" property="requiresManualReview"/>
|
<result column="requires_manual_review" property="requiresManualReview"/>
|
||||||
@@ -18,8 +20,8 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="AnnotationResultColumns">
|
<sql id="AnnotationResultColumns">
|
||||||
id, company_id, creator_id, creator_role, task_id, resource_id, qa_content_file_path,
|
id, company_id, creator_id, creator_role, task_id, resource_id, task_name, resource_name,
|
||||||
diff_summary_file_path, requires_manual_review, is_deleted, reviewer_id,
|
qa_content_file_path, diff_summary_file_path, requires_manual_review, is_deleted, reviewer_id,
|
||||||
created_at, updated_at
|
created_at, updated_at
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
@@ -50,4 +52,4 @@
|
|||||||
and company_id = #{companyId}
|
and company_id = #{companyId}
|
||||||
and is_deleted = false
|
and is_deleted = false
|
||||||
</update>
|
</update>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user