master:修复商品编辑时,会更新ES中商品创建时间BUG;

pull/1121/head
liujiang 2025-10-14 21:42:59 +08:00
parent 1759c5f864
commit 0e1f61ebfd
1 changed files with 2 additions and 1 deletions

View File

@ -1157,7 +1157,8 @@ public class StoreProductServiceImpl implements IStoreProductService {
String style = updateDTO.getCateAttr().getStyle();
// 组装
ESProductDTO esProdDTO = BeanUtil.toBean(storeProd, ESProductDTO.class).setHasVideo(hasVideo)
.setProdCateName(updateDTO.getProdCateName()).setCreateTime(DateUtils.getTime()).setStoreName(storeName).setMainPicUrl(firstMainPic)
.setProdCateName(updateDTO.getProdCateName()).setStoreName(storeName).setMainPicUrl(firstMainPic)
.setCreateTime(DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, storeProd.getCreateTime()))
.setSaleWeight(WEIGHT_DEFAULT_ZERO.toString()).setRecommendWeight(WEIGHT_DEFAULT_ZERO.toString()).setPopularityWeight(WEIGHT_DEFAULT_ZERO.toString())
.setParCateId(parCate.getProdCateId().toString()).setParCateName(parCate.getName()).setProdPrice(minPrice.toString());
if (StringUtils.isNotBlank(season)) {