update
This commit is contained in:
@@ -83,4 +83,11 @@ public class EnterpriseUserDAO {
|
||||
}
|
||||
return enterpriseUserMapper.getUserListByDeptLeader(regionId);
|
||||
}
|
||||
|
||||
public List<EnterpriseUserDO> getUserListByDeptLeaders(List<String> regionIds){
|
||||
if(CollectionUtils.isEmpty(regionIds)){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
return enterpriseUserMapper.getUserListByDeptLeaders(regionIds);
|
||||
}
|
||||
}
|
||||
@@ -77,4 +77,10 @@ public interface EnterpriseUserMapper {
|
||||
*/
|
||||
List<EnterpriseUserDO> getUserListByDeptLeader(String regionId);
|
||||
|
||||
/**
|
||||
* 根据开发经理获取用户列表
|
||||
* @param regionIds
|
||||
* @return
|
||||
*/
|
||||
List<EnterpriseUserDO> getUserListByDeptLeaders(@Param("regionIds") List<String> regionIds);
|
||||
}
|
||||
@@ -288,4 +288,13 @@
|
||||
<select id="getUserListByDeptLeader" resultMap="BaseResultMap">
|
||||
select user_id, leader_dept_ids from enterprise_user where leader_dept_ids like concat("%", #{regionId}, "%") and deleted = 0
|
||||
</select>
|
||||
|
||||
<select id="getUserListByDeptLeaders" resultMap="BaseResultMap">
|
||||
select
|
||||
user_id, name, mobile
|
||||
from
|
||||
enterprise_user
|
||||
where
|
||||
deleted = 0 and <foreach collection="regionIds" separator="or" open="(" close=")" item="regionId"> leader_dept_ids like concat("%", #{regionId}, "%") </foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user