空白字符问题

This commit is contained in:
2025-12-10 16:02:49 +08:00
parent 6ff5436128
commit fd2c2a488a
5 changed files with 20 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
package com.czg.controller.user;
import com.czg.account.entity.ShopInfo;
import com.czg.account.vo.PointsShopListVO;
import com.czg.market.entity.MkPointsConfig;
import com.czg.market.entity.MkPointsUser;
@@ -51,8 +52,8 @@ public class UPointsController {
/**
* 获取用户积分 包括配置信息
* {
* "pointsConfig": 配置信息,
* "pointsUser": 用户积分信息
* "pointsConfig": 配置信息,
* "pointsUser": 用户积分信息
* }
*/
@GetMapping("userPoints")
@@ -84,6 +85,9 @@ public class UPointsController {
@RequestParam(required = false, defaultValue = "10") Integer size,
@RequestParam Long id) {
return CzgResult.success(pointsUserRecordService.page(Page.of(page, size),
QueryWrapper.create().eq(MkPointsUserRecord::getMkPointsUserId, id).orderBy(MkPointsUserRecord::getCreateTime, false)));
QueryWrapper.create().select().select(ShopInfo::getShopName)
.eq(MkPointsUserRecord::getMkPointsUserId, id)
.leftJoin(ShopInfo.class).on(ShopInfo::getId, MkPointsUserRecord::getShopId)
.orderBy(MkPointsUserRecord::getCreateTime, false)));
}
}