feat: bug-596 产品机型新品逻辑调整

This commit is contained in:
曹鹏飞 2025-08-26 11:35:38 +08:00
parent 04d6bae1f6
commit fe3d0a5176
1 changed files with 0 additions and 5 deletions

View File

@ -3,7 +3,6 @@ package com.nflg.mobilebroken.common.pojo.vo;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.Objects;
@Data
public class ProductModelSearchVO {
@ -55,10 +54,6 @@ public class ProductModelSearchVO {
*/
private Boolean recommend;
public Boolean getRecommend() {
return recommend && (Objects.nonNull(recommendExpireTime) && LocalDateTime.now().isBefore(recommendExpireTime));
}
/**
* 新品过期时间
*/