积分获取bug修复
This commit is contained in:
parent
c36907d3f3
commit
a3fa377c4b
|
|
@ -109,7 +109,7 @@ public class UShopUserController {
|
||||||
*/
|
*/
|
||||||
@GetMapping("/pointsRecord")
|
@GetMapping("/pointsRecord")
|
||||||
public CzgResult<Page<PointsExchangeRecord>> getPointsRecord() {
|
public CzgResult<Page<PointsExchangeRecord>> getPointsRecord() {
|
||||||
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getShopId, StpKit.USER.getShopId()).eq(ShopUser::getId, StpKit.USER.getLoginIdAsLong()));
|
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getShopId, StpKit.USER.getShopId()).eq(ShopUser::getUserId, StpKit.USER.getLoginIdAsLong()));
|
||||||
return CzgResult.success(pointsExchangeRecordService.page(PageUtil.buildPage(), new QueryWrapper().eq(PointsExchangeRecord::getShopId, StpKit.USER.getShopId())
|
return CzgResult.success(pointsExchangeRecordService.page(PageUtil.buildPage(), new QueryWrapper().eq(PointsExchangeRecord::getShopId, StpKit.USER.getShopId())
|
||||||
.eq(PointsExchangeRecord::getShopUserId, shopUser.getId()).orderBy(PointsExchangeRecord::getId, false)));
|
.eq(PointsExchangeRecord::getShopUserId, shopUser.getId()).orderBy(PointsExchangeRecord::getId, false)));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue