328 lines
10 KiB
C#
328 lines
10 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using SqlSugar;
|
|
using OfficeOpenXml.Attributes;
|
|
using Newtonsoft.Json;
|
|
using ARW.Model.Dto.Business.GoodsManager.Goodss;
|
|
|
|
namespace ARW.Model.Models.Business.GoodsManager.Goodss
|
|
{
|
|
/// <summary>
|
|
/// 商品,数据实体对象
|
|
///
|
|
/// @author lwh
|
|
/// @date 2023-06-19
|
|
/// </summary>
|
|
[SugarTable("tb_goods")]
|
|
public class Goods : BusinessBase
|
|
{
|
|
|
|
/// <summary>
|
|
/// 描述 :
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "GoodsId")]
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "goods_id")]
|
|
public int GoodsId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "GoodsGuid")]
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = false, ColumnName = "goods_guid")]
|
|
public long GoodsGuid { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :店铺guid
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "店铺guid")]
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(ColumnName = "shop_guid")]
|
|
public long ShopGuid { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :商品类目guid
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "商品类目guid")]
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(ColumnName = "shop_goods_category_guid")]
|
|
public long ShopGoodsCategoryGuid { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :商品规格guid
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "商品规格ids")]
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(ColumnName = "goods_sku_ids")]
|
|
public string GoodsSkuIds { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :配送模板guid
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "配送模板guid")]
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
[SugarColumn(ColumnName = "delivery_guid")]
|
|
public long DeliveryGuid { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :名称
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "名称")]
|
|
[SugarColumn(ColumnName = "goods_name")]
|
|
public string GoodsName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :编码
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "编码")]
|
|
[SugarColumn(ColumnName = "goods_coding")]
|
|
public string GoodsCoding { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :主图视频
|
|
/// 空值 : true
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "主图视频")]
|
|
[SugarColumn(ColumnName = "goods_main_image_video")]
|
|
public string GoodsMainImageVideo { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :视频封面
|
|
/// 空值 : true
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "视频封面")]
|
|
[SugarColumn(ColumnName = "goods_video_cover")]
|
|
public string GoodsVideoCover { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :图片
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "图片")]
|
|
[SugarColumn(ColumnName = "goods_picture")]
|
|
public string GoodsPicture { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述 :卖点
|
|
/// 空值 : true
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "卖点")]
|
|
[SugarColumn(ColumnName = "goods_selling_point")]
|
|
public string GoodsSellingPoint { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述 :商品规格(1单规格 2多规格)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "商品规格(1单规格 2多规格)")]
|
|
[SugarColumn(ColumnName = "goods_spec_type")]
|
|
public int GoodsSpecType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :价格(最低)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "价格(最低)")]
|
|
[SugarColumn(ColumnName = "goods_price_lowest")]
|
|
public decimal GoodsPriceLowest { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :价格(最高)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "价格(最高)")]
|
|
[SugarColumn(ColumnName = "goods_price_highest")]
|
|
public decimal GoodsPriceHighest { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述 :商品重量
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "商品重量")]
|
|
[SugarColumn(ColumnName = "goods_weight")]
|
|
public decimal GoodsWeight { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述 :划线价格(最低)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "划线价格(最低)")]
|
|
[SugarColumn(ColumnName = "goods_dashed_price_lowest")]
|
|
public decimal GoodsDashedPriceLowest { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述 :划线价格(最高)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "划线价格(最高)")]
|
|
[SugarColumn(ColumnName = "goods_dashed_price_highest")]
|
|
public decimal GoodsDashedPriceHighest { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :库存总量
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "库存总量")]
|
|
[SugarColumn(ColumnName = "goods_total_inventory")]
|
|
public int GoodsTotalInventory { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :初始销量
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "初始销量")]
|
|
[SugarColumn(ColumnName = "goods_sales_initial")]
|
|
public int GoodsSalesInitial { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :实际销量
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "实际销量")]
|
|
[SugarColumn(ColumnName = "goods_sales_actual")]
|
|
public int GoodsSalesActual { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :详情
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "详情")]
|
|
[SugarColumn(ColumnName = "goods_details")]
|
|
public string GoodsDetails { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :库存计算方式(1下单立减库存 2付款立减库存)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "库存计算方式(1下单立减库存 2付款立减库存)")]
|
|
[SugarColumn(ColumnName = "goods_deduct_stock_type")]
|
|
public int GoodsDeductStockType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :是否赠送积分(1开启 0关闭)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "是否赠送积分(1开启 0关闭)")]
|
|
[SugarColumn(ColumnName = "goods_is_points_gift")]
|
|
public int GoodsIsPointsGift { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :是否允许使用积分抵扣(1允许 0不允许)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "是否允许使用积分抵扣(1允许 0不允许)")]
|
|
[SugarColumn(ColumnName = "goods_is_points_discount")]
|
|
public int GoodsIsPointsDiscount { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :积分抵扣设置(0默认抵扣 1单独设置抵扣)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "积分抵扣设置(0默认抵扣 1单独设置抵扣)")]
|
|
[SugarColumn(ColumnName = "goods_is_alone_points_discount")]
|
|
public int GoodsIsAlonePointsDiscount { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :单独设置积分抵扣的配置
|
|
/// 空值 : true
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "单独设置积分抵扣的配置")]
|
|
[SugarColumn(ColumnName = "goods_points_discount_config")]
|
|
public string GoodsPointsDiscountConfig { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :是否开启会员折扣(1开启 0关闭)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "是否开启会员折扣(1开启 0关闭)")]
|
|
[SugarColumn(ColumnName = "goods_is_enable_grade")]
|
|
public int GoodsIsEnableGrade { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :会员折扣设置(0默认等级折扣 1单独设置折扣)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "会员折扣设置(0默认等级折扣 1单独设置折扣)")]
|
|
[SugarColumn(ColumnName = "goods_is_alone_grade")]
|
|
public int GoodsIsAloneGrade { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :单独设置折扣的配置
|
|
/// 空值 : true
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "单独设置折扣的配置")]
|
|
[SugarColumn(ColumnName = "goods_alone_grade_equity")]
|
|
public string GoodsAloneGradeEquity { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :上下架状态(1上架 2下架)
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "上下架状态(1上架 2下架)")]
|
|
[SugarColumn(ColumnName = "goods_shelf_status")]
|
|
public int GoodsShelfStatus { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 描述 :排序
|
|
/// 空值 : false
|
|
/// </summary>
|
|
[EpplusTableColumn(Header = "排序")]
|
|
[SugarColumn(ColumnName = "goods_sort")]
|
|
public int GoodsSort { get; set; }
|
|
|
|
|
|
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
public string GoodsServicesIds { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 商品规格
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public List<GoodsSpecDto> GoodsSpecList { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// 商品sku列表
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public List<SkuDto> SkuList { get; set; }
|
|
|
|
}
|
|
} |