Files
KJD_WebService/AllBase/Model/Param/DyProductManage/ViolateParam.cs
T

71 lines
2.1 KiB
C#

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;
}
}
/// <summary>
/// 抖音商品Id
/// </summary>
public string DouProductId { get; set; }
/// <summary>
/// 抖音店铺Id
/// </summary>
public string DouShopId { get; set; }
public string RuleNames { get; set; }
/// <summary>
/// 数据来源 1.产品数据库 2.店铺在售商品 3.店铺仓库商品
/// </summary>
public int DataFrom { get; set; }
/// <summary>
/// 校验时间
/// </summary>
public DateTime CheckTime { get; set; }
/// <summary>
/// 处理(删除)结果
/// </summary>
public string HandleResult { get; set; }
}
}