Merge branch 'master' of gitee.com:beijing_hongye_huicheng/lilishop

This commit is contained in:
Chopper 2022-02-16 17:54:46 +08:00
commit 9616c27efa
2 changed files with 4 additions and 3 deletions

View File

@ -239,8 +239,8 @@ public interface MemberService extends IService<Member> {
/** /**
* 获取用户VO * 获取用户VO
* @param id * @param id 会员id
* @return * @return 用户VO
*/ */
MemberVO getMember(String id); MemberVO getMember(String id);
} }

View File

@ -535,7 +535,8 @@ public class EsGoodsIndexServiceImpl extends BaseElasticsearchService implements
if (promotionMap != null && !promotionMap.isEmpty()) { if (promotionMap != null && !promotionMap.isEmpty()) {
//促销不为空则进行清洗 //促销不为空则进行清洗
promotionMap.entrySet().removeIf(i -> { promotionMap.entrySet().removeIf(i -> {
BasePromotions promotion = (BasePromotions) i.getValue(); JSONObject promotionJson = (JSONObject) i.getValue();
BasePromotions promotion = promotionJson.toBean(BasePromotions.class);
return promotion.getEndTime() != null && promotion.getEndTime().getTime() < DateUtil.date().getTime(); return promotion.getEndTime() != null && promotion.getEndTime().getTime() < DateUtil.date().getTime();
}); });
} }