|
|
@@ -66,10 +66,7 @@ public class ContactUsServiceImpl extends ServiceImpl<IContactUsMapper, ContactU
|
|
|
|
|
|
@Override
|
|
|
public List<String> getAllCountry() {
|
|
|
- LambdaQueryWrapper<ContactUs> wrapper = new LambdaQueryWrapper<>();
|
|
|
- wrapper.groupBy(ContactUs::getCountry);
|
|
|
- List<ContactUs> list = this.list(wrapper);
|
|
|
- return list.stream().map(ContactUs::getCountry).collect(Collectors.toList());
|
|
|
+ return this.getBaseMapper().groupByCountry();
|
|
|
}
|
|
|
|
|
|
@Override
|