wankeda
2025-05-26 0864509e1eb593c3dedb66196ec19fe51437922b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Magicodes.ExporterAndImporter.Core;
using SqlSugar;
using WIDESEAWCS_Core.DB.Models;
using WIDESEAWCS_Core.Tenants;
 
namespace WIDESEAWCS_Model.Models
{
    [SugarTable("Dt_Stationinfo", "站点信息"), MultiTenant]
    public class Dt_Stationinfo : BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [ImporterHeader(Name = "主键")]
        [ExporterHeader(DisplayName = "主键")]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int id { get; set; }
        /// <summary>
        /// 缓存架编号
        /// </summary>
        [ImporterHeader(Name = "缓存架编号")]
        [ExporterHeader(DisplayName = "缓存架编号")]
        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "缓存架编号")]
        public string StationCode { get; set; }
        /// <summary>
        /// 缓存架状态
        /// </summary>
        [ImporterHeader(Name = "缓存架状态")]
        [ExporterHeader(DisplayName = "缓存架状态")]
        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "缓存架状态")]
        public int Location_state { get; set; }
        /// <summary>
        /// 区域
        /// </summary>
        [ImporterHeader(Name = "区域")]
        [ExporterHeader(DisplayName = "区域")]
        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "区域")]
        public string Area { get; set; }
 
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; }
        /// <summary>
        /// 最后放入或取走时间
        /// </summary>
        [ImporterHeader(Name = "最后放入或取走时间")]
        [ExporterHeader(DisplayName = "最后放入或取走时间")]
        [SugarColumn(IsNullable = true, ColumnDescription = "最后放入或取走时间")]
        public DateTime? LastUpdateTime { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [ImporterHeader(Name = "备注")]
        [ExporterHeader(DisplayName = "备注")]
        [SugarColumn(IsNullable = true, Length = 255, ColumnDescription = "备注")]
        public string Remark { get; set; }
        /// <summary>
        /// 创建者
        /// </summary>
        [ImporterHeader(IsIgnore = true)]
        [ExporterHeader(DisplayName = "创建者")]
        [SugarColumn(IsNullable = false, Length = 50, IsOnlyIgnoreUpdate = true, ColumnDescription = "创建者")]
        public string Creater { get; set; }
 
        /// <summary>
        /// 创建时间
        /// </summary>
        [ImporterHeader(IsIgnore = true)]
        [ExporterHeader(DisplayName = "创建时间")]
        [SugarColumn(IsNullable = false, IsOnlyIgnoreUpdate = true, ColumnDescription = "创建时间")]
        public DateTime CreateDate { get; set; } = DateTime.Now;
    }
}