【BUG】修改限时优惠修改活动表时间时,商品表时间没有变化的问题

This commit is contained in:
痴货 2024-09-14 19:17:20 +08:00
parent 51b8fe2eca
commit 60ab3389f5

View File

@ -121,7 +121,10 @@ public interface DiscountActivityConvert {
default boolean isEquals(DiscountProductDO productDO, DiscountProductDO productVO) { default boolean isEquals(DiscountProductDO productDO, DiscountProductDO productVO) {
if (ObjectUtil.notEqual(productDO.getSpuId(), productVO.getSpuId()) if (ObjectUtil.notEqual(productDO.getSpuId(), productVO.getSpuId())
|| ObjectUtil.notEqual(productDO.getSkuId(), productVO.getSkuId()) || ObjectUtil.notEqual(productDO.getSkuId(), productVO.getSkuId())
|| ObjectUtil.notEqual(productDO.getDiscountType(), productVO.getDiscountType())) { || ObjectUtil.notEqual(productDO.getDiscountType(), productVO.getDiscountType())
|| ObjectUtil.notEqual(productDO.getActivityEndTime(), productVO.getActivityEndTime())
|| ObjectUtil.notEqual(productDO.getActivityStartTime(), productVO.getActivityStartTime())
|| ObjectUtil.notEqual(productDO.getActivityStatus(), productVO.getActivityStatus())) {
return false; return false;
} }
if (productDO.getDiscountType().equals(PromotionDiscountTypeEnum.PRICE.getType())) { if (productDO.getDiscountType().equals(PromotionDiscountTypeEnum.PRICE.getType())) {