|
@@ -262,6 +262,10 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
private OrderQueryService orderQueryService;
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FSSysConfig fsSysConfig;
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public void syncExpressToWx() {
|
|
|
List<FsWxExpressTask> fsWxExpressTasks = fsWxExpressTaskMapper.selectPendingData();
|
|
@@ -1889,6 +1893,10 @@ public class FsStoreOrderServiceImpl implements IFsStoreOrderService
|
|
|
|
|
|
@Override
|
|
|
public void createOmsOrder(Long orderId) throws ParseException {
|
|
|
+ if(fsSysConfig.getErpOpen() == 0) {
|
|
|
+ logger.info("[推送ERP] erp推送已经关闭!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
FsStoreOrder order=fsStoreOrderMapper.selectFsStoreOrderById(orderId);
|
|
|
|
|
|
if(StringUtils.isEmpty(order.getExtendOrderId())&&order.getStatus()!=1){
|