refactor(项目管理): 项目成员查询优化
This commit is contained in:
parent
4b6d848577
commit
f2da9e068d
|
@ -31,12 +31,12 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<sql id="filter">
|
<sql id="filter">
|
||||||
<if test="request.filter != null and request.filter.size() > 0">
|
<if test="request.filter != null">
|
||||||
<foreach collection="request.filter.entrySet()" index="key" item="values">
|
<foreach collection="request.filter.entrySet()" index="key" item="values">
|
||||||
<if test="values != null and values.size() > 0">
|
<if test="values != null and values.size() > 0">
|
||||||
<choose>
|
<choose>
|
||||||
<when test="key == 'roleIds'">
|
<when test="key == 'roleIds'">
|
||||||
and urr.id in
|
and urr.role_id in
|
||||||
<include refid="io.metersphere.sdk.mapper.BaseMapper.filterInWrapper"/>
|
<include refid="io.metersphere.sdk.mapper.BaseMapper.filterInWrapper"/>
|
||||||
</when>
|
</when>
|
||||||
</choose>
|
</choose>
|
||||||
|
|
|
@ -17,7 +17,6 @@ import io.metersphere.sdk.exception.MSException;
|
||||||
import io.metersphere.sdk.log.constants.OperationLogModule;
|
import io.metersphere.sdk.log.constants.OperationLogModule;
|
||||||
import io.metersphere.sdk.log.constants.OperationLogType;
|
import io.metersphere.sdk.log.constants.OperationLogType;
|
||||||
import io.metersphere.sdk.log.service.OperationLogService;
|
import io.metersphere.sdk.log.service.OperationLogService;
|
||||||
import io.metersphere.sdk.mapper.BaseUserMapper;
|
|
||||||
import io.metersphere.sdk.util.BeanUtils;
|
import io.metersphere.sdk.util.BeanUtils;
|
||||||
import io.metersphere.sdk.util.JSON;
|
import io.metersphere.sdk.util.JSON;
|
||||||
import io.metersphere.sdk.util.Translator;
|
import io.metersphere.sdk.util.Translator;
|
||||||
|
@ -49,8 +48,6 @@ public class ProjectMemberService {
|
||||||
@Resource
|
@Resource
|
||||||
private UserRoleRelationMapper userRoleRelationMapper;
|
private UserRoleRelationMapper userRoleRelationMapper;
|
||||||
@Resource
|
@Resource
|
||||||
private BaseUserMapper baseUserMapper;
|
|
||||||
@Resource
|
|
||||||
private ProjectMapper projectMapper;
|
private ProjectMapper projectMapper;
|
||||||
@Resource
|
@Resource
|
||||||
private ExtProjectMemberMapper extProjectMemberMapper;
|
private ExtProjectMemberMapper extProjectMemberMapper;
|
||||||
|
|
Loading…
Reference in New Issue