同步商品活动问题修改
This commit is contained in:
parent
0189a7e9cd
commit
71baf350b2
@ -99,7 +99,7 @@ public class WebController {
|
|||||||
sxDataService.syncAtive(new DataBaseInfo(),sxDataService.getCommentModel());
|
sxDataService.syncAtive(new DataBaseInfo(),sxDataService.getCommentModel());
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/syncActives")
|
@RequestMapping("/syncAtiveShops")
|
||||||
public void syncAtiveShops(){
|
public void syncAtiveShops(){
|
||||||
sxDataService.syncAtiveShops(new DataBaseInfo(),sxDataService.getCommentModel());
|
sxDataService.syncAtiveShops(new DataBaseInfo(),sxDataService.getCommentModel());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -175,15 +175,16 @@ public abstract class SxDataAbstService {
|
|||||||
sxGoosModel.setIsSpecial("0");
|
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())){
|
||||||
String type=m.getDiscountType();
|
String type=m.getDiscountType();
|
||||||
if(type.equals("1")){
|
if(type.equals("1")){
|
||||||
finalSxGoosModel.setPrice(m.getSpecPrice());
|
// finalSxGoosModel.setPrice(m.getSpecPrice());
|
||||||
finalSxGoosModel.setBuy_limit(m.getSaleQty());//最大购买商品量 todo
|
finalSxGoosModel.setBuy_limit(m.getSaleQty());//最大购买商品量 todo
|
||||||
}
|
}
|
||||||
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");
|
finalSxGoosModel.setIsSpecial("1");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user