变动后积分

This commit is contained in:
2025-12-10 17:50:40 +08:00
parent e2a3989894
commit adea09b0fe
2 changed files with 7 additions and 2 deletions

View File

@@ -63,7 +63,11 @@ public class MkPointsUserRecord implements Serializable {
/** /**
* 浮动积分(非0正负数) * 浮动积分(非0正负数)
*/ */
private Integer floatPoints; private Long floatPoints;
/**
* 变动后积分
*/
private Long balancePoints;
/** /**
* 创建时间 * 创建时间

View File

@@ -138,7 +138,8 @@ public class MkPointsUserServiceImpl extends ServiceImpl<MkPointsUserMapper, MkP
.shopId(pointsUser.getShopId()) .shopId(pointsUser.getShopId())
.shopUserId(pointsUser.getShopUserId()) .shopUserId(pointsUser.getShopUserId())
.floatType(floatType.getValue()) .floatType(floatType.getValue())
.floatPoints(points) .floatPoints(Long.valueOf(points))
.balancePoints(pointsUser.getPointBalance() - points)
.sourceId(sourceId.toString()) .sourceId(sourceId.toString())
.content(reason) .content(reason)
.build(); .build();