...
|
...
|
@@ -291,14 +291,25 @@ public class ProductProxyService extends AbsProxyService{ |
|
|
skupReq.setPrice(goods.getGoodsPrice());
|
|
|
skupReq.setSellerUid(goods.getUid());
|
|
|
Integer skupa = goods.getAttributes();
|
|
|
if (Objects.nonNull(skupa) && SkupType.ADVANCE.getCode() == skupa){
|
|
|
skupReq.setPreSaleFlag(isAdvace);
|
|
|
}
|
|
|
Integer presaleFlag = buildPresaleFlag(skupa);
|
|
|
skupReq.setPreSaleFlag(presaleFlag);
|
|
|
ApiResponse resp = ufoServiceCaller.call(syncSkup, skupReq);
|
|
|
return (null == resp || null == resp.getData())? false : (boolean)resp.getData();
|
|
|
}
|
|
|
|
|
|
public static Integer buildPresaleFlag(Integer skupa){
|
|
|
Integer presaleFlag = null;
|
|
|
if(Objects.nonNull(skupa)) {
|
|
|
if (SkupType.ADVANCE.getCode() == skupa) {
|
|
|
presaleFlag = isAdvace;
|
|
|
}
|
|
|
if (SkupType.FLAW.getCode() == skupa || SkupType.SECOND_HAND.getCode() == skupa) {
|
|
|
presaleFlag = skupa;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
return presaleFlag;
|
|
|
}
|
|
|
|
|
|
public boolean batchCreateSkup(List<SellerOrderGoods> sogList){
|
|
|
List<StoragePriceBo> skupBoList = new ArrayList<>(sogList.size());
|
...
|
...
|
|