客户端商品同步上传cos和刷新时间改为服务器刷新

This commit is contained in:
liyj 2025-06-14 16:37:10 +08:00
parent 68081a180e
commit 079685b766
2 changed files with 4 additions and 1 deletions

View File

@ -97,6 +97,8 @@ public class SxGoosModel {
@ApiModelProperty("商品图片库") @ApiModelProperty("商品图片库")
private List<ProductImage> product_images; private List<ProductImage> product_images;
@ApiModelProperty("是否特价商品,0否1是")
private String isSpecial;
@ApiModelProperty("商品详情") @ApiModelProperty("商品详情")
private List<PromotionDetail> promotion_detail; private List<PromotionDetail> promotion_detail;

View File

@ -172,7 +172,7 @@ public abstract class SxDataAbstService {
sxGoosModel.setProduct_images(new ArrayList<>());//介绍图片 todo sxGoosModel.setProduct_images(new ArrayList<>());//介绍图片 todo
sxGoosModel.setPromotion_detail(new ArrayList<>());//活动列表 todo sxGoosModel.setPromotion_detail(new ArrayList<>());//活动列表 todo
sxGoosModel.setIsSpecial("0");
SxGoosModel finalSxGoosModel = sxGoosModel; SxGoosModel finalSxGoosModel = sxGoosModel;
specPriceDtoList.forEach(m->{ specPriceDtoList.forEach(m->{
if(sxSyncGood.getItem_no().equals(m.getItemNo())){ if(sxSyncGood.getItem_no().equals(m.getItemNo())){
@ -184,6 +184,7 @@ public abstract class SxDataAbstService {
if(type.equals("2")){ if(type.equals("2")){
finalSxGoosModel.setPrice(finalSxGoosModel.getPrice().multiply(m.getDiscount())); finalSxGoosModel.setPrice(finalSxGoosModel.getPrice().multiply(m.getDiscount()));
} }
finalSxGoosModel.setIsSpecial("1");
} }
}); });
sxGoosModelList.add(sxGoosModel); sxGoosModelList.add(sxGoosModel);