using NaiBa.Util.Extension;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Param.ProductManage
{
public class ViolateParam
{
public string UpId { get; set; }
public long UpIdNumber
{
get
{
var upId = UpId;
if (string.IsNullOrWhiteSpace(upId))
upId = "0";
string upIdNumber = BaseRegex.GetMatchRegex(ref upId, "\\d{5,20}")[0]?.Groups[0]?.Value;
if (!string.IsNullOrEmpty(upIdNumber))
{
return upIdNumber.ParseToLong();
}
return 0;
}
}
public string From
{
get
{
string from = "";
if (string.IsNullOrEmpty(UpId))
from = "";
else if (UpId.StartsWith("pd"))
from = "拼多多";
else if (UpId.StartsWith("tb"))
from = "淘宝";
else if (UpId.StartsWith("al"))
from = "阿里巴巴";
else if (UpId.StartsWith("jx"))
from = "京喜";
else if (UpId.StartsWith("dy"))
from = "抖音";
return from;
}
}
///
/// 抖音商品Id
///
public string DouProductId { get; set; }
///
/// 抖音店铺Id
///
public string DouShopId { get; set; }
public string RuleNames { get; set; }
///
/// 数据来源 1.产品数据库 2.店铺在售商品 3.店铺仓库商品
///
public int DataFrom { get; set; }
///
/// 校验时间
///
public DateTime CheckTime { get; set; }
///
/// 处理(删除)结果
///
public string HandleResult { get; set; }
}
}