|
@@ -57,6 +57,8 @@ public class MerchantController {
|
|
|
*/
|
|
|
@GetMapping("/merchantSort")
|
|
|
public List<SimpleMerchantVO> listSimpleMerchants(@Valid MerchantQueryParam param) {
|
|
|
+ param.setCode((param.getRegion()/100)*100);
|
|
|
+ param.setBoundary((param.getRegion()/100)*100+99);
|
|
|
return MerchantCopier.INSTANCE.copying(this.merchantClient.listSimpleMerchants(param));
|
|
|
}
|
|
|
|
|
@@ -81,6 +83,8 @@ public class MerchantController {
|
|
|
@GetMapping("/merchant/{id}")
|
|
|
public MerchantDetailDTO getMerchantDetail(@PathVariable("id") @Min(value = 1, message = "商家ID不能小于1") Long id,
|
|
|
@Valid LocationQueryParam param) {
|
|
|
+ param.setCode((param.getRegion()/100)*100);
|
|
|
+ param.setBoundary((param.getRegion()/100)*100+99);
|
|
|
return this.merchantClient.queryMerchantDetail(id, param);
|
|
|
}
|
|
|
|