Authored by chenchao

fix bug

... ... @@ -909,7 +909,7 @@ public class SellerOrderCancelService {
AuditFailedEvent afe = (AuditFailedEvent)auditCancelCase.getEvent();
final int skup = afe.getSkup();
logger.info("in cancel offShelveCancelCase {}", afe);
logger.info("in cancel AuditCancelCase {}", afe);
SkupStatus expectSkupStatus = SkupStatus.CAN_SELL;
final SellerOrderStatus targetSellerOrderStatus = SellerOrderStatus.AUDIT_FAIL;
CancelStatusNode csn = new CancelStatusNode();
... ...
... ... @@ -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());
... ...