Authored by chenchao

fix filter advance skup

... ... @@ -348,6 +348,9 @@ public class SkupListService {
BigDecimal salePrice = sog.getGoodsPrice();
Integer storageId = sog.getStorageId();
StorageInfoResp sir;
if (OrderAssist.skupIsAdvance(sog.getAttributes())){
continue;
}
if (Objects.nonNull(sir=storageDataMap.get(storageId))
&& SellerGoodsHelper.isOverSuggestMaxPrice(sir.getSuggestHighPrice(), salePrice)){
total += sog.getStorageNum();
... ...
... ... @@ -16,9 +16,12 @@ public class OrderAssist {
return new StringBuilder().append(storageId).append("_").append(salePrice).toString();
}
public static boolean skupIsAdvance(Integer attribute){
return Objects.nonNull(attribute) && SkupType.ADVANCE.getCode() == attribute;
}
public static String getSkupIsAdvance(Integer attribute){
return Objects.nonNull(attribute) && SkupType.ADVANCE.getCode() == attribute ? Y : N;
return skupIsAdvance(attribute) ? Y : N;
}
public static String getOrderIsAdvance(Integer attribute){
... ...