完善开始搬家接口
parent
cacc13a46b
commit
71fd49ead1
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
class AppConst {
|
||||
const appVersionCodeFree = 'free';
|
||||
const appVersionCodePaid = 'paid';
|
||||
|
||||
const serviceMarketOrderCompete = 5;
|
||||
|
||||
public static function isSupportDs() {
|
||||
return true;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,201 @@
|
||||
<?php
|
||||
|
||||
class DoudianMsgConst {
|
||||
|
||||
const tagTradeCreate = 100;//订单创建消息
|
||||
|
||||
const tagTradePaid = 101;//订单支付/确认消息
|
||||
|
||||
const tagTradeSellerShip = 102;//卖家发货消息
|
||||
|
||||
const tagTradeSuccess = 103;//交易完成消息
|
||||
|
||||
const tagTradeLogisticsChanged = 104;//发货物流变更消息
|
||||
|
||||
const tagTradeAddressChanged = 105;//买家收货信息变更消息
|
||||
|
||||
const tagTradeCanceled = 106;//订单取消消息
|
||||
|
||||
const tagTradePartlySellerShip = 108;//订单部分发货消息
|
||||
|
||||
const tagTradeAmountChanged = 109;//订单金额修改消息
|
||||
|
||||
const tagTradePending = 110;//订单已支付待处理
|
||||
|
||||
const tagTradeAddressChangeApplied = 111;//买家收货信息变更申请消息
|
||||
|
||||
const tagTradeAppointment = 112;//预约发货提交消息
|
||||
|
||||
const tagTradeMemoModify = 113;//订单商家备注消息推送
|
||||
|
||||
const tagTradeLogisticsOrderTagPush = 10003;//订单标记推送
|
||||
|
||||
public static function getAllTradeTags() {
|
||||
return [
|
||||
self::tagTradeCreate,
|
||||
self::tagTradePaid,
|
||||
self::tagTradeSellerShip,
|
||||
self::tagTradeSuccess,
|
||||
self::tagTradeLogisticsChanged,
|
||||
self::tagTradeAddressChanged,
|
||||
self::tagTradeCanceled,
|
||||
self::tagTradePartlySellerShip,
|
||||
self::tagTradeAmountChanged,
|
||||
self::tagTradePending,
|
||||
self::tagTradeAddressChangeApplied,
|
||||
self::tagTradeAppointment,
|
||||
self::tagTradeMemoModify,
|
||||
self::tagTradeLogisticsOrderTagPush,
|
||||
];
|
||||
}
|
||||
|
||||
public static function getTradeBdTagsAndPriorityMap() {
|
||||
return [
|
||||
self::tagTradeSellerShip => 90,
|
||||
self::tagTradeSuccess => 99,
|
||||
self::tagTradeLogisticsChanged => 95,
|
||||
self::tagTradeAddressChanged => 90,
|
||||
self::tagTradeCanceled => 90,
|
||||
self::tagTradePartlySellerShip => 90,
|
||||
self::tagTradeAmountChanged => 90,
|
||||
self::tagTradePending => 95,
|
||||
self::tagTradeAddressChangeApplied => 90,
|
||||
self::tagTradeAppointment => 95,
|
||||
self::tagTradeMemoModify => 90,
|
||||
self::tagTradeLogisticsOrderTagPush => 90,
|
||||
];
|
||||
}
|
||||
|
||||
const tagRefundArbitrateApplied = 212;//买家发起客服仲裁消息
|
||||
const tagRefundArbitrateAudited = 216;//客服仲裁结果消息
|
||||
const tagRefundArbitrateCancelled = 215;//买家取消仲裁消息
|
||||
const tagRefundArbitrateSubmited = 214;//商家上传仲裁凭证消息
|
||||
const tagRefundArbitrateSubmiting = 213;//客服要求商家上传凭证消息
|
||||
const tagRefundBuyerReturnGoods = 203;//买家退货给卖家消息
|
||||
const tagRefundExchangeComfirmed = 211;//确认收货并二次发货成功
|
||||
const tagRefundExpirationChange = 209;//售后超时时长变更消息
|
||||
const tagRefundRefundAgreed = 201;//同意退款消息
|
||||
const tagRefundRefundClosed = 207;//售后关闭消息
|
||||
const tagRefundRefundCreated = 200;//买家发起售后申请消息
|
||||
const tagRefundRefundModified = 208;//买家修改售后申请消息
|
||||
const tagRefundRefundRefused = 204;//拒绝退款消息
|
||||
const tagRefundRefundSuccess = 206;//退款成功消息
|
||||
const tagRefundReturnApplyAgreed = 202;//同意退货申请消息
|
||||
const tagRefundReturnApplyRefused = 205;//拒绝退货申请消息
|
||||
const tagRefundReturnSpecialRefund = 224;//特殊权益售后消息
|
||||
const tagRefundReturnSpecialRefundSuccess = 225;//特殊权益售后退款成功消息
|
||||
const tagRefundResendConfirmed = 226;//补寄单商家补寄消息
|
||||
const tagRefundResendAgree = 227;//商家同意补寄消息
|
||||
|
||||
public static function getAllAftersaleTags() {
|
||||
return [
|
||||
self::tagRefundArbitrateApplied,
|
||||
self::tagRefundArbitrateAudited,
|
||||
self::tagRefundArbitrateCancelled,
|
||||
self::tagRefundArbitrateSubmited,
|
||||
self::tagRefundArbitrateSubmiting,
|
||||
self::tagRefundBuyerReturnGoods,
|
||||
self::tagRefundExchangeComfirmed,
|
||||
self::tagRefundExpirationChange,
|
||||
self::tagRefundRefundAgreed,
|
||||
self::tagRefundRefundClosed,
|
||||
self::tagRefundRefundCreated,
|
||||
self::tagRefundRefundModified,
|
||||
self::tagRefundRefundRefused,
|
||||
self::tagRefundRefundSuccess,
|
||||
self::tagRefundReturnApplyAgreed,
|
||||
self::tagRefundReturnApplyRefused,
|
||||
self::tagRefundReturnSpecialRefund,
|
||||
self::tagRefundReturnSpecialRefundSuccess,
|
||||
self::tagRefundResendConfirmed,
|
||||
self::tagRefundResendAgree,
|
||||
];
|
||||
}
|
||||
|
||||
const spiCodeSuccess = 0;//业务处理成功
|
||||
const spiCodeCheckSignFail = 100001;//验签失败
|
||||
const spiCodeParamError = 100002;// 参数错误
|
||||
const spiCodeSystemError = 100003;//系统错误
|
||||
const spiCodeChangeFail = 200023;//系统异常,地址修改失败建议联系商家修改
|
||||
const spiCodeOrderAlreadyDelivery = 200015;//订单已经发货无法修改地址
|
||||
const spiCodeOrderFinish = 200021;//订单已经签收无法修改地址
|
||||
const spiCodeOrderNotExist = 200022;//订单不存在,请稍后重试
|
||||
const spiCodeOrderInAfterSale = 200002;//订单进入审单不支持改地址
|
||||
|
||||
public static function getSpiCodeMap() {
|
||||
return [
|
||||
self::spiCodeSuccess => '业务处理成功',
|
||||
self::spiCodeCheckSignFail => '验签失败',
|
||||
self::spiCodeParamError => '参数错误',
|
||||
self::spiCodeSystemError => '系统错误',
|
||||
self::spiCodeOrderAlreadyDelivery => '订单已经发货无法修改地址',
|
||||
self::spiCodeOrderFinish => '订单已经签收无法修改地址',
|
||||
self::spiCodeOrderNotExist => '订单不存在,请稍后重试',
|
||||
self::spiCodeOrderInAfterSale => '订单进入审单不支持改地址',
|
||||
self::spiCodeChangeFail => '系统异常,地址修改失败建议联系商家修改',
|
||||
];
|
||||
}
|
||||
|
||||
public static function getSpiSkuChangeCodeAndTextMap() {
|
||||
return [
|
||||
self::spiCodeSuccess => '业务处理成功',
|
||||
self::spiCodeCheckSignFail => '验签失败',
|
||||
self::spiCodeParamError => '参数错误',
|
||||
self::spiCodeSystemError => '系统错误',
|
||||
self::spiCodeOrderAlreadyDelivery => '订单已经发货不支持修改sku',
|
||||
self::spiCodeOrderFinish => '订单已经签收不支持修改sku',
|
||||
self::spiCodeOrderNotExist => '订单不存在,请稍后重试',
|
||||
self::spiCodeOrderInAfterSale => '订单进入审单不支持改sku',
|
||||
];
|
||||
}
|
||||
|
||||
public static function getSpiCodeByOrderStatus($orderStatus) {
|
||||
if (empty($orderStatus)) {
|
||||
return self::spiCodeParamError;
|
||||
}
|
||||
|
||||
$orderStatusAndSpiCodeMap = [
|
||||
OrderConst::orderStatusWaitBuyerConfirmGoods => self::spiCodeOrderAlreadyDelivery,//发货
|
||||
OrderConst::orderStatusPartDelivery => self::spiCodeOrderAlreadyDelivery,//部分发货
|
||||
OrderConst::orderStatusFinish => self::spiCodeOrderFinish,//订单结束
|
||||
];
|
||||
|
||||
return $orderStatusAndSpiCodeMap[$orderStatus] ?: self::spiCodeChangeFail;
|
||||
}
|
||||
|
||||
/**
|
||||
* 代打代发:商家修改备注消息
|
||||
*/
|
||||
const tagIopTradeUpdateRemark = 500;
|
||||
|
||||
/**
|
||||
* 代打代发:商家订单分配消息
|
||||
*/
|
||||
const tagIopTradeDistribution = 501;
|
||||
|
||||
/**
|
||||
* 代打代发:商家取消分配订单消息
|
||||
*/
|
||||
const tagIopTradeDistributionCancel = 503;
|
||||
|
||||
/**
|
||||
* 代打代发:修改收件人信息消息
|
||||
*/
|
||||
const tagIopTradeUpdateReceiver = 504;
|
||||
|
||||
/**
|
||||
* 代打代发:代打运单回传状态变更消息
|
||||
*/
|
||||
const tagIopTradeStatusReturn = 505;
|
||||
|
||||
public static function getAllIopTradeTags() {
|
||||
return [
|
||||
self::tagIopTradeUpdateRemark,
|
||||
self::tagIopTradeDistribution,
|
||||
self::tagIopTradeDistributionCancel,
|
||||
self::tagIopTradeUpdateReceiver,
|
||||
self::tagIopTradeStatusReturn,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
class DsMessageConst {
|
||||
|
||||
const bizTypePurchaseOrderChange = 'purchase_order_change';
|
||||
|
||||
const bizTypeRelatePurchaseOrder = 'relate_purchase_order';
|
||||
|
||||
const bizTypeCancelPurchaseOrder = 'cancel_purchase_order';
|
||||
|
||||
const bizTypePlatformOrderAutoOutstorage = 'platformOrderAutoOutstorage';
|
||||
|
||||
const bizTypeSourceOrderSkipAutoAfs = 'source_order_skip_auto_afs';
|
||||
const bizTypeSourceOrderAutoAfs = 'source_order_auto_afs';
|
||||
|
||||
}
|
@ -0,0 +1,172 @@
|
||||
<?php
|
||||
|
||||
class DsOrderConst {
|
||||
|
||||
const orderStatusWaitPurchase = 'waitPurchase';//待采购
|
||||
const orderStatusWaitPay = 'waitPay';//待付款
|
||||
const orderStatusWaitSellerSendGoods = 'waitSellerSendGoods';//待发货
|
||||
const orderStatusWaitBuyerConfirmGoods = 'waitBuyerConfirmGoods';//已发货
|
||||
const orderStatusRefunding = 'refunding';//退款中
|
||||
const orderStatusFinish = 'finish';//已完成
|
||||
const orderStatusClose = 'close';//已关闭
|
||||
const orderStatusIsolation = 'isolation';//已隔离
|
||||
|
||||
const purchaseTabWaitPurchase = 'waitPurchase';
|
||||
const purchaseTabWaitPay = 'waitPay';
|
||||
const purchaseTabWaitSend = 'waitSend';
|
||||
const purchaseTabHasSend = 'hasSend';
|
||||
const purchaseTabRefunding = 'refunding';
|
||||
const purchaseTabFinish = 'finish';
|
||||
const purchaseTabClose = 'close';
|
||||
const purchaseTabIsolation = 'isolation';
|
||||
const purchaseTabAll = 'all';
|
||||
|
||||
const refundStatusRefunding = 'refunding';
|
||||
const refundStatusClose = 'close';
|
||||
const refundStatusFinish = 'finish';
|
||||
|
||||
const dsWaitPayStatusPartWaitPay = 1;//部分未付款
|
||||
const dsWaitPayStatusFullPay = 2;//已全部付款
|
||||
const dsWaitPayStatusAllUnpaid = 3;//全部未付款
|
||||
|
||||
const dsOrderRelateStateAll = 'all'; //全部
|
||||
const dsOrderRelateStateRelated = 'relatedSource';//已关联货源
|
||||
const dsOrderRelateStateUnrelated = 'unrelatedSource';//未关联货源
|
||||
|
||||
const DsRelationSourceStatusNoneProduct = 0;// 未关联货源
|
||||
const DsRelationSourceStatusPartProduct = 1;// 部分关联货源
|
||||
const DsRelationSourceStatusAllProduct = 2;// 全部关联货源
|
||||
|
||||
const dsPurchaseStatusWaitPurchase = 0;//待采购
|
||||
const dsPurchaseStatusPartPurchase = 1;//部分采购
|
||||
const dsPurchaseStatusWaitSend = 2;//待发货
|
||||
const dsPurchaseStatusPartSend = 4;//部分发货
|
||||
const dsPurchaseStatusWaitPay = 5;//待付款
|
||||
const dsPurchaseStatusHasSend = 6;//已发货
|
||||
|
||||
const filterPurchaseStatusWaitPurchase = '0';
|
||||
const filterPurchaseStatusPartPurchase = '1';
|
||||
const filterPurchaseStatusHasPurchase = '2';
|
||||
const filterPurchaseStatusManualHasPurchase = '3';
|
||||
|
||||
const actionSourcePlatformBatchPurchase = 'platform_batch_purchase';
|
||||
const actionSourcePlatformSinglePurchase = 'platform_single_purchase';
|
||||
const actionSourceMobilePlatformBatchPurchase = 'mobile_platform_batch_purchase';
|
||||
const actionSourceMobilePlatformSinglePurchase = 'mobile_platform_single_purchase';
|
||||
const actionSourcePlatformSingleRepurchase = 'platform_single_repurchase';
|
||||
const actionSourcePlatformCancel = 'platform_cancel';
|
||||
const actionSourceBatchPurchase = 'batch_purchase';
|
||||
const actionSourceSinglePurchase = 'single_purchase';
|
||||
const actionSourceCacnel = 'cancel';
|
||||
const actionSourcePlatformCloseCancel = 'platform_close_cancel';
|
||||
const actionSourceCloseCancel = 'close_cancel';
|
||||
const actionSourcePlatformAutoPurchase = 'platform_auto_purchase';
|
||||
|
||||
const platformProductRelateSourceItemTypeAdd = 'add';
|
||||
const platformProductRelateSourceItemTypeDelete = 'delete';
|
||||
|
||||
const purchaseSourcePlatformBatch = 'platform_batch';
|
||||
const purchaseSourceMobilePlatformSingle = 'mobile_platform_single';
|
||||
const purchaseSourceMobilePlatformBatch = 'mobile_platform_batch';
|
||||
const purchaseSourcePlatformAuto = 'platform_auto';
|
||||
const purchaseSourcePlatform = 'platform';
|
||||
|
||||
const flowFenxiao = 'fenxiao';
|
||||
const flowChoiceness = 'ttpft';//精选货源下单
|
||||
|
||||
const autoAfsActionTypeWaitSendRefund = 'waitSendRefund';
|
||||
const autoAfsActionTypeCloseOrder = 'closeOrder';
|
||||
const autoAfsActionTypeException = 'exception';
|
||||
|
||||
public static function getDdOrderStatusAndPlatformOrderStatusMap() {
|
||||
return [
|
||||
self::orderStatusWaitPurchase => [
|
||||
OrderConst::orderStatusWaitSellerSendGoods,
|
||||
OrderConst::orderStatusPartDelivery,
|
||||
],
|
||||
self::orderStatusWaitSellerSendGoods => [
|
||||
OrderConst::orderStatusWaitSellerSendGoods,
|
||||
OrderConst::orderStatusPartDelivery,
|
||||
],
|
||||
self::orderStatusWaitBuyerConfirmGoods => [OrderConst::orderStatusWaitBuyerConfirmGoods],
|
||||
self::orderStatusFinish => [OrderConst::orderStatusFinish],
|
||||
self::orderStatusClose => OrderConst::getPurchaseOrderTabCanceledAllOrderStatus(),
|
||||
];
|
||||
}
|
||||
|
||||
public static function getDdOrderStatusByPlatformOrderStatus($appOrderStatus) {
|
||||
if (empty($appOrderStatus)) {
|
||||
return [];
|
||||
}
|
||||
$platformOrderStatusAndDdOrderStatusMap = self::getDdOrderStatusAndPlatformOrderStatusMap();
|
||||
|
||||
$appOrderStatusArr = is_array($appOrderStatus) ? $appOrderStatus : [$appOrderStatus];
|
||||
$ddOrderStatusArr = $ddAfterSaleStatusArr = [];
|
||||
if (in_array('all', $appOrderStatusArr)) {
|
||||
return $ddOrderStatusArr;
|
||||
}
|
||||
foreach ($appOrderStatusArr as $tmpAppOrderStatus) {
|
||||
if ($tmpAppOrderStatus == self::orderStatusRefunding) {
|
||||
$ddAfterSaleStatusArr = self::getAppOrderStatusRefundingAfterSaleOrderStatus();
|
||||
}
|
||||
if (!isset($platformOrderStatusAndDdOrderStatusMap[$tmpAppOrderStatus])) {
|
||||
continue;
|
||||
}
|
||||
$ddOrderStatusArr = array_merge($ddOrderStatusArr, $platformOrderStatusAndDdOrderStatusMap[$tmpAppOrderStatus]);
|
||||
}
|
||||
|
||||
return [$ddOrderStatusArr, $ddAfterSaleStatusArr];
|
||||
}
|
||||
|
||||
public static function getAppOrderStatusByOrderStatus($orderStatus) {
|
||||
$map = self::getDdOrderStatusAndPlatformOrderStatusMap();
|
||||
|
||||
$returnAppOrderStatus = null;
|
||||
foreach ($map as $appOrderStatus => $orderStatusArr) {
|
||||
if (!in_array($orderStatus, $orderStatusArr)) {
|
||||
continue;
|
||||
}
|
||||
$returnAppOrderStatus = $appOrderStatus;
|
||||
}
|
||||
|
||||
return $returnAppOrderStatus;
|
||||
}
|
||||
|
||||
public static function getDsRefundStatusName($refundStatus) {
|
||||
$map = [
|
||||
self::refundStatusRefunding => '售后中',
|
||||
self::refundStatusClose => '售后关闭',
|
||||
self::refundStatusFinish => '售后完成',
|
||||
];
|
||||
|
||||
return $map[$refundStatus] ?: null;
|
||||
}
|
||||
|
||||
public static function getAppOrderStatusRefundingAfterSaleOrderStatus() {
|
||||
return [
|
||||
AfterSaleConst::aftersaleStatusAfterSaleAudit,
|
||||
AfterSaleConst::aftersaleStatusWaitBuyerReturnGoods,
|
||||
AfterSaleConst::aftersaleStatusAuditRefunding,
|
||||
AfterSaleConst::aftersaleStatusPreSaleAllAudit,
|
||||
AfterSaleConst::aftersaleStatusRefundAudit,
|
||||
AfterSaleConst::aftersaleStatusReturnAudit,
|
||||
AfterSaleConst::aftersaleStatusExchangeAudit,
|
||||
AfterSaleConst::aftersaleStatusWaitSellerSendGoods,
|
||||
AfterSaleConst::aftersaleStatusReturnReceive,
|
||||
AfterSaleConst::aftersaleStatusReturnShip,
|
||||
];
|
||||
}
|
||||
|
||||
public static function getActionTypeAndNameMap () {
|
||||
return [
|
||||
self::autoAfsActionTypeWaitSendRefund => '1688订单申请退款',
|
||||
self::autoAfsActionTypeCloseOrder => '关闭1688订单',
|
||||
self::autoAfsActionTypeException => '自动售后异常',
|
||||
];
|
||||
}
|
||||
|
||||
public static function getActionTypeName($actionType) {
|
||||
$actionTypeAndNameMap = self::getActionTypeAndNameMap();
|
||||
return $actionTypeAndNameMap[$actionType] ?: '';
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class FrequencyConst {
|
||||
|
||||
const actionDecodeOrderConsignee = 'decodeOrderConsignee';
|
||||
|
||||
const decodeConsigneeWarningFiveSecondsLimit = 5;
|
||||
|
||||
const decodeConsigneeWarningDayLimit = 3;
|
||||
|
||||
const decodeConsigneeWarningDayPercentLimit = 50;
|
||||
|
||||
const shopDecryptConsigneeDefaultRate = 100;
|
||||
|
||||
const grayscaleTestPurchasePddddkUrlDefaultRate = 10;
|
||||
|
||||
public static function getDefaultValidOrderDecryptRateLimit() {
|
||||
return [
|
||||
'outstorage' => 10,
|
||||
'purchase' => 30,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
class OrderChildTagConst {
|
||||
const cBiz = 'c_biz';
|
||||
const payAmount = 'pay_amount';
|
||||
|
||||
const cBizValueAlliance = 2;
|
||||
const cBizValueShopSelf = 8;
|
||||
|
||||
|
||||
public static function getCBizValueAndTextMap() {
|
||||
return [
|
||||
self::cBizValueAlliance => '精选联盟',
|
||||
self::cBizValueShopSelf => '小店自卖',
|
||||
];
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
class PlatformMsgConst {
|
||||
|
||||
const bizTypePlatformOrderRefunding = 'platformOrderRefunding';
|
||||
|
||||
const bizTypePlatformOrderRefundFinish = 'platformOrderRefundFinish';
|
||||
|
||||
const retryLimit = 5;
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 抖店的商品状态常量
|
||||
*/
|
||||
|
||||
class ProductStatusConst {
|
||||
|
||||
/**
|
||||
* 上架产品
|
||||
*/
|
||||
const onSale = 0;
|
||||
|
||||
/**
|
||||
* 非上架产品
|
||||
* 自定义的状态,包含了非上架的所有状态
|
||||
*/
|
||||
const unOnSale = 99;
|
||||
|
||||
/**
|
||||
* 下架产品
|
||||
*/
|
||||
const forSale = 1;
|
||||
|
||||
/**
|
||||
* 删除(回收站)
|
||||
*/
|
||||
const recycleBin = 2;
|
||||
|
||||
/**
|
||||
* 彻底删除
|
||||
*/
|
||||
const delete = -2;
|
||||
|
||||
/*
|
||||
* 审核状态 通过(即上架)
|
||||
*/
|
||||
|
||||
const checkSuccess = 3;
|
||||
|
||||
/*
|
||||
* 审核状态 封禁
|
||||
*/
|
||||
|
||||
const checkBlocked = 5;
|
||||
|
||||
/*
|
||||
* 审核状态 草稿箱
|
||||
*/
|
||||
|
||||
const checkDrafts = 1;
|
||||
|
||||
/*
|
||||
* 审核状态 审核中
|
||||
*/
|
||||
|
||||
const checkIng = 2;
|
||||
|
||||
const itemInputTypeSelect = 'select';
|
||||
const itemInputTypeInput = 'input';
|
||||
const itemInputTypeText = 'text';
|
||||
const itemInputTypeCheckBox = 'checkbox';
|
||||
const itemInputTypeRadio = 'radio';
|
||||
|
||||
/*
|
||||
* 审核状态 审核失败
|
||||
*/
|
||||
|
||||
const checkFail = 4;
|
||||
|
||||
const productShortHasSet = 'productShortHasSet';
|
||||
const productShortNotSet = 'productShortNotSet';
|
||||
const skuShortHasSet = 'skuShortHasSet';
|
||||
const skuShortNotSet = 'skuShortNotSet';
|
||||
|
||||
public static function getProductStatusName($itemStatus)
|
||||
{
|
||||
$nameMap = array(
|
||||
self::onSale => '上架',
|
||||
self::forSale => '下架',
|
||||
self::recycleBin => '删除至回收站',
|
||||
self::delete => '彻底删除',
|
||||
);
|
||||
|
||||
return $nameMap[$itemStatus] ? $nameMap[$itemStatus] : $itemStatus;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,359 @@
|
||||
<?php
|
||||
|
||||
class PurchaseOrderConst {
|
||||
const purchaseOrderTabAll = 'all';
|
||||
const purchaseOrderTabWaitPurchase = 'wait_purchase';
|
||||
const purchaseOrderTabWaitSend = 'wait_send';
|
||||
const purchaseOrderTabHasSend = 'has_send';
|
||||
const purchaseOrderTabFinished = 'finished';
|
||||
const purchaseOrderTabCanceled = 'canceled';
|
||||
const purchaseOrderTabIsolation = 'isolation';
|
||||
const purchaseOrderTabCashOnDelivery = 'cash_on_delivery';
|
||||
const purchaseOrderTabRisk = 'risk';
|
||||
const purchaseOrderTabWaitPay = 'wait_pay';
|
||||
|
||||
const purchaseOrderStatusWaitSend = 'wait_send';
|
||||
const purchaseOrderStatusTakingGoods = 'taking_goods';
|
||||
const purchaseOrderStatusHasSend = 'has_send';
|
||||
const purchaseOrderStatusFinished = 'finished';
|
||||
const purchaseOrderStatusCancel = 'cancel';
|
||||
const purchaseOrderStatusRefund = 'refund';
|
||||
const purchaseOrderStatusWaitPay = 'wait_pay';
|
||||
const purchaseOrderStatusWaitConfirm = 'wait_confirm';
|
||||
|
||||
const filterPurchaseStatusWaitPurchase = '0';
|
||||
const filterPurchaseStatusPartPurchase = '1';
|
||||
const filterPurchaseStatusHasPurchase = '2';
|
||||
const filterPurchaseStatusManualHasPurchase = '3';
|
||||
|
||||
const purchase1688TypePromptGoods = 'prompt_goods';
|
||||
const purchase1688TypeDistribuition = 'distribution';
|
||||
const purchase1688TypeUsePurchaseUrl = 'use_purchase_url';
|
||||
|
||||
const purchase1688AddressTypeTemporarily = 'temporarily';
|
||||
const purchase1688AddressTypeFixed = 'fixed';
|
||||
|
||||
const autoFillRemarkTypeNone = '0';
|
||||
const autoFillRemarkTypeOnlyOrderRemark = '1';
|
||||
const autoFillRemarkTypeIncludeVenderRemark = '2';
|
||||
const autoFillRemarkTypeCustomRemark = '3';
|
||||
const autoFillRemarkTypeSku = '4';
|
||||
const autoFillRemarkTypeAddress = '5';
|
||||
const autoFillRemarkTypeOnlyVenderRemark = '6';
|
||||
const autoFillRemarkTypePlatformName = '11';
|
||||
const autoFillRemarkTypePlatformShopName = '12';
|
||||
const autoFillRemarkTypePlatformOrderId = '13';
|
||||
|
||||
const purchaseUrlSourceMove = 0;
|
||||
const purchaseUrlSourceManual = 1;
|
||||
|
||||
const purchasePlatformTaobao = 'taobao';
|
||||
const purchasePlatformPdd = 'yangkeduo';
|
||||
const purchasePlatformTmall = 'tmall';
|
||||
const purchasePlatform1688 = '1688';
|
||||
const purchasePlatformJd = 'jd';
|
||||
const purchasePlatformWsy = 'wsy';
|
||||
const purchasePlatformSooxie = 'sooxie';
|
||||
const purchasePlatformVvic = 'vvic';
|
||||
const purchasePlatform17qcc = '17qcc';
|
||||
const purchasePlatform17zwd = '17zwd';
|
||||
const purchasePlatformHznzcn = 'hznzcn';
|
||||
const purchasePlatformBao66 = 'bao66';
|
||||
const purchasePlatformK3 = 'k3';
|
||||
const purchasePlatformXingfujie = 'xingfujie';
|
||||
const purchasePlatform2tong = '2tong';
|
||||
const purchasePlatformJuyi5 = 'juyi5';
|
||||
const purchasePlatform3e = '3e';
|
||||
const purchasePlatform1688DS = '1688DS';
|
||||
const purchasePlatform1688CG = '1688CG';
|
||||
const purchasePlatformJp0663 = 'jp0663';
|
||||
const purchasePlatform52dsy = '52dsy';
|
||||
const purchasePlatform91fj = '91jf';
|
||||
|
||||
const purchasePlatformTaote = 'taote';
|
||||
const purchasePlatformLtao = 'ltao';
|
||||
const purchasePlatformSooxieDS = 'sooxieDS';
|
||||
const purchasePlatformYiwugou = 'yiwugou';
|
||||
const purchasePlatformZlycw = 'zlycw';
|
||||
|
||||
const purchasePlatformField = 'purchase_platform';
|
||||
const purchasePlatform2Field = 'purchase_platform_2';
|
||||
const purchaseOrderSnField = 'purchase_order_sn';
|
||||
const purchasePaymentField = 'purchase_payment';
|
||||
const purchaseOrderSellerField = 'purchase_order_seller';
|
||||
const totalProfitField = 'total_profit';
|
||||
const profitRatioField = 'profit_ratio';
|
||||
const logisticsInfoField = 'logistics_info';
|
||||
const purchaseOrderBuyer = 'purchase_order_buyer';
|
||||
const purchaseOrderNumField = 'purchase_order_num';
|
||||
const shopNameField = 'shop_name';
|
||||
const receiverMobileField = 'receiver_mobile';
|
||||
const customField = 'custom';
|
||||
|
||||
const autoShipmentDdApi = '2';
|
||||
const autoShipmentPlugin = '1';
|
||||
|
||||
const actionAutoRelate = 'auto_relate';
|
||||
const actionManualRelate = 'manual_relate';
|
||||
const actionRsync = 'rsync';
|
||||
|
||||
const sameReceiveInfoTipFieldName = 'name';
|
||||
const sameReceiveInfoTipFieldMobile = 'mobile';
|
||||
const sameReceiveInfoTipFieldReceiverFullAddress = 'fullAddress';
|
||||
|
||||
const sameTypeName = 'name';
|
||||
const sameTypeMobile = 'mobile';
|
||||
const sameTypeFullAddress = 'fullAddress';
|
||||
const sameTypeNameAndMobile = 'name_mobile';
|
||||
const sameTypeNameAndFullAddress = 'name_fullAddress';
|
||||
const sameTypeMobileAndFullAddress = 'mobile_fullAddress';
|
||||
const sameTypeNameAndMobileAndFullAddress = 'name_mobile_fullAddress';
|
||||
|
||||
const autoAuditAddressOrderTypeNoPurchase = 'no_purchase';
|
||||
const autoAuditAddressOrderTypeAlreadyPurchase = 'already_purchase';
|
||||
|
||||
const purchaseSettingDefaultAfterSalesLastShipLeftHours = 24;
|
||||
|
||||
const purchaseOrderConsigneeSuffixOrderId = 'orderId';
|
||||
const purchaseOrderConsigneeSuffixReceiverName = 'receiverName';
|
||||
const purchaseOrderConsigneeSuffixReceiverMobile = 'receiverMobile';
|
||||
const purchaseOrderConsigneeSuffixShopName = 'shopName';
|
||||
const purchaseOrderConsigneeSuffixCustom = 'custom';
|
||||
|
||||
const searchTypeSearchByTitle = 'searchByTitle';
|
||||
const searchTypeSearchByImage = 'searchByImage';
|
||||
|
||||
const purchaseOrderCancelSourceManualCancel = 'manual_cancel';
|
||||
const purchaseOrderCancelSourceManualRelate = 'manual_relate';
|
||||
const purchaseOrderCancelSourceRelateCancel = 'relate_cancel';
|
||||
const purchaseOrderCancelSourceDsRelateCancel = 'ds_relate_cancel';
|
||||
const purchaseOrderCancelSourceDsCancel = 'ds_cancel';
|
||||
const purchaseOrderCancelSourceDsCloseCancel = 'ds_close_cancel';
|
||||
const purchaseOrderCancelSourceDsRelate = 'ds_relate';
|
||||
const purchaseOrderCancelSourcePluginRelate = 'plugin_relate';
|
||||
const purchaseOrderCancelSourceCgRelate = 'cg_relate';
|
||||
const purchaseOrderCancelSourceCgCancel = 'cg_cancel';
|
||||
const purchaseOrderCancelSourceCgMsgCancel = 'cg_msg_cancel';
|
||||
const purchaseOrderCancelSourceCgCloseCancel = 'ds_close_cancel';
|
||||
|
||||
const fakeWarningRangeShopFake = 'shopFake';
|
||||
const fakeWarningRangeCloudFake = 'cloudFake';
|
||||
|
||||
const shopFakeSourceOrderMark = 'orderMark';
|
||||
const shopFakeSourceManual = 'manual';
|
||||
|
||||
const orderHighLightTypeTitle = 'title';
|
||||
const orderHighLightTypeGoodsId = 'goodsId';
|
||||
const orderHighLightTypeItemNum = 'itemNum';
|
||||
const orderHighLightTypeNote = 'orderNote';
|
||||
const orderHighLightTypeRemark = 'orderRemark';
|
||||
|
||||
const orderProcessAreaTypeIsolation = 'isolation';
|
||||
const orderProcessAreaTypeWarning = 'warning';
|
||||
|
||||
const filterSkuName = 'skuName';
|
||||
const filterProductId = 'productId';
|
||||
const filterExcludeProductId = 'excludeProductId';
|
||||
const filterSkuId = 'skuId';
|
||||
const filterItemNum = 'itemNum';
|
||||
const filterCode = 'code';
|
||||
|
||||
const autoFillOrderMemoShopNameAndOrderId = 'shop_name_and_order_id';
|
||||
const autoFillOrderMemoTypeShopName = 'shop_name';
|
||||
const autoFillOrderMemoTypeOrderId = 'order_id';
|
||||
const autoFillOrderMemoTypeOrderRemark = 'order_remark';
|
||||
const autoFillOrderMemoTypeSellerRemark = 'seller_remark';
|
||||
const autoFillOrderMemoTypePlatformName = 'platform_name';
|
||||
|
||||
const platformGroup1688DS = '1688DS';
|
||||
const platformGroup1688CG = '1688CG';
|
||||
const platformGroupOther = 'other';
|
||||
const platformGroupManual = 'manual';
|
||||
|
||||
const purchaseFlowGeneral = 'general';//1688批发方式
|
||||
const purchaseFlowSaleProxy = 'saleproxy';//1688代发方式
|
||||
|
||||
const deliveryTimeTypeRightNow = 'right_now';
|
||||
const deliveryTimeTypeLogisticsAccept = 'logistics_accept';
|
||||
const deliveryTimeTypeDisabled = 'disabled';
|
||||
|
||||
|
||||
const purchaseMobileTypeOrigin = 'origin';//使用原手机号
|
||||
const purchaseMobileTypeFix = 'fix';//固定手机号
|
||||
const purchaseMobileTypeReplaceMiddleFourNum = 'replace_middle_four_num';//修改手机号中间4位
|
||||
|
||||
const purchaseUrlModalSourceManual = 'manual';
|
||||
const purchaseUrlModalSourceAuto = 'auto';
|
||||
|
||||
const actionSourcePlatformDsAutoPurchaseSetting = 'platformDsAutoPurchaseSetting';
|
||||
const actionSourceInitDsPurchaseSetting = 'initDsPurchaseSetting';
|
||||
const actionSourcePlatformPurchaseSetting = 'platformPurchaseSetting';
|
||||
|
||||
const dsEncryptOrderTypeAllSeller = 'allSeller';
|
||||
const dsEncryptOrderTypeSomeSeller = 'someSeller';
|
||||
|
||||
const currentPurchaseSettingVersion = 2;
|
||||
|
||||
const autoIsolationWareTypeIsolation = 1;
|
||||
const autoIsolationWareTypeNotIsolation = 2;
|
||||
const autoIsolationSkuTypeIsolation = 1;
|
||||
const autoIsolationSkuTypeNotIsolation = 2;
|
||||
|
||||
public static function getPurchasePlatformAndOrderDsTblMap() {
|
||||
return [
|
||||
self::purchasePlatform1688DS => TblConst::op_order_ds,
|
||||
self::purchasePlatformLtao => TblConst::op_order_ltao,
|
||||
self::purchasePlatformSooxieDS => TblConst::op_order_sooxie,
|
||||
];
|
||||
}
|
||||
|
||||
public static function getOrderDsTblByPurchasePlatform($purchasePlatform) {
|
||||
return self::getPurchasePlatformAndOrderDsTblMap()[$purchasePlatform];
|
||||
}
|
||||
|
||||
public static function getDsPurchasePlatforms() {
|
||||
return array_keys(self::getPurchasePlatformAndOrderDsTblMap());
|
||||
}
|
||||
|
||||
public static function getDefaultAppendVenderRemarkFields() {
|
||||
return array(
|
||||
self::purchasePlatform2Field,
|
||||
self::purchaseOrderSnField,
|
||||
self::logisticsInfoField,
|
||||
self::purchaseOrderBuyer,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public static function getSupportPurchasePlatformMap() {
|
||||
$supportPurchasePlatformMap = self::getPurchasePlatformMap();
|
||||
$forbidPurchasePlatforms = self::getForbidPurchasePlatformList();
|
||||
foreach ($forbidPurchasePlatforms as $forbidPurchasePlatform) {
|
||||
unset($supportPurchasePlatformMap[$forbidPurchasePlatform]);
|
||||
}
|
||||
|
||||
unset($supportPurchasePlatformMap[self::purchasePlatformLtao]);
|
||||
return $supportPurchasePlatformMap;
|
||||
}
|
||||
|
||||
public static function getPurchasePlatformMap() {
|
||||
return array(
|
||||
self::purchasePlatformTaobao => '淘宝',
|
||||
self::purchasePlatformPdd => '拼多多',
|
||||
self::purchasePlatformTmall => '天猫',
|
||||
self::purchasePlatform1688 => '1688',
|
||||
self::purchasePlatform1688DS => '1688分销',
|
||||
self::purchasePlatform1688CG => '1688采购',
|
||||
self::purchasePlatformTaote => '淘特',
|
||||
self::purchasePlatformLtao => '淘特分销',
|
||||
self::purchasePlatformJd => '京东',
|
||||
self::purchasePlatformWsy => '网商园',
|
||||
self::purchasePlatformSooxie => '搜鞋网',
|
||||
self::purchasePlatformSooxieDS => '搜鞋网分销',
|
||||
self::purchasePlatformVvic => '搜款网',
|
||||
self::purchasePlatform17qcc => '青创网',
|
||||
self::purchasePlatform17zwd => '一起做网店',
|
||||
self::purchasePlatformHznzcn => '杭州女装网',
|
||||
self::purchasePlatformBao66 => '包牛牛',
|
||||
self::purchasePlatformK3 => '开山网',
|
||||
self::purchasePlatformXingfujie => '新款网',
|
||||
self::purchasePlatform2tong => '二童网',
|
||||
self::purchasePlatformJuyi5 => '聚衣网',
|
||||
self::purchasePlatform3e => '生意网',
|
||||
self::purchasePlatformJp0663 => '军埔网',
|
||||
self::purchasePlatform52dsy => '52电商园',
|
||||
self::purchasePlatform91fj => '91家纺网',
|
||||
self::purchasePlatformZlycw => '织里云仓',
|
||||
);
|
||||
}
|
||||
|
||||
public static function getHasPlatformOrderDetailIdPurchasePlatformList()
|
||||
{
|
||||
return [self::purchasePlatformHznzcn, self::purchasePlatformZlycw];
|
||||
}
|
||||
|
||||
public static function getPurchasePlatformName($purchasePlatform) {
|
||||
$purchasePlatformMap = self::getPurchasePlatformMap();
|
||||
|
||||
return $purchasePlatformMap[$purchasePlatform];
|
||||
}
|
||||
|
||||
public static function getShortPurchasePlatformMap() {
|
||||
return array(
|
||||
self::purchasePlatformTaobao => 'TB',
|
||||
self::purchasePlatformPdd => 'PDD',
|
||||
self::purchasePlatformTmall => 'TM',
|
||||
self::purchasePlatform1688 => '1688',
|
||||
self::purchasePlatform1688CG => '1688CG',
|
||||
self::purchasePlatform1688DS => '1688DS',
|
||||
self::purchasePlatformJd => 'JD',
|
||||
self::purchasePlatformWsy => 'WSY',
|
||||
self::purchasePlatformSooxie => 'SX',
|
||||
self::purchasePlatformSooxieDS => 'SX',
|
||||
self::purchasePlatformVvic => 'VVIC',
|
||||
self::purchasePlatform17qcc => '17QCC',
|
||||
self::purchasePlatform17zwd => '17ZWD',
|
||||
self::purchasePlatformHznzcn => 'HZNZCN',
|
||||
self::purchasePlatformBao66 => 'BAO66',
|
||||
self::purchasePlatformK3 => 'K3',
|
||||
self::purchasePlatformXingfujie => 'XINGFUJIE',
|
||||
self::purchasePlatform2tong => '2TONG',
|
||||
self::purchasePlatformJuyi5 => 'JUYI5',
|
||||
self::purchasePlatform3e => '3E',
|
||||
self::purchasePlatformJp0663 => 'JP0663',
|
||||
self::purchasePlatform52dsy => '52DSY',
|
||||
self::purchasePlatformTaote => 'TAOTE',
|
||||
self::purchasePlatform91fj => '91JF',
|
||||
self::purchasePlatformZlycw => 'ZLYCW',
|
||||
);
|
||||
}
|
||||
|
||||
public static function getShortPurchasePlatformName($purchasePlatform) {
|
||||
$purchasePlatformMap = self::getShortPurchasePlatformMap();
|
||||
|
||||
return $purchasePlatformMap[$purchasePlatform];
|
||||
}
|
||||
|
||||
public static function getOrderStatusMaps() {
|
||||
return [
|
||||
PurchaseOrderConst::purchaseOrderStatusWaitPay => '待付款',
|
||||
PurchaseOrderConst::purchaseOrderStatusWaitSend => '待发货',
|
||||
PurchaseOrderConst::purchaseOrderStatusHasSend => '待收货',
|
||||
PurchaseOrderConst::purchaseOrderStatusFinished => '交易成功',
|
||||
PurchaseOrderConst::purchaseOrderStatusCancel => '交易关闭',
|
||||
PurchaseOrderConst::purchaseOrderStatusRefund => '退款中',
|
||||
];
|
||||
}
|
||||
|
||||
public static function getPurchaseOrderStatusMap() {
|
||||
return [
|
||||
PurchaseOrderConst::purchaseOrderStatusWaitConfirm => '待确认',
|
||||
PurchaseOrderConst::purchaseOrderStatusWaitPay => '未付款',
|
||||
PurchaseOrderConst::purchaseOrderStatusTakingGoods => '拿货中',
|
||||
PurchaseOrderConst::purchaseOrderStatusWaitSend => '待发货',
|
||||
PurchaseOrderConst::purchaseOrderStatusHasSend => '已发货',
|
||||
PurchaseOrderConst::purchaseOrderStatusFinished => '已完成',
|
||||
PurchaseOrderConst::purchaseOrderStatusCancel => '已关闭',
|
||||
PurchaseOrderConst::purchaseOrderStatusRefund => '退款中',
|
||||
];
|
||||
}
|
||||
|
||||
public static function getPurchaseOrderStatusArr($excludeStatus = []) {
|
||||
$purchaseOrderStatusArr = array_keys(self::getOrderStatusMaps());
|
||||
return array_diff($purchaseOrderStatusArr, $excludeStatus);
|
||||
}
|
||||
|
||||
public static function getPurchaseFixedMobileColumnByPurchasePlatform($purchasePlatform) {
|
||||
return 'purchase_pdd_fixed_mobile';
|
||||
}
|
||||
|
||||
public static function getForbidPurchasePlatformList() {
|
||||
return [
|
||||
self::purchasePlatformJd,
|
||||
self::purchasePlatformTaobao,
|
||||
self::purchasePlatformTmall,
|
||||
self::purchasePlatformPdd,
|
||||
];
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
class PurchaseOrderTagConst {
|
||||
const Flow = 'flow';
|
||||
const notFirst1688OrderType = 'notFirst1688OrderType';
|
||||
const isUseManualConsignee = 'isUseManualConsignee';
|
||||
const hasChangedLogistics = 'hasChangedLogistics';
|
||||
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
<?php
|
||||
class StatusConst {
|
||||
const normal = 'normal';
|
||||
const pause = 'pause';
|
||||
const cancel = 'cancel';
|
||||
const recycle = 'recycle';
|
||||
const deny = 'deny';
|
||||
const none = 'none';
|
||||
|
||||
const delete = 'delete';
|
||||
const skip = 'skip';
|
||||
const finish = 'finish';
|
||||
|
||||
const wait = 'wait';
|
||||
const waitRetry = 'wait_retry';
|
||||
const waitRetryFixup = 'wait_retry_fixup';
|
||||
const waitFixup = 'wait_fixup';
|
||||
const waitRevert = 'wait_revert';
|
||||
const waitPlan = 'wait_plan';
|
||||
const waitAudit = 'wait_audit';
|
||||
const processing = 'processing';
|
||||
const processingRevert = 'processing_revert';
|
||||
const processChildTask = 'process_child_task';
|
||||
const processCompareImage = 'process_compare_image';
|
||||
const process = 'process';
|
||||
|
||||
const reject = 'reject';
|
||||
const manualAudit = 'manual_audit';
|
||||
const auditPass = 'audit_pass';
|
||||
const agree = 'agree';
|
||||
|
||||
const success = 'success';
|
||||
const updateSuccess = 'update_success';
|
||||
const revertSuccess = 'revert_success';
|
||||
const processingDelete = 'processing_delete';
|
||||
const fail = 'fail';
|
||||
const updateFail = 'update_fail';
|
||||
const revertFail = 'revert_fail';
|
||||
const processingCancel = 'processing_cancel';
|
||||
const processingUpdate = 'processing_update';
|
||||
const processingCheckEnd = 'processing_check_end';
|
||||
const partSuccess = 'part_success';
|
||||
const partProcessing = 'part_processing';
|
||||
|
||||
const waitProcessing = 'wait_processing';
|
||||
|
||||
const switchOn = 'on';
|
||||
const switchOff = 'off';
|
||||
|
||||
const waitDwsData = 'wait_dws_data';
|
||||
|
||||
const processParse = 'process_parse';
|
||||
const processJudgment = 'process_judgment';
|
||||
const processCollectData = 'process_collect_data';
|
||||
|
||||
const waitPlugin = 'waitPlugin';
|
||||
|
||||
const payWait = 'pay_wait';
|
||||
const paySuccess = 'pay_success';
|
||||
const payFail = 'pay_fail';
|
||||
const payManualCheck = 'pay_manual_check';
|
||||
const payManualRefund = 'pay_manual_refund';
|
||||
|
||||
const settingStatusAll = 'all';
|
||||
const settingStatusHasSet = 'has_set';
|
||||
const settingStatusNotSet = 'not_set';
|
||||
|
||||
const delay = 'delay';
|
||||
|
||||
const manual = 'manual';
|
||||
|
||||
public static function getStatusNameByStatusCode($code) {
|
||||
$codeMap = [
|
||||
self::finish => '完成',
|
||||
self::success => '成功',
|
||||
self::fail => '失败',
|
||||
self::cancel => '已取消',
|
||||
self::wait => '等待',
|
||||
self::processing => '处理中',
|
||||
self::waitRevert => '等待恢复',
|
||||
self::processingRevert => '恢复处理中',
|
||||
self::revertSuccess => '已恢复',
|
||||
self::revertFail => '恢复失败',
|
||||
];
|
||||
|
||||
return $codeMap[$code] ? $codeMap[$code] : '';
|
||||
|
||||
}
|
||||
|
||||
const productImgProcessTypeNormal = 'normal';
|
||||
const productImgProcessTypeRevert = 'revert';
|
||||
}
|
@ -0,0 +1,239 @@
|
||||
<?php
|
||||
|
||||
class TblConst {
|
||||
const timer_spec = 'timer_spec';
|
||||
const timer_lock = 'timer_lock';
|
||||
const timer_info = 'timer_info';
|
||||
|
||||
//shop
|
||||
const shop = 'shop';
|
||||
const shop_auth_config = 'shop_auth_config';
|
||||
const appOrder = 'app_order';
|
||||
const appMsg = 'app_msg';
|
||||
const shop_1688_ds_auth = 'shop_1688_ds_auth';
|
||||
const shop_biz_whitelist = 'shop_biz_whitelist';
|
||||
const shop_decrypt_consignee_rate = 'shop_decrypt_consignee_rate';
|
||||
const shop_op = 'shop_op';
|
||||
|
||||
const op_logistics = 'op_logistics';
|
||||
const op_logistics_platform = 'op_logistics_platform';
|
||||
const op_order_rsync_info = 'op_order_rsync_info';
|
||||
const op_setting = 'op_setting';
|
||||
const op_order_rsync_queue = 'op_order_rsync_queue';
|
||||
const op_order_fixup_rsync_queue = 'op_order_fixup_rsync_queue';
|
||||
const op_order_rsync_log = 'op_order_rsync_log';
|
||||
const op_order_rsync_page_log = 'op_order_rsync_page_log';
|
||||
const op_order_rsync_page_queue = 'op_order_rsync_page_queue';
|
||||
const op_order = 'op_order';
|
||||
const op_order_child = 'op_order_child';
|
||||
const op_order_user_open_id = 'op_order_user_open_id';
|
||||
const op_order_child_logistics = 'op_order_child_logistics';
|
||||
const op_order_child_after_sale = 'op_order_child_after_sale';
|
||||
const op_order_given_product = 'op_order_given_product';
|
||||
const op_coupon_info = 'op_coupon_info';
|
||||
const op_order_ext = 'op_order_ext';
|
||||
const op_print_status = 'op_print_status';
|
||||
const op_order_map = 'op_order_map';
|
||||
const op_order_pre_merge = 'op_order_pre_merge';
|
||||
const op_order_outstorage_history = 'op_order_outstorage_history';
|
||||
const op_order_receive_address = 'op_order_receive_address';
|
||||
const op_order_same_receiver = 'op_order_same_receiver';
|
||||
const op_order_custom = 'op_order_custom';
|
||||
const op_address_change_audit_log = 'op_address_change_audit_log';
|
||||
const op_order_address_change_apply = 'op_order_address_change_apply';
|
||||
const op_order_address_history = 'op_order_address_history';
|
||||
|
||||
const op_sku_short = 'op_sku_short';
|
||||
const op_product_short = 'op_product_short';
|
||||
const op_order_phase = 'op_order_phase';
|
||||
const op_order_rsync_page_buffer = 'op_order_rsync_page_buffer';
|
||||
const op_order_encrypt = 'op_order_encrypt';
|
||||
const op_order_encrypt_index = 'op_order_encrypt_index';
|
||||
const op_order_sensitive = 'op_order_sensitive';
|
||||
const op_order_decrypt_log = 'op_order_decrypt_log';
|
||||
const op_order_decrypt_track = 'op_order_decrypt_track';
|
||||
const op_order_decrypt_abnormal_ip_log = 'op_order_decrypt_abnormal_ip_log';
|
||||
const op_order_decrypt_blacklist = 'op_order_decrypt_blacklist';
|
||||
const op_order_decrypt_report_log = 'op_order_decrypt_report_log';
|
||||
const op_order_address_change_encrypt = 'op_order_address_change_encrypt';
|
||||
const op_order_address_change_encrypt_index = 'op_order_address_change_encrypt_index';
|
||||
const op_order_address_change_sensitive = 'op_order_address_change_sensitive';
|
||||
const op_order_address_history_sensitive = 'op_order_address_history_sensitive';
|
||||
const op_order_address_history_encrypt_index = 'op_order_address_history_encrypt_index';
|
||||
const op_order_address_history_encrypt = 'op_order_address_history_encrypt';
|
||||
const op_order_consignee_custom_flag = 'op_order_consignee_custom_flag';
|
||||
const op_order_merge = 'op_order_merge';
|
||||
const op_order_merge_order = 'op_order_merge_order';
|
||||
const op_package = 'op_package';
|
||||
const op_package_ext = 'op_package_ext';
|
||||
const op_package_order = 'op_package_order';
|
||||
const op_package_order_child = 'op_package_order_child';
|
||||
const op_order_ds = 'op_order_ds';
|
||||
const op_order_redpack_info = 'op_order_redpack_info';
|
||||
const op_order_amount_detail = 'op_order_amount_detail';
|
||||
const op_order_cancel_delivery_log = 'op_order_cancel_delivery_log';
|
||||
const op_order_price_protection = 'op_order_price_protection';
|
||||
const op_order_end = 'op_order_end';
|
||||
const op_order_priority_delivery = 'op_order_priority_delivery';
|
||||
const op_order_area_abnormal = 'op_order_area_abnormal';
|
||||
const op_order_no_index_encrypt = 'op_order_no_index_encrypt';
|
||||
|
||||
|
||||
const shop_biz_status = 'shop_biz_status';
|
||||
|
||||
const op_order_child_change = 'op_order_child_change';
|
||||
|
||||
const stat_shop_decrypt_order_dt = 'stat_shop_decrypt_order_dt';
|
||||
const stat_shop_decrypt_order_dt_queue = 'stat_shop_decrypt_order_dt_queue';
|
||||
const stat_order_shop_decrypt_count = 'stat_order_shop_decrypt_count';
|
||||
const stat_shop_ip_order_decrypt_hh = 'stat_shop_ip_order_decrypt_hh';
|
||||
const shop_order_sensitive_switch = 'shop_order_sensitive_switch';
|
||||
|
||||
const dd_cloud_print_template = 'dd_cloud_print_template';
|
||||
|
||||
const shop_biz_blacklist = 'shop_biz_blacklist';
|
||||
const shop_ds_encrypt_order_stat = 'shop_ds_encrypt_order_stat';
|
||||
|
||||
|
||||
|
||||
const purchase_order_need_check_status = 'purchase_order_need_check_status';
|
||||
const purchase_order = 'purchase_order';
|
||||
const purchase_order_tag = 'purchase_order_tag';
|
||||
const purchase_account = 'purchase_account';
|
||||
const purchase_order_item = 'purchase_order_item';
|
||||
const purchase_order_platform_info = 'purchase_order_platform_info';
|
||||
const purchase_order_manual_log = 'purchase_order_manual_log';
|
||||
const purchase_logistics_match_rule = 'purchase_logistics_match_rule';
|
||||
const purchase_order_logistics_match_log = 'purchase_order_logistics_match_log';
|
||||
const purchase_order_update_log = 'purchase_order_update_log';
|
||||
const purchase_order_custom = 'purchase_order_custom';
|
||||
const purchase_order_mobile_source = 'purchase_order_mobile_source';
|
||||
const purchase_order_setting = 'purchase_order_setting';
|
||||
const purchase_order_cancel_log = 'purchase_order_cancel_log';
|
||||
const purchase_order_item_relate_source = 'purchase_order_item_relate_source';
|
||||
const purchase_order_transit_address = 'purchase_order_transit_address';
|
||||
const purchase_use_fixed_mobile_log = 'purchase_use_fixed_mobile_log';
|
||||
const purchase_setting = 'purchase_setting';
|
||||
const purchase_setting_log = 'purchase_setting_log';
|
||||
const purchase_order_ds_encrypt = 'purchase_order_ds_encrypt';
|
||||
|
||||
const area = 'area';
|
||||
|
||||
const doudian_msg = 'doudian_msg';
|
||||
const doudian_msg_dy = 'doudian_msg_dy';
|
||||
const doudian_fail_msg = 'doudian_fail_msg';
|
||||
const doudian_fail_msg_dy = 'doudian_fail_msg_dy';
|
||||
const doudian_msg_parse_queue = 'doudian_msg_parse_queue';
|
||||
const doudian_msg_parse_queue_dy = 'doudian_msg_parse_queue_dy';
|
||||
const dd_trade_msg = 'dd_trade_msg';
|
||||
const doudian_trade_msg_buffer = 'doudian_trade_msg_buffer';
|
||||
const doudian_trade_msg_queue = 'doudian_trade_msg_queue';
|
||||
const doudian_trade_msg_bd_buffer = 'doudian_trade_msg_bd_buffer';
|
||||
const doudian_trade_msg_bd_queue = 'doudian_trade_msg_bd_queue';
|
||||
const dd_aftersale_msg = 'dd_aftersale_msg';
|
||||
const doudian_aftersale_msg_buffer = 'doudian_aftersale_msg_buffer';
|
||||
const doudian_aftersale_msg_queue = 'doudian_aftersale_msg_queue';
|
||||
const doudian_iop_trade_msg = 'doudian_iop_trade_msg';
|
||||
const doudian_iop_trade_msg_buffer = 'doudian_iop_trade_msg_buffer';
|
||||
const doudian_iop_trade_msg_queue = 'doudian_iop_trade_msg_queue';
|
||||
|
||||
const aftersale = 'aftersale';
|
||||
const aftersale_arbitrate = 'aftersale_arbitrate';
|
||||
const after_sale_rsync_queue = 'after_sale_rsync_queue';
|
||||
const after_sale_rsync_page_queue = 'after_sale_rsync_page_queue';
|
||||
const after_sale_rsync_page_buffer = 'after_sale_rsync_page_buffer';
|
||||
const after_sale_rsync_info = 'after_sale_rsync_info';
|
||||
const after_sale_rsync_log = 'after_sale_rsync_log';
|
||||
const after_sale_rsync_page_log = 'after_sale_rsync_page_log';
|
||||
const aftersale_price_protection_detail = 'aftersale_price_protection_detail';
|
||||
const aftersale_exchange_sku_info = 'aftersale_exchange_sku_info';
|
||||
|
||||
const shop_login_log = 'shop_login_log';
|
||||
|
||||
const product_to_ds_item = 'product_to_ds_item';
|
||||
const product = 'product';
|
||||
|
||||
const ds_message = 'ds_message';
|
||||
const ds_message_consumer_queue = 'ds_message_consumer_queue';
|
||||
const ds_message_consumer_buffer = 'ds_message_consumer_buffer';
|
||||
|
||||
const o_s = 'o_s';
|
||||
const grayscale_test_rate = 'grayscale_test_rate';
|
||||
|
||||
const ds_purchase_setting = 'ds_purchase_setting';
|
||||
const ds_purchase_setting_log = 'ds_purchase_setting_log';
|
||||
const ds_allow_auto_purchase_product = 'ds_allow_auto_purchase_product';
|
||||
const ds_filter_auto_purchase_product = 'ds_filter_auto_purchase_product';
|
||||
const ds_auto_purchase_log = 'ds_auto_purchase_log';
|
||||
const ds_auto_purchase_order_buffer = 'ds_auto_purchase_order_buffer';
|
||||
const ds_auto_purchase_order_queue = 'ds_auto_purchase_order_queue';
|
||||
const ds_auto_purchase_agreement = 'ds_auto_purchase_agreement';
|
||||
const ds_auto_purchase_switch_log = 'ds_auto_purchase_switch_log';
|
||||
const ds_auto_purchase_whitelist = 'ds_auto_purchase_whitelist';
|
||||
const ds_purchase_order_auto_afs_log = 'ds_purchase_order_auto_afs_log';
|
||||
const ds_purchase_order_auto_afs_log_abnormal = 'ds_purchase_order_auto_afs_log_abnormal';
|
||||
const ds_purchase_order_auto_afs_result = 'ds_purchase_order_auto_afs_result';
|
||||
|
||||
const op_order_ltao = 'op_order_ltao';
|
||||
const shop_to_ltao_user = 'shop_to_ltao_user';
|
||||
|
||||
const purchase_order_ext = 'purchase_order_ext';
|
||||
|
||||
const shop_to_1688_ds_member = 'shop_to_1688_ds_member';
|
||||
|
||||
const op_order_es_ts = 'op_order_es_ts_dy';
|
||||
const op_order_es_check_buffer = 'op_order_es_check_buffer_dy';
|
||||
const op_order_es_check_queue = 'op_order_es_check_queue_dy';
|
||||
const op_order_es_sync_buffer = 'op_order_es_sync_buffer_dy';
|
||||
const op_order_es_sync_queue = 'op_order_es_sync_queue_dy';
|
||||
const op_order_es_full_sync_queue = 'op_order_es_full_sync_queue_dy';
|
||||
const op_order_es_full_sync_queue_log = 'op_order_es_full_sync_queue_log_dy';
|
||||
|
||||
const after_sale_es_sync_buffer = 'after_sale_es_sync_buffer_dy';
|
||||
const after_sale_es_sync_queue = 'after_sale_es_sync_queue_dy';
|
||||
const after_sale_es_full_sync_queue = 'after_sale_es_full_sync_queue_dy';
|
||||
const after_sale_es_full_sync_queue_log = 'after_sale_es_full_sync_queue_log_dy';
|
||||
|
||||
const op_order_single_rsync_buffer = 'op_order_single_rsync_buffer';
|
||||
const op_order_single_rsync_queue = 'op_order_single_rsync_queue';
|
||||
|
||||
const ds_relate_product_analysis_op_order_queue = 'ds_relate_product_analysis_op_order_queue';
|
||||
const op_order_child_tag = 'op_order_child_tag';
|
||||
|
||||
const shop_order_decrypt_risk_control = 'shop_order_decrypt_risk_control';
|
||||
const shop_print_version = 'shop_print_version';
|
||||
|
||||
const op_order_seller_words_update_log = 'op_order_seller_words_update_log';
|
||||
const op_order_address_update_log = 'op_order_address_update_log';
|
||||
|
||||
const shop_common_login_region = 'shop_common_login_region';
|
||||
const shop_common_login_region_log = 'shop_common_login_region_log';
|
||||
const analysis_shop_common_login_region_queue = 'analysis_shop_common_login_region_queue';
|
||||
|
||||
|
||||
|
||||
const shop_to_1688_cg_member = 'shop_to_1688_cg_member';
|
||||
const shop_1688_cg_auth = 'shop_1688_cg_auth';
|
||||
|
||||
|
||||
const op_order_delay_outstorage_buffer = 'op_order_delay_outstorage_buffer';
|
||||
|
||||
const shop_dy_cloud_push_info = 'shop_dy_cloud_push_info';
|
||||
const shop_dy_cloud_push_subscribe_queue = 'shop_dy_cloud_push_subscribe_queue';
|
||||
const shop_dy_cloud_push_subscribe_log = 'shop_dy_cloud_push_subscribe_log';
|
||||
const dy_cloud_pull_order_log = 'dy_cloud_pull_order_log';
|
||||
const dy_cloud_pull_order_buffer = 'dy_cloud_pull_order_buffer';
|
||||
const dy_cloud_pull_order_queue = 'dy_cloud_pull_order_queue';
|
||||
const dy_cloud_pull_after_sale_log = 'dy_cloud_pull_after_sale_log';
|
||||
const dy_cloud_pull_after_sale_buffer = 'dy_cloud_pull_after_sale_buffer';
|
||||
const dy_cloud_pull_after_sale_queue = 'dy_cloud_pull_after_sale_queue';
|
||||
const dy_cloud_pull_info = 'dy_cloud_pull_info';
|
||||
const dy_cloud_pull_log = 'dy_cloud_pull_log';
|
||||
const dy_cloud_pull_queue = 'dy_cloud_pull_queue';
|
||||
|
||||
const customer = 'customer';
|
||||
const customer_shop = 'customer_shop';
|
||||
const customer_analysis_queue = 'customer_analysis_queue';
|
||||
|
||||
const user_agreement_log = 'user_agreement_log';
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
package com.ms.api;
|
||||
package com.ms.api.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.move;
|
||||
package com.ms.api.dto.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.order;
|
||||
package com.ms.api.dto.order;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.order;
|
||||
package com.ms.api.dto.order;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.order;
|
||||
package com.ms.api.dto.order;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.order;
|
||||
package com.ms.api.dto.order;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.order;
|
||||
package com.ms.api.dto.order;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
package com.ms.api.order;
|
||||
package com.ms.api.dto.order;
|
||||
|
||||
import lombok.Data;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.order;
|
||||
package com.ms.api.dto.order;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.order;
|
||||
package com.ms.api.dto.order;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.ms.api.common.PageOption;
|
@ -1,21 +0,0 @@
|
||||
package com.ms.api.move;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/*
|
||||
* 提交搬家任务 请求参数
|
||||
*/
|
||||
@Data
|
||||
public class SaveBatchMoveTaskRequestDTO {
|
||||
|
||||
// products [] 商品信息
|
||||
// source_img_url String 来源商品图片
|
||||
// source_title String 来源商品标题
|
||||
// source_item_id int 来源商品id
|
||||
// cid int 抖店类目id
|
||||
// move_shop_config_id int 搬家配置id
|
||||
// is_fast_mode int 是否极速模式
|
||||
// skus map sku编辑价格之后的map信息
|
||||
// 例如:{'skuId' : 100}
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.ms.api.bo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ProductBO {
|
||||
|
||||
private int isFastMode;
|
||||
|
||||
/**
|
||||
* source
|
||||
*/
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* site
|
||||
*/
|
||||
private String site;
|
||||
|
||||
/**
|
||||
* third_cid
|
||||
*/
|
||||
private String cid;
|
||||
|
||||
/**
|
||||
* source_item_id
|
||||
*/
|
||||
private String sourceItemId;
|
||||
|
||||
/**
|
||||
* source_title
|
||||
*/
|
||||
private String sourceTitle;
|
||||
|
||||
/**
|
||||
* source_img_url
|
||||
*/
|
||||
private String sourceImgUrl;
|
||||
|
||||
/**
|
||||
* source_shop_name
|
||||
*/
|
||||
private String sourceShopName;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
package com.ms.api.consts;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class StatusConst {
|
||||
|
||||
public static final String normal = "normal";
|
||||
public static final String pause = "pause";
|
||||
public static final String cancel = "cancel";
|
||||
public static final String recycle = "recycle";
|
||||
public static final String deny = "deny";
|
||||
public static final String none = "none";
|
||||
|
||||
public static final String delete = "delete";
|
||||
public static final String skip = "skip";
|
||||
public static final String finish = "finish";
|
||||
|
||||
public static final String wait = "wait";
|
||||
public static final String waitRetry = "wait_retry";
|
||||
public static final String waitRetryFixup = "wait_retry_fixup";
|
||||
public static final String waitFixup = "wait_fixup";
|
||||
public static final String waitRevert = "wait_revert";
|
||||
public static final String waitPlan = "wait_plan";
|
||||
public static final String waitAudit = "wait_audit";
|
||||
public static final String processing = "processing";
|
||||
public static final String processingRevert = "processing_revert";
|
||||
public static final String processChildTask = "process_child_task";
|
||||
public static final String processCompareImage = "process_compare_image";
|
||||
public static final String process = "process";
|
||||
|
||||
public static final String reject = "reject";
|
||||
public static final String manualAudit = "manual_audit";
|
||||
public static final String auditPass = "audit_pass";
|
||||
public static final String agree = "agree";
|
||||
|
||||
public static final String success = "success";
|
||||
public static final String updateSuccess = "update_success";
|
||||
public static final String revertSuccess = "revert_success";
|
||||
public static final String processingDelete = "processing_delete";
|
||||
public static final String fail = "fail";
|
||||
public static final String updateFail = "update_fail";
|
||||
public static final String revertFail = "revert_fail";
|
||||
public static final String processingCancel = "processing_cancel";
|
||||
public static final String processingUpdate = "processing_update";
|
||||
public static final String processingCheckEnd = "processing_check_end";
|
||||
public static final String partSuccess = "part_success";
|
||||
public static final String partProcessing = "part_processing";
|
||||
|
||||
public static final String waitProcessing = "wait_processing";
|
||||
|
||||
public static final String switchOn = "on";
|
||||
public static final String switchOff = "off";
|
||||
|
||||
public static final String waitDwsData = "wait_dws_data";
|
||||
|
||||
public static final String processParse = "process_parse";
|
||||
public static final String processJudgment = "process_judgment";
|
||||
public static final String processCollectData = "process_collect_data";
|
||||
|
||||
public static final String waitPlugin = "waitPlugin";
|
||||
|
||||
public static final String payWait = "pay_wait";
|
||||
public static final String paySuccess = "pay_success";
|
||||
public static final String payFail = "pay_fail";
|
||||
public static final String payManualCheck = "pay_manual_check";
|
||||
public static final String payManualRefund = "pay_manual_refund";
|
||||
|
||||
public static final String settingStatusAll = "all";
|
||||
public static final String settingStatusHasSet = "has_set";
|
||||
public static final String settingStatusNotSet = "not_set";
|
||||
|
||||
public static final String delay = "delay";
|
||||
|
||||
public static final String manual = "manual";
|
||||
|
||||
public static final String productImgProcessTypeNormal = "normal";
|
||||
public static final String productImgProcessTypeRevert = "revert";
|
||||
|
||||
/**
|
||||
* 根据状态码获取状态名称
|
||||
*
|
||||
* @param code
|
||||
* @return
|
||||
*/
|
||||
public static String getStatusNameByStatusCode(String code) {
|
||||
HashMap<String,String> codeMap = new HashMap<>();
|
||||
codeMap.put(finish,"完成");
|
||||
codeMap.put(success,"'成功'");
|
||||
codeMap.put(fail,"'失败'");
|
||||
codeMap.put(cancel,"已取消");
|
||||
codeMap.put(wait,"等待");
|
||||
codeMap.put(processing,"处理中");
|
||||
codeMap.put(waitRevert,"等待恢复");
|
||||
codeMap.put(processingRevert,"恢复处理中");
|
||||
codeMap.put(revertSuccess,"已恢复");
|
||||
codeMap.put(revertFail,"恢复失败");
|
||||
|
||||
return codeMap.getOrDefault(code, "");
|
||||
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.ms.api.util;
|
||||
package com.ms.api.tool;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.doudian.open.utils.SignUtil;
|
@ -1,6 +1,7 @@
|
||||
package com.ms.api.util;
|
||||
package com.ms.api.tool;
|
||||
|
||||
import cn.hutool.crypto.SecureUtil;
|
||||
import com.ms.api.util.UniqueKeyMultiValueMap;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
Loading…
Reference in New Issue