username@email.com
2024-11-15 f47da9571d16108fcab2bf6d55279a08ce2e7cbf
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
 
namespace CY.Model
{
 
    /// <summary>
    /// 计划订单表
    /// </summary>
    [Serializable]
    public partial class CoreCmsPlanOrderItem : IAggregateRoot
    {
        public CoreCmsPlanOrderItem()
        {
        }
 
        #region Model
 
        /// <summary>
        /// 序号
        /// </summary>
        public System.Int32 id { get; set; }
        /// <summary>
        /// 订单ID 关联order.id
        /// </summary>
        public System.Int32 orderId { get; set; }
 
 
        /// <summary>
        /// 商品名称
        /// </summary>
        public System.String name { get; set; }
 
 
        /// <summary>
        /// 商品规格
        /// </summary>
        public System.String specification { get; set; }
 
 
        /// <summary>
        /// 货品价格单价
        /// </summary>
 
        public System.Decimal price { get; set; }
 
 
        /// <summary>
        /// 数量
        /// </summary>
        public System.Int32 nums { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public System.Decimal amount { get; set; }
 
        /// <summary>
        /// 是否原始订单
        /// </summary>        
        public bool isOld { get; set; } = false;
 
 
 
 
 
        /// <summary>
        /// 建立时间
        /// </summary>        
        public DateTime? createTime { get; set; }
 
        /// <summary>
        /// 修改时间
        /// </summary>        
        public DateTime? upDataTime { get; set; }
 
        /// <summary>
        /// 创建人
        /// </summary>        
        public string createBy { get; set; }
 
        /// <summary>
        /// 修改人
        /// </summary>        
        public string upDataBy { get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>        
        public bool isdelete { get; set; } = false;
 
        /// <summary>
        /// 封面
        /// </summary>
        public System.String fengmian { get; set; }
 
        /// <summary>
        /// 内页
        /// </summary>
        public System.String neiye { get; set; }
 
        #endregion Model
 
        #region Visiter
 
        /// <summary>
        /// 属性访问器
        /// </summary>
        /// <param name="name">属性名</param>
        /// <param name="index">索引</param>
        /// <param name="isChange">是否将指定属性设置为传入值</param>
        /// <param name="value">需要赋予的值</param>
        /// <returns>与名称对应的属性值</returns>
        public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
        {
            object theValue = null;
 
 
            if ("id".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
            {
                this.id = isChange ? MyConvert.ConvertToInt32(value).Value : id;
                theValue = this.id;
            }
            else if ("orderId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
            {
                this.orderId = isChange ? MyConvert.ConvertToInt32(value).Value : orderId;
                theValue = this.orderId;
            }
            else if ("name".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
            {
                this.name = isChange ? MyConvert.ConvertToString(value) : name;
                theValue = this.name;
            }
            else if ("specification".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
            {
                this.specification = isChange ? MyConvert.ConvertToString(value) : specification;
                theValue = this.specification;
            }
 
            else if ("price".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
            {
                this.price = isChange ? MyConvert.ConvertToDecimal(value).Value : price;
                theValue = this.price;
            }
            else if ("nums".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
            {
                this.nums = isChange ? MyConvert.ConvertToInt32(value).Value : nums;
                theValue = this.nums;
            }
            else if ("amount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
            {
                this.amount = isChange ? MyConvert.ConvertToDecimal(value).Value : amount;
                theValue = this.amount;
            }
            else if ("isOld".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
            {
                this.isOld = isChange ? MyConvert.ConvertToBoolean(value) : isOld;
                theValue = this.isOld;
            }
            else if ("createTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
            {
                this.createTime = isChange ? MyConvert.ConvertToDateTime(value) : createTime;
                theValue = this.createTime;
            }
            else if ("upDataTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
            {
                this.upDataTime = isChange ? MyConvert.ConvertToDateTime(value) : upDataTime;
                theValue = this.upDataTime;
            }
            else if ("createBy".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
            {
                this.createBy = isChange ? MyConvert.ConvertToString(value) : createBy;
                theValue = this.createBy;
            }
            else if ("upDataBy".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
            {
                this.upDataBy = isChange ? MyConvert.ConvertToString(value) : upDataBy;
                theValue = this.upDataBy;
            }
            else if ("isdelete".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
            {
                this.isdelete = isChange ? MyConvert.ConvertToBoolean(value) : isdelete;
                theValue = this.isdelete;
            }
            else if ("fengmian".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
            {
                this.fengmian = isChange ? MyConvert.ConvertToString(value) : fengmian;
                theValue = this.fengmian;
            }
            else if ("neiye".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
            {
                this.neiye = isChange ? MyConvert.ConvertToString(value) : neiye;
                theValue = this.neiye;
            }
 
            return theValue;
        }
 
        #endregion
    }
}