| | |
| | | public class UserPointsServiceImpl extends ServiceImpl<UserPointsMapper, UserPoints> implements UserPointsService { |
| | | |
| | | @Override |
| | | public PointsStatsVO getPersonalPointsStats(Long userId) { |
| | | public PointsStatsVO getPersonalPointsStats(String userId) { |
| | | UserPoints userPoints = this.baseMapper.selectByUserId(userId); |
| | | |
| | | PointsStatsVO statsVO = new PointsStatsVO(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public PointsStatsVO getUnitPointsStats(Long unitId) { |
| | | public PointsStatsVO getUnitPointsStats(String unitId) { |
| | | UserPoints userPoints = this.baseMapper.selectByUnitId(unitId); |
| | | |
| | | PointsStatsVO statsVO = new PointsStatsVO(); |
| | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void updateUserPoints(Long userId, Long unitId, Integer points) { |
| | | public void updateUserPoints(String userId, String unitId, Integer points) { |
| | | // 查询用户积分记录 |
| | | LambdaQueryWrapper<UserPoints> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(UserPoints::getUserId, userId); |