using System;
using System.Collections.Generic;
using System.Text;

namespace AutoTurnOver.Models
{
    /// <summary>
    /// 缺货推送
    /// </summary>
    public class dc_auto_shortage_push
    {
        public int id { get; set; }

        public string bailun_sku { get; set; }

        public string warehouse_code { get; set; }
        public string warehouse_type { get; set; }

        /// <summary>
        /// 是否回货
        /// </summary>
        public bool has_return_goods { get; set; }

        /// <summary>
        /// 推送时间
        /// </summary>
        public DateTime push_date { get; set; }

        /// <summary>
        /// 类型
        ///1 = 缺货
        ///2 = 0 库存
        /// </summary>
        public int type { get; set; }

        private int _stocks;
        public int stocks { get { return Math.Max(0, _stocks); } set { _stocks = value; } }

        /// <summary>
        /// 平台
        /// </summary>
        public string platform { get; set; }
        public string buyer_name { get; set; }

        /// <summary>
        /// 供应商节假日情况
        /// </summary>
        public string supplier_holiday_time { get; set; }
    }
}
