|
@@ -162,7 +162,7 @@ public class MemberEnquiryController extends BaseController {
|
|
|
|
|
|
}
|
|
|
memberEnquiry.setItemName(itemName);
|
|
|
- vos.add(new MemberEnquiryVO(memberEnquiry));
|
|
|
+ vos.add(new MemberEnquiryVO(memberEnquiry, webSite));
|
|
|
});
|
|
|
}
|
|
|
return SldResponse.success(new PageVO<>(vos, example.getPager()));
|
|
@@ -176,6 +176,7 @@ public class MemberEnquiryController extends BaseController {
|
|
|
*/
|
|
|
@GetMapping("phoneCode")
|
|
|
public JsonResult<List<CountryPhoneCodeVO>> getPhoneCode(HttpServletRequest request) {
|
|
|
+ String webSite = WebUtil.getWebSite(request);
|
|
|
CountryExample example = new CountryExample();
|
|
|
example.setOrderBy("id asc");
|
|
|
ArrayList<CountryPhoneCodeVO> vos = new ArrayList<>();
|
|
@@ -188,9 +189,19 @@ public class MemberEnquiryController extends BaseController {
|
|
|
return Collator.getInstance(Locale.UK).compare(s1, s2);
|
|
|
}
|
|
|
});
|
|
|
+ if (!WebSiteConstant.MEMBER_OVERSEA.equals(webSite)){
|
|
|
+ Collections.sort(list,new Comparator<Country>(){
|
|
|
+ @Override
|
|
|
+ public int compare(Country o1, Country o2) {
|
|
|
+ String s1=o1.getZhName();
|
|
|
+ String s2=o2.getZhName();
|
|
|
+ return Collator.getInstance(Locale.SIMPLIFIED_CHINESE).compare(s1, s2);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
if (!CollectionUtils.isEmpty(list)) {
|
|
|
list.forEach(country -> {
|
|
|
- vos.add(new CountryPhoneCodeVO(country));
|
|
|
+ vos.add(new CountryPhoneCodeVO(country, webSite));
|
|
|
});
|
|
|
}
|
|
|
return SldResponse.success(vos);
|