fix(shop): 修正获取分销商用户记录接口的查询方法
- 将查询方法从getByIdRel修改为getByUserIdRel - 使用关联查询以确保返回正确的用户数据 - 解决了因使用错误方法导致的数据获取问题
This commit is contained in:
@@ -57,7 +57,7 @@ public class ShopDealerUserController extends BaseController {
|
|||||||
@GetMapping("/{id}")
|
@GetMapping("/{id}")
|
||||||
public ApiResult<ShopDealerUser> get(@PathVariable("id") Integer id) {
|
public ApiResult<ShopDealerUser> get(@PathVariable("id") Integer id) {
|
||||||
// 使用关联查询
|
// 使用关联查询
|
||||||
return success(shopDealerUserService.getByIdRel(id));
|
return success(shopDealerUserService.getByUserIdRel(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Operation(summary = "添加分销商用户记录表")
|
@Operation(summary = "添加分销商用户记录表")
|
||||||
|
|||||||
Reference in New Issue
Block a user