fix:内勤看所有管辖范围的数据
This commit is contained in:
@@ -376,16 +376,16 @@
|
||||
and (a.investment_manager = #{userId} or a.operations_consultant = #{userId})
|
||||
</if>
|
||||
<if test="request.authRegionIds != null and request.authRegionIds.size() > 0">
|
||||
and a.region_id in
|
||||
and (
|
||||
a.region_id in
|
||||
<foreach collection="request.authRegionIds" item="regionId" index="index" open="(" separator="," close=")">
|
||||
#{regionId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="request.authInvestRegionIds != null and request.authInvestRegionIds.size() > 0">
|
||||
and a.invest_region_id in
|
||||
<foreach collection="request.authInvestRegionIds" item="investRegionId" index="index" open="(" separator="," close=")">
|
||||
#{investRegionId}
|
||||
or a.invest_region_id in
|
||||
<foreach collection="request.authRegionIds" item="regionId" index="index" open="(" separator="," close=")">
|
||||
#{regionId}
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
order by a.update_time desc
|
||||
</select>
|
||||
|
||||
@@ -549,11 +549,7 @@ public class ShopServiceImpl implements ShopService {
|
||||
}
|
||||
List<Long> userRoleIds = enterpriseUserRoleMapper.getUserRoleIds(userId);
|
||||
// 招商经理查询招商区域invest_region_id,否则查询运营区域region_id
|
||||
if (userRoleIds.contains(UserRoleEnum.INVESTMENT_MANGER.getCode())) {
|
||||
request.setAuthInvestRegionIds(authRegionIds);
|
||||
} else {
|
||||
request.setAuthRegionIds(authRegionIds);
|
||||
}
|
||||
request.setAuthRegionIds(authRegionIds);
|
||||
}
|
||||
}
|
||||
if (CollectionUtils.isNotEmpty(request.getRegionIds())) {
|
||||
|
||||
Reference in New Issue
Block a user