发送道具和列表修复

This commit is contained in:
tianfeng 2025-11-19 19:35:52 +08:00
parent 69eae095fb
commit aa3b880427
3 changed files with 20 additions and 1 deletions

View File

@ -24,6 +24,16 @@ public enum BadgeConfigTypeEnum {
*/
ACTIVITY,
/**
* 荣誉活动.
*/
HONOR_ACTIVITY,
/**
* 荣誉成就.
*/
HONOR_ACHIEVEMENT,
/**
* 房间徽章.
*/

View File

@ -11,6 +11,7 @@ import com.red.circle.other.infra.common.props.UserBadgeCommon;
import com.red.circle.other.infra.database.rds.entity.badge.BadgeBackpack;
import com.red.circle.other.infra.database.rds.service.badge.BadgeBackpackService;
import com.red.circle.other.infra.database.rds.service.badge.BadgeConfigService;
import com.red.circle.other.inner.enums.material.BadgeBackpackExpireType;
import com.red.circle.other.inner.enums.sys.SysBadgeConfigTypeEnum;
import com.red.circle.other.inner.model.dto.material.BadgeConfigDetailsDTO;
import com.red.circle.other.inner.model.dto.material.UseBadgeDTO;
@ -41,7 +42,12 @@ public class UseOwnedBadgeQryExe {
// 查询用户所有未过期的徽章
LambdaQueryWrapper<BadgeBackpack> eq = Wrappers.lambdaQuery(BadgeBackpack.class)
.eq(BadgeBackpack::getUserId, userProfile.getId())
.ge(BadgeBackpack::getExpireTime, TimestampUtils.now());
.and(e -> {
e.ge(BadgeBackpack::getExpireTime, TimestampUtils.now())
.or()
.eq(BadgeBackpack::getExpireType, BadgeBackpackExpireType.PERMANENT.name());
});
List<BadgeBackpack> badgeBackpacks = badgeBackpackService.list(eq);
Set<Long> badgeIdSet = badgeBackpacks.stream()

View File

@ -40,4 +40,7 @@ props.type.DATA_CARD=Card Decoration
props.type.SPECIAL_ID=Special ID
props.type.ACTIVITY=Badge
props.type.ADMINISTRATOR=Badge
props.type.ACHIEVEMENT=Badge
props.type.HONOR_ACTIVITY=Honor
props.type.HONOR_ACHIEVEMENT=Honor