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