|
|
@@ -398,7 +398,17 @@ public class KwmAddressService {
|
|
|
* @date: 2023/7/12
|
|
|
*/
|
|
|
public void export(AddressQueryReqVo reqVo, HttpServletResponse response) {
|
|
|
- List<KwmAddress> kwmAddressList = findList(reqVo);
|
|
|
+
|
|
|
+ //新增客户经理权限过滤
|
|
|
+ List<Long> authEntIdList = LoginUserHolder.getAuthEntIdList();
|
|
|
+ if (CollectionUtils.isEmpty(authEntIdList)) {
|
|
|
+ List<Long> ids = remoteUserService.findEnterpriseIdsByUserIdIsMain(LoginUserHolder.getUserId());
|
|
|
+ if (CollectionUtils.isEmpty(ids)) {
|
|
|
+ PageHelperUtil.getPageResult(new PageInfo<KwmAddress>(), new ArrayList<>(), reqVo.getPageSize());
|
|
|
+ }
|
|
|
+ authEntIdList.addAll(ids);
|
|
|
+ }
|
|
|
+ List<KwmAddress> kwmAddressList = findList(reqVo,authEntIdList);
|
|
|
if (CollectionUtils.isEmpty(kwmAddressList)) {
|
|
|
throw new SystemException(HttpStatus.SUCCESS_CODE, "暂无数据,请确认!");
|
|
|
}
|