...
|
...
|
@@ -29,6 +29,8 @@ import com.yohoufo.order.common.SuperEntrySellerStatus; |
|
|
import com.yohoufo.order.service.IStoredSellerService;
|
|
|
import com.yohoufo.order.service.MerchantOrderPaymentService;
|
|
|
import com.yohoufo.order.service.cache.StoredSellerCacheService;
|
|
|
import com.yohoufo.order.service.pay.AbstractPayConfig;
|
|
|
import com.yohoufo.order.service.pay.AbstractPayService;
|
|
|
import com.yohoufo.order.service.proxy.ProductProxyService;
|
|
|
import com.yohoufo.order.service.proxy.SellerNoticeFacade;
|
|
|
import com.yohoufo.order.service.seller.setting.SellerService;
|
...
|
...
|
@@ -41,7 +43,10 @@ import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.tuple.Pair;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeansException;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
import org.springframework.context.ApplicationContextAware;
|
|
|
import org.springframework.integration.context.Orderable;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
...
|
...
|
@@ -54,7 +59,7 @@ import java.util.function.Function; |
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
@Service
|
|
|
public class StoreSellerServiceImpl implements IStoredSellerService {
|
|
|
public class StoreSellerServiceImpl implements IStoredSellerService,ApplicationContextAware {
|
|
|
|
|
|
private static final Logger logger = LoggerUtils.getSellerOrderLogger();
|
|
|
|
...
|
...
|
@@ -472,6 +477,19 @@ public class StoreSellerServiceImpl implements IStoredSellerService { |
|
|
}
|
|
|
|
|
|
|
|
|
public void logPayConfig(){
|
|
|
|
|
|
for (String key : abstractPayServiceMap.keySet()){
|
|
|
scriptLogger.info("logPayConfig {}", key);
|
|
|
AbstractPayConfig abstractPayConfig = abstractPayServiceMap.get(key).abstractConfig();
|
|
|
if (abstractPayConfig == null) {
|
|
|
scriptLogger.info("logPayConfig {}, config null", key);
|
|
|
}else{
|
|
|
scriptLogger.info("logPayConfig {}, app_id {}, partner_id {}", key, abstractPayConfig.appId(), abstractPayConfig.partnerId());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void compensate(List<Integer> uids){
|
...
|
...
|
@@ -743,6 +761,12 @@ public class StoreSellerServiceImpl implements IStoredSellerService { |
|
|
return Pair.of(onshelfSkups, onShelfSkupsEarnest);
|
|
|
}
|
|
|
|
|
|
private Map<String, AbstractPayService> abstractPayServiceMap = Maps.newConcurrentMap();
|
|
|
|
|
|
@Override
|
|
|
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
|
|
abstractPayServiceMap = applicationContext.getBeansOfType(AbstractPayService.class);
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|