You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pdd-order-api/app/libs/const/class.SyncConst.php

41 lines
1.7 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
class SyncConst {
const syncTypeFullSync = 'full_sync'; // 全量同步
const syncTypeIncrement = 'increment'; // 增量同步
// const syncTypeFixup = 'fixup';
const syncTypeDiffId = 'diff_id';// 订正同步根据goodsId,同步本地没有,但是线上有的商品;删除本地有,但是线上没有的商品
const syncGoodsTaskQueueMaxCount = 3000;
const syncGoodsStatus = 'syncGoodsStatus'; //同步计划是否配置了上下架状态
const syncStock = 'syncStock'; //同步计划配置同步库存
const syncTitle = 'syncTitle';
const syncDesc = 'syncDesc';
const syncPrice = 'syncPrice';
const syncStocKeepNow = 'keepNow'; //配置库存为零时,保持现有
const syncStockEqZero = 'eqZero'; //配置库存为零时,与目标一致,也就是设为零
const syncStockCustom = 'custom'; //配置库存为零时,手动填写库存
const syncStockZero = 'syncZero'; //只同步0库存的SKU其他有库存的SKu保持不变
const allowAddBlacklistGoods = 'allowAddBlacklistGoods'; //允许添加到黑名单的商品
const alreadyAddBlacklistGoods = 'alreadyAddBlacklistGoods'; //已经添加到黑名单的商品
const allowAddPlanGoods = 'allowAddPlanGoods'; //允许添加到同步计划中的商品
const alreadyAddPlanGoods = 'alreadyAddPlanGoods'; //已经添加到同步计划中的商品
const add = 'add'; //表示是添加操作
const del = 'del'; //表示是个删除操作
const updateWayAuto = 'auto';
const updateWayManual = 'manual';
const syncMaxQueueCount = 500;
const fullSyncMaxTimeSpan = 3600;
const incrementMaxTimeSpan = 300;
const maxSyncGoodsQuery = 10000;
}