|
|
@@ -189,7 +189,10 @@ public class JSTErpOrderServiceImpl implements IErpOrderService {
|
|
|
fsJstCodPush.setParams(JSON.toJSONString(shopOrderDTO));
|
|
|
fsJstCodPush.setRetryCount(0);
|
|
|
fsJstCodPush.setTaskStatus(TaskStatusEnum.PENDING.getCode());
|
|
|
- fsJstCodPushMapper.insert(fsJstCodPush);
|
|
|
+ if (order.getErpType() == null || order.getErpType() == 1) {
|
|
|
+ // ERP类型为null或者1的才添加到fsJstCodPush推送
|
|
|
+ fsJstCodPushMapper.insert(fsJstCodPush);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
log.info("推送ERP参数: {}",JSON.toJSONString(shopOrderDTO));
|