fix(shop): 修正获取分销商用户记录接口的查询方法

- 将查询方法从getByIdRel修改为getByUserIdRel
- 使用关联查询以确保返回正确的用户数据
- 解决了因使用错误方法导致的数据获取问题
This commit is contained in:
2026-04-16 14:07:19 +08:00
parent db5ca691d7
commit b6a3d407e4

View File

@@ -57,7 +57,7 @@ public class ShopDealerUserController extends BaseController {
@GetMapping("/{id}")
public ApiResult<ShopDealerUser> get(@PathVariable("id") Integer id) {
// 使用关联查询
return success(shopDealerUserService.getByIdRel(id));
return success(shopDealerUserService.getByUserIdRel(id));
}
@Operation(summary = "添加分销商用户记录表")