|
@@ -407,7 +407,7 @@ public class DealerSearchController extends BaseController {
|
|
|
List< ConditionDTO > searchDealerList;
|
|
|
searchDealerList = iSearchDealerService.listSearchDealer(province, city, district, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ));
|
|
|
//计算距离
|
|
|
- listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), null);
|
|
|
+ listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), null,null);
|
|
|
//end
|
|
|
//--
|
|
|
//返回用户 认证信息
|
|
@@ -426,10 +426,10 @@ public class DealerSearchController extends BaseController {
|
|
|
}
|
|
|
|
|
|
//计算商家距离
|
|
|
- private void listInner(Object obj, List< ConditionDTO > list, String sort, String dis, Integer offset, Integer pageSize, String longitude, String latitude, String searchName) {
|
|
|
+ private void listInner(Object obj, List< ConditionDTO > list, String sort, String dis, Integer offset, Integer pageSize, String longitude, String latitude, String searchName,String paramType) {
|
|
|
//如果按当前市 没有查询到数据 ,就默认查全国范围 搜索最近的15条数据显示
|
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
|
- list = iSearchDealerService.listSearchDealer(null, null, null, searchName, null, offset, pageSize, longitude, latitude);
|
|
|
+ list = iSearchDealerService.listSearchDealer(null, null, null, searchName, paramType, offset, pageSize, longitude, latitude);
|
|
|
}
|
|
|
if (obj instanceof DealerSearchShowVo) {
|
|
|
DealerSearchShowVo vo = (DealerSearchShowVo) obj;
|
|
@@ -740,7 +740,7 @@ public class DealerSearchController extends BaseController {
|
|
|
|
|
|
|
|
|
//计算距离
|
|
|
- listInner(vo, searchDealerList, sort, dis, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), searchName);
|
|
|
+ listInner(vo, searchDealerList, sort, dis, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), searchName,paramType);
|
|
|
//--end
|
|
|
|
|
|
//返回用户 认证信息
|
|
@@ -828,7 +828,7 @@ public class DealerSearchController extends BaseController {
|
|
|
//商家信息
|
|
|
List< ConditionDTO > searchDealerList = iSearchDealerService.listSearchDealer(province, city, district, searchName, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ));
|
|
|
//计算距离
|
|
|
- listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), searchName);
|
|
|
+ listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), searchName,null);
|
|
|
//--end
|
|
|
//返回用户 认证信息
|
|
|
UserStatus status = commonService.getUserStatus(userinfo.getId( ));
|
|
@@ -918,7 +918,7 @@ public class DealerSearchController extends BaseController {
|
|
|
|
|
|
List< ConditionDTO > searchDealerList = iSearchDealerService.listSearchDealer(province, city, district, name, paramType, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ));
|
|
|
//计算距离
|
|
|
- listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), name);
|
|
|
+ listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), name,paramType);
|
|
|
//--end
|
|
|
|
|
|
//返回用户 认证信息
|
|
@@ -975,7 +975,7 @@ public class DealerSearchController extends BaseController {
|
|
|
//商家信息
|
|
|
List< ConditionDTO > searchDealerList = iSearchDealerService.listSearchDealer(province, city, district, name, paramType, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ));
|
|
|
//计算距离
|
|
|
- listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), name);
|
|
|
+ listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), name,paramType);
|
|
|
//--end
|
|
|
|
|
|
//返回用户 认证信息
|
|
@@ -1051,7 +1051,7 @@ public class DealerSearchController extends BaseController {
|
|
|
//商家信息
|
|
|
List< ConditionDTO > searchDealerList = iSearchDealerService.listSearchDealer(province, city, district, searchName, paramType, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ));
|
|
|
//计算距离
|
|
|
- listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), searchName);
|
|
|
+ listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), searchName,paramType);
|
|
|
//--end
|
|
|
//返回用户 认证信息
|
|
|
UserStatus status = commonService.getUserStatus(userinfo.getId( ));
|
|
@@ -1141,7 +1141,7 @@ public class DealerSearchController extends BaseController {
|
|
|
|
|
|
List< ConditionDTO > searchDealerList = iSearchDealerService.listSearchDealer(province, city, district, searchName, paramType, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ));
|
|
|
//计算距离
|
|
|
- listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), searchName);
|
|
|
+ listInner(vo, searchDealerList, null, null, offset, pageSize, userinfo.getLongitude( ), userinfo.getLatitude( ), searchName,paramType);
|
|
|
//--end
|
|
|
//返回用户 认证信息
|
|
|
UserStatus status = commonService.getUserStatus(userinfo.getId( ));
|