|
|
@@ -382,6 +382,11 @@ public class KwmAddressService {
|
|
|
wrapper.and(wp -> wp.like(KwmAddress::getCityName, reqVo.getCityName()).or().
|
|
|
like(KwmAddress::getDetailAddress, reqVo.getCityName()));
|
|
|
}
|
|
|
+
|
|
|
+ if (Objects.nonNull(reqVo.getDefaultType())) {
|
|
|
+ wrapper.and(wp -> wp.eq(KwmAddress::getDefaultType, Global.NUMERICAL_THREE).or().
|
|
|
+ eq(KwmAddress::getDefaultType, reqVo.getDefaultType()));
|
|
|
+ }
|
|
|
List<KwmAddress> kwmAddresses = kwmAddressMapper.selectList(wrapper);
|
|
|
if (CollectionUtils.isEmpty(kwmAddresses)) {
|
|
|
return Collections.emptyList();
|