|
@@ -110,8 +110,12 @@ public class KwmAddressService {
|
|
|
*/
|
|
*/
|
|
|
private List<KwmAddress> findList(AddressQueryReqVo reqVo, List<Long> authEntIdList) {
|
|
private List<KwmAddress> findList(AddressQueryReqVo reqVo, List<Long> authEntIdList) {
|
|
|
LambdaQueryWrapper<KwmAddress> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<KwmAddress> wrapper = new LambdaQueryWrapper<>();
|
|
|
- if (CollectionUtils.isNotEmpty(authEntIdList)) {
|
|
|
|
|
- wrapper.in(KwmAddress::getEntId, authEntIdList);
|
|
|
|
|
|
|
+ if (Objects.nonNull(reqVo.getEntId())) {
|
|
|
|
|
+ wrapper.eq(KwmAddress::getEntId, reqVo.getEntId());
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if (CollectionUtils.isNotEmpty(authEntIdList)) {
|
|
|
|
|
+ wrapper.in(KwmAddress::getEntId, authEntIdList);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
wrapper.in(Objects.nonNull(reqVo.getCityCode()), KwmAddress::getCityCode, reqVo.getCityCodeList()).
|
|
wrapper.in(Objects.nonNull(reqVo.getCityCode()), KwmAddress::getCityCode, reqVo.getCityCodeList()).
|
|
|
eq(Objects.nonNull(reqVo.getType()), KwmAddress::getType, reqVo.getType()).
|
|
eq(Objects.nonNull(reqVo.getType()), KwmAddress::getType, reqVo.getType()).
|
|
@@ -135,10 +139,6 @@ public class KwmAddressService {
|
|
|
wrapper.in(KwmAddress::getId, StringUtils.splitStrToList(reqVo.getIds(), Long.class));
|
|
wrapper.in(KwmAddress::getId, StringUtils.splitStrToList(reqVo.getIds(), Long.class));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (!Objects.equals(LoginUserHolder.getSystemType(), SystemTypeEnum.MANAGE.getCode())) {
|
|
|
|
|
- wrapper.eq(KwmAddress::getEntId, LoginUserHolder.getEntId());
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
return kwmAddressMapper.selectList(wrapper);
|
|
return kwmAddressMapper.selectList(wrapper);
|
|
|
}
|
|
}
|
|
|
|
|
|